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

EtherAppReqDescriptor Class Reference

List of all members.

Public Methods

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

EtherAppReqDescriptor::EtherAppReqDescriptor void *    p = NULL
 

Definition at line 94 of file EtherApp_m.cc.

Referenced by dup().

00094                                                     : cStructDescriptor(p)
00095 {
00096 }

EtherAppReqDescriptor::~EtherAppReqDescriptor   [virtual]
 

Definition at line 98 of file EtherApp_m.cc.

00099 {
00100 }


Member Function Documentation

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

Definition at line 75 of file EtherApp_m.cc.

References EtherAppReqDescriptor().

00075 {return new EtherAppReqDescriptor(*this);}

int EtherAppReqDescriptor::getArraySize int    field [virtual]
 

Definition at line 141 of file EtherApp_m.cc.

00142 {
00143     EtherAppReq *pp = (EtherAppReq *)p;
00144     switch (field) {
00145         default: return 0;
00146     }
00147 }

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

Definition at line 149 of file EtherApp_m.cc.

References EtherAppReq::getRequestId(), and EtherAppReq::getResponseBytes().

00150 {
00151     EtherAppReq *pp = (EtherAppReq *)p;
00152     switch (field) {
00153         case 0: long2string(pp->getRequestId(),resultbuf,bufsize); return true;
00154         case 1: long2string(pp->getResponseBytes(),resultbuf,bufsize); return true;
00155         default: return false;
00156     }
00157 }

int EtherAppReqDescriptor::getFieldCount   [virtual]
 

Definition at line 102 of file EtherApp_m.cc.

00103 {
00104     return 2;
00105 }

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

Definition at line 134 of file EtherApp_m.cc.

00135 {
00136     switch (field) {
00137         default: return NULL;
00138     }
00139 }

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

Definition at line 116 of file EtherApp_m.cc.

00117 {
00118     switch (field) {
00119         case 0: return "requestId";
00120         case 1: return "responseBytes";
00121         default: return NULL;
00122     }
00123 }

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

Definition at line 169 of file EtherApp_m.cc.

00170 {
00171     switch (field) {
00172         default: return NULL;
00173     }
00174 }

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

Definition at line 176 of file EtherApp_m.cc.

00177 {
00178     EtherAppReq *pp = (EtherAppReq *)p;
00179     switch (field) {
00180         default: return NULL;
00181     }
00182 }

int EtherAppReqDescriptor::getFieldType int    field [virtual]
 

Definition at line 107 of file EtherApp_m.cc.

00108 {
00109     switch (field) {
00110         case 0: return FT_BASIC;
00111         case 1: return FT_BASIC;
00112         default: return FT_INVALID;
00113     }
00114 }

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

Definition at line 125 of file EtherApp_m.cc.

00126 {
00127     switch (field) {
00128         case 0: return "long";
00129         case 1: return "long";
00130         default: return NULL;
00131     }
00132 }

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

Definition at line 184 of file EtherApp_m.cc.

00185 {
00186     return NULL;
00187 }

EtherAppReqDescriptor& EtherAppReqDescriptor::operator= const EtherAppReqDescriptor &    other
 

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

Definition at line 159 of file EtherApp_m.cc.

References EtherAppReq::setRequestId(), and EtherAppReq::setResponseBytes().

00160 {
00161     EtherAppReq *pp = (EtherAppReq *)p;
00162     switch (field) {
00163         case 0: pp->setRequestId(string2long(value)); return true;
00164         case 1: pp->setResponseBytes(string2long(value)); return true;
00165         default: return false;
00166     }
00167 }


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