config.cpp File Reference

#include "data/config.hpp"
#include "data/directory.hpp"
#include "data/fstream.hpp"
#include <cwctype>

Include dependency graph for config.cpp:

Go to the source code of this file.

Namespaces

namespace  gsgl
namespace  gsgl::data

Defines

#define CHECK_EOF   if (ch == WEOF) throw runtime_exception(L"%ls (%d): unexpected end of file", f->get_full_path().w_string(), line)
#define SYNTAX_ERROR(msg)   throw runtime_exception(L"%ls (%d): syntax error: %ls", f->get_full_path().w_string(), line, msg)

Variables

config_variable< floatCONFIG_TEST_ONE (L"test/one", 3.14f)
config_variable< int > CONFIG_TEST_TWO (L"test/two", 2)
config_variable< gsgl::stringCONFIG_TEST_ZERO (L"test/zero", L"0")


Define Documentation

#define CHECK_EOF   if (ch == WEOF) throw runtime_exception(L"%ls (%d): unexpected end of file", f->get_full_path().w_string(), line)

Definition at line 432 of file config.cpp.

Referenced by config_record::from_stream().

#define SYNTAX_ERROR ( msg   )     throw runtime_exception(L"%ls (%d): syntax error: %ls", f->get_full_path().w_string(), line, msg)

Definition at line 431 of file config.cpp.

Referenced by config_record::from_stream().


Generated on Sat Mar 1 13:50:03 2008 for Periapsis Project by  doxygen 1.5.5