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

Detailed Description

This class stores the result of the class inherited from CSqlObject into the array.

Since the formation of data is done using functions, the moment of data formation can be much later than expected.

Inheritance diagram for CSqlObjectSnapShot:
CSqlObject

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

Public Member Functions

 CSqlObjectSnapShot (CSqlObject &sqlobject)
 
virtual bool toSqlTable (string &types[][2], string &primaryKeys[])
 Create a table. More...
 
virtual bool toSqlRecord (string &list[][2])
 Forming data for writing to a table. More...
 

Protected Attributes

string snap_types [][2]
 
string snap_primaryKeys []
 
bool snap_table
 
string snap_list [][2]
 
bool snap_record
 

Constructor & Destructor Documentation

◆ CSqlObjectSnapShot()

CSqlObjectSnapShot::CSqlObjectSnapShot ( CSqlObject sqlobject)

Member Function Documentation

◆ toSqlRecord()

virtual bool CSqlObjectSnapShot::toSqlRecord ( string &  list[][2])
virtual

Forming data for writing to a table.

Parameters
[out]list[x][0] = name, [x][1] = data
Returns
True if the data is formed, and otherwise False.

Reimplemented from CSqlObject.

◆ toSqlTable()

virtual bool CSqlObjectSnapShot::toSqlTable ( string &  types[][2],
string &  primaryKeys[] 
)
virtual

Create a table.

Parameters
[out]types[x][0] = name, [x][1] = type
[out]primaryKeyshttps://en.wikipedia.org/wiki/Primary_key
Returns
True if the data is formed, and otherwise False.

Reimplemented from CSqlObject.

Member Data Documentation

◆ snap_list

string CSqlObjectSnapShot::snap_list[][2]
protected

◆ snap_primaryKeys

string CSqlObjectSnapShot::snap_primaryKeys[]
protected

◆ snap_record

bool CSqlObjectSnapShot::snap_record
protected

◆ snap_table

bool CSqlObjectSnapShot::snap_table
protected

◆ snap_types

string CSqlObjectSnapShot::snap_types[][2]
protected