Changed the way we read different types of scalars.

It's better organized now, I think - nodes only offer a single main way of getting the fundamental scalar (as a string), and now we can specialize a single template to read specific types.
This commit is contained in:
Jesse Beder
2009-05-23 23:51:01 +00:00
parent b952bc594f
commit e76521c0e9
12 changed files with 158 additions and 270 deletions

View File

@@ -22,14 +22,7 @@ namespace YAML
virtual bool IsMap() const;
virtual bool IsSequence() const;
virtual bool Read(std::string&) const;
virtual bool Read(int&) const;
virtual bool Read(unsigned&) const;
virtual bool Read(long&) const;
virtual bool Read(float&) const;
virtual bool Read(double&) const;
virtual bool Read(char&) const;
virtual bool Read(bool&) const;
virtual bool GetScalar(std::string& s) const;
virtual int Compare(Content *);
virtual int Compare(Scalar *);