Eneboo - Documentación para desarrolladores
src/dbf/dbf.h
Ir a la documentación de este archivo.
00001 /***********************************************************************************
00002  * dbf.h
00003  ***********************************************************************************
00004  * Author: Bjoern Berg, June 2002
00005  * Email: clergyman@gmx.de
00006  * dbf Reader and Converter for dBASE files
00007  * Version 0.6
00008  ***********************************************************************************/
00009 
00010 #ifndef __DBF_CORE__
00011 #define __DBF_CORE__
00012 
00013 #include <stdio.h>
00014 #include <fcntl.h>
00015 #include <stdlib.h>
00016 #include <string.h>
00017 #include <limits.h>
00018 
00019 /* 
00020  * special anubisnet and dbf includes 
00021  */
00022 #include "codepages.h"
00023 #include "iodbf.h"
00024 #include "an_string.h"
00025 #include "statistic.h"
00026 #include "endian.h"
00027 #include "csv.h"
00028 #include "sql.h"
00029 
00030 #define FoxBase 0x02                    /* Code for FoxBase */
00031 #define FoxBasePlus 0x03                /* Code for FoxBasePlus, same as for dBase III */
00032 #define dBase3 0x03                             /* Code for dBase III */
00033 #define dBase3WM 0x83                   /* Code for dBase III with memo fields */
00034 #define dBase4 0x04                             /* Code for dBase IV */
00035 #define dBase4WM 0x8B                   /* Code for dBase IV with memo fields */
00036 #define dBase4SQL 0x8E                  /* Code for dBase IV with SQL table */
00037 #define dBase5 0x05                             /* Code for dBase 5.0 */
00038 #define FoxPro2WM 0xF5                  /* Code for FoxPro 2.0 (or earlier) with memo fields */                                 
00039 #define VisualFoxPro 0x30               /* Code for Visual FoxPro without memo fields */
00040 
00041 /* 
00042  * V A R I A B L E S 
00043  */
00044 
00045 extern unsigned int verbosity;
00046 extern unsigned int dbversion;
00047 
00048 typedef int     (*headerMethod)(FILE *output, const struct DB_FIELD * header,
00049     int header_length,
00050     const char *filename, const char *export_filename);
00051 
00052 typedef int     (*lineMethod)(FILE *output, const struct DB_FIELD * header,
00053     const unsigned char *value, int header_length,
00054     const char *filename, const char *export_filename);
00055 
00056 #endif
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'