VR-Forces Developer's Guide
 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) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtOsgEarthServerManager_H_
11 #define DtOsgEarthServerManager_H_
12 
15 
16 #include <map>
17 #include <string>
18 
19 namespace makVrv
20 {
21  class DtDe;
22  class DtOsgEarthServerDescriptor;
23 
27  {
28 
29  public:
30 
32  typedef std::map<std::string, DtOsgEarthServerDescriptor*> ServerMap;
33 
35  static DtOsgEarthServerManager& instance(DtDe& de);
36 
38  virtual ~DtOsgEarthServerManager();
39 
41  virtual void loadServerDescriptors();
42 
45  virtual void addServer(DtOsgEarthServerDescriptor* server);
46 
48  virtual bool deleteServer(const std::string& filename);
49 
51  virtual void removeServer(const std::string& filename);
52 
54  virtual bool copyServer(const std::string& name, const std::string& newName);
55 
57  virtual bool renameServer(const std::string& oldname, const std::string& newName);
58 
60  virtual bool updateServer(const std::string& name, const std::string& content);
61 
63  virtual ServerMap& serverMap();
64 
65  boost::signalslib::signal<void (const std::string&, const std::string&)> signal_renameServer;
66  boost::signalslib::signal<void (const std::string&)> signal_newServer;
67  boost::signalslib::signal<void (const std::string&)> signal_updateServer;
68  boost::signalslib::signal<void (const std::string&)> signal_deleteServer;
69 
72  virtual void slot_onDePostInitialize();
73 
74  public:
75 
76  std::string serversDirectory();
77 
78  protected:
79 
82 
84  void clearServerMap();
85 
86  protected:
87 
90 
91  };
92 }
93 
94 #endif
95 
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
std::map< std::string, DtOsgEarthServerDescriptor * > ServerMap
A map of servers.
Definition: DtOsgEarthServerManager.h:32
boost::signalslib::signal< void(const std::string &)> signal_deleteServer
Definition: DtOsgEarthServerManager.h:68
DtDe & myDe
Definition: DtOsgEarthServerManager.h:88
A singleton manager for all servers.
Definition: DtOsgEarthServerManager.h:26
Contains DLL export macros.
Contains makVrv::DtVirtualBaseClass class.
boost::signalslib::signal< void(const std::string &, const std::string &)> signal_renameServer
Definition: DtOsgEarthServerManager.h:65
boost::signalslib::signal< void(const std::string &)> signal_updateServer
Definition: DtOsgEarthServerManager.h:67
ServerMap myServerMap
Definition: DtOsgEarthServerManager.h:89
#define DT_DLL_VRVOSGEARTHQT
Definition: vrvOsgEarthQt.h:25
An server is an entry for osgEarth.
Definition: DtOsgEarthServerDescriptor.h:21
boost::signalslib::signal< void(const std::string &)> signal_newServer
Definition: DtOsgEarthServerManager.h:66
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)