stateCreator.h
Go to the documentation of this file.
00001 #ifndef STATE_CREATOR_H
00002 #define STATE_CREATOR_H
00003 
00004 #include "symbolicState.h"
00005 #include <stdio.h>
00006 #include <string>
00007 using std::string;
00008 
00009 namespace continual_planning_executive
00010 {
00011 
00013 
00018     class StateCreator
00019     {
00020         public:
00021             StateCreator() {}
00022             virtual ~StateCreator() {}
00023 
00025             virtual void initialize(const std::deque<std::string> & arguments) {}
00026 
00027             virtual bool fillState(SymbolicState & state) = 0;
00028     };
00029 
00030     inline string makeNamedId(string name, int id)
00031     {
00032         char buf[name.length() + 20];
00033         snprintf(buf, name.length() + 19, "%s%d", name.c_str(), id);
00034         return string(buf);
00035     }
00036 
00037 };
00038 
00039 #endif
00040 


continual_planning_executive
Author(s): Christian Dornhege
autogenerated on Mon Oct 6 2014 07:51:56