CompleteDB Embedded: Direct C++ API  2.4.2
TableDdl.hpp
Go to the documentation of this file.
1 #ifndef COMPLETEDB_TABLEDDL_HPP
2 #define COMPLETEDB_TABLEDDL_HPP
3 
4 #include "CompleteDb.h"
6 #include "completedb/Object.hpp"
8 
9 namespace completedb {
10 
16 class TableDdl
17 : public virtual Object
18 {
19 
20 public: // override Object iface
21 
25  virtual bool cast(const Object& from) { return completedb_TableDdl_cast(&m, from.get(), from.getClassType()); }
29  virtual bool isConnected() const { return completedb_TableDdl_isConnected(m); }
33  virtual bool isDisconnected() const { return completedb_TableDdl_isDisconnected(m); }
42 
43 public: // iface
44 
48  virtual CreateTable createTable(const char* name) { return completedb_TableDdl_createTable(m, name); }
49 
50 public: // factory lvalue
51 
52  TableDdl& operator=(const TableDdl& src) { completedb_TableDdl_assign(&m, src.m, src.getClassType()); return *this; }
54 
55 public: // factory
56 
59 
60 private: // factory
61 
62  TableDdl(void* src) : Object(src) {}
63 
64 };
65 
66 } // namespace
67 
68 #endif /* COMPLETEDB_TABLEDDL_HPP */