VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)