rad  3.0.0
SCXMLReader.h
Go to the documentation of this file.
1 /*
2  * scampl4cpp/parser
3  *
4  * Copyright by European Southern Observatory, 2012
5  * All rights reserved
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
20  * 02111-1307 USA.
21  */
22 
23 /*
24  * $Id: SCXMLReader.h 1061 2015-07-13 15:03:59Z landolfa $
25  */
26 
27 #ifndef SCXML4CPP_SCXMLREADER_H
28 #define SCXML4CPP_SCXMLREADER_H
29 
30 #include <string>
31 #include <istream>
32 #include <sstream>
33 #include <list>
34 
35 namespace scxml4cpp {
36 
37 class StateMachine;
38 class Action;
39 class Activity;
40 
42 {
43  public:
44  virtual ~SCXMLReader() {}
45 
46  virtual bool read(const std::string& filename,
47  std::list<Action*>* actions,
48  std::list<Activity*>* activities,
49  StateMachine& sm) = 0;
50 
51  virtual bool read(const std::string& input,
52  const std::string& id,
53  std::list<Action*>* actions,
54  std::list<Activity*>* activities,
55  StateMachine& sm) = 0;
56 #if 0
57  virtual bool read(std::istream& input,
58  const std::string& id,
59  std::list<Action*>* actions,
60  std::list<Activity*>* activities,
61  StateMachine& sm) = 0;
62 #endif
63 };
64 
65 } // namespace scxml4cpp
66 
67 #endif // SCXML4CPP_SCXMLREADER_H
scxml4cpp
Definition: Action.h:36
scxml4cpp::SCXMLReader
Definition: SCXMLReader.h:42
scxml4cpp::SCXMLReader::~SCXMLReader
virtual ~SCXMLReader()
Definition: SCXMLReader.h:44
scxml4cpp::SCXMLReader::read
virtual bool read(const std::string &filename, std::list< Action * > *actions, std::list< Activity * > *activities, StateMachine &sm)=0
scxml4cpp::StateMachine
Definition: StateMachine.h:45
scxml4cpp::SCXMLReader::read
virtual bool read(const std::string &input, const std::string &id, std::list< Action * > *actions, std::list< Activity * > *activities, StateMachine &sm)=0