Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

action.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           action.h  -  description
00003                              -------------------
00004     begin                : Mon Dec 3 2001
00005     copyright            : (C) 2001 by Vlad Mereuta
00006     email                : dizzy@deity.fsnet.co.uk
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
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

Generated at Thu Jan 31 15:20:07 2002 for DALT Client by doxygen1.2.8 written by Dimitri van Heesch, © 1997-2001