Noise Modeler Library  0.1
Library for procedurally generating noise-based terrains and other content
 All Classes Files Functions Variables Enumerations Enumerator Groups Pages
parser.hpp
1 #ifndef NM_PARSER_HPP
2 #define NM_PARSER_HPP
3 
4 #include <nmlib/optional.hpp>
5 
6 #include <map>
7 #include <memory>
8 
9 namespace nm {
10 
11 class TypeManager;
12 
33 class Parser
34 {
35 public:
36  explicit Parser();
37  optional<std::unique_ptr<TypeManager>> parseDocument(std::string json);
38 };
39 
40 } // namespace nm
41 
42 #endif // NM_PARSER_HPP
Converts json strings to TypeManagers.
Definition: parser.hpp:33