|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
|
#include "shapefil_private.h"#include <assert.h>#include <errno.h>#include <math.h>#include <stdbool.h>#include <stdio.h>#include <stdlib.h>#include <ctype.h>#include <string.h>#include <strings.h>
Go to the source code of this file.
Macros | |
| #define | STRCASECMP(a, b) (strcasecmp(a, b)) |
| #define | CPLsprintf sprintf |
| #define | CPLsnprintf snprintf |
| #define | FALSE 0 |
| #define | TRUE 1 |
| #define | XBASE_FILEHDR_SZ 32 |
| #define | HEADER_RECORD_TERMINATOR 0x0D |
| #define | END_OF_FILE_CHARACTER 0x1A |
| #define | CPL_IGNORE_RET_VAL_INT(x) x |
| int DBFAddNativeFieldType | ( | DBFHandle | psDBF, |
| const char * | pszFieldName, | ||
| char | chType, | ||
| int | nWidth, | ||
| int | nDecimals | ||
| ) |
Definition at line 795 of file dbfopen.c.
References DBFUpdateHeader(), END_OF_FILE_CHARACTER, FALSE, UntypedStream::fp, free(), malloc(), SHPLIB_NULLPTR, STATIC_CAST, TRUE, XBASE_FLD_MAX_WIDTH, XBASE_FLDHDR_SZ, and XBASE_FLDNAME_LEN_WRITE.
Referenced by DBFAddField().
| int DBFAlterFieldDefn | ( | DBFHandle | psDBF, |
| int | iField, | ||
| const char * | pszFieldName, | ||
| char | chType, | ||
| int | nWidth, | ||
| int | nDecimals | ||
| ) |
Definition at line 2109 of file dbfopen.c.
References DBFUpdateHeader(), END_OF_FILE_CHARACTER, FALSE, UntypedStream::fp, free(), malloc(), STATIC_CAST, TRUE, XBASE_FLD_MAX_WIDTH, XBASE_FLDHDR_SZ, and XBASE_FLDNAME_LEN_WRITE.
Definition at line 1680 of file dbfopen.c.
References DBFClose(), DBFCreateLL(), DBFOpen(), malloc(), SHPLIB_NULLPTR, STATIC_CAST, TRUE, and XBASE_FLDHDR_SZ.
Definition at line 568 of file dbfopen.c.
References CPL_IGNORE_RET_VAL_INT, DBFUpdateHeader(), UntypedStream::fp, free(), and SHPLIB_NULLPTR.
Referenced by DBFCloneEmpty(), and DBFOpenLL().
Definition at line 616 of file dbfopen.c.
References DBFCreateEx().
Definition at line 627 of file dbfopen.c.
References DBFCreateLL(), and SASetupDefaultHooks().
Referenced by DBFCreate().
| DBFHandle DBFCreateLL | ( | const char * | pszFilename, |
| const char * | pszCodePage, | ||
| const SAHooks * | psHooks | ||
| ) |
Definition at line 643 of file dbfopen.c.
References CONST_CAST, DBFSetLastModifiedDate(), DBFSetWriteEndOfFileChar(), FALSE, UntypedStream::fp, free(), malloc(), SHPLIB_NULLPTR, STATIC_CAST, strcpy, TRUE, and XBASE_FILEHDR_SZ.
Referenced by DBFCloneEmpty(), and DBFCreateEx().
Definition at line 1847 of file dbfopen.c.
References DBFUpdateHeader(), END_OF_FILE_CHARACTER, FALSE, UntypedStream::fp, free(), malloc(), STATIC_CAST, TRUE, and XBASE_FLDHDR_SZ.
Definition at line 1834 of file dbfopen.c.
References SHPLIB_NULLPTR.
Definition at line 1253 of file dbfopen.c.
Referenced by DBFGetFieldIndex().
Definition at line 1756 of file dbfopen.c.
References DBFGetFieldCount(), DBFGetFieldInfo(), name, SHPLIB_NULLPTR, STRCASECMP, and XBASE_FLDNAME_LEN_READ.
| DBFFieldType DBFGetFieldInfo | ( | const DBFHandle | psDBF, |
| int | iField, | ||
| char * | pszFieldName, | ||
| int * | pnWidth, | ||
| int * | pnDecimals | ||
| ) |
Definition at line 1277 of file dbfopen.c.
References FTDate, FTDouble, FTInteger, FTInvalid, FTLogical, FTString, SHPLIB_NULLPTR, STATIC_CAST, XBASE_FLDHDR_SZ, and XBASE_FLDNAME_LEN_READ.
Referenced by DBFGetFieldIndex().
Definition at line 1235 of file dbfopen.c.
References DBFReadStringAttribute(), SHPLIB_NULLPTR, and TRUE.
Definition at line 300 of file dbfopen.c.
References DBFOpenLL(), and SASetupDefaultHooks().
Referenced by DBFCloneEmpty().
Definition at line 331 of file dbfopen.c.
References assert, DBFClose(), DBFSetLastModifiedDate(), DBFSetWriteEndOfFileChar(), FALSE, UntypedStream::fp, free(), HEADER_RECORD_TERMINATOR, malloc(), REINTERPRET_CAST, SHPLIB_NULLPTR, STATIC_CAST, strcpy, TRUE, XBASE_FILEHDR_SZ, and XBASE_FLDHDR_SZ.
Referenced by DBFOpen().
Definition at line 1146 of file dbfopen.c.
References SHPDate::day, SHPDate::month, SHPLIB_NULLPTR, STATIC_CAST, and SHPDate::year.
Definition at line 1102 of file dbfopen.c.
References SHPLIB_NULLPTR, and STATIC_CAST.
Definition at line 1084 of file dbfopen.c.
References SHPLIB_NULLPTR, and STATIC_CAST.
Definition at line 1134 of file dbfopen.c.
References STATIC_CAST.
Definition at line 1121 of file dbfopen.c.
References STATIC_CAST.
Referenced by DBFIsAttributeNULL().
Definition at line 1662 of file dbfopen.c.
References SHPLIB_NULLPTR, and STATIC_CAST.
Definition at line 1972 of file dbfopen.c.
References DBFUpdateHeader(), FALSE, UntypedStream::fp, free(), malloc(), SHPLIB_NULLPTR, STATIC_CAST, TRUE, and XBASE_FLDHDR_SZ.
Definition at line 286 of file dbfopen.c.
Referenced by DBFCreateLL(), and DBFOpenLL().
Definition at line 2357 of file dbfopen.c.
Referenced by DBFCreateLL(), and DBFOpenLL().
Definition at line 252 of file dbfopen.c.
References UntypedStream::fp, STATIC_CAST, and XBASE_FILEHDR_SZ.
Referenced by DBFAddNativeFieldType(), DBFAlterFieldDefn(), DBFClose(), DBFDeleteField(), and DBFReorderFields().
Definition at line 1451 of file dbfopen.c.
References FALSE, REINTERPRET_CAST, STATIC_CAST, and TRUE.
Referenced by DBFWriteDateAttribute().
Definition at line 1587 of file dbfopen.c.
References DBFWriteAttributeDirectly(), and SHPLIB_NULLPTR.
Definition at line 1520 of file dbfopen.c.
References STATIC_CAST.
Definition at line 1533 of file dbfopen.c.
References STATIC_CAST.
Definition at line 1573 of file dbfopen.c.
References CONST_CAST, and STATIC_CAST.
Definition at line 1562 of file dbfopen.c.
References SHPLIB_NULLPTR.
Definition at line 1548 of file dbfopen.c.
References CONST_CAST, and STATIC_CAST.