MiltonJSONSceneLoader.h File Reference
#include <loaders/SceneLoader.h>#include <loaders/SceneGraph.h>#include <dynamic/DynamicPlugin.h>#include <materials/Material.h>#include <shapes/ShapeSet.h>#include <third-party/tinyjson/tinyjson.hpp>#include <typeinfo>Go to the source code of this file.
Classes | |
| struct | JSONParseData |
| struct | JSONVisitorValue |
| struct | JSONVisitor |
| class | MiltonJSONSceneLoader |
| Scene loader for Milton JSON scene format. More... | |
Defines | |
| #define | ADD_VARIANT(v, type) |
| #define | ADD_PARSE_METHOD(name) bool _parse_##name(const JSONVariant &v, JSONParseData &data) const; |
Typedefs | |
| typedef json::grammar< char > ::variant | JSONVariant |
| typedef bool(MiltonJSONSceneLoader::* | ParseFunction )(const JSONVariant &, JSONParseData &) const |
Functions | |
| DECLARE_STL_TYPEDEF2 (std::map< std::string, SceneNode * >, InstancedNodeMap) | |
| DECLARE_STL_TYPEDEF2 (std::map< std::string, std::string >, KeyValueIDMap) | |
| DECLARE_STL_TYPEDEF2 (std::map< std::string, unsigned >, ParseResultsMap) | |
| DECLARE_STL_TYPEDEF (json::grammar< char >::array, JSONArray) | |
| DECLARE_STL_TYPEDEF (json::grammar< char >::object, JSONObject) | |
| DECLARE_STL_TYPEDEF (std::string, JSONString) | |
Define Documentation
| #define ADD_PARSE_METHOD | ( | name | ) | bool _parse_##name(const JSONVariant &v, JSONParseData &data) const; |
Definition at line 192 of file MiltonJSONSceneLoader.h.
| #define ADD_VARIANT | ( | v, | |||
| type | ) |
Value:
if (v##Function) \ functionMap[std::string(typeid(type).name())] = JSONVisitorValue(v##Function, true);
Typedef Documentation
| typedef json::grammar<char>::variant JSONVariant |
Definition at line 38 of file MiltonJSONSceneLoader.h.
| typedef bool(MiltonJSONSceneLoader::* ParseFunction)(const JSONVariant &, JSONParseData &) const |
Definition at line 41 of file MiltonJSONSceneLoader.h.
Function Documentation
| DECLARE_STL_TYPEDEF | ( | std::string | , | |
| JSONString | ||||
| ) |
| DECLARE_STL_TYPEDEF | ( | json::grammar< char >::object | , | |
| JSONObject | ||||
| ) |
| DECLARE_STL_TYPEDEF | ( | json::grammar< char >::array | , | |
| JSONArray | ||||
| ) |
| DECLARE_STL_TYPEDEF2 | ( | std::map< std::string, unsigned > | , | |
| ParseResultsMap | ||||
| ) |
| DECLARE_STL_TYPEDEF2 | ( | std::map< std::string, std::string > | , | |
| KeyValueIDMap | ||||
| ) |
| DECLARE_STL_TYPEDEF2 | ( | std::map< std::string, SceneNode * > | , | |
| InstancedNodeMap | ||||
| ) |
Generated on 28 Feb 2009 for Milton by
1.5.6