CompleteDB Embedded: Direct C++ API  2.4.2
ColumnInt8.hpp
Go to the documentation of this file.
1 #ifndef COMPLETEDB_COLUMNINT8_HPP
2 #define COMPLETEDB_COLUMNINT8_HPP
3 
4 #include "CompleteDb.h"
6 #include "completedb/Object.hpp"
8 
9 namespace completedb {
10 
17 : public virtual Object
18 , public ColumnInfo
19 {
20 
21  friend class Columns;
22  friend class Record;
23 
24 public: // override Object iface
25 
29  inline bool cast(const Object& from) { return completedb_ColumnInt8_cast(&m, from.get(), from.getClassType()); }
33  inline bool isConnected() const { return completedb_ColumnInt8_isConnected(m); }
37  inline bool isDisconnected() const { return completedb_ColumnInt8_isDisconnected(m); }
46 
47 public: // override ColumnInfo iface
48 
49  inline bool exists() { return completedb_ColumnInt8_exists(m); }
52  inline uint32_t getLength() const { return completedb_ColumnInt8_getLength(m); }
53 
54 public: // override EntityInfo iface
55 
59  inline const char* getDescription() const { return completedb_ColumnInt8_getDescription(m); }
60 
61 public: // override IdentityInfo iface
62 
66  inline const char* getName() const { return completedb_ColumnInt8_getName(m); }
67 
68 public: // iface
69 
73  inline int8_t getValue() const { return completedb_ColumnInt8_getValue(m); }
77  inline void setValue(const int8_t newValue) { completedb_ColumnInt8_setValue(m, newValue); }
78 
79 public: // factory lvalue
80 
81  ColumnInt8& operator=(const ColumnInt8& src) { completedb_ColumnInt8_assign(&m, src.m, src.getClassType()); return *this; }
83 
84 public: // factory
85 
88 
89 private: // factory
90 
91  ColumnInt8(void* src) : Object(src) {}
92 
93 };
94 
95 } // namespace
96 
97 #endif /* COMPLETEDB_COLUMNINT8_HPP */