VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
makVrv::DtOsgEarthServerManager Class Reference

A singleton manager for all servers.

Inheritance diagram for makVrv::DtOsgEarthServerManager:
Inheritance graph
[legend]

Public Types

typedef std::map< std::string,
DtOsgEarthServerDescriptor * > 
ServerMap
 

Public Member Functions

virtual ~DtOsgEarthServerManager ()
 
virtual void loadServerDescriptors ()
 
virtual void addServer (DtOsgEarthServerDescriptor *server)
 
virtual bool deleteServer (const std::string &filename)
 
virtual void removeServer (const std::string &filename)
 
virtual bool copyServer (const std::string &name, const std::string &newName)
 
virtual bool renameServer (const std::string &oldname, const std::string &newName)
 
virtual bool updateServer (const std::string &name, const std::string &content)
 
virtual ServerMapserverMap ()
 
virtual void slot_onDePostInitialize ()
 
std::string serversDirectory ()
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

static DtOsgEarthServerManagerinstance (DtDe &de)
 

Public Attributes

boost::signalslib::signal
< void(const std::string
&, const std::string &)> 
signal_renameServer
 
boost::signalslib::signal
< void(const std::string &)> 
signal_newServer
 
boost::signalslib::signal
< void(const std::string &)> 
signal_updateServer
 
boost::signalslib::signal
< void(const std::string &)> 
signal_deleteServer
 

Protected Member Functions

 DtOsgEarthServerManager (DtDe &de)
 
void clearServerMap ()
 

Protected Attributes

DtDemyDe
 
ServerMap myServerMap
 

Member Typedef Documentation

A map of servers.

Constructor & Destructor Documentation

virtual makVrv::DtOsgEarthServerManager::~DtOsgEarthServerManager ( )
virtual

DTOR.

makVrv::DtOsgEarthServerManager::DtOsgEarthServerManager ( DtDe de)
protected

CTOR.

Member Function Documentation

static DtOsgEarthServerManager& makVrv::DtOsgEarthServerManager::instance ( DtDe de)
static

Lazily create singleton.

virtual void makVrv::DtOsgEarthServerManager::loadServerDescriptors ( )
virtual

Loads the servers in the data subdirectory.

virtual void makVrv::DtOsgEarthServerManager::addServer ( DtOsgEarthServerDescriptor server)
virtual

Add server to DtOsgEarthServerManager. Ownership of server transfers to DtOsgEarthServerManager including responsibility of deletion.

virtual bool makVrv::DtOsgEarthServerManager::deleteServer ( const std::string &  filename)
virtual

Remove server from DtOsgEarthServerManager. Server will be deleted during this call.

virtual void makVrv::DtOsgEarthServerManager::removeServer ( const std::string &  filename)
virtual

Remove server from DtOsgEarthServerManager.

virtual bool makVrv::DtOsgEarthServerManager::copyServer ( const std::string &  name,
const std::string &  newName 
)
virtual

Copy server with new name.

virtual bool makVrv::DtOsgEarthServerManager::renameServer ( const std::string &  oldname,
const std::string &  newName 
)
virtual

Rename server in DtOsgEarthServerManager. Server moves to a new name.

virtual bool makVrv::DtOsgEarthServerManager::updateServer ( const std::string &  name,
const std::string &  content 
)
virtual

Update server in DtOsgEarthServerManager. Server changes content.

virtual ServerMap& makVrv::DtOsgEarthServerManager::serverMap ( )
virtual

Accessor for the Server map.

virtual void makVrv::DtOsgEarthServerManager::slot_onDePostInitialize ( )
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 ( )
void makVrv::DtOsgEarthServerManager::clearServerMap ( )
protected

Clears myServerMap. Called from DTOR and from loadServerDescriptors();.

Member Data Documentation

boost::signalslib::signal<void (const std::string&, const std::string&)> makVrv::DtOsgEarthServerManager::signal_renameServer
boost::signalslib::signal<void (const std::string&)> makVrv::DtOsgEarthServerManager::signal_newServer
boost::signalslib::signal<void (const std::string&)> makVrv::DtOsgEarthServerManager::signal_updateServer
boost::signalslib::signal<void (const std::string&)> makVrv::DtOsgEarthServerManager::signal_deleteServer
DtDe& makVrv::DtOsgEarthServerManager::myDe
protected
ServerMap makVrv::DtOsgEarthServerManager::myServerMap
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)