1 #ifndef Fireworks_Core_FWXMLConfigParser
2 #define Fireworks_Core_FWXMLConfigParser
42 for (
size_t i = 0,
e = attributes.size();
i !=
e; ++
i) {
44 if (attr.
key ==
"name")
46 else if (attr.
key ==
"version") {
49 if (endptr == attr.
value.c_str())
64 throw ParserError(
"Expecting toplevel <config> tag");
71 else if (
tag ==
"string")
125 }
else if (strspn(
data.c_str(),
" \t\n") !=
data.size())
135 #ifdef FW_CONFIG_PARSER_DEBUG
136 static char *debug_states[] = {
137 "IN_BEGIN_DOCUMENT",
"IN_PUSHED_CONFIG",
"IN_POPPED_CONFIG",
"IN_BEGIN_STRING",
"IN_STORED_STRING"};
139 std::cerr <<
" " << where <<
" tag/data " <<
tag <<
"in state " << debug_states[state] << std::endl;
144 std::vector<std::pair<std::string, FWConfiguration *> >
m_configs;