Library SDIF


[ Keywords | Classes | Data | Functions ]

Quick Index



Classes

Back to the top of SDIF


Data

typedef struct SdifFileS SdifFileT;
// Error Handling
typedef enum SdifErrorTagE SdifErrorTagET;
typedef enum SdifErrorLevelE SdifErrorLevelET;
typedef struct SdifErrorS SdifErrorT;
struct SdifErrorS ;
typedef struct SdifErrorLS SdifErrorLT;
struct SdifErrorLS ;
typedef enum SdifErrorE SdifErrorEnum;
typedef void (*SdifExitFuncT) (void);
// SDIF File Structure
typedef enum SdifFileModeE SdifFileModeET ;
enum SdifPassE ;
typedef struct SdifFileS SdifFileT;
struct SdifFileS ;
typedef struct SdifFrameHeaderS SdifFrameHeaderT;
struct SdifFrameHeaderS ;
typedef struct SdifFrameDataS SdifFrameDataT;
struct SdifFrameDataS ;
typedef struct SdifComponentS SdifComponentT;
struct SdifComponentS ;
typedef struct SdifFrameTypeS SdifFrameTypeT;
struct SdifFrameTypeS ;
typedef enum SdifSignatureE SdifSignatureET;
typedef enum SdifModifModeE SdifModifModeET;
typedef enum SdifDataTypeE SdifDataTypeET;
typedef enum SdifDataTypeE SdifDataTypeET;
typedef char SdifChar;
typedef short SdifInt2;
typedef unsigned short SdifUInt2;
typedef int SdifInt4;
typedef unsigned int SdifUInt4;
typedef float SdifFloat4;
typedef double SdifFloat8;
typedef unsigned int SdifSignature;
typedef enum SdifMachineE SdifMachineET;
typedef enum SdifBinaryMode SdifBinaryModeET ;
typedef enum SdifHashIndexTypeE SdifHashIndexTypeET;
typedef union SdifHashIndexU SdifHashIndexUT;
char* Char[1];
unsigned int Int4;
typedef struct SdifHashNS SdifHashNT;
struct SdifHashNS ;
typedef struct SdifHashTableS SdifHashTableT;
struct SdifHashTableS ;
typedef int (*SdifMatrixCallbackT) (SdifFileT *file, int nummatrix, void *userdata);
typedef void (*KillerFT) (void *);
typedef struct SdifListNS SdifListNT;
struct SdifListNS ;
typedef struct SdifListNStockS SdifListNStockT;
struct SdifListNStockS ;
// lists management
typedef struct SdifListS SdifListT;
typedef SdifListT *SdifListP;
struct SdifListS ;
typedef struct SdifMatrixHeaderS SdifMatrixHeaderT;
struct SdifMatrixHeaderS ;
typedef union DataTypeU DataTypeUT;
SdifFloat4 *Float4;
SdifFloat8 *Float8;
SdifInt2 *Int2 ;
SdifInt4 *Int4 ;
// SdifInt8 *Int8 ;
SdifUInt2 *UInt2 ;
SdifUInt4 *UInt4 ;
// SdifUInt8 *UInt8 ;
SdifChar *Char ;
void *Void ;
typedef struct SdifOneRowS SdifOneRowT;
struct SdifOneRowS ;
typedef struct SdifMatrixDataS SdifMatrixDataT;
struct SdifMatrixDataS ;
typedef struct SdifColumnDefS SdifColumnDefT;
struct SdifColumnDefS ;
typedef struct SdifMatrixTypeS SdifMatrixTypeT;
struct SdifMatrixTypeS ;
typedef struct SdifBlockNodeS SdifBlockNodeT;
struct SdifBlockNodeS ;
typedef struct SdifBlockListS SdifBlockListT;
struct SdifBlockListS ;
char *SdifMrType;
//

* NameValue

typedef struct SdifNameValueS SdifNameValueT;
struct SdifNameValueS ;
//

* NameValueTable

typedef struct SdifNameValueTableS SdifNameValueTableT;
struct SdifNameValueTableS ;
//

* NameValueTableList

typedef struct SdifNameValuesLS SdifNameValuesLT;
struct SdifNameValuesLS ;
typedef enum SdifSelectTokens;
typedef struct SdifSelectElementIntT;
typedef struct SdifSelectElementRealT;
typedef union SdifSelectValueS SdifSelectValueT;
typedef struct SdifSelectElementS SdifSelectElementT, *SdifSelectElementP;
typedef struct SdifSelectionT;
typedef struct SdifFileS SdifFileT;
typedef struct SdifSignatureTabS SdifSignatureTabT;
struct SdifSignatureTabS ;
// Stream ID Table and Entries for 1IDS ASCII chunk
typedef struct SdifStreamIDS SdifStreamIDT;
struct SdifStreamIDS ;
typedef struct SdifStreamIDTableS SdifStreamIDTableT;
struct SdifStreamIDTableS ;
// Structure declaration
typedef struct SdifStringS SdifStringT;
struct SdifStringS ;
typedef struct SdifTimePositionS SdifTimePositionT;
struct SdifTimePositionS ;
typedef struct SdifTimePositionLS SdifTimePositionLT;
struct SdifTimePositionLS ;

Back to the top of SDIF


Global Functions

int SdifCheckFileFormat (const char *name);
SdifSignature SdifCheckFileFramesTab (const char *name, const SdifSignatureTabT *frames);
int SdifCheckFileFramesIndex (const char *name, const SdifSignature *frames);
SdifSignature SdifCheckNextFrame (SdifFileT *in, const SdifSignatureTabT *frames, int *index);
SdifFileT* SdifFTryOpen (const char *Name, SdifFileModeET Mode);
size_t SdifFConvToTextMatrixData (SdifFileT *SdifF);
size_t SdifFConvToTextMatrixHeader (SdifFileT *SdifF);
size_t SdifFConvToTextMatrix (SdifFileT *SdifF);
size_t SdifFConvToTextFrameData (SdifFileT *SdifF);
size_t SdifFConvToTextFrameHeader (SdifFileT *SdifF);
size_t SdifFConvToTextFrame (SdifFileT *SdifF);
size_t SdifFConvToTextAllFrame (SdifFileT *SdifF);
size_t SdifFConvToText (SdifFileT *SdifF);
size_t SdifToText (SdifFileT *SdifF, char *TextStreamName);
// Error Handling
SdifErrorT* SdifCreateError (SdifErrorTagET Tag, SdifErrorLevelET Level, const char* UserMess);
void SdifKillError (void *Error);
SdifErrorLT* SdifCreateErrorL (SdifFileT* SdifF);
void SdifKillErrorL (SdifErrorLT *ErrorL);
SdifUInt4 SdifInsertTailError (SdifErrorLT* ErrorL, int ErrorCount [], SdifErrorTagET Tag, const char* UserMess);
SdifErrorT* SdifLastError (SdifErrorLT *ErrorL);
SdifErrorTagET SdifLastErrorTag (SdifErrorLT *ErrorL);
SdifUInt4 SdifFError (SdifFileT* SdifF, SdifErrorTagET ErrorTag, const char *UserMess, const char *file, const int line);
SdifInt4 SdifFsPrintError (char* oErrMess, SdifFileT* SdifF, SdifErrorT* Error, const char *LibFile, int LibLine);
void SdifEnableErrorOutput (void);
void SdifDisableErrorOutput (void);
void SdifSetExitFunc (SdifExitFuncT func);
void SdifErrorWarning(SdifErrorEnum Error, const void *ErrorMess);
int SdifFGetSignature (SdifFileT *SdifF, size_t *NbCharRead);
int SdifFGetOneNameValue (SdifFileT *SdifF, int Verbose, size_t *NbCharRead);
size_t SdifFGetNameValueLCurrNVT(SdifFileT *SdifF, int Verbose);
int SdifFNameValueLCurrNVTfromString (SdifFileT *SdifF, char *str);
size_t SdifFGetOneMatrixType (SdifFileT *SdifF, int Verbose);
size_t SdifFGetOneMatrixTypefromSdifString(SdifFileT *SdifF, SdifStringT *SdifString);
int SdifFGetOneComponent (SdifFileT *SdifF, int Verbose, SdifSignature *MatrixSignature, char *ComponentName, size_t *NbCharRead);
int SdifFGetOneComponentfromSdifString(SdifFileT *SdifF, SdifStringT *SdifString, SdifSignature *MatrixSignature, char *ComponentName);
size_t SdifFGetOneFrameType (SdifFileT *SdifF, int Verbose);
size_t SdifFGetOneFrameTypefromSdifString(SdifFileT *SdifF, SdifStringT *SdifString);
size_t SdifFGetAllType (SdifFileT *SdifF, int Verbose);
size_t SdifFGetAllTypefromSdifString (SdifFileT *SdifF, SdifStringT *SdifString);
int SdifFGetOneStreamID (SdifFileT *SdifF, int Verbose, size_t *NbBytesRead);
int SdifFgetOneStreamIDfromSdifString(SdifFileT *SdifF, SdifStringT *SdifString);
size_t SdifFGetAllStreamID (SdifFileT *SdifF, int Verbose);
size_t SdifFGetAllStreamIDfromSdifString(SdifFileT *SdifF, SdifStringT *SdifString);
//

* obsolete

size_t SdifFGetNameValueCurrHT (SdifFileT *SdifF, int Verbose);
size_t SdifFPrintGeneralHeader (SdifFileT *SdifF);
size_t SdifFPrintNameValueLCurrNVT (SdifFileT *SdifF);
size_t SdifFPrintAllNameValueNVT (SdifFileT *SdifF);
size_t SdifFPrintAllType (SdifFileT *SdifF);
size_t SdifFPrintAllStreamID (SdifFileT *SdifF);
size_t SdifFPrintAllASCIIChunks (SdifFileT *SdifF);
size_t SdifFPrintMatrixHeader (SdifFileT *SdifF);
size_t SdifFPrintFrameHeader (SdifFileT *SdifF);
size_t SdifFPrintOneRow (SdifFileT *SdifF);
size_t SdifFPrintMatrixType (SdifFileT *SdifF, SdifMatrixTypeT *MatrixType);
size_t SdifFPrintFrameType (SdifFileT *SdifF, SdifFrameTypeT *FrameType);
//

* obsolete

size_t SdifFPrintNameValueCurrHT (SdifFileT *SdifF);
size_t SdifFPrintAllNameValueHT (SdifFileT *SdifF);
size_t SdifFPutOneNameValue (SdifFileT *SdifF, int Verbose, SdifNameValueT *NameValue);
size_t SdifFPutNameValueLCurrNVT (SdifFileT *SdifF, int Verbose);
int SdifFNameValueLCurrNVTtoSdifString(SdifFileT *SdifF, SdifStringT *SdifString);
size_t SdifFPutOneMatrixType (SdifFileT *SdifF, int Verbose, SdifMatrixTypeT *MatrixType);
int SdifFOneMatrixTypeToSdifString(SdifMatrixTypeT *MatrixType, SdifStringT *SdifString);
size_t SdifFPutAllMatrixType (SdifFileT *SdifF, int Verbose);
int SdifFAllMatrixTypeToSdifString(SdifFileT *SdifF, SdifStringT *SdifSTring);
size_t SdifFPutOneComponent(SdifFileT *SdifF, int Verbose, SdifComponentT *Component);
int SdifFOneComponentToSdifString(SdifComponentT *Component, SdifStringT *SdifString);
size_t SdifFPutOneFrameType(SdifFileT *SdifF, int Verbose, SdifFrameTypeT *FrameType);
int SdifFOneFrameTypeToSdifString(SdifFrameTypeT *FrameType, SdifStringT *SdifString);
size_t SdifFPutAllFrameType (SdifFileT *SdifF, int Verbose);
int SdifFAllFrameTypeToSdifString (SdifFileT *SdifF, SdifStringT *SdifString);
size_t SdifFPutAllType (SdifFileT *SdifF, int Verbose);
size_t SdifFPutOneStreamID (SdifFileT *SdifF, int Verbose, SdifStreamIDT *StreamID);
int SdifFOneStreamIDToSDifString (SdifStringT *SdifString, SdifStreamIDT *StreamID);
size_t SdifFPutAllStreamID (SdifFileT *SdifF, int Verbose);
int SdifFAllStreamIDToSdifString (SdifFileT *SdifF, SdifStringT *SdifString);
//

* obsolete

size_t SdifFPutNameValueCurrHT (SdifFileT *SdifF, int Verbose);
size_t SdifFReadGeneralHeader (SdifFileT *SdifF);
size_t SdifFReadChunkSize (SdifFileT *SdifF);
size_t SdifFReadNameValueLCurrNVT(SdifFileT *SdifF);
size_t SdifFReadAllType (SdifFileT *SdifF);
size_t SdifFReadAllStreamID (SdifFileT *SdifF);
size_t SdifFReadAllASCIIChunks (SdifFileT *SdifF);
size_t SdifFReadMatrixHeader (SdifFileT *SdifF);
size_t SdifFReadOneRow (SdifFileT *SdifF);
size_t SdifFReadFrameHeader (SdifFileT *SdifF);
size_t SdifFSkipMatrix (SdifFileT *SdifF);
// obsolete
size_t SdifSkipMatrix (SdifFileT *SdifF);
size_t SdifFSkipMatrixData (SdifFileT *SdifF);
// obsolete
size_t SdifSkipMatrixData (SdifFileT *SdifF);
size_t SdifFSkipFrameData (SdifFileT *SdifF);
// obsolete
size_t SdifSkipFrameData (SdifFileT *SdifF);
size_t SdifFReadPadding (SdifFileT *SdifF, size_t Padding);
size_t SdifFReadUndeterminatedPadding (SdifFileT *SdifF);
size_t SdifFReadAndIgnore (SdifFileT *SdifF, size_t bytes);
size_t SdifFReadOneMatrixType (SdifFileT *SdifF);
size_t SdifFReadOneFrameType (SdifFileT *SdifF);
size_t SdifFReadTextMatrix(SdifFileT *SdifF, SdifStringT *SdifString);
size_t SdifFReadTextMatrixData(SdifFileT *SdifF, SdifStringT *SdifString);
//

* obsolete

size_t SdifFReadNameValueCurrHT (SdifFileT *SdifF);
size_t SdifFScanGeneralHeader (SdifFileT *SdifF);
size_t SdifFScanNameValueLCurrNVT (SdifFileT *SdifF);
size_t SdifFScanAllType (SdifFileT *SdifF);
size_t SdifFScanAllStreamID (SdifFileT *SdifF);
size_t SdifFScanAllASCIIChunks (SdifFileT *SdifF);
void SdifFScanMatrixHeader (SdifFileT *SdifF);
void SdifFScanFrameHeader (SdifFileT *SdifF);
void SdifFScanOneRow (SdifFileT *SdifF);
size_t SdifFScanMatrixType (SdifFileT *SdifF);
size_t SdifFScanFrameType (SdifFileT *SdifF);
//

* obsolete

size_t SdifFScanNameValueCurrHT (SdifFileT *SdifF);
size_t SdifFWriteGeneralHeader (SdifFileT *SdifF);
size_t SdifFWriteChunkHeader (SdifFileT *SdifF, SdifSignature ChunkSignature, size_t ChunkSize);
size_t SdifFWriteNameValueLCurrNVT (SdifFileT *SdifF);
size_t SdifFWriteAllNameValueNVT (SdifFileT *SdifF);
size_t SdifFWriteOneNameValue (SdifFileT *SdifF, SdifNameValueT *NameValue);
size_t SdifFWriteOneMatrixType (SdifFileT *SdifF, SdifMatrixTypeT *MatrixType);
size_t SdifFWriteOneComponent (SdifFileT *SdifF, SdifComponentT *Component);
size_t SdifFWriteOneFrameType (SdifFileT *SdifF, SdifFrameTypeT *FrameType);
size_t SdifFWriteOneStreamID (SdifFileT *SdifF, SdifStreamIDT *StreamID);
size_t SdifFWriteAllMatrixType (SdifFileT* SdifF);
size_t SdifFWriteAllFrameType (SdifFileT *SdifF);
size_t SdifFWriteAllType (SdifFileT *SdifF);
size_t SdifFWriteAllStreamID (SdifFileT *SdifF);
size_t SdifFWriteAllASCIIChunks (SdifFileT *SdifF);
size_t SdifFWriteMatrixHeader (SdifFileT *SdifF);
size_t SdifFWriteOneRow (SdifFileT *SdifF);
size_t SdifFWriteMatrixData (SdifFileT *SdifF, void *Data);
size_t SdifFWriteMatrix (SdifFileT *SdifF, SdifSignature Signature, SdifDataTypeET DataType, SdifUInt4 NbRow, SdifUInt4 NbCol, void *Data);
size_t SdifFWriteTextMatrix (SdifFileT *SdifF, SdifSignature Signature, SdifUInt4 Length, char *Data);
size_t SdifAsciiToUTF8 (char *ascii_in, char *utf8_out);
size_t SdifFWritePadding (SdifFileT *SdifF, size_t Padding);
size_t SdifFWriteFrameHeader (SdifFileT *SdifF);
void SdifUpdateChunkSize (SdifFileT *SdifF, size_t ChunkSize);
int SdifUpdateFrameHeader (SdifFileT *SdifF, size_t ChunkSize, SdifInt4 NumMatrix);
size_t SdifFWriteFrameAndOneMatrix (SdifFileT *SdifF, SdifSignature FrameSignature, SdifUInt4 NumID, SdifFloat8 Time, SdifSignature MatrixSignature, SdifDataTypeET DataType, SdifUInt4 NbRow, SdifUInt4 NbCol, void *Data);
size_t SdifSizeOfFrameHeader (void);
size_t SdifSizeOfMatrix (SdifDataTypeET DataType, SdifUInt4 NbRow, SdifUInt4 NbCol);
size_t SdifFWriteTextFrame(SdifFileT *SdifF, SdifSignature FrameSignature, SdifUInt4 NumID, SdifFloat8 Time, SdifSignature MatrixSignature, char *str, size_t length);
size_t SdifFWriteTextFrameSdifString(SdifFileT *SdifF, SdifSignature FrameSignature, SdifUInt4 NumID, SdifFloat8 Time, SdifSignature MatrixSignature, SdifStringT *SdifString);
//

* obsolete

size_t SdifFWriteNameValueCurrHT (SdifFileT *SdifF);
size_t SdifFWriteAllNameValueHT (SdifFileT *SdifF);
// Opening and Closing of Files
// DOC:

SdifFileT* SdifFOpen (const char *Name, SdifFileModeET Mode);
SdifFileT* SdifOpenFile (const char *Name, SdifFileModeET Mode);
SdifFileT* SdifFOpenText (SdifFileT *SdifF, const char* Name, SdifFileModeET Mode);
// DOC:

void SdifFClose (SdifFileT *SdifF);
void SdifCloseFile (SdifFileT *SdifF);
SdifFrameHeaderT* SdifFCreateCurrFramH (SdifFileT *SdifF, SdifSignature Signature);
SdifMatrixHeaderT* SdifFCreateCurrMtrxH (SdifFileT *SdifF);
FILE* SdifFGetFILE_SwitchVerbose (SdifFileT *SdifF, int Verbose);
void SdifTakeCodedPredefinedTypes (SdifFileT *SdifF);
void SdifFLoadPredefinedTypes (SdifFileT *SdifF, char *TypesFileName);
// Init/Deinit of the Library
void SdifGenInit (char *PredefinedTypesFile);
void SdifGenInitCond (char *PredefinedTypesFile);
void SdifGenKill (void);
void SdifPrintVersion(void);
// Current Header Access Functions
SdifFrameHeaderT* SdifFSetCurrFrameHeader (SdifFileT *SdifF, SdifSignature Signature, SdifUInt4 Size, SdifUInt4 NbMatrix, SdifUInt4 NumID, SdifFloat8 Time);
SdifMatrixHeaderT* SdifFSetCurrMatrixHeader (SdifFileT *SdifF, SdifSignature Signature, SdifDataTypeET DataType, SdifUInt4 NbRow, SdifUInt4 NbCol);
SdifOneRowT* SdifFSetCurrOneRow (SdifFileT *SdifF, void *Values);
SdifOneRowT* SdifFSetCurrOneRowCol (SdifFileT *SdifF, SdifUInt4 numCol, SdifFloat8 Value);
SdifFloat8 SdifFCurrOneRowCol (SdifFileT *SdifF, SdifUInt4 numCol);
SdifFloat8 SdifFCurrOneRowColName (SdifFileT *SdifF, SdifMatrixTypeT *MatrixType, char *NameCD);
SdifSignature SdifFCurrSignature (SdifFileT *SdifF);
SdifSignature SdifFCleanCurrSignature (SdifFileT *SdifF);
SdifSignature SdifFCurrFrameSignature (SdifFileT *SdifF);
SdifSignature SdifFCurrMatrixSignature (SdifFileT *SdifF);
SdifOneRowT* SdifFCurrOneRow (SdifFileT *SdifF);
void* SdifFCurrOneRowData (SdifFileT *SdifF);
SdifUInt4 SdifFCurrNbCol (SdifFileT *SdifF);
SdifUInt4 SdifFCurrNbRow (SdifFileT *SdifF);
SdifDataTypeET SdifFCurrDataType (SdifFileT *SdifF);
SdifUInt4 SdifFCurrNbMatrix (SdifFileT *SdifF);
SdifUInt4 SdifFCurrID (SdifFileT *SdifF);
SdifFloat8 SdifFCurrTime (SdifFileT *SdifF);
// File Data Access Functions
SdifNameValuesLT *SdifFNameValueList (SdifFileT *file);
int SdifFNameValueNum (SdifFileT *file);
SdifStreamIDTableT *SdifFStreamIDTable (SdifFileT *file);
int SdifFAddUserData (SdifFileT *file, void *data);
void *SdifFGetUserData (SdifFileT *file, int index);
SdifFileT* SdifFReInitMtrxUsed (SdifFileT *SdifF);
SdifFileT* SdifFPutInMtrxUsed (SdifFileT *SdifF, SdifSignature Sign);
SdifSignature SdifFIsInMtrxUsed (SdifFileT *SdifF, SdifSignature Sign);
// Error flag for file
int SdifFNumErrors (SdifFileT *SdifF, SdifErrorLevelET upto);
SdifErrorT* SdifFLastError (SdifFileT *SdifF);
SdifErrorTagET SdifFLastErrorTag (SdifFileT *SdifF);
SdifFrameHeaderT* SdifCreateFrameHeader(SdifSignature Signature, SdifUInt4 Size, SdifUInt4 NbMatrix, SdifUInt4 NumID, SdifFloat8 Time);
top of SDIF


void SdifKillTimePosition(void* TimePosition);

#include "SdifTimePosition.h"

No documentation available.

void               SdifKillTimePosition(void* TimePosition);

Back to the top of SDIF


typedef struct SdifTimePositionLS SdifTimePositionLT;

#include "SdifTimePosition.h"

No documentation available.

typedef struct SdifTimePositionLS SdifTimePositionLT;

Back to the top of SDIF


struct SdifTimePositionLS ;

#include "SdifTimePosition.h"

No documentation available.

struct SdifTimePositionLS
{
    SdifListT*          TimePosList;
} ;

Back to the top of SDIF


SdifTimePositionLT* SdifCreateTimePositionL(void);

#include "SdifTimePosition.h"

No documentation available.

SdifTimePositionLT* SdifCreateTimePositionL(void);

Back to the top of SDIF


void SdifKillTimePositionL (SdifTimePositionLT *TimePositionL);

#include "SdifTimePosition.h"

No documentation available.

void                SdifKillTimePositionL  (SdifTimePositionLT *TimePositionL);

Back to the top of SDIF


SdifTimePositionLT* SdifTimePositionLPutTail(SdifTimePositionLT* TimePositionL, SdifFloat8 Time, SdiffPosT Position);

#include "SdifTimePosition.h"

No documentation available.

SdifTimePositionLT* SdifTimePositionLPutTail(SdifTimePositionLT* TimePositionL,
                                             SdifFloat8 Time, SdiffPosT Position);

Back to the top of SDIF


SdifTimePositionT* SdifTimePositionLGetTail(SdifTimePositionLT* TimePositionL);

#include "SdifTimePosition.h"

No documentation available.

SdifTimePositionT*  SdifTimePositionLGetTail(SdifTimePositionLT* TimePositionL);

Back to the top of SDIF


Generated from source by the Cocoon utilities on Tue Aug 22 21:54:55 2000 .

Report problems to jkotula@stratasys.com