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.
Here 'MediumIndication', is a Class, 'mi', 'cs' are object of a class, 'subcribe' is a function, 'getParentModule()', 'getId()' are functions. droppedPacket is also an object of a class. 'bb' is a pointer to a class. I hope it is now clear to you.
Thanks in advance.