VISR  0.11.6
Versatile Interactive Scene Renderer
object_vector_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_OBJECT_VECTOR_PARSER_HPP_INCLUDED
4 #define VISR_OBJECTMODEL_OBJECT_VECTOR_PARSER_HPP_INCLUDED
5 
6 #include "export_symbols.hpp"
7 
8 #include <boost/property_tree/ptree_fwd.hpp>
9 
10 #include <iosfwd>
11 #include <memory>
12 #include <string>
13 
14 namespace visr
15 {
16 namespace objectmodel
17 {
18 // forward declaration
19 class ObjectVector;
20 
21 
22 class VISR_OBJECTMODEL_LIBRARY_SYMBOL ObjectVectorParser
23 {
24 public:
25  static void fillObjectVector( std::string const & message, ObjectVector & res );
26  static void fillObjectVector( std::basic_istream<char> & message, ObjectVector & res );
27 
28  static void fillObjectVector( char const * message, ObjectVector & res );
29 
30  static void updateObjectVector( std::string const & message, ObjectVector & res );
31  static void updateObjectVector( std::basic_istream<char> & message, ObjectVector & res );
32 
33  static void updateObjectVector( char const * message, ObjectVector & res );
34 
35  static void encodeObjectVector( ObjectVector const & objects,
36  std::basic_ostream<char> & message );
37 private:
38 
45  static void parseObject( boost::property_tree::ptree const & subtree, ObjectVector & res );
46 };
47 
48 } // namespace objectmodel
49 } // namespace visr
50 
51 #endif // #ifndef VISR_OBJECTMODEL_OBJECT_VECTOR_PARSER_HPP_INCLUDED
Definition: options.cpp:10
Definition: object_vector_parser.hpp:22
Definition: object_vector.hpp:22