Flair
Framework Libre Air
Vector3Ddata.h
Go to the documentation of this file.
1 // %flair:license{
2 // This file is part of the Flair framework distributed under the
3 // CECILL-C License, Version 1.0.
4 // %flair:license}
5 
13 #ifndef VECTOR3DDATA_H
14 #define VECTOR3DDATA_H
15 
16 #include <io_data.h>
17 #include <IODataElement.h>
18 #include <Vector3D.h>
19 
20 namespace flair {
21 namespace core {
22 
28 class Vector3Ddata : public io_data, public Vector3Df {
29 public:
39  Vector3Ddata(const Object *parent, std::string name, float x = 0, float y = 0,
40  float z = 0, uint32_t n = 1);
41 
46  ~Vector3Ddata();
47 
55  IODataElement *XElement(void) const;
56 
64  IODataElement *YElement(void) const;
65 
73  IODataElement *ZElement(void) const;
74 
75 private:
84  void CopyDatas(char *dst) const;
85 };
86 
87 } // end namespace core
88 } // end namespace flair
89 
90 #endif // VECTOR3DDATA_H
Abstract class for data types.
Definition: io_data.h:94
Base class for all Framework's classes.
Definition: Object.h:83
namespace of the flair Framework
Definition: Ahrs.h:19
Class defining a 3D vector and a io_data User must manually use the io_data's Mutex to access to Vect...
Definition: Vector3Ddata.h:28
Abstract class for data types.
T y
y
Definition: Vector3D.h:56
Class defining a 3D vector.
Abstract class for accessing an element of an io_data.
T z
z
Definition: Vector3D.h:61
IODataElement * ZElement(void) const
Z Element.
IODataElement * XElement(void) const
X Element.
T x
x
Definition: Vector3D.h:51
Abstract class for accessing an element of an io_data.
Definition: IODataElement.h:27
IODataElement * YElement(void) const
Y Element.
Vector3Ddata(const Object *parent, std::string name, float x=0, float y=0, float z=0, uint32_t n=1)
Constructor.
~Vector3Ddata()
Destructor.