mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
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:
@@ -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 *);
|
||||
|
Reference in New Issue
Block a user