SEEquipmentDataRequest.h
1 /**************************************************************************************
2 Copyright 2015 Applied Research Associates, Inc.
3 Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4 this file except in compliance with the License. You may obtain a copy of the License
5 at:
6 http://www.apache.org/licenses/LICENSE-2.0
7 Unless required by applicable law or agreed to in writing, software distributed under
8 the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9 CONDITIONS OF ANY KIND, either express or implied. See the License for the
10 specific language governing permissions and limitations under the License.
11 **************************************************************************************/
12 
13 #pragma once
14 #include <string>
15 
16 #include <biogears/cdm/scenario/requests/SEDataRequest.h>
17 #include <biogears/schema/cdm/Environment.hxx>
18 
19 namespace biogears {
20 class SEDataRequestManager;
21 
22 class BIOGEARS_API SEEquipmentDataRequest : public SEDataRequest {
23  friend class SEDataRequestManager;
24 
25 protected:
26  SEEquipmentDataRequest(const SEDecimalFormat* dfault = nullptr);
27 
28 public:
29  virtual ~SEEquipmentDataRequest();
30 
31  virtual void Clear() override; //clear memory
32  size_t HashCode() const override;
33  virtual bool Load(const CDM::EquipmentDataRequestData& in);
34  virtual CDM::EquipmentDataRequestData* Unload() const override;
35 
36 protected:
37  virtual void Unload(CDM::EquipmentDataRequestData& data) const;
38 
39 public:
40  virtual const char* GetType() const;
41  virtual void SetType(const char* t);
42  virtual void SetType(const std::string& t);
43  virtual bool HasType() const;
44  virtual void InvalidateType();
45 
46 protected:
47  std::string m_Type;
48 };
49 }
Class corresponding to the EquipmentDataRequestData schema type.
Definition: Scenario.hxx:1959
Definition: SEDataRequestManager.h:30
Definition: SEDecimalFormat.h:25
std::string m_Type
Definition: SEEquipmentDataRequest.h:47
Definition: SEDataRequest.h:25
Definition: SEElectricalCircuit.h:18
Definition: SEEquipmentDataRequest.h:22