17 #ifndef HEADER_SUPERTUX_UTIL_WRITER_HPP 18 #define HEADER_SUPERTUX_UTIL_WRITER_HPP 30 Writer(
const std::string& filename);
34 void write_comment(
const std::string& comment);
36 void start_list(
const std::string& listname,
bool string =
false);
38 void write(
const std::string& name,
bool value);
39 void write(
const std::string& name,
int value);
40 void write(
const std::string& name,
float value);
41 void write(
const std::string& name,
const char* value);
42 void write(
const std::string& name,
const std::string& value,
bool translatable =
false);
43 void write(
const std::string& name,
const std::vector<int>& value);
44 void write(
const std::string& name,
const std::vector<unsigned int>& value,
int width = 0);
45 void write(
const std::string& name,
const std::vector<float>& value);
46 void write(
const std::string& name,
const std::vector<std::string>& value);
47 void write(
const std::string& name,
const sexp::Value& value);
50 void end_list(
const std::string& listname);
53 void write_escaped_string(
const std::string& str);
54 void write_sexp(
const sexp::Value& value,
bool fudge);
58 std::string m_filename;
62 std::vector<std::string> lists;
Definition: object_option.hpp:39
Definition: writer.cpp:23