|
Library for MQL5 (MetaTrader) with support for Spark
|
MLPDataFile = CSV in a binary format.
The byte order is Little-Endian.
Format:
Public Member Functions | |
| CMLPDataFile () | |
| ~CMLPDataFile () | |
| int | initWrite (const int file, const int nin, const int nout) |
| int | initWrite (const int file, const int nin, const int nout, const string &_header[]) |
| int | initWriteValidation (const int file, const int nin, const int nout) |
| int | initWriteValidation (const int file, const int nin, const int nout, const string &_header[]) |
| int | initRead (const int file, int &nin, int &nout) |
| int | initReadValidation (const int file, int &nin, int &nout) |
| uint | write (const double &data[]) |
| uint | write (const CRowDouble &data) |
| uint | writeAll (const CMatrixDouble &data) |
| uint | read (double &data[], int &size) |
| uint | readAll (CMatrixDouble &data, const bool append=false) |
| void | flush () |
| void | close () |
Static Public Member Functions | |
| static void | convert (const CRowDouble &data, double &array[]) |
| static bool | convertToCsv (const int file, const bool validation=false, const string delimiter=";") |
Public Attributes | |
| int | handleFile |
| string | path |
| string | header [] |
Protected Member Functions | |
| int | initWrite0 (const string file, const int nin, const int nout, const string &_header[]) |
| int | initRead0 (const string file, int &nin, int &nout) |
| CMLPDataFile::CMLPDataFile | ( | ) |
| CMLPDataFile::~CMLPDataFile | ( | ) |
| void CMLPDataFile::close | ( | ) |
|
static |
|
static |
| void CMLPDataFile::flush | ( | ) |
| int CMLPDataFile::initRead | ( | const int | file, |
| int & | nin, | ||
| int & | nout | ||
| ) |
| file | number of file | |
| [out] | nin | NIn |
| [out] | nout | NOut |
|
protected |
| file | path of file | |
| [out] | nin | NIn |
| [out] | nout | NOut |
| int CMLPDataFile::initReadValidation | ( | const int | file, |
| int & | nin, | ||
| int & | nout | ||
| ) |
| file | number of file | |
| [out] | nin | NIn |
| [out] | nout | NOut |
| int CMLPDataFile::initWrite | ( | const int | file, |
| const int | nin, | ||
| const int | nout | ||
| ) |
| file | number of file | |
| [in] | nin | NIn |
| [in] | nout | NOut |
| int CMLPDataFile::initWrite | ( | const int | file, |
| const int | nin, | ||
| const int | nout, | ||
| const string & | _header[] | ||
| ) |
| file | number of file | |
| [in] | nin | NIn |
| [in] | nout | NOut |
| [in] | _header |
|
protected |
| file | path of file | |
| [in] | nin | NIn |
| [in] | nout | NOut |
| [in] | _header |
| int CMLPDataFile::initWriteValidation | ( | const int | file, |
| const int | nin, | ||
| const int | nout | ||
| ) |
| file | number of file | |
| [in] | nin | NIn |
| [in] | nout | NOut |
| int CMLPDataFile::initWriteValidation | ( | const int | file, |
| const int | nin, | ||
| const int | nout, | ||
| const string & | _header[] | ||
| ) |
| file | number of file | |
| [in] | nin | NIn |
| [in] | nout | NOut |
| [in] | _header |
| uint CMLPDataFile::read | ( | double & | data[], |
| int & | size | ||
| ) |
| uint CMLPDataFile::readAll | ( | CMatrixDouble & | data, |
| const bool | append = false |
||
| ) |
| uint CMLPDataFile::write | ( | const double & | data[] | ) |
| uint CMLPDataFile::write | ( | const CRowDouble & | data | ) |
| uint CMLPDataFile::writeAll | ( | const CMatrixDouble & | data | ) |
| int CMLPDataFile::handleFile |
| string CMLPDataFile::header[] |
| string CMLPDataFile::path |