Oct 9, 2009 at 9:47am UTC
I have a problem to understand the following code. Can anybody please help me to understand it.
indication = MediumIndication::IDLE;
catIndication = bb->subscribe(this, &mi, getParentModule()->getId());
catRadioState = bb->subscribe(this, &cs, getParentModule()->getId());
catDroppedPacket = bb->getCategory(&droppedPacket);
Specially, in this "bb->subscribe(this, &mi, getParentModule()->getId());" part.
Thanks in advance.
Oct 9, 2009 at 10:04am UTC
It would help you showed the declarations. Without them we can only guess.
Oct 9, 2009 at 12:55pm UTC
'MediumIndication', 'bb' are two Class, 'mi', 'cs' are object of a class, 'subcribe' is a function, 'getParentModule()', 'getId()' are functions. droppedPacket is also an object of a class. I hope it is now clear to you now. Thanking you.
Oct 9, 2009 at 1:01pm UTC
Still not enough. Plus bb is a pointer to a class.
Oct 9, 2009 at 1:09pm UTC
yes thats right 'bb' is a pointer of a class.