eis/inc/dbinc/T_DAT_RADAR.h

233 lines
4.5 KiB
C++

// Version: 2019.3.5 9:35:32
#ifndef _T_DAT_RADAR_H
#define _T_DAT_RADAR_H
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#ifdef _MSC_VER
#pragma warning(disable:4996)
#pragma warning(disable:4267)
#endif
#include "T_DAT_RADARDBAX.h"
class T_DAT_RADAR{
friend class T_DAT_RADARDBAX;
private:
//aggregation to DB Class
T_DAT_RADARDBAX 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_extId[21+1];
char c_value[100+1];
short s_valueZi;
char c_TC[27];
short s_TCZi;
// arguments for Primary key
char c_k_extId[21+1];
public:
//
// LTA Structure
struct STR_T_DAT_RADAR{
char extId[21+1];
char value[100+1];
char TC[27];
}structTable;
// LTA Structure Zi
struct STR_T_DAT_RADARZi{
short valueZi;
short TCZi;
}structTableZi;
//
//C O N S T R U C T O R S
//=======================
//
public:
T_DAT_RADAR();
//D E S T R U C T O R S
//=======================
//
virtual ~T_DAT_RADAR();
//
//C O P Y - C O N S T R U C T O R
//=======================
T_DAT_RADAR(const T_DAT_RADAR &inst);
// For Constructors with parameters the flag dbAccess
// informs you if the access was successfully or not
T_DAT_RADAR( const char* arg1);
//methods
public:
char* getCreationTime() {return (char*)"2019.3.5 9:35:32";};
//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 );
// public methode initInsertKeys
//
// this methode stores the unique key attributes
//
void initInsertKeys( const char* 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_DAT_RADAR operator+(const T_DAT_RADAR &inst) const;
//
//O P E R A T O R =
//===================
//
public:
const T_DAT_RADAR& operator=(const T_DAT_RADAR &inst);
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;
//}
char* value() const;//{
//return((char*)c_value );
//}
short valueZi() const;//{
//return( s_valueZi);
//}
void set_value( const char* arg );//{
//strncpy((char*)c_value , arg , sizeof(c_value));
//c_value[sizeof(c_value)-1] = '\0';
//s_valueZi= 0;
//return;
//}
void set_valueZi( short arg ) ;//{
//s_valueZi = arg;
//}
char* TC() const;//{
//return((char*)c_TC );
//}
short TCZi() const;//{
//return( s_TCZi);
//}
void set_TC( char* arg );//{
//strncpy((char*)c_TC , arg , sizeof(c_TC));
//c_TC[sizeof(c_TC)-1] = '\0';
//s_TCZi= 0;
//return;
//}
void set_TCZi( short arg ) ;//{
//s_TCZi = arg;
//}
public:
// methodes for Primary key
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_DAT_RADAR");
//}
///////////////////////////////////////////////////
int getSqlCode();//{
//return( db.dbSqlCode);
//}
///////////////////////////////////////////////////
int getRowsProcessed();//{
//return( db.dbRowsProcessed);
//}
};
#endif