#include <Manager.h>
Public Member Functions | |
int | build () |
int | build () |
void | cleanRdb () |
void | cleanRdb () |
std::string | getInputSourceString () |
std::string | getInputSourceString () |
Rdb * | getRdb () |
Rdb * | getRdb () |
void | setBuilder (Builder *b) |
void | setBuilder (Builder *b) |
void | setInputSource (std::string pname) |
void | setInputSource (std::string pname) |
void | startVisitor (Visitor *) |
This method starts the visit of a hierarchy with a specified visitor. | |
void | startVisitor (Visitor *) |
This method starts the visit of a hierarchy with a specified visitor. | |
~Manager () | |
~Manager () | |
Static Public Member Functions | |
Manager * | getManager () |
Manager * | getManager () |
Protected Member Functions | |
Manager () | |
Manager () | |
Private Attributes | |
Builder * | m_builder |
Builder * | m_builder |
std::string | m_filename |
Rdb * | m_rdb |
Rdb * | m_rdb |
Static Private Attributes | |
Manager * | s_pMyself |
Manager * | s_pMyself = 0 |
|
The destructor must be invoched by the client before leaving the application. It will destroy explicitely the Rdb object and this will start the deallocation of all the objects hierarchy 00018 { 00019 delete m_rdb; 00020 delete m_builder; 00021 s_pMyself = 0; 00022 }
|
|
The constructor is protected; in such a way it is forbidden to * build directely a manager. Here the new Rdb object is explicitely built
|
|
The destructor must be invoched by the client before leaving the application. It will destroy explicitely the Rdb object and this will start the deallocation of all the objects hierarchy |
|
The constructor is protected; in such a way it is forbidden to * build directely a manager. Here the new Rdb object is explicitely built
|
|
This method start the parse of the xml file by the builder. It returns an error code (0 if all ok) |
|
This method start the parse of the xml file by the builder. It returns an error code (0 if all ok) 00043 { 00044 int errCode = m_builder->parseInput(m_filename); 00045 00046 // Unlike geometry description/detModel, there is only one way to 00047 // build here: build everything. 00048 if (!errCode) { 00049 return m_builder->buildRdb(); 00050 } 00051 else return errCode; 00052 }
|
|
|
|
00031 { 00032 delete m_rdb; 00033 m_rdb = new Rdb; 00034 // delete manBuilder; 00035 }
|
|
00052 {return m_filename;};
|
|
00052 {return m_filename;};
|
|
This method is used to access the pointer to the singleton |
|
This method is used to access the pointer to the singleton
|
|
This method gives back the pointer to the Rdb object. It coule be used by expert clients to access information without the need of a visitor 00048 {return m_rdb;};
|
|
This method gives back the pointer to the Rdb object. It coule be used by expert clients to access information without the need of a visitor 00048 {return m_rdb;};
|
|
This method is used to specify a builder to be used by the manager. |
|
This method is used to specify a builder to be used by the manager. 00038 { 00039 m_builder = b; 00040 00041 }
|
|
00051 {m_filename = pname;};
|
|
00051 {m_filename = pname;};
|
|
This method starts the visit of a hierarchy with a specified visitor.
|
|
This method starts the visit of a hierarchy with a specified visitor.
00054 { 00055 // if (TablesVisitor* tv = dynamic_cast<TablesVisitor*>(v)) 00056 // { // the only kind we support, at least for now 00057 00058 // if (v->getRecursive()) 00059 m_rdb->accept(v); 00060 // else 00061 // m_rdb->acceptNotRec(sv); 00062 // } 00063 }
|
|
This is a private pointer to the builder used by the manager to build the hierarchy from the XML file |
|
This is a private pointer to the builder used by the manager to build the hierarchy from the XML file |
|
|
|
This is a private pointer to the Rdb object that provide the entry point to all information about all tables. |
|
This is a private pointer to the Rdb object that provide the entry point to all information about all tables. |
|
This is the pointer to the only manager that can be instanciated |
|
This is the pointer to the only manager that can be instanciated |