#include <vtql_query.h>
Inheritance diagram for VTQL::Query_generic:
Public Methods | |
virtual | ~Query_generic () |
Query_generic (const std::string &file_name) | |
Open a connection to a server. More... | |
Query_generic (const sock::Socket_basic &s) | |
Open a connection to a server (advanced). More... | |
virtual bool | Process (bool block) |
This method gets called the query moduls. More... | |
virtual Connect & | operator<< (const std::string &s) |
size_t | LatestWriteID () const |
Get the command ID of the latest command, you put with operator<<(const std::string). | |
size_t | LatestReadID () const |
Get the command ID of the latest processed command. More... |
Usually you do only care about make an instance of this class and pass it to the query moduls. The only non-trivial aspect of this class is, that it gives any command an ID and you get the ID of an command output, so that you can easily identify the output of your command. This is done by the CQModul class.
|
Open a connection to a server. As you may suspect, this connection has to be either in query or connection mode.
|
|
Open a connection to a server (advanced). If you have an file descriptor and it is connected to a server, you can use this constructor. As you may suspect, this connection has to be either in query or connection mode.
|
|
This method gets called the query moduls. This method handles the incomming data and sends anything in the output queue. It calls the callback, where the argument pair is
Implements VTQL::Connect. |
|
Get the command ID of the latest processed command. It is already set before the callbacks ar called, so you can find out, which ID the current line has. |