/*************** Catalog H Declares Source Code File (.H) **************/ /* Name: CATALOG.H Version 3.3 */ /* */ /* (C) Copyright to the author Olivier BERTRAND 2000-2015 */ /* */ /* This file contains the CATALOG PlugDB classes definitions. */ /***********************************************************************/ #ifndef __CATALOG__H #define __CATALOG__H
#include"block.h"
/***********************************************************************/ /* Defines the length of a buffer to contain entire table section. */ /***********************************************************************/ #define PLG_MAX_PATH 144/* Must be the same across systems */ #define PLG_BUFF_LEN 100/* Number of lines in binary file buffer */
//typedef class INDEXDEF *PIXDEF;
/***********************************************************************/ /* Defines the structure used to enumerate tables or views. */ /***********************************************************************/ typedefstruct _curtab {
PRELDEF CurTdb; char *Curp; char *Tabpat; bool Ispat; bool NoView; int Nt; char *Type[16];
} CURTAB, *PCURTAB;
/***********************************************************************/ /* Defines the structure used to get column catalog info. */ /***********************************************************************/ typedefstruct _colinfo {
PCSZ Name; int Type; int Offset; unsigned Length; int Key; unsigned Precision; int Scale; int Opt; int Freq;
PCSZ Remark;
PCSZ Datefmt;
PCSZ Fieldfmt;
ushort Flags; // Used by MariaDB CONNECT handlers
} COLINFO, *PCOLINFO;
/***********************************************************************/ /* CATALOG: base class for catalog classes. */ /***********************************************************************/ class DllExport CATALOG { friendclass RELDEF; friendclass TABDEF; friendclass DIRDEF; friendclass OEMDEF; public:
CATALOG(void); // Constructor virtual ~CATALOG() = default; // Make -Wdelete-non-virtual-dtor happy
// Implementation int GetCblen(void) {return Cblen;} bool GetDefHuge(void) {return DefHuge;} void SetDefHuge(bool b) {DefHuge = b;} char *GetCbuf(void) {return Cbuf;}
// Members char *Cbuf; /* Buffer used for col section */ int Cblen; /* Length of suballoc. buffer */
CURTAB Ctb; /* Used to enumerate tables */ bool DefHuge; /* true: tables default to huge */
}; // end of class CATALOG
#endif// __CATALOG__H
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-10-08)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.