protected: // Members bool Fmtd; /* true for formatted files */ //bool Accept; /* true if wrong lines are accepted */ bool Header; /* true if first line contains headers */ //int Maxerr; /* Maximum number of bad records */ int Quoted; /* Quoting level for quoted fields */ char Sep; /* Separator for standard CSV files */ char Qot; /* Character for quoted strings */
}; // end of CSVDEF
/***********************************************************************/ /* This is the DOS/UNIX Access Method class declaration for files */ /* that are CSV files with columns separated by the Sep character. */ /***********************************************************************/ class DllExport TDBCSV : public TDBDOS { friendclass CSVCOL; friendclass MAPFAM; friend PQRYRES CSVColumns(PGLOBAL, PCSZ, PTOS, bool); public: // Constructor
TDBCSV(PCSVDEF tdp, PTXF txfp);
TDBCSV(PGLOBAL g, PTDBCSV tdbp);
// Members
PSZ *Field; // Field to write to current line int *Offset; // Column offsets for current record int *Fldlen; // Column field length for current record bool *Fldtyp; // true for numeric fields int Fields; // Number of fields to handle int Nerr; // Number of bad records int Maxerr; // Maximum number of bad records int Quoted; // Quoting level for quoted fields bool Accept; // true if bad lines are accepted bool Header; // true if first line contains column headers char Sep; // Separator char Qot; // Quoting character
}; // end of class TDBCSV
/***********************************************************************/ /* Class CSVCOL: CSV access method column descriptor. */ /* This A.M. is used for Comma Separated V(?) files. */ /***********************************************************************/ class DllExport CSVCOL : public DOSCOL { friendclass TDBCSV; friendclass TDBFMT; public: // Constructors
CSVCOL(PGLOBAL g, PCOLDEF cdp, PTDB tdbp, PCOL cprec, int i);
CSVCOL(CSVCOL *colp, PTDB tdbp); // Constructor used in copy process
// Implementation int GetAmType() override {return TYPE_AM_CSV;}
protected: // Default constructor not to be used
CSVCOL(void) = default;
// Members int Fldnum; // Field ordinal number (0 based)
}; // end of class CSVCOL
/***********************************************************************/ /* This is the DOS/UNIX Access Method class declaration for files */ /* whose record format is described by a Format keyword. */ /***********************************************************************/ class DllExport TDBFMT : public TDBCSV { friendclass CSVCOL; //friend class FMTCOL; public: // Standard constructor
TDBFMT(PCSVDEF tdp, PTXF txfp) : TDBCSV(tdp, txfp)
{FldFormat = NULL; To_Fld = NULL; FmtTest = NULL; Linenum = 0;}
// Members
PSZ *FldFormat; // Field read format void *To_Fld; // To field test buffer int *FmtTest; // Test on ending by %n or %m int Linenum; // Last read line
}; // end of class TDBFMT
/***********************************************************************/ /* This is the class declaration for the CSV catalog table. */ /***********************************************************************/ class DllExport TDBCCL : public TDBCAT { public: // Constructor
TDBCCL(PCSVDEF tdp);
protected: // Specific routines
PQRYRES GetResult(PGLOBAL g) override;
// Members
PTOS Topt;
}; // end of class TDBCCL
/* ------------------------- End of TabFmt.H ------------------------- */
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.1 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.