VR-Vantage API Documentation
DtConfiguration.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtConfiguration.h,v $ $Revision: 1.15 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtConfiguration_H_
14 #define DtConfiguration_H_
15 
16 #include <vrvUtil/vrvUtil.h>
17 #include <vrvUtil/DtProxy.h>
19 #include <boost/serialization/version.hpp>
20 
21 #include <string>
22 
23 namespace makVrv
24 {
25 
29  {
30  public:
31 
32  typedef std::map<std::string,std::string> ParameterMap;
33 
35  DtConfiguration(const std::string& name = "");
36 
39 
41  DtConfiguration& operator=(const DtConfiguration&);
42 
44  virtual ~DtConfiguration();
45 
47  virtual const std::string& name() const;
48 
50  virtual void setName(const std::string& name);
51 
53  virtual const std::string* findOptionalParameter(const std::string& name) const;
54 
56  virtual void setOptionalParameter(const std::string& name, const std::string& value);
57 
60  virtual void setOptionalParameters(const ParameterMap&);
61 
63  virtual void removeOptionalParameter(const std::string& name);
64 
66  const ParameterMap& optionalParameters() const;
67 
79 
80  protected:
81 
83  template<class Archive>
84  void _serialize(Archive & ar, const unsigned int version)
85  {
86  ar & DT_SERIALIZE_MEMBER(myName);
87  ar & DT_SERIALIZE_MEMBER(myOptionalParameters);
88  }
89 
90  std::string myName;
91 
93 
95 
96  };
97 }
98 
100 
101 #endif


Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)