Started emitting events for Values

This commit is contained in:
Jesse Beder
2011-09-10 12:42:42 -05:00
parent 09beb5c47a
commit f5a9d4c8e3
4 changed files with 60 additions and 0 deletions

View File

@@ -22,6 +22,8 @@ namespace YAML
node(): m_pRef(new node_ref) {}
bool is(const node& rhs) const { return m_pRef == rhs.m_pRef; }
const node_ref *ref() const { return m_pRef.get(); }
ValueType::value type() const { return m_pRef->type(); }
const std::string& scalar() const { return m_pRef->scalar(); }

View File

@@ -18,6 +18,7 @@ namespace YAML
{
public:
friend class ValueBuilder;
friend class ValueEvents;
friend class detail::node_data;
template<typename, typename, typename> friend class detail::iterator_base;