#include <SHReport.h>
Inheritance diagram for SH::Report:
Public Types | |
typedef const char *const | ID |
Public Member Functions | |
Report () | |
virtual | ~Report () |
void | ref () |
void | unref () |
virtual bool | isA (ID id) const |
virtual void | dump (ostream &ostr) const |
Static Public Attributes | |
ID | Id |
Friends | |
ostream & | operator<< (ostream &ostr, const Report &report) |
|
Use this type to distinguish objects of this class from its siblings. |
|
|
|
|
|
This function is called by the operator<< and must be overloaded by all child classes. Reimplemented in MNRTCPPacket, MNRTCPPacket_SR, MNRTCPPacket_RR, MNRTCPPacket_APP, and MNRTCPPacket_SDES.
|
|
Find out whether an object that is of class Report or one of its childs classes is of the given type ID or not. The inheritance tree is traversed, so the test for Report::Id should always yield true. |
|
|
|
|
|
|
|
Store the name of this class in this variable. Use this variable as a parameter to the function isA, to find out whether a report is of a certain type of not.
Reimplemented in MNRTCPPacket, MNRTCPPacket_SR, MNRTCPPacket_RR, MNRTCPPacket_APP, and MNRTCPPacket_SDES.
|