GTXclient C++ API GTXserver-16.0.2

- Main Page
- Related Pages
- Classes
- Files
- Examples

- File List

GTXByteArray.hpp
1 #ifndef __GTXByteArray_hpp__
2 #define __GTXByteArray_hpp__
3
4 #define __USING_GTXSERVER_CPP_API__
5
6 #ifdef DOXYGEN
7 #define SWIG_OR_DOXYGEN
8 #endif //DOXYGEN
9
10 #ifdef SWIG
11 #define GLOBAL_CLASS
12 #define SWIG_OR_DOXYGEN
13 #else //SWIG
14 #include <GTXClient.h>
15 #endif //SWIG
16
20 class GLOBAL_CLASS GTXByteArray
21 {
22 public:
24 GTXByteArray();
26 GTXByteArray(gtx_long count, unsigned char values[]);
28 ~GTXByteArray();
30 GTXByteArray(const GTXByteArray &in_bytearray);
31 #ifndef SWIG
32
33 GTXByteArray &operator=(const GTXByteArray &in_bytearray);
34 #endif
35
37 gtx_long GetCount(void) const;
38 void Resize(gtx_long count);
40 unsigned char GetValue(gtx_long rank) const;
41
43 void SetValue(gtx_long rank, unsigned char value);
44
46 const unsigned char *GetValues() const;
47
48 private:
49 gtx_long _count;
50 unsigned char *_values;
51 };
52
53 #endif //__GTXByteArray_hpp__