eis/inc/dbinc/T_LOV_WAST.h

253 lines
4.6 KiB
C++

// Version: 2016.4.16 10:25:14
#ifndef _T_LOV_WAST_H
#define _T_LOV_WAST_H
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#ifdef _MSC_VER
#pragma warning(disable:4996)
#pragma warning(disable:4267)
#endif
#include "T_LOV_WASTDBAX.h"
class T_LOV_WAST{
friend class T_LOV_WASTDBAX;
private:
//aggregation to DB Class
T_LOV_WASTDBAX db;
public:
//
//A T T R I B U T E S
//===================
//
bool dbAccess;
char* dbMessage;// pointer for the return values of DBAX methodes
char messageBuffer[200];// temporary message buffer
friend class PapLib;
protected:
//
//A T T R I B U T E S
//===================
//
long l_SGCode;
long l_ThickMax;
long l_ThickMin;
double d_Value;
short s_ValueZi;
// arguments for Primary key
long l_k_SGCode;
long l_k_ThickMax;
long l_k_ThickMin;
public:
//
// LTA Structure
struct STR_T_LOV_WAST{
long SGCode;
long ThickMax;
long ThickMin;
double Value;
}structTable;
// LTA Structure Zi
struct STR_T_LOV_WASTZi{
short ValueZi;
}structTableZi;
//
//C O N S T R U C T O R S
//=======================
//
public:
T_LOV_WAST();
//D E S T R U C T O R S
//=======================
//
virtual ~T_LOV_WAST();
//
//C O P Y - C O N S T R U C T O R
//=======================
T_LOV_WAST(const T_LOV_WAST &inst);
// For Constructors with parameters the flag dbAccess
// informs you if the access was successfully or not
T_LOV_WAST( long arg1,long arg2,long arg3);
//methods
public:
char* getCreationTime() {return "2016.4.16 10:25:14";};
//initial data
void initial();
//read data
char* readDB();
//update data
char* updateDB();
//insert data
char* insertDB();
//this methode tries to update a DB record , when the update fails , the methode
//tries an insert of the failed record
char* storeDB();
//delete data
char* deleteDB();
//delete data
char* deleteDB(const char* where , long* count );
//openSetDB data
char* openSetDB(const char* where ,const char* order );
//getSetDB data
char* getSetDB();
//closeSetDB data
char* closeSetDB();
//countDB data
char* countDB(const char* where , long* count );
char* execute(const char* sql , long* count );
char* dbCommit();
char* dbRollback();
public:
//
// public methode setPrimKey
//
// this methode stores the unique key attributes
//
void setPrimKey(long arg1 , long arg2 , long arg3 );
// public methode initInsertKeys
//
// this methode stores the unique key attributes
//
void initInsertKeys( long arg1 , long arg2 , long arg3 );
public:
//
// public methode setKeysFromRecord
//
// this methode set the unique key attributes from the DB Record Attributes
//
void setKeysFromRecord();
//
//O P E R A T O R +
//===================
//
public:
T_LOV_WAST operator+(const T_LOV_WAST &inst) const;
//
//O P E R A T O R =
//===================
//
public:
const T_LOV_WAST& operator=(const T_LOV_WAST &inst);
long SGCode() const;//{
//return((long)l_SGCode );
//}
void set_SGCode( long arg );//{
//l_SGCode = arg;
//return;
//}
long ThickMax() const;//{
//return((long)l_ThickMax );
//}
void set_ThickMax( long arg );//{
//l_ThickMax = arg;
//return;
//}
long ThickMin() const;//{
//return((long)l_ThickMin );
//}
void set_ThickMin( long arg );//{
//l_ThickMin = arg;
//return;
//}
double Value() const;//{
//return((double)d_Value );
//}
short ValueZi() const;//{
//return( s_ValueZi);
//}
void set_Value( double arg );//{
//d_Value = arg;
//s_ValueZi= 0;
//return;
//}
void set_ValueZi( short arg ) ;//{
//s_ValueZi = arg;
//}
public:
// methodes for Primary key
long k_SGCode();//{
//return((long)l_k_SGCode );
//}
void set_k_SGCode( long arg );//{
//l_k_SGCode = arg;
//return;
//}
long k_ThickMax();//{
//return((long)l_k_ThickMax );
//}
void set_k_ThickMax( long arg );//{
//l_k_ThickMax = arg;
//return;
//}
long k_ThickMin();//{
//return((long)l_k_ThickMin );
//}
void set_k_ThickMin( long arg );//{
//l_k_ThickMin = arg;
//return;
//}
public:
//
// public methode fillStructure
//
// this methode filles the classstructue with the private attributes
//
void fillStructure();//{
//}
///////////////////////////////////////////////////
void fillStructureZi();//{
//}
///////////////////////////////////////////////////
void setStructure();// {
//return;
//}
///////////////////////////////////////////////////
void setStructureZi() ;//{
//}
///////////////////////////////////////////////////
char* getName();//{
//return("T_LOV_WAST");
//}
///////////////////////////////////////////////////
long getSqlCode();//{
//return( db.dbSqlCode);
//}
///////////////////////////////////////////////////
long getRowsProcessed();//{
//return( db.dbRowsProcessed);
//}
};
#endif