VR-Vantage 3.1 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtConfiguration.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtConfiguration_H_
11 #define DtConfiguration_H_
12 
13 #include <vrvUtil/DtProxy.h>
15 #include <boost/serialization/version.hpp>
16 
17 #include <string>
18 
19 namespace makVrv
20 {
21 
25  {
26  public:
27 
28  typedef std::map<std::string,std::string> ParameterMap;
29 
31  DtConfiguration(const std::string& name = "");
32 
35 
37  DtConfiguration& operator=(const DtConfiguration&);
38 
40  virtual ~DtConfiguration();
41 
43  virtual const std::string& name() const;
44 
46  virtual void setName(const std::string& name);
47 
49  virtual const std::string* findOptionalParameter(const std::string& name) const;
50 
52  virtual void setOptionalParameter(const std::string& name, const std::string& value);
53 
56  virtual void setOptionalParameters(const ParameterMap&);
57 
59  virtual void removeOptionalParameter(const std::string& name);
60 
62  const ParameterMap& optionalParameters() const;
63 
75 
76  protected:
77 
79  template<class Archive>
80  void _serialize(Archive & ar, const unsigned int version)
81  {
82  ar & DT_SERIALIZE_MEMBER(myName);
83  ar & DT_SERIALIZE_MEMBER(myOptionalParameters);
84  }
85 
87 
89 
91 
92  };
93 }
94 
96 
97 #endif


Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)