diff --git a/CMakeLists.txt b/CMakeLists.txt index a554a97..2f10651 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,9 @@ +# +# Copyright Sebastian Redl +# +# Distributed under the Boost Software License, Version 1.0. +# See http://www.boost.org/LICENSE_1_0.txt +# #---------------------------------------------------------------------------- # This file was automatically generated from the original CMakeLists.txt file # Add a variable to hold the headers for the library diff --git a/breaking_changes.txt b/breaking_changes.txt index 8dc3ddc..f9044e4 100644 --- a/breaking_changes.txt +++ b/breaking_changes.txt @@ -1,3 +1,8 @@ +Copyright (C) 2009 Sebastian Redl +Distributed under the Boost Software License, Version 1.0. +See http://www.boost.org/LICENSE_1_0.txt + + List all breaking changes done to the interface during the update here. - Template parameters @@ -43,4 +48,4 @@ Impact: If you use find, you may have to change your code. Most importantly, you need to compare against not_found() instead of end(). Rationale: equal_range() also returns assoc_iterators. equal_range() cannot return normal iterators, since the conversion would not preserve - the equal range or even the range property. + the equal range or even the range property. diff --git a/doc/accessing.qbk b/doc/accessing.qbk index 3645fbe..6e605b8 100644 --- a/doc/accessing.qbk +++ b/doc/accessing.qbk @@ -1,3 +1,10 @@ +[/ + / Copyright (c) 2008 Marcin Kalicinski (kalita poczta dot onet dot pl) + / Copyright (c) 2009 Sebastian Redl (sebastian dot redl getdesigned dot at) + / + / Distributed under the Boost Software License, Version 1.0. (See accompanying + / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + /] [section:accessing How to Access Data in a Property Tree] [/ __ptree_*__ macros expected from property_tree.qbk] [def __pi__ ['pi]] [/ mathematical constant] diff --git a/doc/cmd_line_parser.qbk b/doc/cmd_line_parser.qbk index 708ce50..5ae64fa 100644 --- a/doc/cmd_line_parser.qbk +++ b/doc/cmd_line_parser.qbk @@ -1,3 +1,10 @@ +[/ + / Copyright (c) 2008 Marcin Kalicinski (kalita poczta dot onet dot pl) + / Copyright (c) 2009 Sebastian Redl (sebastian dot redl getdesigned dot at) + / + / Distributed under the Boost Software License, Version 1.0. (See accompanying + / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + /] [section:cmdline_parser Command Line Parser] [def __read_cmdline__ [funcref boost::property_tree::cmdline_parser::read_cmdline read_cmdline]] This is a simple parser that converts command line parameters (in form of standard `argc` and `argv` arguments) into a property tree. There is no write function. The parser correctly recognizes simple command line styles, both from Unix and Windows worlds. diff --git a/doc/container.qbk b/doc/container.qbk index f731fed..5f0742f 100644 --- a/doc/container.qbk +++ b/doc/container.qbk @@ -1,3 +1,10 @@ +[/ + / Copyright (c) 2008 Marcin Kalicinski (kalita poczta dot onet dot pl) + / Copyright (c) 2009 Sebastian Redl (sebastian dot redl getdesigned dot at) + / + / Distributed under the Boost Software License, Version 1.0. (See accompanying + / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + /] [section:container Property Tree as a Container] [/ __ptree_*__ macros expected from property_tree.qbk] Every property tree node models the ReversibleSequence concept, providing diff --git a/doc/info_parser.qbk b/doc/info_parser.qbk index 3de0b71..238e090 100644 --- a/doc/info_parser.qbk +++ b/doc/info_parser.qbk @@ -1,3 +1,10 @@ +[/ + / Copyright (c) 2008 Marcin Kalicinski (kalita poczta dot onet dot pl) + / Copyright (c) 2009 Sebastian Redl (sebastian dot redl getdesigned dot at) + / + / Distributed under the Boost Software License, Version 1.0. (See accompanying + / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + /] [section INFO Parser] The INFO format was created specifically for the property tree library. It provides a simple, efficient format that can be used to serialize property diff --git a/doc/ini_parser.qbk b/doc/ini_parser.qbk index b223c8d..560817a 100644 --- a/doc/ini_parser.qbk +++ b/doc/ini_parser.qbk @@ -1,3 +1,10 @@ +[/ + / Copyright (c) 2008 Marcin Kalicinski (kalita poczta dot onet dot pl) + / Copyright (c) 2009 Sebastian Redl (sebastian dot redl getdesigned dot at) + / + / Distributed under the Boost Software License, Version 1.0. (See accompanying + / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + /] [section INI Parser] [def __ini__ [@http://en.wikipedia.org/wiki/INI INI format]] The __ini__ was once widely used in the world of Windows. It is now deprecated, diff --git a/doc/intro.qbk b/doc/intro.qbk index 71d49f9..3023697 100644 --- a/doc/intro.qbk +++ b/doc/intro.qbk @@ -1,3 +1,10 @@ +[/ + / Copyright (c) 2008 Marcin Kalicinski (kalita poczta dot onet dot pl) + / Copyright (c) 2009 Sebastian Redl (sebastian dot redl getdesigned dot at) + / + / Distributed under the Boost Software License, Version 1.0. (See accompanying + / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + /] [template ptree2codeImage[] [$images/ptree2code.png]] [section:intro What is Property Tree?] The Property Tree library provides a data structure that stores an arbitrarily diff --git a/doc/json_parser.qbk b/doc/json_parser.qbk index b052294..469d5a2 100644 --- a/doc/json_parser.qbk +++ b/doc/json_parser.qbk @@ -1,3 +1,10 @@ +[/ + / Copyright (c) 2008 Marcin Kalicinski (kalita poczta dot onet dot pl) + / Copyright (c) 2009 Sebastian Redl (sebastian dot redl getdesigned dot at) + / + / Distributed under the Boost Software License, Version 1.0. (See accompanying + / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + /] [section JSON Parser] [def __json__ [@http://en.wikipedia.org/wiki/JSON JSON format]] The __json__ is a data interchange format derived from the object literal diff --git a/doc/parsers.qbk b/doc/parsers.qbk index 80cc71b..e793b5f 100644 --- a/doc/parsers.qbk +++ b/doc/parsers.qbk @@ -1,3 +1,10 @@ +[/ + / Copyright (c) 2008 Marcin Kalicinski (kalita poczta dot onet dot pl) + / Copyright (c) 2009 Sebastian Redl (sebastian dot redl getdesigned dot at) + / + / Distributed under the Boost Software License, Version 1.0. (See accompanying + / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + /] [section:parsers How to Populate a Property Tree] [include xml_parser.qbk] diff --git a/doc/synopsis.qbk b/doc/synopsis.qbk index 17011fc..9355081 100644 --- a/doc/synopsis.qbk +++ b/doc/synopsis.qbk @@ -1,3 +1,10 @@ +[/ + / Copyright (c) 2008 Marcin Kalicinski (kalita poczta dot onet dot pl) + / Copyright (c) 2009 Sebastian Redl (sebastian dot redl getdesigned dot at) + / + / Distributed under the Boost Software License, Version 1.0. (See accompanying + / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + /] [section:synopsis Property Tree Synopsis] [def __basic_ptree__ [classref boost::property_tree::basic_ptree basic_ptree]] [def __ptree__ [classref boost::property_tree::ptree ptree]] diff --git a/doc/system_environment_parser.qbk b/doc/system_environment_parser.qbk index 4b3d7b1..eb3a673 100644 --- a/doc/system_environment_parser.qbk +++ b/doc/system_environment_parser.qbk @@ -1,3 +1,10 @@ +[/ + / Copyright (c) 2008 Marcin Kalicinski (kalita poczta dot onet dot pl) + / Copyright (c) 2009 Sebastian Redl (sebastian dot redl getdesigned dot at) + / + / Distributed under the Boost Software License, Version 1.0. (See accompanying + / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + /] [section System Environment Parser] [note The system environment parser is not yet implemented.] [endsect] [/env_parser] diff --git a/doc/tutorial.qbk b/doc/tutorial.qbk index 17f033c..964c2d4 100644 --- a/doc/tutorial.qbk +++ b/doc/tutorial.qbk @@ -1,3 +1,10 @@ +[/ + / Copyright (c) 2008 Marcin Kalicinski (kalita poczta dot onet dot pl) + / Copyright (c) 2009 Sebastian Redl (sebastian dot redl getdesigned dot at) + / + / Distributed under the Boost Software License, Version 1.0. (See accompanying + / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + /] [section:tutorial Five Minute Tutorial] This tutorial uses XML. Note that the library is not specifically bound to XML, and any other supported format (such as INI or JSON) could be used instead. diff --git a/doc/windows_registry_parser.qbk b/doc/windows_registry_parser.qbk index 3032595..82d2aa8 100644 --- a/doc/windows_registry_parser.qbk +++ b/doc/windows_registry_parser.qbk @@ -1,3 +1,10 @@ +[/ + / Copyright (c) 2008 Marcin Kalicinski (kalita poczta dot onet dot pl) + / Copyright (c) 2009 Sebastian Redl (sebastian dot redl getdesigned dot at) + / + / Distributed under the Boost Software License, Version 1.0. (See accompanying + / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + /] [section:registry_parser Windows Registry Parser] [def __registry_parser.hpp__ [headerref boost/property_tree/registry_parser.hpp registry_parser.hpp]] [def __read_registry__ [funcref boost::property_tree::registry_parser::read_registry read_registry]] diff --git a/doc/xml_parser.qbk b/doc/xml_parser.qbk index e2a2e4c..13dfd5c 100644 --- a/doc/xml_parser.qbk +++ b/doc/xml_parser.qbk @@ -1,3 +1,10 @@ +[/ + / Copyright (c) 2008 Marcin Kalicinski (kalita poczta dot onet dot pl) + / Copyright (c) 2009 Sebastian Redl (sebastian dot redl getdesigned dot at) + / + / Distributed under the Boost Software License, Version 1.0. (See accompanying + / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + /] [section XML Parser] [def __xml__ [@http://en.wikipedia.org/wiki/XML XML format]] [def __xml_parser.hpp__ [headerref boost/property_tree/xml_parser.hpp xml_parser.hpp]] diff --git a/examples/debug_settings.xml b/examples/debug_settings.xml index 9b8524a..2ac170e 100644 --- a/examples/debug_settings.xml +++ b/examples/debug_settings.xml @@ -1,4 +1,9 @@ + debug.log diff --git a/include/boost/property_tree/detail/rapidxml.hpp b/include/boost/property_tree/detail/rapidxml.hpp index 342c0bc..1c5e2ad 100644 --- a/include/boost/property_tree/detail/rapidxml.hpp +++ b/include/boost/property_tree/detail/rapidxml.hpp @@ -1,9 +1,15 @@ +// ---------------------------------------------------------------------------- +// Copyright (C) 2006, 2009 Marcin Kalicinski +// +// Distributed under the Boost Software License, Version 1.0. +// (See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) +// +// For more information, see www.boost.org +// ---------------------------------------------------------------------------- #ifndef RAPIDXML_HPP_INCLUDED #define RAPIDXML_HPP_INCLUDED -// Copyright (C) 2006, 2009 Marcin Kalicinski -// Version 1.13 -// Revision $DateTime: 2009/05/13 01:46:17 $ //! \file rapidxml.hpp This file contains rapidxml parser and DOM implementation // If standard library is disabled, user must provide implementations of required functions and typedefs diff --git a/include/boost/property_tree/ini_parser.hpp b/include/boost/property_tree/ini_parser.hpp index af7a9aa..417c3cf 100644 --- a/include/boost/property_tree/ini_parser.hpp +++ b/include/boost/property_tree/ini_parser.hpp @@ -1,5 +1,6 @@ // ---------------------------------------------------------------------------- // Copyright (C) 2002-2006 Marcin Kalicinski +// Copyright (C) 2009 Sebastian Redl // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at diff --git a/include/boost/property_tree/stream_translator.hpp b/include/boost/property_tree/stream_translator.hpp index b11eaac..c7fabfa 100644 --- a/include/boost/property_tree/stream_translator.hpp +++ b/include/boost/property_tree/stream_translator.hpp @@ -136,8 +136,8 @@ namespace boost { namespace property_tree int i; s >> i; // out of range? - if(i > std::numeric_limits::max() || - i < std::numeric_limits::min()) + if(i > (std::numeric_limits::max)() || + i < (std::numeric_limits::min)()) { s.clear(); // guarantees eof to be unset return; @@ -159,7 +159,7 @@ namespace boost { namespace property_tree unsigned i; s >> i; // out of range? - if(i > std::numeric_limits::max()) { + if(i > (std::numeric_limits::max)()) { s.clear(); // guarantees eof to be unset return; } diff --git a/index.html b/index.html index 7974904..e149bb6 100644 --- a/index.html +++ b/index.html @@ -1,12 +1,14 @@ - - -

- Docs for Property Tree library not available yet.

+Automatic redirection failed, please go to the +Boost.PropertyTree documentation. +

Copyright Sebastian Redl 2009

+

Distributed under the Boost Software License, Version 1.0. (See accompanying file +LICENSE_1_0.txt or copy at +www.boost.org/LICENSE_1_0.txt). +

diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index e71c890..e512617 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,3 +1,10 @@ +# +# Copyright Sebastian Redl +# +# Distributed under the Boost Software License, Version 1.0. +# See http://www.boost.org/LICENSE_1_0.txt +# +#---------------------------------------------------------------------------- boost_additional_test_dependencies(property_tree BOOST_DEPENDS test serialization) @@ -19,5 +26,3 @@ foreach(test ${tests}) COMPILE_FLAGS ${test_compile_flags} DEPENDS boost_unit_test_framework boost_serialization STATIC) endforeach(test ${tests}) - - diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 7044e28..28ea470 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -1,3 +1,11 @@ +# Boost.PropertyTree +# +# Copyright (c) 2009 Sebastian Redl +# +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) + # bring in rules for testing import testing ; diff --git a/test/custom-build/Makefile b/test/custom-build/Makefile index e2dd24c..dbce581 100644 --- a/test/custom-build/Makefile +++ b/test/custom-build/Makefile @@ -1,3 +1,11 @@ +# Boost.PropertyTree +# +# Copyright (c) 2009 Sebastian Redl +# +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) + all: clean: diff --git a/test/custom-build/debug_settings.xml b/test/custom-build/debug_settings.xml index 9b8524a..2ac170e 100644 --- a/test/custom-build/debug_settings.xml +++ b/test/custom-build/debug_settings.xml @@ -1,4 +1,9 @@ + debug.log diff --git a/test/custom-build/gcc.mak b/test/custom-build/gcc.mak index bc2660b..c488d2c 100644 --- a/test/custom-build/gcc.mak +++ b/test/custom-build/gcc.mak @@ -1,3 +1,11 @@ +# Boost.PropertyTree +# +# Copyright (c) 2009 Sebastian Redl +# +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) + CC=g++ CFLAGSREL=-Wall -pedantic -ftemplate-depth-255 -O3 CFLAGSDBG=-Wall -pedantic -ftemplate-depth-255 -O0 diff --git a/test/custom-build/icc.mak b/test/custom-build/icc.mak index 98d9d94..c7cb34e 100644 --- a/test/custom-build/icc.mak +++ b/test/custom-build/icc.mak @@ -1,3 +1,11 @@ +# Boost.PropertyTree +# +# Copyright (c) 2009 Sebastian Redl +# +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) + CC=icc CFLAGSREL=-O3 -static CFLAGSDBG=-O0 -static diff --git a/test/custom-build/vc.mak b/test/custom-build/vc.mak index 2ff7349..9129954 100644 --- a/test/custom-build/vc.mak +++ b/test/custom-build/vc.mak @@ -1,3 +1,11 @@ +# Boost.PropertyTree +# +# Copyright (c) 2009 Sebastian Redl +# +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) + CC=cl CFLAGSREL=-O2 -Ox -EHsc -DBOOST_DISABLE_WIN32 -nologo CFLAGSDBG=-EHsc -DBOOST_DISABLE_WIN32 -nologo diff --git a/test/sandbox.cpp b/test/sandbox.cpp index 2c1c97e..9eb5908 100644 --- a/test/sandbox.cpp +++ b/test/sandbox.cpp @@ -1,5 +1,14 @@ +// ---------------------------------------------------------------------------- +// Copyright (C) 2009 Sebastian Redl +// +// Distributed under the Boost Software License, Version 1.0. +// (See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) +// +// For more information, see www.boost.org +// ---------------------------------------------------------------------------- + #define _CRT_SECURE_NO_DEPRECATE -//#define BOOST_PROPERTY_TREE_XML_PARSER_PUGXML #include #include #include diff --git a/test/xml_parser_test_data.hpp b/test/xml_parser_test_data.hpp index 889a649..5c185c7 100644 --- a/test/xml_parser_test_data.hpp +++ b/test/xml_parser_test_data.hpp @@ -1,3 +1,14 @@ +// ---------------------------------------------------------------------------- +// Copyright (C) 2002-2006 Marcin Kalicinski +// Copyright (C) 2009 Sebastian Redl +// +// Distributed under the Boost Software License, Version 1.0. +// (See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) +// +// For more information, see www.boost.org +// ---------------------------------------------------------------------------- + #ifndef XML_PARSER_TEST_DATA_HPP_INCLUDED #define XML_PARSER_TEST_DATA_HPP_INCLUDED