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