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
00024 #include <iostream>
00025 #include <iosfwd>
00026 #include <vector>
00027
00028 class config;
00029 class t_string;
00030
00031
00032 void read(config &cfg, std::istream &in, std::string* error_log = NULL);
00033 void read(config &cfg, std::string &in, std::string* error_log = NULL);
00034 void read_gz(config &cfg, std::istream &in, std::string* error_log=NULL);
00035
00036 void write(std::ostream &out, config const &cfg, unsigned int level=0);
00037 void write_key_val(std::ostream &out, const std::string &key, const t_string &value, unsigned int 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