Inheritance diagram for EtherFrameWithSNAPDescriptor:

Public Methods | |
| EtherFrameWithSNAPDescriptor (void *p=NULL) | |
| virtual | ~EtherFrameWithSNAPDescriptor () |
| EtherFrameWithSNAPDescriptor & | operator= (const EtherFrameWithSNAPDescriptor &other) |
| virtual cObject * | dup () const |
| virtual int | getFieldCount () |
| virtual const char * | getFieldName (int field) |
| virtual int | getFieldType (int field) |
| virtual const char * | getFieldTypeString (int field) |
| virtual const char * | getFieldEnumName (int field) |
| virtual int | getArraySize (int field) |
| virtual bool | getFieldAsString (int field, int i, char *resultbuf, int bufsize) |
| virtual bool | setFieldAsString (int field, int i, const char *value) |
| virtual const char * | getFieldStructName (int field) |
| virtual void * | getFieldStructPointer (int field, int i) |
| virtual sFieldWrapper * | getFieldWrapper (int field, int i) |
|
|
Definition at line 663 of file EtherFrame_m.cc. Referenced by dup().
00663 : EtherFrameDescriptor(p) 00664 { 00665 } |
|
|
Definition at line 667 of file EtherFrame_m.cc.
00668 {
00669 }
|
|
|
Reimplemented from EtherFrameDescriptor. Definition at line 644 of file EtherFrame_m.cc. References EtherFrameWithSNAPDescriptor().
00644 {return new EtherFrameWithSNAPDescriptor(*this);}
|
|
|
Reimplemented from EtherFrameDescriptor. Definition at line 722 of file EtherFrame_m.cc. References EtherFrameDescriptor::getArraySize(), and EtherFrameDescriptor::getFieldCount().
00723 {
00724 if (field < EtherFrameDescriptor::getFieldCount())
00725 return EtherFrameDescriptor::getArraySize(field);
00726 field -= EtherFrameDescriptor::getFieldCount();
00727 EtherFrameWithSNAP *pp = (EtherFrameWithSNAP *)p;
00728 switch (field) {
00729 default: return 0;
00730 }
00731 }
|
|
||||||||||||||||||||
|
Reimplemented from EtherFrameDescriptor. Definition at line 733 of file EtherFrame_m.cc. References EtherFrameDescriptor::getFieldAsString(), EtherFrameDescriptor::getFieldCount(), EtherFrameWithSNAP::getLocalcode(), and EtherFrameWithSNAP::getOrgCode().
00734 {
00735 if (field < EtherFrameDescriptor::getFieldCount())
00736 return EtherFrameDescriptor::getFieldAsString(field,i,resultbuf,bufsize);
00737 field -= EtherFrameDescriptor::getFieldCount();
00738 EtherFrameWithSNAP *pp = (EtherFrameWithSNAP *)p;
00739 switch (field) {
00740 case 0: long2string(pp->getOrgCode(),resultbuf,bufsize); return true;
00741 case 1: long2string(pp->getLocalcode(),resultbuf,bufsize); return true;
00742 default: return false;
00743 }
00744 }
|
|
|
Reimplemented from EtherFrameDescriptor. Definition at line 671 of file EtherFrame_m.cc. References EtherFrameDescriptor::getFieldCount().
00672 {
00673 return EtherFrameDescriptor::getFieldCount() + 2;
00674 }
|
|
|
Reimplemented from EtherFrameDescriptor. Definition at line 712 of file EtherFrame_m.cc. References EtherFrameDescriptor::getFieldCount(), and EtherFrameDescriptor::getFieldEnumName().
00713 {
00714 if (field < EtherFrameDescriptor::getFieldCount())
00715 return EtherFrameDescriptor::getFieldEnumName(field);
00716 field -= EtherFrameDescriptor::getFieldCount();
00717 switch (field) {
00718 default: return NULL;
00719 }
00720 }
|
|
|
Reimplemented from EtherFrameDescriptor. Definition at line 688 of file EtherFrame_m.cc. References EtherFrameDescriptor::getFieldCount(), and EtherFrameDescriptor::getFieldName().
00689 {
00690 if (field < EtherFrameDescriptor::getFieldCount())
00691 return EtherFrameDescriptor::getFieldName(field);
00692 field -= EtherFrameDescriptor::getFieldCount();
00693 switch (field) {
00694 case 0: return "orgCode";
00695 case 1: return "localcode";
00696 default: return NULL;
00697 }
00698 }
|
|
|
Reimplemented from EtherFrameDescriptor. Definition at line 759 of file EtherFrame_m.cc. References EtherFrameDescriptor::getFieldCount(), and EtherFrameDescriptor::getFieldStructName().
00760 {
00761 if (field < EtherFrameDescriptor::getFieldCount())
00762 return EtherFrameDescriptor::getFieldStructName(field);
00763 field -= EtherFrameDescriptor::getFieldCount();
00764 switch (field) {
00765 default: return NULL;
00766 }
00767 }
|
|
||||||||||||
|
Reimplemented from EtherFrameDescriptor. Definition at line 769 of file EtherFrame_m.cc. References EtherFrameDescriptor::getFieldCount(), and EtherFrameDescriptor::getFieldStructPointer().
00770 {
00771 if (field < EtherFrameDescriptor::getFieldCount())
00772 return EtherFrameDescriptor::getFieldStructPointer(field, i);
00773 field -= EtherFrameDescriptor::getFieldCount();
00774 EtherFrameWithSNAP *pp = (EtherFrameWithSNAP *)p;
00775 switch (field) {
00776 default: return NULL;
00777 }
00778 }
|
|
|
Reimplemented from EtherFrameDescriptor. Definition at line 676 of file EtherFrame_m.cc. References EtherFrameDescriptor::getFieldCount(), and EtherFrameDescriptor::getFieldType().
00677 {
00678 if (field < EtherFrameDescriptor::getFieldCount())
00679 return EtherFrameDescriptor::getFieldType(field);
00680 field -= EtherFrameDescriptor::getFieldCount();
00681 switch (field) {
00682 case 0: return FT_BASIC;
00683 case 1: return FT_BASIC;
00684 default: return FT_INVALID;
00685 }
00686 }
|
|
|
Reimplemented from EtherFrameDescriptor. Definition at line 700 of file EtherFrame_m.cc. References EtherFrameDescriptor::getFieldCount(), and EtherFrameDescriptor::getFieldTypeString().
00701 {
00702 if (field < EtherFrameDescriptor::getFieldCount())
00703 return EtherFrameDescriptor::getFieldTypeString(field);
00704 field -= EtherFrameDescriptor::getFieldCount();
00705 switch (field) {
00706 case 0: return "long";
00707 case 1: return "int";
00708 default: return NULL;
00709 }
00710 }
|
|
||||||||||||
|
Reimplemented from EtherFrameDescriptor. Definition at line 780 of file EtherFrame_m.cc.
00781 {
00782 return NULL;
00783 }
|
|
|
|
|
||||||||||||||||
|
Reimplemented from EtherFrameDescriptor. Definition at line 746 of file EtherFrame_m.cc. References EtherFrameDescriptor::getFieldCount(), EtherFrameDescriptor::setFieldAsString(), EtherFrameWithSNAP::setLocalcode(), and EtherFrameWithSNAP::setOrgCode().
00747 {
00748 if (field < EtherFrameDescriptor::getFieldCount())
00749 return EtherFrameDescriptor::setFieldAsString(field,i,value);
00750 field -= EtherFrameDescriptor::getFieldCount();
00751 EtherFrameWithSNAP *pp = (EtherFrameWithSNAP *)p;
00752 switch (field) {
00753 case 0: pp->setOrgCode(string2long(value)); return true;
00754 case 1: pp->setLocalcode(string2long(value)); return true;
00755 default: return false;
00756 }
00757 }
|
1.2.17