00001 /* ${copyright}$ */ 00002 /* $Id: AsnInfoCmd.H 949 2008-12-10 12:14:03Z rafael $ */ 00007 #ifndef __ASNINFOCMD_H__ 00008 #define __ASNINFOCMD_H__ 00009 00010 #include "libepp_nicbr.H" 00011 00012 #include "Command.H" 00013 00014 LIBEPP_NICBR_NS_BEGIN 00015 00017 class AsnInfoCmd : public Command 00018 { 00019 public: 00021 AsnInfoCmd(bool reset = true) : Command(false) 00022 { 00023 if (reset) { 00024 this->reset(); 00025 } 00026 } 00027 00029 00032 void set_asn(const int asn) 00033 { 00034 _asn = asn; 00035 } 00036 00038 00041 int get_asn() const 00042 { 00043 return _asn; 00044 } 00045 00046 void reset() 00047 { 00048 Command::reset(); 00049 _asn = 0; 00050 } 00051 00052 protected: 00054 int _asn; 00055 }; 00056 00057 LIBEPP_NICBR_NS_END 00058 #endif // __ASNINFOCMD_H__