VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtWidgetRangesRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 
14 namespace makArchives
15 {
16 
20  {
21  public:
22  typedef std::map<std::string, float > FloatRangesMap;
23  typedef std::map<std::string, int > IntRangesMap;
24 
27 
30 
33 
35  DtWidgetRangesRecord& operator=(const DtWidgetRangesRecord& orig);
36 
38  virtual const FloatRangesMap& floatRanges() const;
39  virtual const IntRangesMap& intRanges() const;
40 
42  virtual void addRangeFloat(const std::string& rangeName, float range);
43  virtual void addRangeInt(const std::string& rangeName, int range);
44 
46  virtual float rangeFloat( const std::string& rangeName ) const;
47  virtual int rangeInt( const std::string& rangeName ) const;
48 
50  virtual void clearRanges();
51 
52  protected:
54 
55  friend class boost::serialization::access;
56 
60  template<class Archive>
61  void serialize(Archive & ar, const unsigned int version)
62  {
63  ar & BOOST_SERIALIZATION_NVP(myFloatRangesMap);
64  ar & BOOST_SERIALIZATION_NVP(myIntRangesMap);
65  }
66 
67  protected:
70  };
71 }
72 
73 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)