Maps schema name to schema.
Get a map of schema entries.
| virtual makVrv::DtVisualizerSchemaManager::~DtVisualizerSchemaManager |
( |
| ) |
|
|
virtual |
| makVrv::DtVisualizerSchemaManager::DtVisualizerSchemaManager |
( |
DtDe & |
| ) |
|
|
protected |
Get the instance of the schema manager.
Register a schema which is used by a type of state visualizers.
Find a schema by it's name assuming it is needed for a specific type. This is faster than findSchemaEntry without a type.
- Returns
- 0 if the schema is not found.
| const DtVisualizerSchema* makVrv::DtVisualizerSchemaManager::findSchemaEntry |
( |
const std::string & |
schemaName | ) |
const |
Find a schema by it's name only.
- Returns
- 0 if the schema is not found.
Get all of the schema entries for a given type.
| void makVrv::DtVisualizerSchemaManager::loadDefaults |
( |
| ) |
|
Load the default values (NoOp).
| static std::string makVrv::DtVisualizerSchemaManager::newSchemaNameFromOld |
( |
const std::string & |
oldSchemaName | ) |
|
|
static |
Map an old schema name to a new one (generally old schemas end in "Visualizer" and new ones end in "Schema".
template<typename ManagerClass >
| ManagerClass& defaultManagerInstanceFunction |
( |
DtDe & |
de, |
|
|
bool |
allowedInSlave |
|
) |
| |
|
friend |
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retrieval and creation.
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retrieval/creation.
class Manager
{
public:
protected:
template <typename ManagerClass>
template <typename ManagerClass>
Manager(DtDe&);
};
Then simply in the implementation of instance call defaultManagerInstanceFunction with the de object and return the return value.
Manager& Manager::instance(DtDe& de)
{
return defaultManagerInstanceFunction<Manager>(de);
}
template<typename ManagerClass >
| void defaultManagerRegisterInstanceFunction |
( |
DtDe & |
de, |
|
|
ManagerClass * |
mgr |
|
) |
| |
|
friend |
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retrieval and creation.
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retrieval/creation.
static void Manager::registerInstance(DtDe& de, Manager* mgr)
{
}
...else where call.
Manager::registerInstance(de,new NewManager(de));
The documentation for this class was generated from the following file: