|
solarpowerlog trunk
|
#include <CConnectDummy.h>


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 |
This is a dummy connection class which only fills the gap if
Definition at line 46 of file CConnectDummy.h.
| 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.
| virtual void CConnectDummy::_main | ( | void | ) | [inline, virtual] |
function of the thread.
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] |
| 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.
friend class IConnectFactory [friend] |
Definition at line 49 of file CConnectDummy.h.