Fork me on GitHub
Library for MQL5 (MetaTrader) with support for Spark
CCsvFile Class Reference

Detailed Description

Write data to a file format CSV.

TODO inherit from CSqlFile.


The documentation for this class was generated from the following file:

Public Member Functions

int getHandle ()
 
string getFileName ()
 
string getTable ()
 
void setTable (string _table)
 
string getSchema ()
 
void setSchema (string _schema)
 
 CCsvFile ()
 
 CCsvFile (string _table, bool _append, string _schema="forex", string _filesuffix="")
 
bool createFile (string _table, bool _append, string _schema="forex", string _filesuffix="")
 
 ~CCsvFile ()
 
void close ()
 
bool createTable (CSqlObject &sqlobject)
 
bool insert (CSqlObject &sqlobject)
 

Protected Attributes

int hcsv
 
string table
 
string schema
 
string filename
 

Constructor & Destructor Documentation

◆ CCsvFile() [1/2]

CCsvFile::CCsvFile ( )

◆ CCsvFile() [2/2]

CCsvFile::CCsvFile ( string  _table,
bool  _append,
string  _schema = "forex",
string  _filesuffix = "" 
)

◆ ~CCsvFile()

CCsvFile::~CCsvFile ( )

Member Function Documentation

◆ close()

void CCsvFile::close ( )

◆ createFile()

bool CCsvFile::createFile ( string  _table,
bool  _append,
string  _schema = "forex",
string  _filesuffix = "" 
)

◆ createTable()

bool CCsvFile::createTable ( CSqlObject sqlobject)

◆ getFileName()

string CCsvFile::getFileName ( )

◆ getHandle()

int CCsvFile::getHandle ( )

◆ getSchema()

string CCsvFile::getSchema ( )

◆ getTable()

string CCsvFile::getTable ( )

◆ insert()

bool CCsvFile::insert ( CSqlObject sqlobject)

◆ setSchema()

void CCsvFile::setSchema ( string  _schema)

◆ setTable()

void CCsvFile::setTable ( string  _table)

Member Data Documentation

◆ filename

string CCsvFile::filename
protected

◆ hcsv

int CCsvFile::hcsv
protected

◆ schema

string CCsvFile::schema
protected

◆ table

string CCsvFile::table
protected