ANNA Suite  2020b
Multipurpose development suite for Telco applications
Eraser.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_Eraser_hpp
10 #define anna_dbos_Eraser_hpp
11 
12 #include <anna/dbos/Accesor.hpp>
13 
14 namespace anna {
15 
16 namespace dbos {
17 
18 class Object;
19 
24 class Eraser : public Accesor {
25 public:
30  Object* getObject() { return a_object; }
31 
36  void setObject(Object* object) { a_object = object; }
37 
44  virtual const char* getClassName() const { return "anna::dbos::Eraser"; }
45 
46 protected:
53  Eraser(dbms::Database& database, const Id id = 0) :
54  Accesor(database, id),
55  a_object(NULL)
56  {;}
57 
58 private:
59  Object* a_object;
60 
61  Index getIndex() const { return 0; } // No se usa
62 };
63 
64 }
65 }
66 
67 #endif
68 
69 
70 
U64 Index
Definition: defines.hpp:18
void setObject(Object *object)
Definition: Eraser.hpp:36
Definition: Accesor.hpp:35
Definition: Object.hpp:35
virtual const char * getClassName() const
Definition: Eraser.hpp:44
Definition: Database.hpp:37
Eraser(dbms::Database &database, const Id id=0)
Definition: Eraser.hpp:53
short Id
Definition: Accesor.hpp:37
Object * getObject()
Definition: Eraser.hpp:30
Definition: app.hpp:12
Definition: Eraser.hpp:24