VR-Forces Developer's Guide
 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 
IntRangesMap myIntRangesMap
Definition: DtWidgetRangesRecord.h:69
Contains DLL export macros.
FloatRangesMap myFloatRangesMap
Definition: DtWidgetRangesRecord.h:68
std::map< std::string, float > FloatRangesMap
Definition: DtWidgetRangesRecord.h:22
std::map< std::string, int > IntRangesMap
Definition: DtWidgetRangesRecord.h:23
void serialize(Archive &ar, const unsigned int version)
When the class Archive corresponds to an output archive, the &amp; operator is defined similar to &lt;&lt;...
Definition: DtWidgetRangesRecord.h:61
#define DT_DLL_MAKARCHIVES
Definition: makArchives.h:31
Record of spinbox and slider widget ranges.
Definition: DtWidgetRangesRecord.h:19

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)