VR-Forces 4.1 Class Documentation
DtNameValueLists.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
7 
8 #pragma once
9 
14 
15 namespace makArchives
16 {
17 
23  {
24  public:
27 
30 
32  DtNameValueLists& operator=(const DtNameValueLists& rhs);
33 
35  bool operator==(const DtNameValueLists& rhs) const;
36 
38  bool operator!=(const DtNameValueLists& rhs);
39 
41 
42  typedef std::map<std::string, int> ParametersInt;
43  typedef std::map<std::string, bool> ParametersBool;
44  typedef std::map<std::string, double> ParametersDouble;
45  typedef std::map<std::string, std::string> ParametersString;
47 
49 
50  int parameterInt( const std::string& parameterName ) const;
51  double parameterDouble( const std::string& parameterName ) const;
52  bool parameterBool( const std::string& parameterName ) const;
53  const std::string& parameterString( const std::string& parameterName ) const;
55 
57 
58  void setParameterInt( const std::string& parameterName, int value );
59  void setParameterDouble( const std::string& parameterName, double value );
60  void setParameterBool( const std::string& parameterName, bool value );
61  void setParameterString( const std::string& parameterName, const std::string& value );
63 
65 
66  bool hasParameterInt( const std::string& parameterName ) const;
67  bool hasParameterDouble( const std::string& parameterName ) const;
68  bool hasParameterBool( const std::string& parameterName ) const;
69  bool hasParameterString( const std::string& parameterName ) const;
71  bool hasParameter( const std::string& parameterName ) const;
73 
75 
76  const ParametersInt& parametersInt() const;
77  const ParametersDouble& parametersDouble() const;
78  const ParametersBool& parametersBool() const;
79  const ParametersString& parametersString() const;
81 
83 
84  void setParametersInt(const ParametersInt& parameters);
85  void setParametersBool(const ParametersBool& parameters);
86  void setParametersDouble(const ParametersDouble& parameters);
87  void setParametersString(const ParametersString& parameters);
89 
90  protected:
91  friend class boost::serialization::access;
92 
93  template<class Archive>
94  void serialize(Archive & ar, const unsigned int version)
95  {
96  ar & BOOST_SERIALIZATION_NVP(myParametersInt);
97  ar & BOOST_SERIALIZATION_NVP(myParametersBool);
98  ar & BOOST_SERIALIZATION_NVP(myParametersDouble);
99  ar & BOOST_SERIALIZATION_NVP(myParametersString);
100  }
101 
106  };
107 }
109 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)