VoicemanProtocol Class Reference

The VoiceMan protocol implementation. More...

List of all members.

Public Member Functions

void process (const std::wstring &s, Client &client)
 Parses command string received from the client.
 VoicemanProtocol (AbstractProtocolHandler &handler)
 The constructor.
 ~VoicemanProtocol ()
 The destructor.


Detailed Description

This is the main class to parse data received from a client and convert it to sequence of commands for handling class. Handling class must implement AbstractProtocolHandler interface and each command is sent as corresponding method call. The Client object the line was received from must be provided.

See also:
AbstractProtocolHandler ProtocolHandler

Constructor & Destructor Documentation

VoicemanProtocol::VoicemanProtocol ( AbstractProtocolHandler handler  )  [inline]

Parameters:
[in] handler The reference to parsed data handling object


Member Function Documentation

void VoicemanProtocol::process ( const std::wstring &  s,
Client client 
)

Each complete line of data received from client must be processed with this method. It parses command and its parameters and invokes handling method in handling class.

Parameters:
[in] s The string to parse
[in] client The reference to the client object the string was received from


Generated on Mon Jun 28 08:07:04 2010 for VoiceMan by  doxygen 1.5.9