Added an iterator class that can iterate through both sequence and map nodes.

This commit is contained in:
Jesse Beder 2008-07-02 01:22:39 +00:00
parent f7358701f2
commit d56b54b34f
16 changed files with 393 additions and 105 deletions

View file

@ -6,7 +6,9 @@ namespace YAML
{
class Exception: public std::exception {};
class ScannerException: public Exception {};
class RepresentationException: public Exception {};
// scanner exceptions
class UnknownToken: public ScannerException {};
class IllegalBlockEntry: public ScannerException {};
class IllegalMapKey: public ScannerException {};
@ -37,4 +39,8 @@ namespace YAML
InvalidUnicode(unsigned value_): value(value_) {}
unsigned value;
};
// representation exceptions
class InvalidScalar: public RepresentationException {};
class BadDereference: public RepresentationException {};
}