gSAFE  1.3.8
Classes | Macros | Functions
datalib

Classes

class  HBase
 
class  HCharHash
 
class  HCheck
 
class  HConnect
 
class  HDataChangeLogger
 
class  HDataField
 
class  HDataFieldRole
 
class  HDate
 
class  HDynTable
 
class  HDynTableElement
 
class  HDynTableSqlConnector
 
class  HFloating
 
class  HFloatTables
 
class  HFloatTablesAsHList
 
class  HKey
 
class  HLargeText
 
class  HList
 
class  HNumber
 
class  HNumHash
 
class  HPlainDataMatrix
 
class  HRefreshAgent
 
class  HRefreshAgentNetclient
 
class  HRefreshAgentNetserver
 
class  HSmallText
 
class  HSqlChoose
 
class  HSqlHandler
 
class  HSqlInterface
 
class  HSqlSingleInterface
 
class  HSqlSingleInterface_MysqlLin
 
class  HSqlSingleInterface_MysqlOdbcWin
 
class  HSqlSingleInterface_PostgresqlLin
 
class  HSqlSingleInterface_PsqlOdbcWin
 
class  HSqlSingleInterface_SqliteLin
 
class  HSqlSingleInterface_SqliteWin
 
class  HStatic
 
class  HTable
 
class  HTableBase
 
class  HTimestamp
 
class  HXmlWriter
 

Macros

#define FLOATTABLES_STS_ALIVE   1
 
#define FLOATTABLES_STS_CANCELLED   4
 
#define FLOATTABLES_STS_DELETED   3
 
#define FLOATTABLES_STS_NEW   2
 
#define FLOATTABLES_STS_UNDEF   0
 
#define GSAFE_VERSION   "1.3.8"
 
#define HASHMUL   1.5
 
#define HDYNELEMENT_DOUBLE   1
 
#define HDYNELEMENT_STRING   0
 
#define HEAD   true
 
#define INNER_JOIN   0
 
#define LEFT_OUTER_JOIN   1
 
#define MAX_SQL_INTERFACES   7
 
#define MODULE_REFRESHAGENT_NETCLIENT   1
 
#define MODULE_REFRESHAGENT_NETSERVER   1
 
#define PROGRESS_POSSIBILITY   1
 
#define REFRESHAGENT_TCPPORT   1234
 
#define ROUND_FLOOR   1
 
#define ROUND_MATH   0
 
#define VALUE   false
 

Functions

int charcodehash (const char *c)
 
QString convNationalToHtmlCodes (QString input)
 
QStringList * deep_copy_stringlist (QStringList *target, QStringList *source)
 
QString doubleToQString (double val, int min, int max, int group)
 
int dropchar (const char *c)
 
double dRound (double val, int mode=ROUND_MATH)
 
void error (QString s)
 
int getIndexOf (QStringList l, QString s)
 
int my_dtoa (double v, char *buffer, int bufflen, int min, int max, int group)
 
int nullhash (const char *c)
 
void setErrorLocal (QString s)
 

Detailed Description

Macro Definition Documentation

#define GSAFE_VERSION   "1.3.8"

The version of gsafe

Definition at line 39 of file datalib.h.

#define HASHMUL   1.5

This multiplier is used in HSqlChoose. It is determine the over allocation of the hash table. If the multiplier is bigger, it will be less collision but will use more memory. Must be greater than 1.0.

Definition at line 55 of file datalib.h.

Function Documentation

QStringList* deep_copy_stringlist ( QStringList *  target,
QStringList *  source 
)

Deepcopy a stringlist to another

Definition at line 54 of file datalib.cpp.

QString doubleToQString ( double  val,
int  min,
int  max,
int  group 
)

Converts a double value to QString. It uses the my_dtoa function inside.

See Also
my_dtoa

Definition at line 273 of file datalib.cpp.

double dRound ( double  val,
int  mode = ROUND_MATH 
)

Round a double value.

Parameters
valthe value to round
modethe round mode. Can be ROUND_MATH or ROUND_FLOOR

Definition at line 286 of file datalib.cpp.

void error ( QString  s)

Pops up an error message with QMessageBox. You can call this function everywhere in the program. (It blocks the execution)

Parameters
sthe error string

Definition at line 37 of file datalib.cpp.

int my_dtoa ( double  v,
char *  buffer,
int  bufflen,
int  min,
int  max,
int  group 
)

Converts a double value to char * string

Parameters
vthe double value to convert
bufferthe buffer wehre the string is written
bufflenthe size of the buffer. (limits the max length of converted string)
minspecified the minimum displayed decimal digit fragments.
maxspecified the maximum displayed decimal digit fragments.
groupthe displayed digits will be groupped by three digit. (if group==1 means "2334455.34" displayed "2 334 455.45" )
Returns
1 if the buffer is smaller size than needed, 0 otherwise

Definition at line 109 of file datalib.cpp.