include/AsnRenewCmd.H

Go to the documentation of this file.
00001 /* ${copyright}$ */
00002 /* $Id: AsnRenewCmd.H 972 2008-12-12 10:30:52Z rafael $ */
00007 #ifndef __ASNRENEWCMD_H__
00008 #define __ASNRENEWCMD_H__
00009 
00010 #include <string>
00011 
00012 #include "libepp_nicbr.H"
00013 
00014 #include "Command.H"
00015 #include "RegistrationPeriod.H"
00016 
00017 using std::string;
00018 
00019 LIBEPP_NICBR_NS_BEGIN
00020 
00022 class AsnRenewCmd : public Command
00023 {
00024 public:
00026   AsnRenewCmd(bool reset = true) : Command(false)
00027   {
00028     if (reset) {
00029       this->reset();
00030     }
00031   }
00032 
00034 
00037   void set_asn(const int asn)
00038   {
00039     _asn = asn;
00040   }
00041 
00043 
00046   int get_asn() const
00047   {
00048     return _asn;
00049   }
00050 
00052 
00055   void set_expDate(const string &expDate)
00056   {
00057     _expDate = expDate;
00058   }
00059 
00061 
00064   string get_expDate() const
00065   {
00066     return _expDate;
00067   }
00068 
00070 
00074   void set_period(const int &time, const string &unit)
00075   {
00076     _period.time = time;
00077     _period.unit = unit;
00078   }
00079 
00081 
00084   RegistrationPeriod get_period() const
00085   {
00086     return _period;
00087   }
00088 
00089   void reset()
00090   {
00091     Command::reset();
00092     _asn = 0;
00093     _expDate = "";
00094     _period.time = 0;
00095     _period.unit = "";
00096   }
00097 
00098 protected:
00100   int _asn;
00101 
00103   string _expDate;
00104 
00106   RegistrationPeriod _period;
00107 };
00108 
00109 LIBEPP_NICBR_NS_END
00110 #endif // __ASNRENEWCMD_H__

Generated on Tue Mar 17 16:03:07 2009 for libepp_nicbr by  doxygen 1.4.7