Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

VTQL::CQModul Class Reference

Base class for all moduls, that handle queries. More...

#include <vtql_query.h>

Inheritance diagram for VTQL::CQModul:

VTQL::CModul thread::CallBack::CBFunct VTQL::QM_PageAlevt VTQL::QM_PageL VTQL::QM_Stations List of all members.

Public Methods

virtual ~CQModul ()
 CQModul (Query_generic &query_con, const std::string &command)
 Send a command to a connection. More...

virtual bool Wait (bool=true)
 wait for this command to complete. More...


Public Attributes

QMError_flag error_flag
 Command status flag.


Protected Methods

virtual void Handle (const Arg &p)=0
 Handle the command output. More...


Detailed Description

Base class for all moduls, that handle queries.

This class tries to abstrct form all the server error handling and makes sure, that a child class only gets a callback, if the server answers successfully to the query of the child.


Constructor & Destructor Documentation

VTQL::CQModul::CQModul Query_generic   query_con,
const std::string &    command
 

Send a command to a connection.

It puts the command only into the output queue. Call Wait(bool) to try to send it. Of cource we care about the ID stuff.

Parameters:
query_con  Connection where you want to query.
command  The command you want to be executed, without newline.


Member Function Documentation

virtual bool VTQL::CQModul::Wait bool    = true [virtual]
 

wait for this command to complete.

Call this function to wait until this command has completed, blocking or nonblocking.

Parameters:
b  if false, test if it is completed and return nonblocking, if true, wait for completion
Returns:
true if the command was recieved, false otherwise

Reimplemented from VTQL::CModul.

virtual void VTQL::CQModul::Handle const Arg &    p [protected, pure virtual]
 

Handle the command output.

This mathod gets called, if the server responds to your query sucessfully. You get a call for every output line.

Parameters:
p  Pair of int (line number, starting with 1) and string (line content)


The documentation for this class was generated from the following file:
Generated on Sun Apr 14 17:37:04 2002 for libvtql by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002