VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sessionStartupServersRecord.h
Go to the documentation of this file.
1 
2 //** Copyright (c) 2010 MAK Technologies, Inc.
3 //** All rights reserved.
4 //******************************************************************************/
6 //** $RCSfile: DtSessionStartupServersRecord.h,v $ $Revision: 145953 $ $State: Exp $
7 //******************************************************************************/
12 
13 #pragma once
14 
15 #include <vrfGuiCore/vrfGuiCore.h>
16 
17 #include <boost/serialization/access.hpp>
18 #include <boost/serialization/nvp.hpp>
19 #include <boost/serialization/list.hpp>
20 #include <boost/serialization/map.hpp>
21 #include <boost/serialization/vector.hpp>
22 #include <boost/serialization/string.hpp>
23 
24 #include <string>
25 #include <vector>
26 
27 namespace makVrv
28 {
29  class DtDe;
30 }
31 
32 namespace makVrf
33 {
39  {
40  public:
43 
46 
49 
52 
54  virtual bool save() const;
55 
57  virtual bool save(const std::string& name) const;
58 
60  virtual bool load();
61 
63  virtual bool load(const std::string& name);
64 
66  virtual void revertToDefault();
67 
69  virtual void addServer(const std::string& desc, const std::string& file);
70 
72  virtual void removeServer(const std::string& desc);
73 
75  int numServers();
76 
78  virtual void server(int, std::string& desc, std::string& file) const;
79  virtual std::string server(int) const;
80  virtual std::string description(int) const;
81 
83  virtual int defaultServer() const;
84 
86  virtual void setDefaultServer(int);
87 
89  int indexOfDescription(const std::string&) const;
90 
92  int indexOfServer(const std::string&) const;
93 
94  protected:
95  friend class boost::serialization::access;
96 
100  template<class Archive>
101  void serialize(Archive & ar, const unsigned int version)
102  {
103  ar & BOOST_SERIALIZATION_NVP(myDefaultServer);
104  ar & BOOST_SERIALIZATION_NVP(myServers);
105  }
106 
107  protected:
108  typedef std::pair<std::string, std::string> Server;
109  typedef std::vector<Server> Servers;
110 
113 
115  };
116 
117 }
118 

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)