SeaBreeze
DoubleVector.h
Go to the documentation of this file.
1 /***************************************************/
30 #ifndef SEABREEZE_DOUBLEVECTOR_H
31 #define SEABREEZE_DOUBLEVECTOR_H
32 
33 #include <vector>
34 #include "common/SeaBreeze.h"
35 #include "common/Data.h"
36 
37 namespace seabreeze {
38 
39  class DoubleVector : public Data {
40  public:
41  DoubleVector();
42  DoubleVector(const std::vector<double> &that);
43  virtual ~DoubleVector();
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<double> &getDoubleVector();
55 
56  private:
57  std::vector<double> *data;
58  };
59 
60 }
61 
62 #endif
Definition: DoubleVector.h:39
Definition: Data.h:46
Encapsulates all SeaBreeze classes.
Definition: DeviceFactory.h:42