VR-Forces 4.7 Class 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 /******************************************************************************
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/DtProxy.h>
18 #include <boost/serialization/version.hpp>
19 
20 #include <string>
21 
22 namespace makVrv
23 {
24 
28  {
29  public:
30 
31  typedef std::map<std::string,std::string> ParameterMap;
32 
34  DtConfiguration(const std::string& name = "");
35 
38 
40  DtConfiguration& operator=(const DtConfiguration&);
41 
43  virtual ~DtConfiguration();
44 
46  virtual const std::string& name() const;
47 
49  virtual void setName(const std::string& name);
50 
52  virtual const std::string* findOptionalParameter(const std::string& name) const;
53 
55  virtual void setOptionalParameter(const std::string& name, const std::string& value);
56 
59  virtual void setOptionalParameters(const ParameterMap&);
60 
62  virtual void removeOptionalParameter(const std::string& name);
63 
65  const ParameterMap& optionalParameters() const;
66 
78 
79  protected:
80 
82  template<class Archive>
83  void _serialize(Archive & ar, const unsigned int version)
84  {
85  ar & DT_SERIALIZE_MEMBER(myName);
86  ar & DT_SERIALIZE_MEMBER(myOptionalParameters);
87  }
88 
89  std::string myName;
90 
92 
94 
95  };
96 }
97 
99 
100 #endif

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)