00001 /****************************************************************************************/ 00002 /* STRBLOCK.H */ 00003 /* */ 00004 /* Author: Mike Sandige */ 00005 /* Description: String block interface. */ 00006 /* */ 00007 /* The contents of this file are subject to the Genesis3D Public License */ 00008 /* Version 1.01 (the "License"); you may not use this file except in */ 00009 /* compliance with the License. You may obtain a copy of the License at */ 00010 /* http://www.genesis3d.com */ 00011 /* */ 00012 /* Software distributed under the License is distributed on an "AS IS" */ 00013 /* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See */ 00014 /* the License for the specific language governing rights and limitations */ 00015 /* under the License. */ 00016 /* */ 00017 /* The Original Code is Genesis3D, released March 25, 1999. */ 00018 /* Genesis3D Version 1.1 released November 15, 1999 */ 00019 /* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */ 00020 /* */ 00021 /****************************************************************************************/ 00022 // geStrBlock 00023 #ifndef GE_STRBLOCK_H 00024 #define GE_STRBLOCK_H 00025 00026 #include "basetype.h" // geBoolean 00027 #include "vfile.h" 00028 00029 #ifdef __cplusplus 00030 extern "C" { 00031 #endif 00032 00033 typedef struct geStrBlock geStrBlock; 00034 00035 geStrBlock *GENESISCC geStrBlock_Create(void); 00036 void GENESISCC geStrBlock_Destroy(geStrBlock **SB); 00037 00038 geBoolean GENESISCC geStrBlock_Append(geStrBlock **ppSB,const char *String); 00039 00040 void GENESISCC geStrBlock_Delete(geStrBlock **ppSB,int Nth); 00041 00042 const char *GENESISCC geStrBlock_GetString(const geStrBlock *SB, int Index); 00043 00044 // untested... 00045 //geBoolean GENESISCC geStrBlock_SetString(geStrBlock **ppSB, int Index, const char *String); 00046 //geBoolean GENESISCC geStrBlock_Insert(geStrBlock **ppSB,int InsertAfterIndex,const char *String); 00047 00048 geBoolean GENESISCC geStrBlock_FindString(const geStrBlock* pSB, const char* String, int* pIndex); 00049 00050 int GENESISCC geStrBlock_GetCount(const geStrBlock *SB); 00051 int GENESISCC geStrBlock_GetChecksum(const geStrBlock *SB); 00052 00053 geStrBlock* GENESISCC geStrBlock_CreateFromFile(geVFile* pFile); 00054 geBoolean GENESISCC geStrBlock_WriteToFile(const geStrBlock *SB, geVFile *pFile); 00055 geBoolean GENESISCC geStrBlock_WriteToBinaryFile(const geStrBlock *SB,geVFile *pFile); 00056 00057 #ifdef __cplusplus 00058 } 00059 #endif 00060 00061 #endif
1.3.2