MQL language

Overview

The MQL language interface consists of three functions, each of which differs from the others only in the kind of input it takes:

  • mqlExecuteFile takes a the name of a file
  • mqlExecuteStream takes a descendant of std::istream
  • mqlExecuteString takes a std::string

Arguments

The following are the other arguments, common to them all:

C++ interface


#include <mql_execute.h>

extern bool mqlExecuteFile(MQLExecEnv *pEE, 
                             std::string filename, 
                             bool& bResult, 
                             bool bPrintResult, 
                             bool bReportError);

extern bool mqlExecuteStream(MQLExecEnv *pEE, 
                               std::istream& strin, 
                               bool& bResult, 
                               bool bPrintResult, 
                               bool bReportError);

extern bool mqlExecuteString(MQLExecEnv *pEE, 
                               const std::string& input, 
                               bool& bResult, 
                               bool bPrintResult, 
                               bool bReportError);


Previous:MQL Error
Up:Part II: APIs
Next:Monads