![]() |
VR-Forces Development_Version Class Documentation
|
A singleton manager for all servers. More...

Public Types | |
| typedef std::map< std::string, DtOsgEarthServerDescriptor * > | ServerMap |
| A map of servers. | |
Public Member Functions | |
| virtual | ~DtOsgEarthServerManager () |
| DTOR. | |
| virtual void | loadServerDescriptors () |
| Loads the servers in the data subdirectory. | |
| virtual void | addServer (DtOsgEarthServerDescriptor *server) |
| Add server to DtOsgEarthServerManager. | |
| virtual bool | deleteServer (const std::string &filename) |
| Remove server from DtOsgEarthServerManager. Server will be deleted during this call. | |
| virtual void | removeServer (const std::string &filename) |
| Remove server from DtOsgEarthServerManager. | |
| virtual bool | copyServer (const std::string &name, const std::string &newName) |
| Copy server with new name. | |
| virtual bool | renameServer (const std::string &oldname, const std::string &newName) |
| Rename server in DtOsgEarthServerManager. Server moves to a new name. | |
| virtual bool | updateServer (const std::string &name, const std::string &content) |
| Update server in DtOsgEarthServerManager. Server changes content. | |
| virtual ServerMap & | serverMap () |
| Accessor for the Server map. | |
| virtual void | slot_onDePostInitialize () |
| Called after the DtDe has been initialized. | |
| std::string | serversDirectory () |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtOsgEarthServerManager & | instance (DtDe &de) |
| Lazily create singleton. | |
Public Attributes | |
| boost::signal< void(const std::string &, const std::string &)> | signal_renameServer |
| boost::signal< void(const std::string &)> | signal_newServer |
| boost::signal< void(const std::string &)> | signal_updateServer |
| boost::signal< void(const std::string &)> | signal_deleteServer |
Protected Member Functions | |
| DtOsgEarthServerManager (DtDe &de) | |
| CTOR. | |
| void | clearServerMap () |
| Clears myServerMap. Called from DTOR and from loadServerDescriptors();. | |
Protected Attributes | |
| DtDe & | myDe |
| ServerMap | myServerMap |
A singleton manager for all servers.
| typedef std::map<std::string, DtOsgEarthServerDescriptor*> makVrv::DtOsgEarthServerManager::ServerMap |
A map of servers.
|
virtual |
DTOR.
|
protected |
CTOR.
|
static |
Lazily create singleton.
|
virtual |
Loads the servers in the data subdirectory.
|
virtual |
Add server to DtOsgEarthServerManager.
Ownership of server transfers to DtOsgEarthServerManager including responsibility of deletion.
|
virtual |
Remove server from DtOsgEarthServerManager. Server will be deleted during this call.
|
virtual |
Remove server from DtOsgEarthServerManager.
|
virtual |
Copy server with new name.
|
virtual |
Rename server in DtOsgEarthServerManager. Server moves to a new name.
|
virtual |
Update server in DtOsgEarthServerManager. Server changes content.
|
virtual |
Accessor for the Server map.
|
virtual |
Called after the DtDe has been initialized.
Registers ".earth" with the DtFileCache so that .earth files aren't cached.
| std::string makVrv::DtOsgEarthServerManager::serversDirectory | ( | ) |
|
protected |
Clears myServerMap. Called from DTOR and from loadServerDescriptors();.
| boost::signal<void (const std::string&, const std::string&)> makVrv::DtOsgEarthServerManager::signal_renameServer |
| boost::signal<void (const std::string&)> makVrv::DtOsgEarthServerManager::signal_newServer |
| boost::signal<void (const std::string&)> makVrv::DtOsgEarthServerManager::signal_updateServer |
| boost::signal<void (const std::string&)> makVrv::DtOsgEarthServerManager::signal_deleteServer |
|
protected |
|
protected |