include/AsnCheckCmd.H

Go to the documentation of this file.
00001 /* ${copyright}$ */
00002 /* $Id: AsnCheckCmd.H 979 2008-12-15 19:11:45Z eduardo $ */
00007 #ifndef __ASNCHECKCMD_H__
00008 #define __ASNCHECKCMD_H__
00009 
00010 #include "libepp_nicbr.H"
00011 
00012 #include "Command.H"
00013 
00014 LIBEPP_NICBR_NS_BEGIN
00015 
00017 class AsnCheckCmd : public Command
00018 {
00019 public:
00021   AsnCheckCmd(bool reset = true) : Command(false)
00022   {
00023     if (reset) {
00024       this->reset();
00025     }
00026   }
00027 
00029 
00032   void add_asn(const int &asn)
00033   {
00034     _asn_list.push_back(asn);
00035   }
00036 
00038 
00041   list<int> get_asn_list() const
00042   {
00043     return _asn_list;
00044   }
00045 
00046   void reset()
00047   {
00048     Command::reset();
00049     _asn_list.clear();
00050   }
00051 
00052 protected:
00054   list<int> _asn_list;
00055 };
00056 
00057 LIBEPP_NICBR_NS_END
00058 #endif // __ASNCHECKCMD_H__

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