eis/inc/dbinc/T_LOV_TELE.h

478 lines
8.4 KiB
C++

// Version: 2019.4.4 10:22:45
#ifndef _T_LOV_TELE_H
#define _T_LOV_TELE_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_TELEDBAX.h"
class T_LOV_TELE{
friend class T_LOV_TELEDBAX;
private:
//aggregation to DB Class
T_LOV_TELEDBAX 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_EventNo;
char c_Sender[10+1];
short s_SenderZi;
char c_Receiver[10+1];
short s_ReceiverZi;
char c_TeleId[10+1];
char c_TeleDesc[100+1];
short s_TeleDescZi;
long l_Line;
short s_LineZi;
long l_HeaderType;
short s_HeaderTypeZi;
long l_HeaderLength;
short s_HeaderLengthZi;
long l_TotalLength;
short s_TotalLengthZi;
long l_PrintType;
short s_PrintTypeZi;
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
long l_k_EventNo;
public:
//
// LTA Structure
struct STR_T_LOV_TELE{
int EventNo;
char Sender[10+1];
char Receiver[10+1];
char TeleId[10+1];
char TeleDesc[100+1];
int Line;
int HeaderType;
int HeaderLength;
int TotalLength;
int PrintType;
char toc[27];
char tom[27];
char mop[121];
char mou[31];
}structTable;
// LTA Structure Zi
struct STR_T_LOV_TELEZi{
short SenderZi;
short ReceiverZi;
short TeleDescZi;
short LineZi;
short HeaderTypeZi;
short HeaderLengthZi;
short TotalLengthZi;
short PrintTypeZi;
short tocZi;
short tomZi;
short mopZi;
short mouZi;
}structTableZi;
//
//C O N S T R U C T O R S
//=======================
//
public:
T_LOV_TELE();
//D E S T R U C T O R S
//=======================
//
virtual ~T_LOV_TELE();
//
//C O P Y - C O N S T R U C T O R
//=======================
T_LOV_TELE(const T_LOV_TELE &inst);
// For Constructors with parameters the flag dbAccess
// informs you if the access was successfully or not
T_LOV_TELE( long arg1);
//methods
public:
char* getCreationTime() {return (char*)"2019.4.4 10:22:45";};
//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 );
// public methode initInsertKeys
//
// this methode stores the unique key attributes
//
void initInsertKeys( long arg1 );
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_TELE operator+(const T_LOV_TELE &inst) const;
//
//O P E R A T O R =
//===================
//
public:
const T_LOV_TELE& operator=(const T_LOV_TELE &inst);
long EventNo() const;//{
//return((long)l_EventNo );
//}
void set_EventNo( long arg );//{
//l_EventNo = arg;
//return;
//}
char* Sender() const;//{
//return((char*)c_Sender );
//}
short SenderZi() const;//{
//return( s_SenderZi);
//}
void set_Sender( const char* arg );//{
//strncpy((char*)c_Sender , arg , sizeof(c_Sender));
//c_Sender[sizeof(c_Sender)-1] = '\0';
//s_SenderZi= 0;
//return;
//}
void set_SenderZi( short arg ) ;//{
//s_SenderZi = arg;
//}
char* Receiver() const;//{
//return((char*)c_Receiver );
//}
short ReceiverZi() const;//{
//return( s_ReceiverZi);
//}
void set_Receiver( const char* arg );//{
//strncpy((char*)c_Receiver , arg , sizeof(c_Receiver));
//c_Receiver[sizeof(c_Receiver)-1] = '\0';
//s_ReceiverZi= 0;
//return;
//}
void set_ReceiverZi( short arg ) ;//{
//s_ReceiverZi = arg;
//}
char* TeleId() const;//{
//return((char*)c_TeleId );
//}
void set_TeleId( const char* arg );//{
//strncpy((char*)c_TeleId , arg , sizeof(c_TeleId));
//c_TeleId[sizeof(c_TeleId)-1] = '\0';
//return;
//}
char* TeleDesc() const;//{
//return((char*)c_TeleDesc );
//}
short TeleDescZi() const;//{
//return( s_TeleDescZi);
//}
void set_TeleDesc( const char* arg );//{
//strncpy((char*)c_TeleDesc , arg , sizeof(c_TeleDesc));
//c_TeleDesc[sizeof(c_TeleDesc)-1] = '\0';
//s_TeleDescZi= 0;
//return;
//}
void set_TeleDescZi( short arg ) ;//{
//s_TeleDescZi = arg;
//}
long Line() const;//{
//return((long)l_Line );
//}
short LineZi() const;//{
//return( s_LineZi);
//}
void set_Line( long arg );//{
//l_Line = arg;
//s_LineZi= 0;
//return;
//}
void set_LineZi( short arg ) ;//{
//s_LineZi = arg;
//}
long HeaderType() const;//{
//return((long)l_HeaderType );
//}
short HeaderTypeZi() const;//{
//return( s_HeaderTypeZi);
//}
void set_HeaderType( long arg );//{
//l_HeaderType = arg;
//s_HeaderTypeZi= 0;
//return;
//}
void set_HeaderTypeZi( short arg ) ;//{
//s_HeaderTypeZi = arg;
//}
long HeaderLength() const;//{
//return((long)l_HeaderLength );
//}
short HeaderLengthZi() const;//{
//return( s_HeaderLengthZi);
//}
void set_HeaderLength( long arg );//{
//l_HeaderLength = arg;
//s_HeaderLengthZi= 0;
//return;
//}
void set_HeaderLengthZi( short arg ) ;//{
//s_HeaderLengthZi = arg;
//}
long TotalLength() const;//{
//return((long)l_TotalLength );
//}
short TotalLengthZi() const;//{
//return( s_TotalLengthZi);
//}
void set_TotalLength( long arg );//{
//l_TotalLength = arg;
//s_TotalLengthZi= 0;
//return;
//}
void set_TotalLengthZi( short arg ) ;//{
//s_TotalLengthZi = arg;
//}
long PrintType() const;//{
//return((long)l_PrintType );
//}
short PrintTypeZi() const;//{
//return( s_PrintTypeZi);
//}
void set_PrintType( long arg );//{
//l_PrintType = arg;
//s_PrintTypeZi= 0;
//return;
//}
void set_PrintTypeZi( short arg ) ;//{
//s_PrintTypeZi = 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
long k_EventNo();//{
//return((long)l_k_EventNo );
//}
void set_k_EventNo( long arg );//{
//l_k_EventNo = 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((char*)"T_LOV_TELE");
//}
///////////////////////////////////////////////////
int getSqlCode();//{
//return( db.dbSqlCode);
//}
///////////////////////////////////////////////////
int getRowsProcessed();//{
//return( db.dbRowsProcessed);
//}
};
#endif