VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgEarthServerManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtOsgEarthServerManager.h,v $ $Revision: 1.9 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtOsgEarthServerManager_H_
14 #define DtOsgEarthServerManager_H_
15 
18 
19 #include <map>
20 #include <string>
21 
22 namespace makVrv
23 {
24  class DtDe;
25  class DtOsgEarthServerDescriptor;
26 
30  {
31 
32  public:
33 
35  typedef std::map<std::string, DtOsgEarthServerDescriptor*> ServerMap;
36 
38  static DtOsgEarthServerManager& instance(DtDe& de);
39 
41  virtual ~DtOsgEarthServerManager();
42 
44  virtual void loadServerDescriptors();
45 
48  virtual void addServer(DtOsgEarthServerDescriptor* server);
49 
51  virtual bool deleteServer(const std::string& filename);
52 
54  virtual void removeServer(const std::string& filename);
55 
57  virtual bool copyServer(const std::string& name, const std::string& newName);
58 
60  virtual bool renameServer(const std::string& oldname, const std::string& newName);
61 
63  virtual bool updateServer(const std::string& name, const std::string& content);
64 
66  virtual ServerMap& serverMap();
67 
68  boost::signal<void (const std::string&, const std::string&)> signal_renameServer;
69  boost::signal<void (const std::string&)> signal_newServer;
70  boost::signal<void (const std::string&)> signal_updateServer;
71  boost::signal<void (const std::string&)> signal_deleteServer;
72 
75  virtual void slot_onDePostInitialize();
76 
77  public:
78 
79  std::string serversDirectory();
80 
81  protected:
82 
85 
87  void clearServerMap();
88 
89  protected:
90 
93 
94  };
95 }
96 
97 #endif
98 
boost::signal< void(const std::string &)> signal_newServer
Definition: DtOsgEarthServerManager.h:69
Virtual base class.
Definition: DtVirtualBaseClass.h:22
std::map< std::string, DtOsgEarthServerDescriptor * > ServerMap
A map of servers.
Definition: DtOsgEarthServerManager.h:35
DtDe & myDe
Definition: DtOsgEarthServerManager.h:91
boost::signal< void(const std::string &, const std::string &)> signal_renameServer
Definition: DtOsgEarthServerManager.h:68
A singleton manager for all servers.
Definition: DtOsgEarthServerManager.h:29
Contains DLL export macros.
Contains makVrv::DtVirtualBaseClass class.
ServerMap myServerMap
Definition: DtOsgEarthServerManager.h:92
#define DT_DLL_VRVOSGEARTHQT
Definition: vrvOsgEarthQt.h:25
An server is an entry for osgEarth.
Definition: DtOsgEarthServerDescriptor.h:21
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
boost::signal< void(const std::string &)> signal_deleteServer
Definition: DtOsgEarthServerManager.h:71
boost::signal< void(const std::string &)> signal_updateServer
Definition: DtOsgEarthServerManager.h:70

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)