VISR  0.12.0
Versatile Interactive Scene Renderer
visr::objectmodel::HoaSourceParser Class Reference

#include <hoa_source_parser.hpp>

Inheritance diagram for visr::objectmodel::HoaSourceParser:
visr::objectmodel::ObjectParser

Public Member Functions

virtual void parse (boost::property_tree::ptree const &tree, Object &src) const
 
virtual void write (Object const &obj, boost::property_tree::ptree &tree) const
 
- Public Member Functions inherited from visr::objectmodel::ObjectParser
 ObjectParser ()
 
virtual ~ObjectParser ()
 

Member Function Documentation

void visr::objectmodel::HoaSourceParser::parse ( boost::property_tree::ptree const &  tree,
Object obj 
) const
virtual

Parse an object from a property node.

Parameters
treeThe property tree node containing the object information.
[out]objThe object to which the parsed values are set.
Note
: This function is marked as pure virtual, thus making the class abstract (non-instantiable). However, it has an implementation which performs sensible work.

Implements visr::objectmodel::ObjectParser.

void visr::objectmodel::HoaSourceParser::write ( Object const &  obj,
boost::property_tree::ptree &  tree 
) const
virtual

Serialize an object itno a property tree node.

Parameters
objThe audio object to be serialised.
[out]treeThe property tree subtree to where the object information is written to.
Note
This method is pure virtual, because his class does not correspond to an instantiable audio object type. Nonetheless, it has an implementation which is called by derived classes.

Implements visr::objectmodel::ObjectParser.


The documentation for this class was generated from the following files: