00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifdef HAVE_CONFIG_H
00018 #include "config.h"
00019 #endif
00020
00021 #ifndef ACTION_H
00022 #define ACTION_H
00023
00024 #include <vector>
00025 #include <string>
00026 #include <easysoap/SOAP.h>
00027
00028 #include <dalt_client/allowed_sets.h>
00029 #include <dalt_client/entity.h>
00030
00031 using namespace EasySoap;
00032
00033 namespace DALT_Client {
00034
00039 class Action
00040 {
00041 protected:
00043 AllowedSets allowed_sets;
00045 vector<Entity> targets;
00047 int time_cost;
00049 Entity* originator;
00051 SOAPProxy* endpoint;
00052
00053 public:
00055 string name;
00056
00061 Action(string name, SOAPProxy* endpoint, int cost);
00062
00064 virtual ~Action();
00065
00067 void setOriginator(Entity* originator);
00068
00070 void addTarget(Entity& target);
00071
00075 virtual int dispatch();
00076 };
00077 }
00078 #endif