354#define FMR_READ_ARC FLM_DECO_ARCHIVE
355#define FMR_DECO_ARC FLM_DECO_ARCHIVE
356#define FMR_READ_FORMAT FLC_READ_FORMAT
357#define FMR_WRITE_ARC FLM_COMP_ARCHIVE
358#define FMR_COMP_ARC FLM_COMP_ARCHIVE
359#define FMR_WRITE_FORMAT FLC_WRITE_FORMAT
360#define FMR_STATE FLC_STATE
361#define FMR_LOG FLC_LOG
555 const char* pcString,
724 const char* pcArchive,
725 const char* pcFormat,
756 const char* pcFormat);
793 const unsigned char** ppRec,
830 unsigned char* pcRec,
872 const char* pcFormat,
929 const unsigned char* pcRec,
1213 const unsigned char* pcHdr,
1214 unsigned int uiLen);
1238 const unsigned char* pcHdr,
1239 unsigned int uiLen);
1261 const char* pcName);
1286 const char* pcName);
1319 const char* pcState);
1357 const int isSuccess,
1391 unsigned int uiSiz);
FLMDEF - External FLAM definitions.
FLMRTC - FLAM-Return-Codes.
unsigned int uiFmrGetArcVersion(void *pvHdl)
Returns the archive format version.
const unsigned char * pcFmrGetMbrHeader(void *pvHdl, unsigned int *puiLen)
Returns the binary user header of the last read member.
unsigned int uiFmrGetArcSaveMode(void *pvHdl)
Returns the archive save mode.
int siFmrCheckArchive(char *pcErr, void *pvHdl, const int siLev, TsFmrChkResult *psResult)
Performs an integrity check on the open archive.
void vdFmrDeactivateLog(void *pvGbl)
Deactivates in-memory logging.
int siFmrSetMbrComment(char *pcErr, void *pvHdl, const char *pcCmt)
Sets the member comment (write mode).
int siFmrNextMember(char *pcErr, void *pvHdl, const char *pcFormat)
Advances to the next matching member (read mode).
int siFmrAbout(const int siSize, char *pcBuffer)
Retrieves about information.
const char * pcFmrErrorMessage(const int siRtc)
Maps a FLAM return code to a short English message.
int siFmrGetLog(void *pvGbl, const char **ppLog)
Retrieves in-memory log messages.
const char * pcFmrGetMbrName(void *pvHdl)
Returns the name of the current archive member.
int siFmrSyntax(char *pcErr, const int siWhat, const int siDepth, const char *pcPath, int *piOut, char **ppOut)
Retrieves syntax information for an archive or format string.
const unsigned char * pcFmrGetArcHeader(void *pvHdl, unsigned int *puiLen)
Returns the binary user header from the archive.
unsigned int uiFmrGetArcMbrCount(void *pvHdl)
Returns the number of members in the archive.
int siFmrVersion(const int siSize, char *pcBuffer)
Retrieves version information.
int siFmrCloseArchive(char *pcErr, void *pvHdl, const int isSuccess, const int siStaFmt, int *piStaSiz, char **ppStaBuf)
Closes a FLAM5 archive and releases all resources.
int siFmrGet(char *pcErr, void *pvHdl, int *piLen, unsigned char *pcRec, const int siSkip, void *pvCnv)
Reads the next record into a caller-supplied buffer (read mode).
int siFmrSetArcComment(char *pcErr, void *pvHdl, const char *pcCmt)
Sets the archive comment (write mode).
int siFmrPut(char *pcErr, void *pvHdl, const int siLen, const unsigned char *pcRec, void *pvCnv)
Writes a record or element to the current member (write mode).
int siFmrClearLog(void *pvGbl)
Clears the in-memory log buffer.
const char * pcFmrGetTabName(void *pvHdl)
Returns the current table name.
int siFmrHelp(char *pcErr, const int siWhat, const int siDepth, const char *pcPath, int *piOut, char **ppOut)
Retrieves help text for an archive or format string parameter.
int siFmrFlush(char *pcErr, void *pvHdl, const int isFinal, const int isForce)
Flushes buffered records to the archive (write mode).
int siFmrOpen(char *pcErr, void **ppGbl, const int isSys, const int isStd, const char *pcEnv, const char *pcLog)
Opens a global session with optional in-memory logging.
const char * pcFmrGetArcComment(void *pvHdl)
Returns the archive comment string.
void vdFmrReactivateLog(void *pvGbl)
Reactivates in-memory logging.
int siFmrSetMbrHeader(char *pcErr, void *pvHdl, const unsigned char *pcHdr, unsigned int uiLen)
Sets the member-level binary user header (write mode).
int siFmrSetTabName(char *pcErr, void *pvHdl, const char *pcName)
Sets the current table name (write mode).
const char * pcFmrGetFtrName(void *pvHdl)
Returns the filter name for the current member (DECO path).
const char * pcFmrGetArcInfo(void *pvHdl, char *pcBuf, unsigned int uiSiz)
Returns a human-readable description string for an open archive.
const char * pcFmrGetArcName(void *pvHdl)
Returns the current archive file name.
int siFmrLicense(const int siSize, char *pcBuffer)
Retrieves the license text.
const char * pcFmrGetMbrState(void *pvHdl, const int isCurrent)
Returns the member state string.
const char * pcFmrGetMbrComment(void *pvHdl)
Returns the user comment of the last read member.
int siFmrGetMbrStatistics(void *pvHdl, TsFmrMbrSta *psSta)
Returns member statistics for the currently open member.
int siFmrSetMbrState(char *pcErr, void *pvHdl, const char *pcState)
Sets member state attributes (write mode).
unsigned int uiFmrGetArcType(void *pvHdl)
Returns the archive type identifier.
int siFmrSetArcHeader(char *pcErr, void *pvHdl, const unsigned char *pcHdr, unsigned int uiLen)
Sets the archive-level binary user header (write mode).
int siFmrSetMbrName(char *pcErr, void *pvHdl, const char *pcName)
Sets the current member name (write mode).
int siFmrClose(void *pvGbl)
Closes a global session.
int siFmrOpenArchive(char *pcErr, void *pvGbl, void **ppHdl, const char *pcArchive, const char *pcFormat, const int siNumber)
Opens a FLAM5 archive for read or write access.
int siFmrCheck(char *pcErr, const int siWhat, const char *pcString, int *piOut, char **ppOut)
Validates an archive or format string.
int siFmrNewMember(char *pcErr, void *pvHdl, const char *pcFormat, const int siStaFmt, int *piStaSiz, char **ppStaBuf)
Starts a new member in an open archive (write mode).
int siFmrLocate(char *pcErr, void *pvHdl, int *piLen, const unsigned char **ppRec, const int siSkip, void *pvCnv)
Locates the next record without copying (zero-copy read).
struct FmrMbrSta TsFmrMbrSta
Member statistics returned by siFmrGetMbrStatistics().
struct FmrChkResult TsFmrChkResult
Result structure returned by siFmrCheckArchive().
Result structure returned by siFmrCheckArchive().
Definition FLMREC.h:396
int siTotal
Definition FLMREC.h:397
int siSuccess
Definition FLMREC.h:398
int siReason
Definition FLMREC.h:400
int siErrors
Definition FLMREC.h:399
Member statistics returned by siFmrGetMbrStatistics().
Definition FLMREC.h:382
long long siRecCnt
Definition FLMREC.h:383
long long siOrgLen
Definition FLMREC.h:386
long long siSegCnt
Definition FLMREC.h:384
long long siElmCnt
Definition FLMREC.h:385
long long siCmpLen
Definition FLMREC.h:387