platform/upstream/libconfig.git
10 years agoAdded iterators to Setting sequences.
Matt Renaud [Wed, 5 Mar 2014 23:38:24 +0000 (18:38 -0500)]
Added iterators to Setting sequences.

To address hyperrealm/libconfig#3, I have added a SettingIterator class
and begin() and end() methods on Setting so that lists and arrays of
Setting can be iterated through using C++ style iterators.

There is an iterator as well as const_iterator defined for the class.

10 years agoUnified lookup interface for Config and Setting.
Matt Renaud [Wed, 5 Mar 2014 18:06:38 +0000 (13:06 -0500)]
Unified lookup interface for Config and Setting.

To address hyperrealm/libconfig#4, `Config::operator[](const char*)` and
`Setting::lookup(const std::string& key)` have been added.

Note: `operator[]` had to remain as `const char*` to avoid ambiguities
      in some situations.

10 years agoRemoved cast from Setting to const char*.
Matt Renaud [Wed, 5 Mar 2014 16:59:54 +0000 (11:59 -0500)]
Removed cast from Setting to const char*.

To address hyperrealm/libconfig#1, the cast operator from Setting to
const char* has been removed. As a result, lookupValue() taking a const
char* has also been removed as it uses the cast operator.

This change allows code that assigns directly to a std::string or a
const char* to compile without errors. No change to existing code should
be required.

10 years agoAdded Setting constructor taking a std::string.
Matt Renaud [Wed, 5 Mar 2014 16:37:34 +0000 (11:37 -0500)]
Added Setting constructor taking a std::string.

To address hyperrealm/libconfig#2, a constructor has been added to the
header and source file.

10 years agoupdated some automake helper files
Mark Lindner [Tue, 4 Mar 2014 02:10:39 +0000 (18:10 -0800)]
updated some automake helper files

10 years agoinitial commit
Mark Lindner [Tue, 4 Mar 2014 02:07:17 +0000 (18:07 -0800)]
initial commit

10 years agoAdded readme.
Mark Lindner [Tue, 4 Mar 2014 01:50:39 +0000 (17:50 -0800)]
Added readme.

10 years agofirst commit
Mark Lindner [Tue, 4 Mar 2014 01:49:04 +0000 (17:49 -0800)]
first commit

10 years agoInitial commit
mesmerism [Tue, 4 Mar 2014 01:38:37 +0000 (17:38 -0800)]
Initial commit