1 /*
2  *  cAction.h
3  *  Avida
4  *
5  *  Created by David on 4/8/06.
6  *  Copyright 1999-2011 Michigan State University. All rights reserved.
7  *
8  *
9  *  This file is part of Avida.
10  *
11  *  Avida is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
12  *  as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
13  *
14  *  Avida is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
16  *
17  *  You should have received a copy of the GNU Lesser General Public License along with Avida.
18  *  If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef cAction_h
23 #define cAction_h
24 
25 #include "cString.h"
26 
27 class cAvidaContext;
28 class cWorld;
29 
30 class cAction
31 {
32 private:
33   cAction();  // @not_implemented
34   cAction(const cAction&); // @not_implemented
35   cAction& operator=(const cAction&); // @not_implemented
36 
37 protected:
38   cWorld* m_world;
39   cString m_args;
40 
41 public:
cAction(cWorld * world,const cString & args)42   cAction(cWorld* world, const cString& args) : m_world(world), m_args(args) { ; }
~cAction()43   virtual ~cAction() { ; }
44 
GetArgs()45   const cString& GetArgs() const { return m_args; }
46 
47   virtual void Process(cAvidaContext& ctx) = 0;
48 };
49 
50 #endif
51