Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

EtherAppRespDescriptor Class Reference

List of all members.

Public Methods

 EtherAppRespDescriptor (void *p=NULL)
virtual ~EtherAppRespDescriptor ()
EtherAppRespDescriptor & operator= (const EtherAppRespDescriptor &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)

Constructor & Destructor Documentation

EtherAppRespDescriptor::EtherAppRespDescriptor void *    p = NULL
 

Definition at line 265 of file EtherApp_m.cc.

Referenced by dup().

00265                                                       : cStructDescriptor(p)
00266 {
00267 }

EtherAppRespDescriptor::~EtherAppRespDescriptor   [virtual]
 

Definition at line 269 of file EtherApp_m.cc.

00270 {
00271 }


Member Function Documentation

virtual cObject* EtherAppRespDescriptor::dup   const [inline, virtual]
 

Definition at line 246 of file EtherApp_m.cc.

References EtherAppRespDescriptor().

00246 {return new EtherAppRespDescriptor(*this);}

int EtherAppRespDescriptor::getArraySize int    field [virtual]
 

Definition at line 312 of file EtherApp_m.cc.

00313 {
00314     EtherAppResp *pp = (EtherAppResp *)p;
00315     switch (field) {
00316         default: return 0;
00317     }
00318 }

bool EtherAppRespDescriptor::getFieldAsString int    field,
int    i,
char *    resultbuf,
int    bufsize
[virtual]
 

Definition at line 320 of file EtherApp_m.cc.

References EtherAppResp::getNumFrames(), and EtherAppResp::getRequestId().

00321 {
00322     EtherAppResp *pp = (EtherAppResp *)p;
00323     switch (field) {
00324         case 0: long2string(pp->getRequestId(),resultbuf,bufsize); return true;
00325         case 1: long2string(pp->getNumFrames(),resultbuf,bufsize); return true;
00326         default: return false;
00327     }
00328 }

int EtherAppRespDescriptor::getFieldCount   [virtual]
 

Definition at line 273 of file EtherApp_m.cc.

00274 {
00275     return 2;
00276 }

const char * EtherAppRespDescriptor::getFieldEnumName int    field [virtual]
 

Definition at line 305 of file EtherApp_m.cc.

00306 {
00307     switch (field) {
00308         default: return NULL;
00309     }
00310 }

const char * EtherAppRespDescriptor::getFieldName int    field [virtual]
 

Definition at line 287 of file EtherApp_m.cc.

00288 {
00289     switch (field) {
00290         case 0: return "requestId";
00291         case 1: return "numFrames";
00292         default: return NULL;
00293     }
00294 }

const char * EtherAppRespDescriptor::getFieldStructName int    field [virtual]
 

Definition at line 340 of file EtherApp_m.cc.

00341 {
00342     switch (field) {
00343         default: return NULL;
00344     }
00345 }

void * EtherAppRespDescriptor::getFieldStructPointer int    field,
int    i
[virtual]
 

Definition at line 347 of file EtherApp_m.cc.

00348 {
00349     EtherAppResp *pp = (EtherAppResp *)p;
00350     switch (field) {
00351         default: return NULL;
00352     }
00353 }

int EtherAppRespDescriptor::getFieldType int    field [virtual]
 

Definition at line 278 of file EtherApp_m.cc.

00279 {
00280     switch (field) {
00281         case 0: return FT_BASIC;
00282         case 1: return FT_BASIC;
00283         default: return FT_INVALID;
00284     }
00285 }

const char * EtherAppRespDescriptor::getFieldTypeString int    field [virtual]
 

Definition at line 296 of file EtherApp_m.cc.

00297 {
00298     switch (field) {
00299         case 0: return "int";
00300         case 1: return "int";
00301         default: return NULL;
00302     }
00303 }

sFieldWrapper * EtherAppRespDescriptor::getFieldWrapper int    field,
int    i
[virtual]
 

Definition at line 355 of file EtherApp_m.cc.

00356 {
00357     return NULL;
00358 }

EtherAppRespDescriptor& EtherAppRespDescriptor::operator= const EtherAppRespDescriptor &    other
 

bool EtherAppRespDescriptor::setFieldAsString int    field,
int    i,
const char *    value
[virtual]
 

Definition at line 330 of file EtherApp_m.cc.

References EtherAppResp::setNumFrames(), and EtherAppResp::setRequestId().

00331 {
00332     EtherAppResp *pp = (EtherAppResp *)p;
00333     switch (field) {
00334         case 0: pp->setRequestId(string2long(value)); return true;
00335         case 1: pp->setNumFrames(string2long(value)); return true;
00336         default: return false;
00337     }
00338 }


The documentation for this class was generated from the following file:
Generated on Sat May 15 20:30:45 2004 for Ethernet by doxygen1.2.17