ANNA Suite  2020b
Multipurpose development suite for Telco applications
Creator.hpp
Go to the documentation of this file.
1 // ANNA - Anna is Not Nothingness Anymore //
2 // //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
4 // //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7 
8 
9 #ifndef anna_dbos_Creator_hpp
10 #define anna_dbos_Creator_hpp
11 
12 #include <anna/dbos/Accesor.hpp>
13 
14 namespace anna {
15 
16 namespace dbos {
17 
22 class Creator : public Accesor {
23 public:
30  virtual const char* getClassName() const { return "anna::dbos::Creator"; }
31 
32 protected:
39  Creator(dbms::Database& database, const Id id = 0) : Accesor(database, id) {;}
40 
45  Creator(const Id id = 0) : Accesor(id) {;}
46 
51  virtual Index getIndex() const noexcept(false) = 0;
52 
53 private:
54  dbms::Statement* initialize(dbms::Database&) noexcept(false) { return NULL;}
55 
56  friend class StorageArea;
57 };
58 
59 }
60 }
61 
62 #endif
63 
64 
65 
U64 Index
Definition: defines.hpp:18
virtual Index getIndex() const noexcept(false)=0
Definition: Accesor.hpp:35
Definition: Statement.hpp:43
Definition: Creator.hpp:22
Definition: Database.hpp:37
virtual const char * getClassName() const
Definition: Creator.hpp:30
short Id
Definition: Accesor.hpp:37
Creator(dbms::Database &database, const Id id=0)
Definition: Creator.hpp:39
Definition: app.hpp:12
Creator(const Id id=0)
Definition: Creator.hpp:45
Definition: StorageArea.hpp:58