Actin®  Version 5.3.0
Software for Robotics Simulation and Control
ecDataMapValueSetDirection.h
Go to the documentation of this file.
1 #ifndef ecDataMapValueSetDirection_H_
2 #define ecDataMapValueSetDirection_H_
3 //------------------------------------------------------------------------------
4 // Copyright (c) 2015 Energid Technologies. All rights reserved.
5 //
9 //
10 //------------------------------------------------------------------------------
11 #include <actin/actin_config.h>
12 
14 #include <xml/ecXmlBasicType.h>
16 #include <xml/ecXmlEnumType.h>
17 
20 {
22 public:
24  {
28  VT_STRING
29  };
30 
32  virtual void registerComponents
33  (
34  ) EC_OVERRIDE;
35 
37  const EcString& variableName
38  (
39  ) const;
40 
42  void setVariableName
43  (
44  const EcString& name
45  );
46 
48  EcU32 valueType
49  (
50  ) const;
51 
53  void setValueType
54  (
55  const EcXmlEnumU32 type
56  );
57 
59  EcReal realValue
60  (
61  ) const;
62 
64  void setRealValue
65  (
66  EcReal value
67  );
68 
70  EcU32 u32Value
71  (
72  ) const;
73 
75  void setU32Value
76  (
77  EcU32 value
78  );
79 
81  EcBoolean boolValue
82  (
83  ) const;
84 
86  void setBoolValue
87  (
88  EcBoolean value
89  );
90 
92  const EcString& stringValue
93  (
94  ) const;
95 
97  void setStringValue
98  (
99  const EcString& value
100  );
101 
103  virtual const EcString descriptor
104  (
105  ) const EC_OVERRIDE;
106 
108  virtual EcBoolean init
109  (
110  const EcManipulationDirector& director,
111  const EcString& role,
113  ) const EC_OVERRIDE;
114 
116  virtual EcBoolean apply
117  (
118  const EcManipulationDirector& director,
120  const EcString& role,
123  ) const EC_OVERRIDE;
124 
126  virtual void convert
127  (
128  const EcManipulationSceneDirectionStateContainer& dstateContainer,
130  ) const EC_OVERRIDE;
131 
133  static EcXmlObject* creator
134  (
135  );
136 
137 
138 protected:
140  EcXmlEmbeddedString m_VariableName;
141 
143  EcXmlEnumU32 m_ValueType;
144 
146  EcXmlReal m_RealValue;
147 
149  EcXmlU32 m_U32Value;
150 
152  EcXmlBoolean m_BoolValue;
153 
155  EcXmlEmbeddedString m_StringValue;
156 };
157 
158 #endif // ecDataMapValueSetDirection_H_
Concrete implementation of EcStageDirection for setting a custom variable value.
#define EC_OVERRIDE
Add wrapper around c++11 override keyword.
Definition: ecMacros.h:36
boost::uint32_t EcU32
32-bit unsigned integer
Definition: ecTypes.h:53
An XML wrapper to provide customized reading for embedded XML.
#define EC_XMLOBJECT_PLUGIN_DECLARE(cls)
Definition: ecMacros.h:430
A base class for xml objects.
Definition: ecXmlObject.h:23
Virtual base class of EcManipulationSceneDirection for implementing "stage" directions from the direc...
#define EC_EXTENDED_DIRECTIONS_DECL
extendedDirections directory
Definition: actin_config.h:223
Container for manipulation scene direction states.
Abstract class defining the interface for manipulation scene direction states.
bool EcBoolean
Boolean (0 or 1)
Definition: ecTypes.h:21
EcF64 EcReal
Alias for 64-bit float.
Definition: ecTypes.h:30
std::basic_string< char > EcString
a character string
Definition: ecTypes.h:116
This class is a container for paremeters used for manipulation director updates.
Holds EcManipulationDirector state information.
Directs a cast to run a manipulation script.
virtual void registerComponents() EC_OVERRIDE
register components with the parent
Configuration header for the actin hierarchy.
Created by Energid Technologies www.energid.com
Copyright © 2016 Energid. All trademarks mentioned in this document are property of their respective owners.