rad 6.2.0
Loading...
Searching...
No Matches
DOMSCXMLReader.h
Go to the documentation of this file.
1
10/*
11 * scampl4cpp/parser
12 *
13 * Copyright by European Southern Observatory, 2012
14 * All rights reserved
15 *
16 * This library is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU Lesser General Public
18 * License as published by the Free Software Foundation; either
19 * version 2.1 of the License, or (at your option) any later version.
20 *
21 * This library is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 * Lesser General Public License for more details.
25 *
26 * You should have received a copy of the GNU Lesser General Public
27 * License along with this library; if not, write to the Free Software
28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
29 * 02111-1307 USA.
30 */
31
32#ifndef SCXML4CPP_DOMSCXMLREADER_H
33#define SCXML4CPP_DOMSCXMLREADER_H
34
35#ifndef __cplusplus
36#error This is a C++ include file and cannot be used from plain C
37#endif
38
39#ifndef SCXML4CPP_SCXMLREADER_H
41#endif
42
43#ifndef SCXML4CPP_REPLACE_RULES_H
45#endif
46
47#include <list>
48#include <memory>
49#include <string>
50#include <vector>
51
52namespace scxml4cpp {
53
54class StateMachine;
55class State;
56class Action;
57class Activity;
58
64{
65 public:
74
81 ~DOMSCXMLReader() override;
82
83
94 bool read(const std::string& filename,
95 std::list<Action*>* actions,
96 std::list<Activity*>* activities,
97 StateMachine& sm) override;
98
110 bool read(const std::string& input,
111 const std::string& id,
112 std::list<Action*>* actions,
113 std::list<Activity*>* activities,
114 StateMachine& sm) override;
115
116#if 0
117 void addReplaceRule(const ReplaceRules::ElementType elementType,
118 const std::string& srcId,
119 const std::string& dstId);
120#endif
121 void setReplaceRules(const ReplaceRules& replaceRules);
122 void clearReplaceRules();
123
124 const std::vector<std::string>& getWarnings() const;
125 void resetWarnings();
126
127 private:
128 class Impl;
129 std::unique_ptr<Impl> m_impl;
130};
131
132} // namespace scxml4cpp
133
134#endif // SCXML4CPP_DOMSCXMLREADER_H
ReplaceRules header.
SCXMLReader header.
Definition DOMSCXMLReaderImpl.h:62
Definition DOMSCXMLReader.h:64
void setReplaceRules(const ReplaceRules &replaceRules)
Definition DOMSCXMLReaderImpl.cpp:67
const std::vector< std::string > & getWarnings() const
Definition DOMSCXMLReaderImpl.cpp:75
DOMSCXMLReader()
Definition DOMSCXMLReaderImpl.cpp:46
bool read(const std::string &filename, std::list< Action * > *actions, std::list< Activity * > *activities, StateMachine &sm) override
Definition DOMSCXMLReaderImpl.cpp:52
void resetWarnings()
Definition DOMSCXMLReaderImpl.cpp:79
void clearReplaceRules()
Definition DOMSCXMLReaderImpl.cpp:71
Definition ReplaceRules.h:53
ElementType
Definition ReplaceRules.h:55
Definition SCXMLReader.h:50
Definition StateMachine.h:64
Definition Action.cpp:36