Update of /cvsroot/pclasses/pclasses2/include/pclasses/App
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1010/include/pclasses/App
Modified Files:
Config.h
Log Message:
- Changed ConfigSection::value_map from std::map to std::list to preserve order of config values
Index: Config.h
===================================================================
RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/App/Config.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Config.h 22 Jun 2005 11:35:18 -0000 1.1
+++ Config.h 29 Jun 2005 00:11:09 -0000 1.2
@@ -52,9 +52,20 @@
{ }
ConfigValue(double value);
+ ConfigValue(Int32 value);
+ ConfigValue(UInt32 value);
+
~ConfigValue() throw();
- const Unicode::String& value() const throw();
+ const Unicode::String& toString() const throw();
+
+ StringList<Unicode::String> toStringList() const;
+
+ double toDouble() const;
+
+ Int32 toInt() const;
+
+ UInt32 toUInt() const;
private:
Unicode::String _value;
@@ -66,7 +77,7 @@
typedef section_list::iterator section_iterator;
typedef section_list::const_iterator section_const_iterator;
- typedef std::map<std::string, ConfigValue> value_map;
+ typedef std::list<std::pair<std::string, ConfigValue> > value_map;
typedef value_map::iterator value_iterator;
typedef value_map::const_iterator value_const_iterator;
|