ANNA Suite  2020b
Multipurpose development suite for Telco applications
StatementTranslator.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_dbms_StatementTranslator_hpp
10 #define anna_dbms_StatementTranslator_hpp
11 
13 
14 namespace anna {
15 
16 namespace dbms {
17 
18 class Database;
19 
49  const char* getName() const { return a_name; }
50 
51 protected:
56  explicit StatementTranslator(const char* name) : a_name(name) {;}
57 
71  virtual const char* apply(const char* statement) noexcept(false) = 0;
72 
73 private:
74  const char* a_name;
75 
77 
78  friend class Database;
79 };
80 
81 }
82 }
83 
84 #endif
85 
86 
Definition: Database.hpp:37
StatementTranslator(const char *name)
Definition: StatementTranslator.hpp:56
Definition: app.hpp:12
Definition: StatementTranslator.hpp:44
virtual const char * apply(const char *statement) noexcept(false)=0