1. 14 Oct, 2015 1 commit
    • Thomas Fischer's avatar
      Locating libconfig from CMake-based projects · 8aa02d68
      Thomas Fischer authored
      Configuration files for CMake are provided to simplify
      locating libconfig from within project that use CMake
      as their build system.
      Separate configuration files are provided for C and C++
      builds.
      
      In a CMakeLists.txt file, use the following commands to
      locate libconfig:
      
      - To locate the library, use either
          find_package(libconfig)
        or
          find_package(libconfig++)
      
      - The include directories are available as variables
          LIBCONFIG_INCLUDE_DIRS
        and
          LIBCONFIG++_INCLUDE_DIRS
        respectively, and can be used like this:
          include_directories(${LIBCONFIG++_INCLUDE_DIRS})
      
      - Link to libconfig using variables
          LIBCONFIG_LIBRARIES
        and
          LIBCONFIG++_LIBRARIES
        respectively, by writing:
          target_link_libraries(${PROJECT_NAME}
            ${LIBCONFIG++_LIBRARIES}
          )
      8aa02d68
  2. 23 Sep, 2015 1 commit
  3. 15 Aug, 2015 3 commits
  4. 09 Aug, 2015 2 commits
    • Martin's avatar
      Add solution and projects for Visual Studio 2015. · 13d7483e
      Martin authored
      Also, add x64 solution platform and DebugStatic/ReleaseStatic solution &
      project configurations, generating static libraries.
      Reset output and intermediate directories and filenames to VS defaults.
      Adjust preprocessor definitions (LIBCONFIG_STATIC / LIBCONFIG_EXPORTS,
      _USRDLL) for the static configurations.
      13d7483e
    • Martin's avatar
      Support Visual Studio 2015. · 909b06c0
      Martin authored
      909b06c0
  5. 17 May, 2015 5 commits
  6. 20 Mar, 2015 1 commit
    • Frank Zago's avatar
      Recognize long integers without the need for L extension · add43147
      Frank Zago authored
      A value is recognized as CONFIG_TYPE_INT if it's only numbers, and
      CONFIG_TYPE_INT64 if it's numbers followed by L or LL. However from a
      user point of view adding L or LL is confusing. Instead, if the
      integer is too big to fit in an int, return a CONFIG_TYPE_INT64. This
      also avoid silent truncation.
      add43147
  7. 19 Mar, 2015 2 commits
  8. 20 Sep, 2014 3 commits
  9. 01 Jun, 2014 1 commit
  10. 28 May, 2014 2 commits
  11. 27 May, 2014 1 commit
  12. 26 May, 2014 11 commits
  13. 07 May, 2014 1 commit
    • Yuri Dyachenko's avatar
      make libconfig exceptions public · ee75cfc0
      Yuri Dyachenko authored
      it's allow to generate libconfig exception in user code
      example:
      libconfig::Setting& obj = ...;
      if ( !obj.isGroup() )
          throw libconfig::SettingTypeException( obj, "TypeGroup expected" );
      ee75cfc0
  14. 06 Mar, 2014 1 commit
  15. 05 Mar, 2014 4 commits
    • Matt Renaud's avatar
      Added iterators to Setting sequences. · 6e0f1cd3
      Matt Renaud authored
      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.
      6e0f1cd3
    • Matt Renaud's avatar
      Unified lookup interface for Config and Setting. · 1ff9b7f9
      Matt Renaud authored
      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.
      1ff9b7f9
    • Matt Renaud's avatar
      Removed cast from Setting to const char*. · 6af19564
      Matt Renaud authored
      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.
      6af19564
    • Matt Renaud's avatar
      Added Setting constructor taking a std::string. · 91c09159
      Matt Renaud authored
      To address hyperrealm/libconfig#2, a constructor has been added to the
      header and source file.
      91c09159
  16. 04 Mar, 2014 1 commit