rad 6.2.0
Loading...
Searching...
No Matches
ExecutableContent.h
Go to the documentation of this file.
1
10/*
11 * scampl4cpp/engine
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_EXECUTABLECONTENT_H
33#define SCXML4CPP_EXECUTABLECONTENT_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 ACTION_H
40#include "scxml4cpp/Action.h"
41#endif
42
43#ifdef CONTEXT_H
44#include "scxml4cpp/Context.h"
45#endif
46
47#include <list>
48
49namespace scxml4cpp {
50
57{
58 public:
63
68
72 std::list<Action*>& getActions();
73
82 void addAction(Action* a);
83
88 void execute(Context* c);
89
96 bool evaluate(Context* c);
97
98 private:
99 std::list<Action*> mActions;
100
102 ExecutableContent& operator= (const ExecutableContent&);
103
104};
105
106} // namespace scxml4cpp
107
108#endif // SCXML4CPP_EXECUTABLECONTENT_H
Action header.
Context header.
Definition Action.h:66
Definition Context.h:58
Definition ExecutableContent.h:57
~ExecutableContent()
Definition ExecutableContent.cpp:43
void addAction(Action *a)
Definition ExecutableContent.cpp:54
bool evaluate(Context *c)
Definition ExecutableContent.cpp:83
ExecutableContent()
Definition ExecutableContent.cpp:38
std::list< Action * > & getActions()
Definition ExecutableContent.cpp:48
void execute(Context *c)
Definition ExecutableContent.cpp:68
Definition Action.cpp:36