SeaBreeze
FloatVector.h
Go to the documentation of this file.
1 /***************************************************/
30 #ifndef SEABREEZE_FLOATVECTOR_H
31 #define SEABREEZE_FLOATVECTOR_H
32 
33 #include <vector>
34 #include "common/SeaBreeze.h"
35 #include "common/Data.h"
36 
37 namespace seabreeze {
38 
39  class FloatVector : public Data {
40  public:
41  FloatVector();
42  FloatVector(const std::vector<float> &that);
43  virtual ~FloatVector();
44  /* Dimensionality of data. 0 for scalar, 1 for vector,
45  * 2 for a pair of related vectors (e.g. [X, Y] or matrix),
46  * 3 for 3D, etc.
47  */
48  virtual int getNumberOfDimensions();
49 
50  /* Get all of the unit descriptors associated with this Data. */
51  virtual std::vector<UnitDescriptor *> *getUnits();
52 
53  /* Get the data associated with this instance */
54  std::vector<float> &getFloatVector();
55 
56  private:
57  std::vector<float> *data;
58  };
59 
60 }
61 
62 #endif
Definition: FloatVector.h:39
Definition: Data.h:46
Encapsulates all SeaBreeze classes.
Definition: DeviceFactory.h:42