00001 /* ${copyright}$ */ 00002 /* $Id: AsnTransferCmd.H 948 2008-12-09 20:26:54Z rafael $ */ 00007 #ifndef __ASNTRANSFERCMD_H__ 00008 #define __ASNTRANSFERCMD_H__ 00009 00010 #include "libepp_nicbr.H" 00011 00012 #include "Command.H" 00013 00014 LIBEPP_NICBR_NS_BEGIN 00015 00017 class AsnTransferCmd : public Command 00018 { 00019 public: 00021 AsnTransferCmd(bool reset = true) : Command(false) 00022 { 00023 if (reset) { 00024 this->reset(); 00025 } 00026 } 00027 00029 00032 void set_operation(const string &op) 00033 { 00034 _operation = op; 00035 } 00036 00038 00041 string get_operation() const 00042 { 00043 return _operation; 00044 } 00045 00047 00050 void set_asn(const int asn) 00051 { 00052 _asn = asn; 00053 } 00054 00056 00059 int get_asn() const 00060 { 00061 return _asn; 00062 } 00063 00064 void reset() 00065 { 00066 Command::reset(); 00067 _operation = ""; 00068 _asn = 0; 00069 } 00070 00071 protected: 00073 string _operation; 00074 00076 int _asn; 00077 }; 00078 00079 LIBEPP_NICBR_NS_END 00080 #endif // __ASNTRANSFERCMD_H__