some bugfixes

This commit is contained in:
Marc Wäckerlin
2009-04-07 14:31:46 +00:00
parent bca65f97a0
commit 67d71161b3
5 changed files with 40 additions and 22 deletions

View File

@@ -110,6 +110,7 @@ namespace xml {
exception(std::string reason) throw();
exception(std::string reason, const Node& t) throw();
~exception() throw();
void line(unsigned long line) throw();
const char* what() const throw();
private:
std::string _what;
@@ -402,7 +403,7 @@ namespace xml {
friend class stream_error;
Factory(); // not implemented
Factory(const Factory&); // not implemented
bool ws(char c) const throw();
bool ws(char c) throw();
std::auto_ptr<Node> read(std::istream& is, const Node& position)
throw(wrong_end_tag, wrong_start_tag, tag_expected, type_mismatch,
second_slash_in_tag, character_after_slash,
@@ -414,6 +415,7 @@ namespace xml {
missing_end_tag,
attribute_value_not_quoted, access_error, duplicate_attribute);
std::auto_ptr<Node> _template;
unsigned long _line;
};
}