|
| Ieee80211ConfigureRadioCommandDescriptor () |
|
virtual | ~Ieee80211ConfigureRadioCommandDescriptor () |
|
virtual bool | doesSupport (omnetpp::cObject *obj) const override |
|
virtual const char ** | getPropertyNames () const override |
|
virtual const char * | getProperty (const char *propertyname) const override |
|
virtual int | getFieldCount () const override |
|
virtual const char * | getFieldName (int field) const override |
|
virtual int | findField (const char *fieldName) const override |
|
virtual unsigned int | getFieldTypeFlags (int field) const override |
|
virtual const char * | getFieldTypeString (int field) const override |
|
virtual const char ** | getFieldPropertyNames (int field) const override |
|
virtual const char * | getFieldProperty (int field, const char *propertyname) const override |
|
virtual int | getFieldArraySize (void *object, int field) const override |
|
virtual const char * | getFieldDynamicTypeString (void *object, int field, int i) const override |
|
virtual std::string | getFieldValueAsString (void *object, int field, int i) const override |
|
virtual bool | setFieldValueAsString (void *object, int field, int i, const char *value) const override |
|
virtual const char * | getFieldStructName (int field) const override |
|
virtual void * | getFieldStructValuePointer (void *object, int field, int i) const override |
|
inet::physicallayer::Ieee80211ConfigureRadioCommandDescriptor::Ieee80211ConfigureRadioCommandDescriptor |
( |
| ) |
|
inet::physicallayer::Ieee80211ConfigureRadioCommandDescriptor::~Ieee80211ConfigureRadioCommandDescriptor |
( |
| ) |
|
|
virtual |
bool inet::physicallayer::Ieee80211ConfigureRadioCommandDescriptor::doesSupport |
( |
omnetpp::cObject * |
obj | ) |
const |
|
overridevirtual |
224 return dynamic_cast<Ieee80211ConfigureRadioCommand *
>(obj)!=
nullptr;
int inet::physicallayer::Ieee80211ConfigureRadioCommandDescriptor::findField |
( |
const char * |
fieldName | ) |
const |
|
overridevirtual |
291 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
292 int base = basedesc ? basedesc->getFieldCount() : 0;
293 if (fieldName[0]==
'o' && strcmp(fieldName,
"opMode")==0)
return base+0;
294 if (fieldName[0]==
'm' && strcmp(fieldName,
"modeSet")==0)
return base+1;
295 if (fieldName[0]==
'm' && strcmp(fieldName,
"mode")==0)
return base+2;
296 if (fieldName[0]==
'b' && strcmp(fieldName,
"band")==0)
return base+3;
297 if (fieldName[0]==
'c' && strcmp(fieldName,
"channel")==0)
return base+4;
298 if (fieldName[0]==
'c' && strcmp(fieldName,
"channelNumber")==0)
return base+5;
299 return basedesc ? basedesc->findField(fieldName) : -1;
int inet::physicallayer::Ieee80211ConfigureRadioCommandDescriptor::getFieldArraySize |
( |
void * |
object, |
|
|
int |
field |
|
) |
| const |
|
overridevirtual |
357 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
360 return basedesc->getFieldArraySize(
object, field);
361 field -= basedesc->getFieldCount();
363 Ieee80211ConfigureRadioCommand *pp = (Ieee80211ConfigureRadioCommand *)
object; (void)pp;
int inet::physicallayer::Ieee80211ConfigureRadioCommandDescriptor::getFieldCount |
( |
| ) |
const |
|
overridevirtual |
247 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
248 return basedesc ? 6+basedesc->getFieldCount() : 6;
const char * inet::physicallayer::Ieee80211ConfigureRadioCommandDescriptor::getFieldDynamicTypeString |
( |
void * |
object, |
|
|
int |
field, |
|
|
int |
i |
|
) |
| const |
|
overridevirtual |
371 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
374 return basedesc->getFieldDynamicTypeString(
object,field,i);
375 field -= basedesc->getFieldCount();
377 Ieee80211ConfigureRadioCommand *pp = (Ieee80211ConfigureRadioCommand *)
object; (void)pp;
379 default:
return nullptr;
const char * inet::physicallayer::Ieee80211ConfigureRadioCommandDescriptor::getFieldName |
( |
int |
field | ) |
const |
|
overridevirtual |
272 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
275 return basedesc->getFieldName(field);
276 field -= basedesc->getFieldCount();
278 static const char *fieldNames[] = {
286 return (field>=0 && field<6) ? fieldNames[field] :
nullptr;
const char * inet::physicallayer::Ieee80211ConfigureRadioCommandDescriptor::getFieldProperty |
( |
int |
field, |
|
|
const char * |
propertyname |
|
) |
| const |
|
overridevirtual |
340 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
343 return basedesc->getFieldProperty(field, propertyname);
344 field -= basedesc->getFieldCount();
348 if (!strcmp(propertyname,
"opaque"))
return "";
349 if (!strcmp(propertyname,
"tostring"))
return "$ ? $->getCompleteStringRepresentation() : std::string(\"<nullptr>\")";
351 default:
return nullptr;
const char ** inet::physicallayer::Ieee80211ConfigureRadioCommandDescriptor::getFieldPropertyNames |
( |
int |
field | ) |
const |
|
overridevirtual |
323 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
326 return basedesc->getFieldPropertyNames(field);
327 field -= basedesc->getFieldCount();
331 static const char *names[] = {
"opaque",
"tostring",
nullptr };
334 default:
return nullptr;
const char * inet::physicallayer::Ieee80211ConfigureRadioCommandDescriptor::getFieldStructName |
( |
int |
field | ) |
const |
|
overridevirtual |
421 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
424 return basedesc->getFieldStructName(field);
425 field -= basedesc->getFieldCount();
428 case 1:
return omnetpp::opp_typename(
typeid(Ieee80211ModeSet));
429 case 2:
return omnetpp::opp_typename(
typeid(IIeee80211Mode));
430 case 3:
return omnetpp::opp_typename(
typeid(IIeee80211Band));
431 default:
return nullptr;
void * inet::physicallayer::Ieee80211ConfigureRadioCommandDescriptor::getFieldStructValuePointer |
( |
void * |
object, |
|
|
int |
field, |
|
|
int |
i |
|
) |
| const |
|
overridevirtual |
437 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
440 return basedesc->getFieldStructValuePointer(
object, field, i);
441 field -= basedesc->getFieldCount();
443 Ieee80211ConfigureRadioCommand *pp = (Ieee80211ConfigureRadioCommand *)
object; (void)pp;
445 case 1:
return (
void *)
static_cast<const omnetpp::cObject *
>(pp->getModeSet());
break;
446 case 2:
return (
void *)
static_cast<const omnetpp::cObject *
>(pp->getMode());
break;
447 case 3:
return (
void *)
static_cast<const omnetpp::cObject *
>(pp->getBand());
break;
448 default:
return nullptr;
unsigned int inet::physicallayer::Ieee80211ConfigureRadioCommandDescriptor::getFieldTypeFlags |
( |
int |
field | ) |
const |
|
overridevirtual |
253 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
256 return basedesc->getFieldTypeFlags(field);
257 field -= basedesc->getFieldCount();
259 static unsigned int fieldTypeFlags[] = {
261 FD_ISCOMPOUND | FD_ISPOINTER | FD_ISCOBJECT,
262 FD_ISCOMPOUND | FD_ISPOINTER | FD_ISCOBJECT,
263 FD_ISCOMPOUND | FD_ISPOINTER | FD_ISCOBJECT,
267 return (field>=0 && field<6) ? fieldTypeFlags[field] : 0;
const char * inet::physicallayer::Ieee80211ConfigureRadioCommandDescriptor::getFieldTypeString |
( |
int |
field | ) |
const |
|
overridevirtual |
304 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
307 return basedesc->getFieldTypeString(field);
308 field -= basedesc->getFieldCount();
310 static const char *fieldTypeStrings[] = {
315 "Ieee80211ChannelPtr",
318 return (field>=0 && field<6) ? fieldTypeStrings[field] :
nullptr;
std::string inet::physicallayer::Ieee80211ConfigureRadioCommandDescriptor::getFieldValueAsString |
( |
void * |
object, |
|
|
int |
field, |
|
|
int |
i |
|
) |
| const |
|
overridevirtual |
385 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
388 return basedesc->getFieldValueAsString(
object,field,i);
389 field -= basedesc->getFieldCount();
391 Ieee80211ConfigureRadioCommand *pp = (Ieee80211ConfigureRadioCommand *)
object; (void)pp;
393 case 0:
return oppstring2string(pp->getOpMode());
394 case 1: {std::stringstream out; out << pp->getModeSet();
return out.str();}
395 case 2: {std::stringstream out; out << pp->getMode();
return out.str();}
396 case 3: {std::stringstream out; out << pp->getBand();
return out.str();}
397 case 4:
return pp->getChannel() ? pp->getChannel()->getCompleteStringRepresentation() : std::string(
"<nullptr>");
398 case 5:
return long2string(pp->getChannelNumber());
const char * inet::physicallayer::Ieee80211ConfigureRadioCommandDescriptor::getProperty |
( |
const char * |
propertyname | ) |
const |
|
overridevirtual |
240 if (!strcmp(propertyname,
"existingClass"))
return "";
241 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
242 return basedesc ? basedesc->getProperty(propertyname) :
nullptr;
const char ** inet::physicallayer::Ieee80211ConfigureRadioCommandDescriptor::getPropertyNames |
( |
| ) |
const |
|
overridevirtual |
230 static const char *names[] = {
"existingClass",
nullptr };
231 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
232 const char **basenames = basedesc ? basedesc->getPropertyNames() :
nullptr;
bool inet::physicallayer::Ieee80211ConfigureRadioCommandDescriptor::setFieldValueAsString |
( |
void * |
object, |
|
|
int |
field, |
|
|
int |
i, |
|
|
const char * |
value |
|
) |
| const |
|
overridevirtual |
405 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
408 return basedesc->setFieldValueAsString(
object,field,i,value);
409 field -= basedesc->getFieldCount();
411 Ieee80211ConfigureRadioCommand *pp = (Ieee80211ConfigureRadioCommand *)
object; (void)pp;
413 case 0: pp->setOpMode((value));
return true;
414 case 5: pp->setChannelNumber(string2long(value));
return true;
415 default:
return false;
const char** inet::physicallayer::Ieee80211ConfigureRadioCommandDescriptor::propertynames |
|
mutableprivate |
The documentation for this class was generated from the following file: