neic-glass3  1.4.6
parser.h
Go to the documentation of this file.
1 /*****************************************
2  * This file is documented for Doxygen.
3  * If you modify this file please update
4  * the comments so that Doxygen will still
5  * be able to work.
6  ****************************************/
7 #ifndef PARSER_H
8 #define PARSER_H
9 
10 #include <json.h>
11 #include <baseclass.h>
12 #include <string>
13 #include <memory>
14 
15 namespace glass3 {
16 
25 namespace parse {
26 
40  public:
41  Parser();
42 
54  Parser(const std::string &defaultAgencyID,
55  const std::string &defaultAuthor);
56 
62  virtual ~Parser();
63 
76  virtual std::shared_ptr<json::Object> parse(const std::string &input) = 0;
77 };
78 } // namespace parse
79 } // namespace glass3
80 #endif // PARSER_H
virtual std::shared_ptr< json::Object > parse(const std::string &input)=0
Virtual parsing function to be overridden by deriving classes, used to parse input.
glass3 parser class
Definition: parser.h:39
The neic-glass3 project namespace containing all the classes and functions that make up neic-glass3...
glass3::util::BaseClass class - encapsulates the most basic setup and configuration logic...
Definition: baseclass.h:30
Parser()
Definition: parser.cpp:8
virtual ~Parser()
parser destructor
Definition: parser.cpp:21