rad
2.0.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
INTROOT
sources
scxml4cpp
engine
src
include
scxml4cpp
Action.h
Go to the documentation of this file.
1
/*
2
* scampl4cpp/engine
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: Action.h 1061 2015-07-13 15:03:59Z landolfa $
25
*/
26
27
#ifndef SCXML4CPP_ACTION_H
28
#define SCXML4CPP_ACTION_H
29
30
#ifndef __cplusplus
31
#error This is a C++ include file and cannot be used from plain C
32
#endif
33
34
#include <string>
35
36
namespace
scxml4cpp {
37
38
class
Context
;
39
40
class
Action
41
{
42
43
public
:
44
Action
(
const
std::string&
id
);
45
virtual
~Action
();
46
47
std::string
getId
()
const
;
48
std::string
getParam
()
const
;
49
50
void
setId
(
const
std::string&
id
);
51
void
setParam
(
const
std::string& p);
52
53
virtual
void
execute
(
Context
* c) = 0;
54
virtual
bool
evaluate
(
Context
* c) = 0;
55
56
private
:
57
std::string mId;
58
std::string mParam;
59
60
Action
(
const
Action
&);
61
Action
& operator= (
const
Action
&);
62
};
63
64
}
// namespace scxml4cpp
65
66
#endif // SCXML4CPP_ACTION_H
Context
Definition:
testCoroActivity.cpp:16
scxml4cpp::Action::getId
std::string getId() const
Definition:
Action.cpp:44
scxml4cpp::Action::execute
virtual void execute(Context *c)=0
scxml4cpp::Action::setParam
void setParam(const std::string &p)
Definition:
Action.cpp:62
scxml4cpp::Action::~Action
virtual ~Action()
Definition:
Action.cpp:39
scxml4cpp::Action::evaluate
virtual bool evaluate(Context *c)=0
scxml4cpp::Action::Action
Action(const std::string &id)
Definition:
Action.cpp:33
scxml4cpp::Action::setId
void setId(const std::string &id)
Definition:
Action.cpp:56
scxml4cpp::Action::getParam
std::string getParam() const
Definition:
Action.cpp:50
Generated by
1.8.5