#include <DataManager.h>
Public Methods | |
| DataManager () | |
| Construct a new (empty) data manager. | |
| virtual | ~DataManager () |
| Destroy the data manager and all the archives it contains. | |
| const LinkBase | getObject (std::string const &path_str) |
| Create a new object from a path identifier string. | |
| const LinkBase | getObject (Path const &path, std::string const &path_str="") |
| Create a new object from a Path instance. | |
| void | addArchive (DataArchive *) |
| Add a new data archive to the manager. | |
| std::vector< ObjectID > | getChildren (ObjectID const &id) const |
| Get all children of a given object id. | |
| std::vector< ObjectID > | getChildren (std::string const &path) const |
| Get all children of a given path. | |
| bool | hasObject (ObjectID const &id) const |
| Check for the existance of an object in the archives. | |
| bool | hasObject (std::string const &path) const |
| Check for the existance of an object in the archives. | |
| std::string | getPathString (ObjectID const &id) const |
| Get the path string corresponding to a give object id. | |
| void | cleanStatic () |
| Remove unused static objects from the cache. | |
| InterfaceProxy * | getObjectInterface (ObjectID const &id) const |
| Return the interface proxy corresponding to the specified object in the archive. | |
| InterfaceProxy * | getObjectInterface (std::string const &path) const |
| Return the interface proxy corresponding to the specified object in the archive. | |
| void | closeAll () |
| Close all managed archives. | |
Friends | |
| class | DataArchive |
|
|
Construct a new (empty) data manager.
|
|
|
Destroy the data manager and all the archives it contains.
|
|
|
Add a new data archive to the manager. All objects in the archive will subsequently be available from the manager. The manager "owns" the pointer and will delete it when the manager is destroyed. |
|
|
Remove unused static objects from the cache. Call this method after many objects have been deleted to free any unused cache entries. |
|
|
Close all managed archives.
|
|
|
Get all children of a given path. For path "A:X.Y", returns all object id's "A:X.Y.*". The id's can be converted to human-readable form by getPathString().
|
|
|
Get all children of a given object id. For id "A:X.Y", returns all object id's "A:X.Y.*". The id's can be converted to human-readable form by getPathString().
|
|
||||||||||||
|
Create a new object from a Path instance.
|
|
|
Create a new object from a path identifier string.
|
|
|
Return the interface proxy corresponding to the specified object in the archive.
|
|
|
Return the interface proxy corresponding to the specified object in the archive.
|
|
|
Get the path string corresponding to a give object id. This provides a human-readable path string that is useful for error and debugging messages.
|
|
|
Check for the existance of an object in the archives.
|
|
|
Check for the existance of an object in the archives.
|
|
|
|
|
SimData version pre-0.4.0. For more information on SimData, visit the SimData Homepage. Generated on Tue Oct 14 12:06:40 2003, using Doxygen 1.2.18. |