Close
dtSearch Text Retrieval Engine Programmer's Reference
dtsViewerInfo Structure

Register an external file parser. See File Parser API

File: dtsviewr.h

Syntax
C++
struct dtsViewerInfo { char name[maxTypeNameLen]; unsigned short typeId; char version[maxTypeNameLen]; dtsRecognitionSignature signature; const char * filenamePattern; long filenameConfidence; unsigned long blockSize; int (* recognize)(dtsInputStream& aStream); dtsViewerHandle (* makeViewer)(dtsInputStream& aStream); void (* destroyViewer)(dtsViewerHandle handle); void (* readTextBlock)(dtsViewerHandle handle, dtsTextBlock& block); void (* gotoBookMark)(dtsViewerHandle handle, dtsBookMark& bookMark); void (* getFileInfo)(dtsViewerHandle handle, dtsFileInfo& info); long flags; long (* getCount)(dtsViewerHandle handle); int (* getFirst)(dtsViewerHandle handle, dtsContainerItemInfo& info); int (* getNext)(dtsViewerHandle handle, dtsContainerItemInfo& info); int (* getInfoByName)(dtsViewerHandle handle, const char *name, dtsContainerItemInfo& info); int (* getInfoByIndex)(dtsViewerHandle handle, long index, dtsContainerItemInfo& info); int (* extractToMem)(dtsViewerHandle handle, dtsContainerItemInfo& info, void *dest, long bufLen); int (* extractToFile)(dtsViewerHandle handle, dtsContainerItemInfo& info, const char *fileToCreate); char canExtractToMem; dtsViewerHandle (* makeViewer2)(dtsMakeViewerParams& params); };