11#define UniParameter_H 1
#define ClassDef(name, id)
TString GetParameterName()
get parameter name of the current parameter
int SetParameterName(TString parameter_name)
set parameter name of the current parameter
void Print()
print information about current parameter
bool GetIsArray()
get is array of the current parameter
static int CheckParameterExists(TString parameter_name)
check parameter exists in the database: 1- true, 0 - false, <0 - database operation error
UniConnection * connectionDB
connection to the database
static int DeleteParameter(int parameter_id)
delete parameter from the database
int i_parameter_type
parameter type
UniParameter(UniConnection *db_connect, int parameter_id, TString parameter_name, int parameter_type, bool is_array)
static int DeleteParameter(TString parameter_name)
delete parameter from the database
static int CheckParameterExists(int parameter_id)
check parameter exists in the database: 1- true, 0 - false, <0 - database operation error
static int PrintAll()
print all parameters
static UniParameter * GetParameter(TString parameter_name)
get parameter from the database
int SetIsArray(bool is_array)
set is array of the current parameter
int GetParameterId()
get parameter id of the current parameter
int i_parameter_id
parameter id
int SetParameterType(int parameter_type)
set parameter type of the current parameter
static bool CheckAndGetParameterID(TSQLServer *db_server, TString parameter_name, enumValueType enum_parameter_type, int ¶meter_id)
int GetParameterType()
get parameter type of the current parameter
static UniParameter * GetParameter(int parameter_id)
get parameter from the database
TString str_parameter_name
parameter name
static UniParameter * CreateParameter(TString parameter_name, int parameter_type, bool is_array)
add new parameter to the database