From OpenSCADAWiki
Revision as of 17:38, 26 October 2017 by FuzzyBot (Talk | contribs) (Importing a new version from external source)
External functions
To the library included range of external functions of the object TSYS of OpenSCADA core to make simply and unified of the internal operations range:
- int64_t curTime( ); — Current time in microseconds from the Unix epoch (01.01.1970).
- string int2str( int val ); — Conversion of the signed integer to string, into the decimal representing.
- string uint2str( unsigned val ); — Conversion of the unsigned integer to string, into the decimal representing.
- string ll2str( int64_t val ); — Conversion of the signed long integer (64bit) to string, into the decimal representing.
- string real2str( double val, int prec = 15, char tp = 'g' ); — Conversion of the real value in double precision with precision prec of signs and type tp to string.
- string strParse( const string &path, int level, const string &sep, int *off = NULL, bool mergeSepSymb = false ); — String path parsing to the components, which separated by sep, in single symbols merging mergeSepSymb, starting from the offset off and with control to the item's offset end in self.
- string strMess( const char *fmt, ... ); — String forming by template fmt and the arguments. Base on "printf" implemented.