VISR  0.11.6
Versatile Interactive Scene Renderer
point_source_parser.hpp
Go to the documentation of this file.
1 /* Copyright Institute of Sound and Vibration Research - All rights reserved */
2 
3 #ifndef VISR_OBJECTMODEL_POINT_SOURCE_PARSER_HPP_INCLUDED
4 #define VISR_OBJECTMODEL_POINT_SOURCE_PARSER_HPP_INCLUDED
5 
6 #include "object_parser.hpp"
7 
8 #include "object.hpp"
9 
10 #include "export_symbols.hpp"
11 
12 namespace visr
13 {
14 namespace objectmodel
15 {
16 
20 class VISR_OBJECTMODEL_LIBRARY_SYMBOL PointSourceParser: public ObjectParser
21 {
22 public:
23  virtual void parse( boost::property_tree::ptree const & tree, Object & src ) const;
24 
25  virtual void write( Object const & obj, boost::property_tree::ptree & tree ) const;
26 
27 protected:
38  static void parsePosition( boost::property_tree::ptree const & posTree,
40  Object::Coordinate & y,
41  Object::Coordinate & z );
42 
43 };
44 
45 } // namespace objectmodel
46 } // namespace visr
47 
48 #endif // VISR_OBJECTMODEL_POINT_SOURCE_PARSER_HPP_INCLUDED
Definition: point_source_parser.hpp:20
Definition: options.cpp:10
Definition: object_parser.hpp:21
Definition: object.hpp:36
float Coordinate
Definition: object.hpp:46