|
| Ieee80211TransmissionRequestDescriptor () |
|
virtual | ~Ieee80211TransmissionRequestDescriptor () |
|
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::Ieee80211TransmissionRequestDescriptor::Ieee80211TransmissionRequestDescriptor |
( |
| ) |
|
inet::physicallayer::Ieee80211TransmissionRequestDescriptor::~Ieee80211TransmissionRequestDescriptor |
( |
| ) |
|
|
virtual |
const char ** propertynames
Definition: Ieee80211ControlInfoDescr.cc:455
bool inet::physicallayer::Ieee80211TransmissionRequestDescriptor::doesSupport |
( |
omnetpp::cObject * |
obj | ) |
const |
|
overridevirtual |
494 return dynamic_cast<Ieee80211TransmissionRequest *
>(obj)!=
nullptr;
int inet::physicallayer::Ieee80211TransmissionRequestDescriptor::findField |
( |
const char * |
fieldName | ) |
const |
|
overridevirtual |
555 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
556 int base = basedesc ? basedesc->getFieldCount() : 0;
557 if (fieldName[0]==
'm' && strcmp(fieldName,
"mode")==0)
return base+0;
558 if (fieldName[0]==
'c' && strcmp(fieldName,
"channelNumber")==0)
return base+1;
559 if (fieldName[0]==
'c' && strcmp(fieldName,
"channel")==0)
return base+2;
560 return basedesc ? basedesc->findField(fieldName) : -1;
int inet::physicallayer::Ieee80211TransmissionRequestDescriptor::getFieldArraySize |
( |
void * |
object, |
|
|
int |
field |
|
) |
| const |
|
overridevirtual |
615 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
618 return basedesc->getFieldArraySize(
object, field);
619 field -= basedesc->getFieldCount();
621 Ieee80211TransmissionRequest *pp = (Ieee80211TransmissionRequest *)
object; (void)pp;
virtual int getFieldCount() const override
Definition: Ieee80211ControlInfoDescr.cc:515
int inet::physicallayer::Ieee80211TransmissionRequestDescriptor::getFieldCount |
( |
| ) |
const |
|
overridevirtual |
517 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
518 return basedesc ? 3+basedesc->getFieldCount() : 3;
const char * inet::physicallayer::Ieee80211TransmissionRequestDescriptor::getFieldDynamicTypeString |
( |
void * |
object, |
|
|
int |
field, |
|
|
int |
i |
|
) |
| const |
|
overridevirtual |
629 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
632 return basedesc->getFieldDynamicTypeString(
object,field,i);
633 field -= basedesc->getFieldCount();
635 Ieee80211TransmissionRequest *pp = (Ieee80211TransmissionRequest *)
object; (void)pp;
637 default:
return nullptr;
virtual int getFieldCount() const override
Definition: Ieee80211ControlInfoDescr.cc:515
const char * inet::physicallayer::Ieee80211TransmissionRequestDescriptor::getFieldName |
( |
int |
field | ) |
const |
|
overridevirtual |
539 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
542 return basedesc->getFieldName(field);
543 field -= basedesc->getFieldCount();
545 static const char *fieldNames[] = {
550 return (field>=0 && field<3) ? fieldNames[field] :
nullptr;
virtual int getFieldCount() const override
Definition: Ieee80211ControlInfoDescr.cc:515
const char * inet::physicallayer::Ieee80211TransmissionRequestDescriptor::getFieldProperty |
( |
int |
field, |
|
|
const char * |
propertyname |
|
) |
| const |
|
overridevirtual |
598 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
601 return basedesc->getFieldProperty(field, propertyname);
602 field -= basedesc->getFieldCount();
606 if (!strcmp(propertyname,
"opaque"))
return "";
607 if (!strcmp(propertyname,
"tostring"))
return "$ ? $->getCompleteStringRepresentation() : std::string(\"<nullptr>\")";
609 default:
return nullptr;
virtual int getFieldCount() const override
Definition: Ieee80211ControlInfoDescr.cc:515
const char ** inet::physicallayer::Ieee80211TransmissionRequestDescriptor::getFieldPropertyNames |
( |
int |
field | ) |
const |
|
overridevirtual |
581 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
584 return basedesc->getFieldPropertyNames(field);
585 field -= basedesc->getFieldCount();
589 static const char *names[] = {
"opaque",
"tostring",
nullptr };
592 default:
return nullptr;
virtual int getFieldCount() const override
Definition: Ieee80211ControlInfoDescr.cc:515
const char * inet::physicallayer::Ieee80211TransmissionRequestDescriptor::getFieldStructName |
( |
int |
field | ) |
const |
|
overridevirtual |
675 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
678 return basedesc->getFieldStructName(field);
679 field -= basedesc->getFieldCount();
682 case 0:
return omnetpp::opp_typename(
typeid(IIeee80211Mode));
683 default:
return nullptr;
virtual int getFieldCount() const override
Definition: Ieee80211ControlInfoDescr.cc:515
void * inet::physicallayer::Ieee80211TransmissionRequestDescriptor::getFieldStructValuePointer |
( |
void * |
object, |
|
|
int |
field, |
|
|
int |
i |
|
) |
| const |
|
overridevirtual |
689 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
692 return basedesc->getFieldStructValuePointer(
object, field, i);
693 field -= basedesc->getFieldCount();
695 Ieee80211TransmissionRequest *pp = (Ieee80211TransmissionRequest *)
object; (void)pp;
697 case 0:
return (
void *)
static_cast<const omnetpp::cObject *
>(pp->getMode());
break;
698 default:
return nullptr;
virtual int getFieldCount() const override
Definition: Ieee80211ControlInfoDescr.cc:515
unsigned int inet::physicallayer::Ieee80211TransmissionRequestDescriptor::getFieldTypeFlags |
( |
int |
field | ) |
const |
|
overridevirtual |
523 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
526 return basedesc->getFieldTypeFlags(field);
527 field -= basedesc->getFieldCount();
529 static unsigned int fieldTypeFlags[] = {
530 FD_ISCOMPOUND | FD_ISPOINTER | FD_ISCOBJECT,
534 return (field>=0 && field<3) ? fieldTypeFlags[field] : 0;
virtual int getFieldCount() const override
Definition: Ieee80211ControlInfoDescr.cc:515
const char * inet::physicallayer::Ieee80211TransmissionRequestDescriptor::getFieldTypeString |
( |
int |
field | ) |
const |
|
overridevirtual |
565 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
568 return basedesc->getFieldTypeString(field);
569 field -= basedesc->getFieldCount();
571 static const char *fieldTypeStrings[] = {
574 "Ieee80211ChannelPtr",
576 return (field>=0 && field<3) ? fieldTypeStrings[field] :
nullptr;
virtual int getFieldCount() const override
Definition: Ieee80211ControlInfoDescr.cc:515
std::string inet::physicallayer::Ieee80211TransmissionRequestDescriptor::getFieldValueAsString |
( |
void * |
object, |
|
|
int |
field, |
|
|
int |
i |
|
) |
| const |
|
overridevirtual |
643 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
646 return basedesc->getFieldValueAsString(
object,field,i);
647 field -= basedesc->getFieldCount();
649 Ieee80211TransmissionRequest *pp = (Ieee80211TransmissionRequest *)
object; (void)pp;
651 case 0: {std::stringstream out; out << pp->getMode();
return out.str();}
652 case 1:
return long2string(pp->getChannelNumber());
653 case 2:
return pp->getChannel() ? pp->getChannel()->getCompleteStringRepresentation() : std::string(
"<nullptr>");
virtual int getFieldCount() const override
Definition: Ieee80211ControlInfoDescr.cc:515
const char * inet::physicallayer::Ieee80211TransmissionRequestDescriptor::getProperty |
( |
const char * |
propertyname | ) |
const |
|
overridevirtual |
510 if (!strcmp(propertyname,
"existingClass"))
return "";
511 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
512 return basedesc ? basedesc->getProperty(propertyname) :
nullptr;
const char ** inet::physicallayer::Ieee80211TransmissionRequestDescriptor::getPropertyNames |
( |
| ) |
const |
|
overridevirtual |
500 static const char *names[] = {
"existingClass",
nullptr };
501 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
502 const char **basenames = basedesc ? basedesc->getPropertyNames() :
nullptr;
const char ** propertynames
Definition: Ieee80211ControlInfoDescr.cc:455
bool inet::physicallayer::Ieee80211TransmissionRequestDescriptor::setFieldValueAsString |
( |
void * |
object, |
|
|
int |
field, |
|
|
int |
i, |
|
|
const char * |
value |
|
) |
| const |
|
overridevirtual |
660 omnetpp::cClassDescriptor *basedesc = getBaseClassDescriptor();
663 return basedesc->setFieldValueAsString(
object,field,i,value);
664 field -= basedesc->getFieldCount();
666 Ieee80211TransmissionRequest *pp = (Ieee80211TransmissionRequest *)
object; (void)pp;
668 case 1: pp->setChannelNumber(string2long(value));
return true;
669 default:
return false;
virtual int getFieldCount() const override
Definition: Ieee80211ControlInfoDescr.cc:515
const char** inet::physicallayer::Ieee80211TransmissionRequestDescriptor::propertynames |
|
mutableprivate |
The documentation for this class was generated from the following file: