Namespaces | |
| detail | |
Classes | |
| class | ini_parser_error |
| Indicates an error parsing INI formatted data. More... | |
Functions | |
| bool | validate_flags (int flags) |
Determines whether the flags are valid for use with the ini_parser. More... | |
| template<class Ptree > | |
| void | read_ini (std::basic_istream< typename Ptree::key_type::value_type > &stream, Ptree &pt) |
| Read INI from a the given stream and translate it to a property tree. More... | |
| template<class Ptree > | |
| void | read_ini (const std::string &filename, Ptree &pt, const std::locale &loc=std::locale()) |
| Read INI from a the given file and translate it to a property tree. More... | |
| template<class Ptree > | |
| void | write_ini (std::basic_ostream< typename Ptree::key_type::value_type > &stream, const Ptree &pt, int flags=0) |
| Translates the property tree to INI and writes it the given output stream. More... | |
| template<class Ptree > | |
| void | write_ini (const std::string &filename, const Ptree &pt, int flags=0, const std::locale &loc=std::locale()) |
| Translates the property tree to INI and writes it the given file. More... | |
| void boost::property_tree::ini_parser::read_ini | ( | std::basic_istream< typename Ptree::key_type::value_type > & | stream, |
| Ptree & | pt | ||
| ) |
Read INI from a the given stream and translate it to a property tree.
| ini_parser_error | If a format violation is found. |
| stream | Stream from which to read in the property tree. | |
| [out] | pt | The property tree to populate. |
References BOOST_PROPERTY_TREE_THROW, boost::proto::envns_::data, boost::end, boost::container::getline(), boost::locale::boundary::line, boost::local(), boost::xpressive::make_pair, boost::expressions::stream, and boost::algorithm::trim().
Referenced by read_ini().
| void boost::property_tree::ini_parser::read_ini | ( | const std::string & | filename, |
| Ptree & | pt, | ||
| const std::locale & | loc = std::locale() |
||
| ) |
Read INI from a the given file and translate it to a property tree.
| ini_parser_error | In case of error deserializing the property tree. |
| filename | Name of file from which to read in the property tree. | |
| [out] | pt | The property tree to populate. |
| loc | The locale to use when reading in the file contents. |
References BOOST_PROPERTY_TREE_THROW, read_ini(), and boost::expressions::stream.
|
inline |
Determines whether the flags are valid for use with the ini_parser.
| flags | value to check for validity as flags to ini_parser. |
Referenced by boost::property_tree::xml_parser::read_xml(), and write_ini().
| void boost::property_tree::ini_parser::write_ini | ( | std::basic_ostream< typename Ptree::key_type::value_type > & | stream, |
| const Ptree & | pt, | ||
| int | flags = 0 |
||
| ) |
Translates the property tree to INI and writes it the given output stream.
| ini_parser_error | In case of error translating the property tree to INI or writing to the output stream. |
| stream | The stream to which to write the INI representation of the property tree. |
| pt | The property tree to tranlsate to INI and output. |
| flags | The flags to use when writing the INI file. No flags are currently supported. |
References BOOST_ASSERT, BOOST_PROPERTY_TREE_THROW, boost::property_tree::ini_parser::detail::check_dupes(), boost::end, boost::it, boost::expressions::stream, validate_flags(), and boost::detail::void.
Referenced by write_ini().
| void boost::property_tree::ini_parser::write_ini | ( | const std::string & | filename, |
| const Ptree & | pt, | ||
| int | flags = 0, |
||
| const std::locale & | loc = std::locale() |
||
| ) |
Translates the property tree to INI and writes it the given file.
| info_parser_error | In case of error translating the property tree to INI or writing to the file. |
| filename | The name of the file to which to write the INI representation of the property tree. |
| pt | The property tree to tranlsate to INI and output. |
| flags | The flags to use when writing the INI file. The following flags are supported:
|
| loc | The locale to use when writing the file. |
References BOOST_PROPERTY_TREE_THROW, boost::expressions::stream, and write_ini().