charon-core  0.3.1
WhileGroup.h
Go to the documentation of this file.
1 /* Copyright (C) 2012 Gerald Mwangi
2 
3  This file is part of Charon.
4 
5  Charon is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  Charon is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with Charon. If not, see <http://www.gnu.org/licenses/>.
17 */
24 #ifndef _WHILEGROUP_H_
25 #define _WHILEGROUP_H_
26 
27 #ifdef _MSC_VER
28 #ifdef whilegroup_EXPORTS
29 #define whilegroup_DECLDIR __declspec(dllexport)
31 #else
32 #define whilegroup_DECLDIR __declspec(dllimport)
33 #endif /*Export or import*/
34 #else
35 #define whilegroup_DECLDIR
37 #endif
38 
39 #include "ParameteredGroupObject.h"
40 
41 
43 
45 class StatementIntf;
46 
48 public:
51  WhileGroup(const std::string& name = "");
52 
53  void initializeGroup();
54 
55  virtual void initializeWhileGroup();
56 
57  InputSlot<bool> statement;
58 
60  void executeGroup();
61 private:
62  StatementIntf* _innerWhilestatement;
63 
64 };
65 
66 
67 
68 #endif /* _WHILEGROUP_H_ */
#define whilegroup_DECLDIR
Not needed without MSVC.
Definition: WhileGroup.h:36
virtual void executeGroup()
Execution.
virtual void initializeGroup()
Group Initialization.