Skip to content

Commit

Permalink
Fix docs build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Redl committed Jan 23, 2015
1 parent 8123ded commit 56cad33
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion doc/property_tree.qbk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/]

[library Boost.PropertyTree
[quickbook 1.4]
[quickbook 1.6]
[copyright 2008-2010 Marcin Kalicinski]
[copyright 2010-2013 Sebastian Redl]
[purpose Property Tree library]
Expand Down
8 changes: 4 additions & 4 deletions doc/tutorial.qbk
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,22 @@ the debug level value.

First we need some includes:

[debug_settings.includes]
[debug_settings_includes]

To store the logging configuration in the program we create a debug_settings
structure:

[debug_settings.data]
[debug_settings_data]

All that needs to be done now is to write implementations of load() and save()
member functions. Let's first deal with load(). It contains just 7 lines of
code, although it does all the necessary things, including error reporting:

[debug_settings.load]
[debug_settings_load]

Now the save() function. It is also 7 lines of code:

[debug_settings.save]
[debug_settings_save]

The full program [@boost:/libs/property_tree/examples/debug_settings.cpp debug_settings.cpp] is
included in the examples directory.
Expand Down
10 changes: 5 additions & 5 deletions examples/debug_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// For more information, see www.boost.org
// ----------------------------------------------------------------------------

//[debug_settings.includes
//[debug_settings_includes
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>
#include <boost/foreach.hpp>
Expand All @@ -18,7 +18,7 @@
#include <iostream>
namespace pt = boost::property_tree;
//]
//[debug_settings.data
//[debug_settings_data
struct debug_settings
{
std::string m_file; // log filename
Expand All @@ -28,7 +28,7 @@ struct debug_settings
void save(const std::string &filename);
};
//]
//[debug_settings.load
//[debug_settings_load
void debug_settings::load(const std::string &filename)
{
// Create empty property tree object
Expand All @@ -55,7 +55,7 @@ void debug_settings::load(const std::string &filename)

}
//]
//[debug_settings.save
//[debug_settings_save
void debug_settings::save(const std::string &filename)
{
// Create an empty property tree object.
Expand Down Expand Up @@ -83,7 +83,7 @@ int main()
try
{
debug_settings ds;
ds.load("debug_settings.xml");
ds.load("debug_settings_xml");
ds.save("debug_settings_out.xml");
std::cout << "Success\n";
}
Expand Down

0 comments on commit 56cad33

Please sign in to comment.