Wolframe, 0.0.3

ddlStructParser.hpp
Go to the documentation of this file.
1 /************************************************************************
2 Copyright (C) 2011 - 2014 Project Wolframe.
3 All rights reserved.
4 
5 This file is part of Project Wolframe.
6 
7 Commercial Usage
8 Licensees holding valid Project Wolframe Commercial licenses may
9 use this file in accordance with the Project Wolframe
10 Commercial License Agreement provided with the Software or,
11 alternatively, in accordance with the terms contained
12 in a written agreement between the licensee and Project Wolframe.
13 
14 GNU General Public License Usage
15 Alternatively, you can redistribute this file and/or modify it
16 under the terms of the GNU General Public License as published by
17 the Free Software Foundation, either version 3 of the License, or
18 (at your option) any later version.
19 
20 Wolframe is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU General Public License for more details.
24 
25 You should have received a copy of the GNU General Public License
26 along with Wolframe. If not, see <http://www.gnu.org/licenses/>.
27 
28 If you have questions regarding the use of this file, please contact
29 Project Wolframe.
30 
31 ************************************************************************/
34 
35 #ifndef _Wolframe_SERIALIZE_DDL_STRUCT_PARSER_HPP_INCLUDED
36 #define _Wolframe_SERIALIZE_DDL_STRUCT_PARSER_HPP_INCLUDED
37 #include "filter/typedfilter.hpp"
38 #include "serialize/flags.hpp"
39 #include "serialize/mapContext.hpp"
41 #include "types/variantStruct.hpp"
43 #include <cstddef>
44 
45 namespace _Wolframe {
46 namespace serialize {
47 
51 {
52 public:
57 
61  virtual ~DDLStructParser(){}
62 
65 
68 
71  bool call();
72 
73 private:
78 };
79 
80 }}//namespace
81 #endif
82 
bool call()
Call of one processing step the parser.
DDLStructParser & operator=(const DDLStructParser &o)
Assignment operator.
Structure of variant type atoms or substructures.
Definition: variantStruct.hpp:57
virtual ~DDLStructParser()
Destructor.
Definition: ddlStructParser.hpp:61
void init(const langbind::TypedInputFilterR &i, Flags::Enum flags=Flags::None)
Parser start initialization.
boost::shared_ptr< TypedInputFilter > TypedInputFilterR
Shared input filter (langbind::TypedInputFilter) reference.
Definition: typedfilter.hpp:98
Defines the Parsing STM for DDL serialization.
DDLParseStateStack m_stk
Definition: ddlStructParser.hpp:77
Initializer of a DDL structure from an iterator (serialization)
Definition: ddlStructParser.hpp:50
Defines the data structure holding the global serialization state variables (without the stack) ...
Enum
the enumeration that can also be interpreted as bit set
Definition: flags.hpp:47
Context m_ctx
Definition: ddlStructParser.hpp:75
Defines the flags for serialization behaviour.
DDLStructParser()
Default constructor.
Definition: ddlStructParser.hpp:54
std::vector< DDLParseState > DDLParseStateStack
State stack for an initializer of a DDL structure from an iterator (serialization) ...
Definition: ddlParseStack.hpp:114
Empty flag set (no flags set)
Definition: flags.hpp:49
types::VariantStruct * m_st
Definition: ddlStructParser.hpp:74
Structures of variant types.
Typed interface for input/output filter.
Global state variables of a running serialization/deserialization procedure (without the stack) ...
Definition: mapContext.hpp:46
Description of structures of variant types.
langbind::TypedInputFilterR m_inp
Definition: ddlStructParser.hpp:76