parser.hpp File Reference

#include "global.hpp"
#include <iostream>
#include <iosfwd>
#include <vector>

Include dependency graph for parser.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void read (config &cfg, std::istream &in, std::string *error_log=NULL)
void read (config &cfg, std::string &in, std::string *error_log=NULL)
void read_gz (config &cfg, std::istream &in, std::string *error_log=NULL)
void write (std::ostream &out, config const &cfg, unsigned int level=0)
void write_key_val (std::ostream &out, const std::string &key, const t_string &value, unsigned int level, std::string &textdomain)
void write_open_child (std::ostream &out, const std::string &child, unsigned int level)
void write_close_child (std::ostream &out, const std::string &child, unsigned int level)


Detailed Description

Definition in file parser.hpp.


Function Documentation

void read ( config cfg,
std::string &  in,
std::string *  error_log = NULL 
)

Definition at line 350 of file parser.cpp.

void read ( config cfg,
std::istream &  in,
std::string *  error_log = NULL 
)

void read_gz ( config cfg,
std::istream &  in,
std::string *  error_log = NULL 
)

Definition at line 356 of file parser.cpp.

Referenced by process_queue(), and read_save_file().

void write ( std::ostream &  out,
config const &  cfg,
unsigned int  level = 0 
)

void write_close_child ( std::ostream &  out,
const std::string &  child,
unsigned int  level 
)

Definition at line 449 of file parser.cpp.

Referenced by config_writer::close_child(), and write_internal().

void write_key_val ( std::ostream &  out,
const std::string &  key,
const t_string value,
unsigned int  level,
std::string &  textdomain 
)

Definition at line 392 of file parser.cpp.

References t_string::empty(), and escaped_string().

Referenced by write_internal().

void write_open_child ( std::ostream &  out,
const std::string &  child,
unsigned int  level 
)

Definition at line 443 of file parser.cpp.

Referenced by config_writer::open_child(), and write_internal().


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs