solarpowerlog trunk
CConnectDummy Class Reference

#include <CConnectDummy.h>

Inheritance diagram for CConnectDummy:
Collaboration diagram for CConnectDummy:

List of all members.

Public Member Functions

virtual ~CConnectDummy ()
virtual bool Connect (ICommand *)
virtual bool Disconnect (ICommand *)
 Tear down the connection.
virtual bool Send (const char *, unsigned int, ICommand *=NULL)
 Send a array of characters (can be used as binary transport, too)
virtual bool Receive (ICommand *)
virtual bool CheckConfig (void)
virtual void _main (void)

Protected Member Functions

 CConnectDummy (const string &configurationname)

Friends

class IConnectFactory

Detailed Description

This is a dummy connection class which only fills the gap if

  • the instanciator does not need comms but the base class wants a instance. (e.g datafilters)

Definition at line 46 of file CConnectDummy.h.


Constructor & Destructor Documentation

CConnectDummy::CConnectDummy ( const string &  configurationname) [protected]

Definition at line 42 of file CConnectDummy.cpp.

CConnectDummy::~CConnectDummy ( ) [virtual]

Definition at line 47 of file CConnectDummy.cpp.


Member Function Documentation

virtual void CConnectDummy::_main ( void  ) [inline, virtual]

function of the thread.

Note:
: if overridden, the overriding function has to call this one right before exiting!

Reimplemented from IConnect.

Definition at line 71 of file CConnectDummy.h.

bool CConnectDummy::CheckConfig ( void  ) [virtual]

Check the configuration for validty. Retrurn false on config errors. (program will abort then!)

Implements IConnect.

Definition at line 51 of file CConnectDummy.cpp.

virtual bool CConnectDummy::Connect ( ICommand ) [inline, virtual]

Connect to something NOTE: Needed to be overriden! ALWAYS Open in a NON_BLOCK way, or implement a worker thread

Implements IConnect.

Definition at line 57 of file CConnectDummy.h.

virtual bool CConnectDummy::Disconnect ( ICommand ) [inline, virtual]

Tear down the connection.

Implements IConnect.

Definition at line 59 of file CConnectDummy.h.

virtual bool CConnectDummy::Receive ( ICommand ) [inline, virtual]

Send a strin Standard implementation only wraps to above Send.

Receive a string. Do now get more than maxxsize (-1 == no limit) NOTE:

Implements IConnect.

Definition at line 67 of file CConnectDummy.h.

virtual bool CConnectDummy::Send ( const char *  ,
unsigned int  ,
ICommand = NULL 
) [inline, virtual]

Send a array of characters (can be used as binary transport, too)

Implements IConnect.

Definition at line 62 of file CConnectDummy.h.


Friends And Related Function Documentation

friend class IConnectFactory [friend]

Definition at line 49 of file CConnectDummy.h.


The documentation for this class was generated from the following files: