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

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

Public Member Functions

 CSerialization ()
 
 CSerialization (string path, bool write=false, bool common=true)
 
 ~CSerialization ()
 
void close ()
 
int init (bool write=false, string path="", bool common=true)
 
int readType ()
 
int read (CSerializationRead &out)
 
uint writeType (int type)
 
uint writeNumber (long number, ENUM_SERIALIZATION_TYPE type=SERIALIZATION_INT)
 
uint writeDouble (double number, ENUM_SERIALIZATION_TYPE type=SERIALIZATION_DOUBLE)
 
template<typename T >
uint writeArray (const T &array[])
 
uint writeString (string str)
 
uint writeStringArray (const string &array[])
 
template<typename T >
uint writeStruct (const T &Struct)
 
template<typename T >
uint writeStructArray (const T &array[])
 

Static Public Member Functions

static ENUM_SERIALIZATION_TYPE getSerialType (string nametype)
 typename() не возвращает "array", "class", "struct", "enum" More...
 

Public Attributes

int SerialHandle
 

Constructor & Destructor Documentation

◆ CSerialization() [1/2]

CSerialization::CSerialization ( )

◆ CSerialization() [2/2]

CSerialization::CSerialization ( string  path,
bool  write = false,
bool  common = true 
)

◆ ~CSerialization()

CSerialization::~CSerialization ( )

Member Function Documentation

◆ close()

void CSerialization::close ( )

◆ getSerialType()

static ENUM_SERIALIZATION_TYPE CSerialization::getSerialType ( string  nametype)
static

typename() не возвращает "array", "class", "struct", "enum"

◆ init()

int CSerialization::init ( bool  write = false,
string  path = "",
bool  common = true 
)

◆ read()

int CSerialization::read ( CSerializationRead out)

◆ readType()

int CSerialization::readType ( )

◆ writeArray()

template<typename T >
uint CSerialization::writeArray ( const T &  array[])

◆ writeDouble()

uint CSerialization::writeDouble ( double  number,
ENUM_SERIALIZATION_TYPE  type = SERIALIZATION_DOUBLE 
)

◆ writeNumber()

uint CSerialization::writeNumber ( long  number,
ENUM_SERIALIZATION_TYPE  type = SERIALIZATION_INT 
)

◆ writeString()

uint CSerialization::writeString ( string  str)

◆ writeStringArray()

uint CSerialization::writeStringArray ( const string &  array[])

◆ writeStruct()

template<typename T >
uint CSerialization::writeStruct ( const T &  Struct)

◆ writeStructArray()

template<typename T >
uint CSerialization::writeStructArray ( const T &  array[])

◆ writeType()

uint CSerialization::writeType ( int  type)

Member Data Documentation

◆ SerialHandle

int CSerialization::SerialHandle