#include <protocollayer.h>
Public Member Functions | |
| ProtocolLayer () | |
| Constructs object and sets up defaults. | |
| ~ProtocolLayer () | |
| Destructor, deletes contained objects. | |
| void | setFrameCodec (FrameCodec *fc) |
| Sets the FrameCodec Deletes the previous FrameCodec if any. If NULL is passed in, the default FrameCodec is created. | |
| void | setFrameFactory (FrameFactory *ff) |
| Sets the FrameFactory Deletes the previous FrameFactory if any. If NULL is passed in, the default FrameFactory is created. | |
| void | setFrameBuilder (FrameBuilder *fb) |
| Sets the FrameBuilder Deletes the previous FrameBuilder if any. If NULL is passed in, the default FrameBuilder is created. | |
| FrameCodec * | getFrameCodec () const |
| Gets the FrameCodec. | |
| FrameFactory * | getFrameFactory () const |
| Gets the FrameFactory. | |
| FrameBuilder * | getFrameBuilder () const |
| Gets the FrameBuilder. | |
The ProtocolLayer class centrally holds the pointers to the FrameCodec, FrameBuilder and FrameFactory. This class is then referenced by the three classes and provides access to them as necessary.
| TPProto::ProtocolLayer::ProtocolLayer | ( | ) |
Constructs object and sets up defaults.
Defaults are
| void TPProto::ProtocolLayer::setFrameCodec | ( | FrameCodec * | fc | ) |
Sets the FrameCodec Deletes the previous FrameCodec if any. If NULL is passed in, the default FrameCodec is created.
| fc | The FrameCodec, or NULL. |
| void TPProto::ProtocolLayer::setFrameFactory | ( | FrameFactory * | ff | ) |
Sets the FrameFactory Deletes the previous FrameFactory if any. If NULL is passed in, the default FrameFactory is created.
| ff | The FrameFactory, or NULL. |
| void TPProto::ProtocolLayer::setFrameBuilder | ( | FrameBuilder * | fb | ) |
Sets the FrameBuilder Deletes the previous FrameBuilder if any. If NULL is passed in, the default FrameBuilder is created.
| fb | The FrameBuilder, or NULL. |
| FrameCodec * TPProto::ProtocolLayer::getFrameCodec | ( | ) | const |
| FrameFactory * TPProto::ProtocolLayer::getFrameFactory | ( | ) | const |
| FrameBuilder * TPProto::ProtocolLayer::getFrameBuilder | ( | ) | const |
1.5.1