eis/inc/dbinc/T_SET_DATA.h

796 lines
13 KiB
C++

// Version: 2021.10.26 13:49:23
#ifndef _T_SET_DATA_H
#define _T_SET_DATA_H
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#ifdef _MSC_VER
#pragma warning(disable:4996)
#pragma warning(disable:4267)
#endif
#include "T_SET_DATADBAX.h"
class T_SET_DATA{
friend class T_SET_DATADBAX;
private:
//aggregation to DB Class
T_SET_DATADBAX 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
//===================
//
char c_ENTID[24+1];
char c_EXTID[24+1];
double d_DUMMYFLAG;
short s_DUMMYFLAGZi;
double d_PORTEN;
short s_PORTENZi;
double d_ELPTEN;
short s_ELPTENZi;
double d_BR2TEN;
short s_BR2TENZi;
double d_CLEANSECTEN;
short s_CLEANSECTENZi;
double d_HS1TEN;
short s_HS1TENZi;
double d_HS2TEN;
short s_HS2TENZi;
double d_SCSTEN;
short s_SCSTENZi;
double d_RCSTEN;
short s_RCSTENZi;
double d_OASTEN;
short s_OASTENZi;
double d_FCSTEN;
short s_FCSTENZi;
double d_APCTEN;
short s_APCTENZi;
double d_ILPTEN;
short s_ILPTENZi;
double d_SPMENTEN;
short s_SPMENTENZi;
double d_SPMEXTEN;
short s_SPMEXTENZi;
double d_BR9TEN;
short s_BR9TENZi;
double d_DLPTEN;
short s_DLPTENZi;
double d_STMTEN;
short s_STMTENZi;
double d_INSPECTSECTEN;
short s_INSPECTSECTENZi;
double d_TRTEN;
short s_TRTENZi;
double d_SPMELG;
short s_SPMELGZi;
double d_SPMROLLFORCE;
short s_SPMROLLFORCEZi;
char c_toc[27];
short s_tocZi;
char c_tom[27];
short s_tomZi;
char c_mop[121];
short s_mopZi;
char c_mou[31];
short s_mouZi;
// arguments for Primary key
char c_k_ENTID[24+1];
char c_k_EXTID[24+1];
public:
//
// LTA Structure
struct STR_T_SET_DATA{
char ENTID[24+1];
char EXTID[24+1];
double DUMMYFLAG;
double PORTEN;
double ELPTEN;
double BR2TEN;
double CLEANSECTEN;
double HS1TEN;
double HS2TEN;
double SCSTEN;
double RCSTEN;
double OASTEN;
double FCSTEN;
double APCTEN;
double ILPTEN;
double SPMENTEN;
double SPMEXTEN;
double BR9TEN;
double DLPTEN;
double STMTEN;
double INSPECTSECTEN;
double TRTEN;
double SPMELG;
double SPMROLLFORCE;
char toc[27];
char tom[27];
char mop[121];
char mou[31];
}structTable;
// LTA Structure Zi
struct STR_T_SET_DATAZi{
short DUMMYFLAGZi;
short PORTENZi;
short ELPTENZi;
short BR2TENZi;
short CLEANSECTENZi;
short HS1TENZi;
short HS2TENZi;
short SCSTENZi;
short RCSTENZi;
short OASTENZi;
short FCSTENZi;
short APCTENZi;
short ILPTENZi;
short SPMENTENZi;
short SPMEXTENZi;
short BR9TENZi;
short DLPTENZi;
short STMTENZi;
short INSPECTSECTENZi;
short TRTENZi;
short SPMELGZi;
short SPMROLLFORCEZi;
short tocZi;
short tomZi;
short mopZi;
short mouZi;
}structTableZi;
//
//C O N S T R U C T O R S
//=======================
//
public:
T_SET_DATA();
//D E S T R U C T O R S
//=======================
//
virtual ~T_SET_DATA();
//
//C O P Y - C O N S T R U C T O R
//=======================
T_SET_DATA(const T_SET_DATA &inst);
// For Constructors with parameters the flag dbAccess
// informs you if the access was successfully or not
T_SET_DATA( const char* arg1,const char* arg2);
//methods
public:
char* getCreationTime() {return (char*)"2021.10.26 13:49:23";};
//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(const char* arg1 , const char* arg2 );
// public methode initInsertKeys
//
// this methode stores the unique key attributes
//
void initInsertKeys( const char* arg1 , const char* arg2 );
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_SET_DATA operator+(const T_SET_DATA &inst) const;
//
//O P E R A T O R =
//===================
//
public:
const T_SET_DATA& operator=(const T_SET_DATA &inst);
char* ENTID() const;//{
//return((char*)c_ENTID );
//}
void set_ENTID( const char* arg );//{
//strncpy((char*)c_ENTID , arg , sizeof(c_ENTID));
//c_ENTID[sizeof(c_ENTID)-1] = '\0';
//return;
//}
char* EXTID() const;//{
//return((char*)c_EXTID );
//}
void set_EXTID( const char* arg );//{
//strncpy((char*)c_EXTID , arg , sizeof(c_EXTID));
//c_EXTID[sizeof(c_EXTID)-1] = '\0';
//return;
//}
double DUMMYFLAG() const;//{
//return((double)d_DUMMYFLAG );
//}
short DUMMYFLAGZi() const;//{
//return( s_DUMMYFLAGZi);
//}
void set_DUMMYFLAG( double arg );//{
//d_DUMMYFLAG = arg;
//s_DUMMYFLAGZi= 0;
//return;
//}
void set_DUMMYFLAGZi( short arg ) ;//{
//s_DUMMYFLAGZi = arg;
//}
double PORTEN() const;//{
//return((double)d_PORTEN );
//}
short PORTENZi() const;//{
//return( s_PORTENZi);
//}
void set_PORTEN( double arg );//{
//d_PORTEN = arg;
//s_PORTENZi= 0;
//return;
//}
void set_PORTENZi( short arg ) ;//{
//s_PORTENZi = arg;
//}
double ELPTEN() const;//{
//return((double)d_ELPTEN );
//}
short ELPTENZi() const;//{
//return( s_ELPTENZi);
//}
void set_ELPTEN( double arg );//{
//d_ELPTEN = arg;
//s_ELPTENZi= 0;
//return;
//}
void set_ELPTENZi( short arg ) ;//{
//s_ELPTENZi = arg;
//}
double BR2TEN() const;//{
//return((double)d_BR2TEN );
//}
short BR2TENZi() const;//{
//return( s_BR2TENZi);
//}
void set_BR2TEN( double arg );//{
//d_BR2TEN = arg;
//s_BR2TENZi= 0;
//return;
//}
void set_BR2TENZi( short arg ) ;//{
//s_BR2TENZi = arg;
//}
double CLEANSECTEN() const;//{
//return((double)d_CLEANSECTEN );
//}
short CLEANSECTENZi() const;//{
//return( s_CLEANSECTENZi);
//}
void set_CLEANSECTEN( double arg );//{
//d_CLEANSECTEN = arg;
//s_CLEANSECTENZi= 0;
//return;
//}
void set_CLEANSECTENZi( short arg ) ;//{
//s_CLEANSECTENZi = arg;
//}
double HS1TEN() const;//{
//return((double)d_HS1TEN );
//}
short HS1TENZi() const;//{
//return( s_HS1TENZi);
//}
void set_HS1TEN( double arg );//{
//d_HS1TEN = arg;
//s_HS1TENZi= 0;
//return;
//}
void set_HS1TENZi( short arg ) ;//{
//s_HS1TENZi = arg;
//}
double HS2TEN() const;//{
//return((double)d_HS2TEN );
//}
short HS2TENZi() const;//{
//return( s_HS2TENZi);
//}
void set_HS2TEN( double arg );//{
//d_HS2TEN = arg;
//s_HS2TENZi= 0;
//return;
//}
void set_HS2TENZi( short arg ) ;//{
//s_HS2TENZi = arg;
//}
double SCSTEN() const;//{
//return((double)d_SCSTEN );
//}
short SCSTENZi() const;//{
//return( s_SCSTENZi);
//}
void set_SCSTEN( double arg );//{
//d_SCSTEN = arg;
//s_SCSTENZi= 0;
//return;
//}
void set_SCSTENZi( short arg ) ;//{
//s_SCSTENZi = arg;
//}
double RCSTEN() const;//{
//return((double)d_RCSTEN );
//}
short RCSTENZi() const;//{
//return( s_RCSTENZi);
//}
void set_RCSTEN( double arg );//{
//d_RCSTEN = arg;
//s_RCSTENZi= 0;
//return;
//}
void set_RCSTENZi( short arg ) ;//{
//s_RCSTENZi = arg;
//}
double OASTEN() const;//{
//return((double)d_OASTEN );
//}
short OASTENZi() const;//{
//return( s_OASTENZi);
//}
void set_OASTEN( double arg );//{
//d_OASTEN = arg;
//s_OASTENZi= 0;
//return;
//}
void set_OASTENZi( short arg ) ;//{
//s_OASTENZi = arg;
//}
double FCSTEN() const;//{
//return((double)d_FCSTEN );
//}
short FCSTENZi() const;//{
//return( s_FCSTENZi);
//}
void set_FCSTEN( double arg );//{
//d_FCSTEN = arg;
//s_FCSTENZi= 0;
//return;
//}
void set_FCSTENZi( short arg ) ;//{
//s_FCSTENZi = arg;
//}
double APCTEN() const;//{
//return((double)d_APCTEN );
//}
short APCTENZi() const;//{
//return( s_APCTENZi);
//}
void set_APCTEN( double arg );//{
//d_APCTEN = arg;
//s_APCTENZi= 0;
//return;
//}
void set_APCTENZi( short arg ) ;//{
//s_APCTENZi = arg;
//}
double ILPTEN() const;//{
//return((double)d_ILPTEN );
//}
short ILPTENZi() const;//{
//return( s_ILPTENZi);
//}
void set_ILPTEN( double arg );//{
//d_ILPTEN = arg;
//s_ILPTENZi= 0;
//return;
//}
void set_ILPTENZi( short arg ) ;//{
//s_ILPTENZi = arg;
//}
double SPMENTEN() const;//{
//return((double)d_SPMENTEN );
//}
short SPMENTENZi() const;//{
//return( s_SPMENTENZi);
//}
void set_SPMENTEN( double arg );//{
//d_SPMENTEN = arg;
//s_SPMENTENZi= 0;
//return;
//}
void set_SPMENTENZi( short arg ) ;//{
//s_SPMENTENZi = arg;
//}
double SPMEXTEN() const;//{
//return((double)d_SPMEXTEN );
//}
short SPMEXTENZi() const;//{
//return( s_SPMEXTENZi);
//}
void set_SPMEXTEN( double arg );//{
//d_SPMEXTEN = arg;
//s_SPMEXTENZi= 0;
//return;
//}
void set_SPMEXTENZi( short arg ) ;//{
//s_SPMEXTENZi = arg;
//}
double BR9TEN() const;//{
//return((double)d_BR9TEN );
//}
short BR9TENZi() const;//{
//return( s_BR9TENZi);
//}
void set_BR9TEN( double arg );//{
//d_BR9TEN = arg;
//s_BR9TENZi= 0;
//return;
//}
void set_BR9TENZi( short arg ) ;//{
//s_BR9TENZi = arg;
//}
double DLPTEN() const;//{
//return((double)d_DLPTEN );
//}
short DLPTENZi() const;//{
//return( s_DLPTENZi);
//}
void set_DLPTEN( double arg );//{
//d_DLPTEN = arg;
//s_DLPTENZi= 0;
//return;
//}
void set_DLPTENZi( short arg ) ;//{
//s_DLPTENZi = arg;
//}
double STMTEN() const;//{
//return((double)d_STMTEN );
//}
short STMTENZi() const;//{
//return( s_STMTENZi);
//}
void set_STMTEN( double arg );//{
//d_STMTEN = arg;
//s_STMTENZi= 0;
//return;
//}
void set_STMTENZi( short arg ) ;//{
//s_STMTENZi = arg;
//}
double INSPECTSECTEN() const;//{
//return((double)d_INSPECTSECTEN );
//}
short INSPECTSECTENZi() const;//{
//return( s_INSPECTSECTENZi);
//}
void set_INSPECTSECTEN( double arg );//{
//d_INSPECTSECTEN = arg;
//s_INSPECTSECTENZi= 0;
//return;
//}
void set_INSPECTSECTENZi( short arg ) ;//{
//s_INSPECTSECTENZi = arg;
//}
double TRTEN() const;//{
//return((double)d_TRTEN );
//}
short TRTENZi() const;//{
//return( s_TRTENZi);
//}
void set_TRTEN( double arg );//{
//d_TRTEN = arg;
//s_TRTENZi= 0;
//return;
//}
void set_TRTENZi( short arg ) ;//{
//s_TRTENZi = arg;
//}
double SPMELG() const;//{
//return((double)d_SPMELG );
//}
short SPMELGZi() const;//{
//return( s_SPMELGZi);
//}
void set_SPMELG( double arg );//{
//d_SPMELG = arg;
//s_SPMELGZi= 0;
//return;
//}
void set_SPMELGZi( short arg ) ;//{
//s_SPMELGZi = arg;
//}
double SPMROLLFORCE() const;//{
//return((double)d_SPMROLLFORCE );
//}
short SPMROLLFORCEZi() const;//{
//return( s_SPMROLLFORCEZi);
//}
void set_SPMROLLFORCE( double arg );//{
//d_SPMROLLFORCE = arg;
//s_SPMROLLFORCEZi= 0;
//return;
//}
void set_SPMROLLFORCEZi( short arg ) ;//{
//s_SPMROLLFORCEZi = arg;
//}
public:
char* toc() const;//{
//return((char*)c_toc );
//}
short tocZi() const;//{
//return( s_tocZi);
//}
protected:
void set_toc( char* arg );//{
//strncpy((char*)c_toc , arg , sizeof(c_toc));
//c_toc[sizeof(c_toc)-1] = '\0';
//s_tocZi= 0;
//return;
//}
void set_tocZi( short arg );//{
//s_tocZi = arg;
//}
public:
char* tom() const;//{
//return((char*)c_tom );
//}
short tomZi() const;//{
//return( s_tomZi);
//}
protected:
void set_tom( char* arg );//{
//strncpy((char*)c_tom , arg , sizeof(c_tom));
//c_tom[sizeof(c_tom)-1] = '\0';
//s_tomZi= 0;
//return;
//}
void set_tomZi( short arg );//{
//s_tomZi = arg;
//}
public:
char* mop() const;//{
//return((char*)c_mop );
//}
short mopZi() const;//{
//return( s_mopZi);
//}
protected:
void set_mop( char* arg );//{
//strncpy((char*)c_mop , arg , sizeof(c_mop));
//c_mop[sizeof(c_mop)-1] = '\0';
//s_mopZi= 0;
//return;
//}
void set_mopZi( short arg );//{
//s_mopZi = arg;
//}
public:
char* mou() const;//{
//return((char*)c_mou );
//}
short mouZi() const;//{
//return( s_mouZi);
//}
protected:
void set_mou( char* arg );//{
//strncpy((char*)c_mou , arg , sizeof(c_mou));
//c_mou[sizeof(c_mou)-1] = '\0';
//s_mouZi= 0;
//return;
//}
void set_mouZi( short arg );//{
//s_mouZi = arg;
//}
public:
// methodes for Primary key
char* k_ENTID();//{
//return((char*)c_k_ENTID );
//}
void set_k_ENTID( char* arg );//{
//strncpy((char*)c_k_ENTID , arg , sizeof(c_k_ENTID));
//c_k_ENTID[sizeof(c_k_ENTID)-1] = '\0';
//return;
//}
char* k_EXTID();//{
//return((char*)c_k_EXTID );
//}
void set_k_EXTID( char* arg );//{
//strncpy((char*)c_k_EXTID , arg , sizeof(c_k_EXTID));
//c_k_EXTID[sizeof(c_k_EXTID)-1] = '\0';
//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((char*)"T_SET_DATA");
//}
///////////////////////////////////////////////////
int getSqlCode();//{
//return( db.dbSqlCode);
//}
///////////////////////////////////////////////////
int getRowsProcessed();//{
//return( db.dbRowsProcessed);
//}
};
#endif