Inheritance diagram for EtherFrameDescriptor:

Public Methods | |
| EtherFrameDescriptor (void *p=NULL) | |
| virtual | ~EtherFrameDescriptor () |
| EtherFrameDescriptor & | operator= (const EtherFrameDescriptor &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 92 of file EtherFrame_m.cc. Referenced by dup().
00092 : cStructDescriptor(p)
00093 {
00094 }
|
|
|
Definition at line 96 of file EtherFrame_m.cc.
00097 {
00098 }
|
|
|
Reimplemented in EthernetIIFrameDescriptor, EtherFrameWithLLCDescriptor, EtherFrameWithSNAPDescriptor, and EtherPauseFrameDescriptor. Definition at line 73 of file EtherFrame_m.cc. References EtherFrameDescriptor().
00073 {return new EtherFrameDescriptor(*this);}
|
|
|
Reimplemented in EthernetIIFrameDescriptor, EtherFrameWithLLCDescriptor, EtherFrameWithSNAPDescriptor, and EtherPauseFrameDescriptor. Definition at line 139 of file EtherFrame_m.cc. Referenced by EtherPauseFrameDescriptor::getArraySize(), EtherFrameWithSNAPDescriptor::getArraySize(), EtherFrameWithLLCDescriptor::getArraySize(), and EthernetIIFrameDescriptor::getArraySize().
00140 {
00141 EtherFrame *pp = (EtherFrame *)p;
00142 switch (field) {
00143 default: return 0;
00144 }
00145 }
|
|
||||||||||||||||||||
|
Reimplemented in EthernetIIFrameDescriptor, EtherFrameWithLLCDescriptor, EtherFrameWithSNAPDescriptor, and EtherPauseFrameDescriptor. Definition at line 147 of file EtherFrame_m.cc. References EtherFrame::getDest(), and EtherFrame::getSrc(). Referenced by EtherPauseFrameDescriptor::getFieldAsString(), EtherFrameWithSNAPDescriptor::getFieldAsString(), EtherFrameWithLLCDescriptor::getFieldAsString(), and EthernetIIFrameDescriptor::getFieldAsString().
00148 {
00149 EtherFrame *pp = (EtherFrame *)p;
00150 switch (field) {
00151 case 0: {std::stringstream out; out << pp->getDest(); opp_strprettytrunc(resultbuf,out.str().c_str(),bufsize-1); return true;}
00152 case 1: {std::stringstream out; out << pp->getSrc(); opp_strprettytrunc(resultbuf,out.str().c_str(),bufsize-1); return true;}
00153 default: return false;
00154 }
00155 }
|
|
|
|
Reimplemented in EthernetIIFrameDescriptor, EtherFrameWithLLCDescriptor, EtherFrameWithSNAPDescriptor, and EtherPauseFrameDescriptor. Definition at line 132 of file EtherFrame_m.cc. Referenced by EtherPauseFrameDescriptor::getFieldEnumName(), EtherFrameWithSNAPDescriptor::getFieldEnumName(), EtherFrameWithLLCDescriptor::getFieldEnumName(), and EthernetIIFrameDescriptor::getFieldEnumName().
00133 {
00134 switch (field) {
00135 default: return NULL;
00136 }
00137 }
|
|
|
Reimplemented in EthernetIIFrameDescriptor, EtherFrameWithLLCDescriptor, EtherFrameWithSNAPDescriptor, and EtherPauseFrameDescriptor. Definition at line 114 of file EtherFrame_m.cc. Referenced by EtherPauseFrameDescriptor::getFieldName(), EtherFrameWithSNAPDescriptor::getFieldName(), EtherFrameWithLLCDescriptor::getFieldName(), and EthernetIIFrameDescriptor::getFieldName().
00115 {
00116 switch (field) {
00117 case 0: return "dest";
00118 case 1: return "src";
00119 default: return NULL;
00120 }
00121 }
|
|
|
Reimplemented in EthernetIIFrameDescriptor, EtherFrameWithLLCDescriptor, EtherFrameWithSNAPDescriptor, and EtherPauseFrameDescriptor. Definition at line 167 of file EtherFrame_m.cc. Referenced by EtherPauseFrameDescriptor::getFieldStructName(), EtherFrameWithSNAPDescriptor::getFieldStructName(), EtherFrameWithLLCDescriptor::getFieldStructName(), and EthernetIIFrameDescriptor::getFieldStructName().
00168 {
00169 switch (field) {
00170 case 0: return "MACAddress"; break;
00171 case 1: return "MACAddress"; break;
00172 default: return NULL;
00173 }
00174 }
|
|
||||||||||||
|
Reimplemented in EthernetIIFrameDescriptor, EtherFrameWithLLCDescriptor, EtherFrameWithSNAPDescriptor, and EtherPauseFrameDescriptor. Definition at line 176 of file EtherFrame_m.cc. References EtherFrame::getDest(), and EtherFrame::getSrc(). Referenced by EtherPauseFrameDescriptor::getFieldStructPointer(), EtherFrameWithSNAPDescriptor::getFieldStructPointer(), EtherFrameWithLLCDescriptor::getFieldStructPointer(), and EthernetIIFrameDescriptor::getFieldStructPointer().
00177 {
00178 EtherFrame *pp = (EtherFrame *)p;
00179 switch (field) {
00180 case 0: return (void *)&pp->getDest(); break;
00181 case 1: return (void *)&pp->getSrc(); break;
00182 default: return NULL;
00183 }
00184 }
|
|
|
Reimplemented in EthernetIIFrameDescriptor, EtherFrameWithLLCDescriptor, EtherFrameWithSNAPDescriptor, and EtherPauseFrameDescriptor. Definition at line 105 of file EtherFrame_m.cc. Referenced by EtherPauseFrameDescriptor::getFieldType(), EtherFrameWithSNAPDescriptor::getFieldType(), EtherFrameWithLLCDescriptor::getFieldType(), and EthernetIIFrameDescriptor::getFieldType().
00106 {
00107 switch (field) {
00108 case 0: return FT_STRUCT;
00109 case 1: return FT_STRUCT;
00110 default: return FT_INVALID;
00111 }
00112 }
|
|
|
Reimplemented in EthernetIIFrameDescriptor, EtherFrameWithLLCDescriptor, EtherFrameWithSNAPDescriptor, and EtherPauseFrameDescriptor. Definition at line 123 of file EtherFrame_m.cc. Referenced by EtherPauseFrameDescriptor::getFieldTypeString(), EtherFrameWithSNAPDescriptor::getFieldTypeString(), EtherFrameWithLLCDescriptor::getFieldTypeString(), and EthernetIIFrameDescriptor::getFieldTypeString().
00124 {
00125 switch (field) {
00126 case 0: return "MACAddress";
00127 case 1: return "MACAddress";
00128 default: return NULL;
00129 }
00130 }
|
|
||||||||||||
|
Reimplemented in EthernetIIFrameDescriptor, EtherFrameWithLLCDescriptor, EtherFrameWithSNAPDescriptor, and EtherPauseFrameDescriptor. Definition at line 186 of file EtherFrame_m.cc.
00187 {
00188 return NULL;
00189 }
|
|
|
|
|
||||||||||||||||
|
Reimplemented in EthernetIIFrameDescriptor, EtherFrameWithLLCDescriptor, EtherFrameWithSNAPDescriptor, and EtherPauseFrameDescriptor. Definition at line 157 of file EtherFrame_m.cc. Referenced by EtherPauseFrameDescriptor::setFieldAsString(), EtherFrameWithSNAPDescriptor::setFieldAsString(), EtherFrameWithLLCDescriptor::setFieldAsString(), and EthernetIIFrameDescriptor::setFieldAsString().
00158 {
00159 EtherFrame *pp = (EtherFrame *)p;
00160 switch (field) {
00161 case 0: return false;
00162 case 1: return false;
00163 default: return false;
00164 }
00165 }
|
1.2.17