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