rad 6.2.0
Loading...
Searching...
No Matches
SCXMLReader.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_SCXMLREADER_H
33#define SCXML4CPP_SCXMLREADER_H
34
35#include <string>
36#include <istream>
37#include <sstream>
38#include <list>
39
40namespace scxml4cpp {
41
42class StateMachine;
43class Action;
44class Activity;
45
50{
51 public:
52 virtual ~SCXMLReader() = default;
53
62 virtual bool read(const std::string& filename,
63 std::list<Action*>* actions,
64 std::list<Activity*>* activities,
65 StateMachine& sm) = 0;
66
76 virtual bool read(const std::string& input,
77 const std::string& id,
78 std::list<Action*>* actions,
79 std::list<Activity*>* activities,
80 StateMachine& sm) = 0;
81
82#if 0
83 virtual bool read(std::istream& input,
84 const std::string& id,
85 std::list<Action*>* actions,
86 std::list<Activity*>* activities,
87 StateMachine& sm) = 0;
88#endif
89};
90
91} // namespace scxml4cpp
92
93#endif // SCXML4CPP_SCXMLREADER_H
Definition SCXMLReader.h:50
virtual bool read(const std::string &filename, std::list< Action * > *actions, std::list< Activity * > *activities, StateMachine &sm)=0
virtual ~SCXMLReader()=default
virtual bool read(const std::string &input, const std::string &id, std::list< Action * > *actions, std::list< Activity * > *activities, StateMachine &sm)=0
Definition StateMachine.h:64
Definition Action.cpp:36