TPProto::ProtocolLayer Class Reference

Central lower layer class. More...

#include <protocollayer.h>

List of all members.

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.
FrameCodecgetFrameCodec () const
 Gets the FrameCodec.
FrameFactorygetFrameFactory () const
 Gets the FrameFactory.
FrameBuildergetFrameBuilder () const
 Gets the FrameBuilder.


Detailed Description

Central lower layer class.

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.


Constructor & Destructor Documentation

TPProto::ProtocolLayer::ProtocolLayer (  ) 

Constructs object and sets up defaults.

Defaults are


Member Function Documentation

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.

Parameters:
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.

Parameters:
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.

Parameters:
fb The FrameBuilder, or NULL.

FrameCodec * TPProto::ProtocolLayer::getFrameCodec (  )  const

Gets the FrameCodec.

Returns:
The FrameCodec.

FrameFactory * TPProto::ProtocolLayer::getFrameFactory (  )  const

Gets the FrameFactory.

Returns:
The FrameFactory.

FrameBuilder * TPProto::ProtocolLayer::getFrameBuilder (  )  const

Gets the FrameBuilder.

Returns:
The FrameBuilder.


The documentation for this class was generated from the following files:
Generated on Thu Nov 20 12:45:43 2008 for libtpproto-cpp by  doxygen 1.5.1