Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef SERIALIZATION_PARSER_HPP_INCLUDED
00020 #define SERIALIZATION_PARSER_HPP_INCLUDED
00021
00022 #include "global.hpp"
00023 #include "config.hpp"
00024
00025
00026 class abstract_validator;
00027
00028 void read(config &cfg, std::istream &in,
00029 abstract_validator * validator = NULL);
00030 void read(config &cfg, std::string &in,
00031 abstract_validator * validator = NULL);
00032 void read_gz(config &cfg, std::istream &in,
00033 abstract_validator * validator = NULL);
00034
00035 void write(std::ostream &out, config const &cfg, unsigned int level=0);
00036 void write_gz(std::ostream &out, config const &cfg);
00037 void write_key_val(std::ostream &out, const std::string &key, const config::attribute_value &value, unsigned level, std::string &textdomain);
00038 void write_open_child(std::ostream &out, const std::string &child, unsigned int level);
00039 void write_close_child(std::ostream &out, const std::string &child, unsigned int level);
00040
00041 #endif