Statement

Overview

The Statement class is the base class for all MQL statements. It contains the MQLResult object associated with each execution of a statement.

When executing more than one statement at a time in a single call to EmdrosEnv::executeXXX or mqlExecuteXXX, only the results from the last statement executed are available afterwards. Executing more than one query is mostly used when parsing the output from the mql(1) program.

Example

You can get to the results of an MQL statement via the following path:

  pEE->getStatement()->getResult(); // pEE is the EmdrosEnv environment

C++ interface


#include <mql_types.h>

// Base class for all statements
class Statement {
public:
  MQLResult* getResult();
};



Previous:Monads
Up:Part II: APIs
Next:Table