CompleteDB Embedded: Direct C++ API  2.4.2
ColumnString.hpp
Go to the documentation of this file.
1 #ifndef COMPLETEDB_COLUMNSTRING_HPP
2 #define COMPLETEDB_COLUMNSTRING_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_ColumnString_cast(&m, from.get(), from.getClassType()); }
33  inline bool isConnected() const { return completedb_ColumnString_isConnected(m); }
37  inline bool isDisconnected() const { return completedb_ColumnString_isDisconnected(m); }
46 
47 public: // override ColumnInfo iface
48 
49  inline bool exists() { return completedb_ColumnString_exists(m); }
52  inline uint32_t getLength() const { return completedb_ColumnString_getLength(m); }
53 
54 public: // override EntityInfo iface
55 
59  inline const char* getDescription() const { return completedb_ColumnString_getDescription(m); }
60 
61 public: // override IdentityInfo iface
62 
66  inline const char* getName() const { return completedb_ColumnString_getName(m); }
67 
68 public: // iface
69 
73  inline uint32_t getValueLength() const { return completedb_ColumnString_getValueLength(m); }
77  inline const char* getValue() const { return completedb_ColumnString_getValue(m); }
81  inline void setValue(const char* newValue, const int64_t optionalLength = -1) { completedb_ColumnString_setValue(m, newValue, optionalLength); }
82 
83 public: // factory lvalue
84 
85  ColumnString& operator=(const ColumnString& src) { completedb_ColumnString_assign(&m, src.m, src.getClassType()); return *this; }
87 
88 public: // factory
89 
92 
93 private: // factory
94 
95  ColumnString(void* src) : Object(src) {}
96 
97 };
98 
99 } // namespace
100 
101 #endif /* COMPLETEDB_COLUMNSTRING_HPP */