#include <vtql_base.h>
Inheritance diagram for VTQL::CModul:
Public Methods | |
virtual | ~CModul () |
Removes the modul form callback list of the connection. | |
CModul (const CModul &) | |
CModul (Connect &connection) | |
Inserts this modul into the callback list. More... | |
virtual bool | Wait (bool block=true) |
Wait for (some kind of) completion of the command. More... | |
virtual void | operator() (const Arg &p)=0 |
this function gets called at every server output line (callback). More... | |
Protected Methods | |
void | StopCB () |
Exclude this instance from callback list. | |
void | StartCB () |
Add this instance into callback list. | |
void | Start_Query (const std::string &line) |
Send command to server. More... |
This class hides all the wired things of Connect, such as the Callback interface and the Connect::Process(bool) method. Its whole lifetime it is in the callback list, i.e. it gets called on every input line the method Connect::Process(bool) emits.
|
|
|
Inserts this modul into the callback list.
|
|
Wait for (some kind of) completion of the command. You can either wait (i.e. blocking) or just check for completion (i.e. nonblocking).
Reimplemented in VTQL::CEModul. |
|
this function gets called at every server output line (callback). In detail, the Connection::Process(bool) funtion should call back it, unless you did not remove it from the callback list with StopCB(). The hard thing is to find out which are the output lines, you need. It is a good idea to exclude yourself from callback if the command output has been recieved via the StopCB() method. Use the class CQModul for queries and configuration commands and use the class CEModul for event commands, since they solve a lot of trouble you may have with this base class :-)
Implements thread::CallBack::CBFunct. |
|
Send command to server. It puts the command into the output queue of the connection. It does not try to send it to the server; call e.g. Wait(false) to do so.
|