VICI
0.11.815
Visual Chart Interpreter
|
Manager for discoverable objects. More...
#include <vici/discover.h>
Public Member Functions | |
void | save (const char *prettyName, DiscoverSharedPointer p) |
Save a discoverable object. More... | |
void | fetch (csr name, std::vector< void * > &results) |
Get a list of objects with a class name. More... | |
Static Public Member Functions | |
static DiscoveryMgr & | instance () |
Return a reference to the DiscoveryMgr. | |
Manager for discoverable objects.
The manager keeps a list of discoverable objects and is responsible for supplying a list of objects given a class name.
void DiscoveryMgr::fetch | ( | csr | name, |
std::vector< void * > & | results | ||
) |
Get a list of objects with a class name.
name | The class name to search for. |
results | A vector which is filled in with pointers to the objects. |
void DiscoveryMgr::save | ( | const char * | prettyName, |
DiscoverSharedPointer | p | ||
) |
Save a discoverable object.
prettyName | The name of the constructor as provided by PRETTY_FUNCTION |
p | A shared pointer to the discoverable object. |