AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Variable.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2021. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #ifndef AGXFMI2_VARIABLE_H
18 #define AGXFMI2_VARIABLE_H
19 
20 #include <agx/config/AGX_USE_FMI.h>
21 
22 #if AGX_USE_FMI()
23 
24 #include <agxFMI2/export.h>
25 #include <agx/Object.h>
26 
27 namespace agxFMI2
28 {
31 
36  {
37  public:
38 
39  enum Type
40  {
46  TYPE_UNKNOWN
47  };
48 
50  {
56  VARIABILITY_UNKNOWN
57  };
58 
59  enum Causality
60  {
67  CAUSALITY_UNKNOWN
68  };
69 
71  {
75  INITIALITY_UNKNOWN
76  };
77 
78 
79  public:
80  Variable(const agx::Name& name = agx::Name());
81 
83  void setDescription(const agx::String& description);
84 
86  const agx::String& getDescription() const;
87 
89  void setValueReference(agx::UInt32 vr);
90 
92  agx::UInt32 getValueReference() const;
93 
95  void setType(Type type);
96 
98  Type getType() const;
99 
101  const char *getTypeString();
102 
104  void setVariability(Variability variability);
105 
107  Variability getVariability() const;
108 
110  const char *getVariabilityString();
111 
113  void setCausality(Causality causality);
114 
116  Causality getCausality() const;
117 
119  const char *getCausalityString();
120 
121 
123  void setInitiality(Initiality initiality);
124 
126  Initiality getInitiality() const;
127 
129  const char *getInitialityString() const;
130 
131  protected:
132  virtual ~Variable();
133 
134  protected:
141  };
142 
143 
144 }
145 
146 #endif /* AGX_USE_FMI */
147 
148 #endif /* AGXFMI2_VARIABLE_H */
AGXCORE_EXPORT Type * getType(const agx::String &name)
agx::UInt32 m_valueReference
Definition: Variable.h:136
#define AGXFMI_EXPORT
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
Representation of a name string.
Definition: Name.h:32
Variability m_variability
Definition: Variable.h:138
agx::String m_description
Definition: Variable.h:135
AGX_DECLARE_VECTOR_TYPES(Variable)
Initiality m_initiality
Definition: Variable.h:140
FMI variable wrapper.
Definition: Variable.h:35
uint32_t UInt32
Definition: Integer.h:40
agx::Object is a refcounted object with a name.
Definition: Object.h:59
Causality m_causality
Definition: Variable.h:139
GLenum type
Definition: gl.h:5539