00001 #ifndef agwsTRANSFER_H
00002 #define agwsTRANSFER_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __cplusplus
00019 #error This is a C++ include file and cannot be used from plain C
00020 #endif
00021
00022 #include "agws.h"
00023 #include "agwsSTATE.h"
00024 #include "evhOBJ_CALLBACK.h"
00025 #include "evhCOMMAND.h"
00026
00027 class agwsTRANSFER : public evhCOMMAND
00028 {
00029 public:
00030 agwsTRANSFER(const dbSYMADDRESS dbPoint,
00031 const dbATTRIBUTE targetName = NULL);
00032 ccsCOMPL_STAT Target(const dbATTRIBUTE targetName);
00033 ccsCOMPL_STAT Send(const msgCMD cmd, const char *buffer,
00034 vltINT32 startState, vltINT32 endState);
00035
00036 virtual ccsCOMPL_STAT Reset();
00037 const char *GetTarget() const;
00038
00039 protected:
00040 int _ReplyCB(msgMESSAGE &msg, void *udata);
00041 int _ErrReplyCB(msgMESSAGE &msg, void *udata);
00042 int _TimeoutCB(msgMESSAGE &msg, void *udata);
00043
00044 private:
00045 agwsSTATE state;
00046 char targetName[32];
00047 vltINT32 endState;
00048 static vltINT32 numOfCmdsActive;
00049 };
00050
00051 #endif // !agwsTRANSFER_H
00052
00053