1: 
   2: 
   3: /**********************
   4: *                     *
   5: *  COMPILER INCLUDES  *
   6: *                     *
   7: **********************/
   8: 
   9: 
  10: #include <cassert> 
  11: 
  12: 
  13: /*********************
  14: *                    *
  15: *  PROJECT INCLUDES  *
  16: *                    *
  17: *********************/
  18: 
  19: 
  20: #include "am.h" 
  21: #include "dnsutil.h" 
  22: #include "label.h" 
  23: 
  24: 
  25: /***********************
  26: *                      *
  27: *  LABEL CONSTRUCTORS  *
  28: *                      *
  29: ***********************/
  30: 
  31: 
  32: Label::Label(unsigned short i_usLength, const char *ci_str) {
  33:   AMCTOR(Label);
  34:   m_str = NULL;
  35:   this->Set(i_usLength,ci_str);
  36: }
  37: 
  38: 
  39: Label::Label(const Label &ci_lbr) {
  40:   AMCTOR(Label);
  41:   m_str = NULL;
  42:   this->Set(ci_lbr.m_usLength,ci_lbr.m_str);
  43: }
  44: 
  45: 
  46: /*********************
  47: *                    *
  48: *  LABEL DESTRUCTOR  *
  49: *                    *
  50: *********************/
  51: 
  52: 
  53: Label::~Label() {
  54:   AMDTOR(Label);
  55:   SoftDeleteArray(m_str);
  56: }
  57: 
  58: 
  59: