Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00043 #ifndef _orxCONFIG_H_
00044 #define _orxCONFIG_H_
00045
00046
00047 #include "orxInclude.h"
00048
00049 #include "math/orxVector.h"
00050
00051
00054 typedef enum __orxCONFIG_EVENT_t
00055 {
00056 orxCONFIG_EVENT_RELOAD_START = 0,
00057 orxCONFIG_EVENT_RELOAD_STOP,
00058 orxCONFIG_EVENT_INVALID_TYPE_ACCESS,
00060 orxCONFIG_EVENT_NUMBER,
00061
00062 orxCONFIG_EVENT_NONE = orxENUM_NONE
00063
00064 } orxCONFIG_EVENT;
00065
00066
00068 typedef orxBOOL (orxFASTCALL *orxCONFIG_SAVE_FUNCTION)(const orxSTRING _zSectionName, const orxSTRING _zKeyName, const orxSTRING _zFileName, orxBOOL _bUseEncryption);
00069
00070
00073 extern orxDLLAPI void orxFASTCALL orxConfig_Setup();
00074
00078 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_Init();
00079
00082 extern orxDLLAPI void orxFASTCALL orxConfig_Exit();
00083
00084
00089 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_SetEncryptionKey(const orxSTRING _zEncryptionKey);
00090
00095 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_SetBaseName(const orxSTRING _zBaseName);
00096
00100 extern orxDLLAPI const orxSTRING orxFASTCALL orxConfig_GetMainFileName();
00101
00102
00107 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_Load(const orxSTRING _zFileName);
00108
00112 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_ReloadHistory();
00113
00120 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_Save(const orxSTRING _zFileName, orxBOOL _bUseEncryption, const orxCONFIG_SAVE_FUNCTION _pfnSaveCallback);
00121
00125 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_SelectSection(const orxSTRING _zSectionName);
00126
00131 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_RenameSection(const orxSTRING _zSectionName, const orxSTRING _zNewSectionName);
00132
00137 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_SetParent(const orxSTRING _zSectionName, const orxSTRING _zParentName);
00138
00143 extern orxDLLAPI const orxSTRING orxFASTCALL orxConfig_GetParent(const orxSTRING _zSectionName);
00144
00148 extern orxDLLAPI const orxSTRING orxFASTCALL orxConfig_GetCurrentSection();
00149
00154 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_PushSection(const orxSTRING _zSectionName);
00155
00159 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_PopSection();
00160
00165 extern orxDLLAPI orxBOOL orxFASTCALL orxConfig_HasSection(const orxSTRING _zSectionName);
00166
00172 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_ProtectSection(const orxSTRING _zSectionName, orxBOOL _bProtect);
00173
00177 extern orxDLLAPI orxS32 orxFASTCALL orxConfig_GetSectionCounter();
00178
00183 extern orxDLLAPI const orxSTRING orxFASTCALL orxConfig_GetSection(orxS32 _s32SectionIndex);
00184
00188 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_Clear();
00189
00193 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_ClearSection(const orxSTRING _zSectionName);
00194
00199 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_ClearValue(const orxSTRING _zKey);
00200
00201
00206 extern orxDLLAPI orxBOOL orxFASTCALL orxConfig_IsInheritedValue(const orxSTRING _zKey);
00207
00208
00213 extern orxDLLAPI orxBOOL orxFASTCALL orxConfig_HasValue(const orxSTRING _zKey);
00214
00219 extern orxDLLAPI orxS32 orxFASTCALL orxConfig_GetS32(const orxSTRING _zKey);
00220
00225 extern orxDLLAPI orxU32 orxFASTCALL orxConfig_GetU32(const orxSTRING _zKey);
00226
00231 extern orxDLLAPI orxFLOAT orxFASTCALL orxConfig_GetFloat(const orxSTRING _zKey);
00232
00237 extern orxDLLAPI const orxSTRING orxFASTCALL orxConfig_GetString(const orxSTRING _zKey);
00238
00243 extern orxDLLAPI orxBOOL orxFASTCALL orxConfig_GetBool(const orxSTRING _zKey);
00244
00250 extern orxDLLAPI orxVECTOR *orxFASTCALL orxConfig_GetVector(const orxSTRING _zKey, orxVECTOR *_pvVector);
00251
00256 extern orxDLLAPI orxSTRING orxFASTCALL orxConfig_DuplicateRawValue(const orxSTRING _zKey);
00257
00258
00264 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_SetS32(const orxSTRING _zKey, orxS32 _s32Value);
00265
00271 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_SetU32(const orxSTRING _zKey, orxU32 _u32Value);
00272
00278 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_SetFloat(const orxSTRING _zKey, orxFLOAT _fValue);
00279
00285 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_SetString(const orxSTRING _zKey, const orxSTRING _zValue);
00286
00292 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_SetStringBlock(const orxSTRING _zKey, const orxSTRING _zValue);
00293
00299 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_SetBool(const orxSTRING _zKey, orxBOOL _bValue);
00300
00306 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_SetVector(const orxSTRING _zKey, const orxVECTOR *_pvValue);
00307
00308
00313 extern orxDLLAPI orxBOOL orxFASTCALL orxConfig_IsList(const orxSTRING _zKey);
00314
00319 extern orxDLLAPI orxS32 orxFASTCALL orxConfig_GetListCounter(const orxSTRING _zKey);
00320
00326 extern orxDLLAPI orxS32 orxFASTCALL orxConfig_GetListS32(const orxSTRING _zKey, orxS32 _s32ListIndex);
00327
00333 extern orxDLLAPI orxU32 orxFASTCALL orxConfig_GetListU32(const orxSTRING _zKey, orxS32 _s32ListIndex);
00334
00340 extern orxDLLAPI orxFLOAT orxFASTCALL orxConfig_GetListFloat(const orxSTRING _zKey, orxS32 _s32ListIndex);
00341
00347 extern orxDLLAPI const orxSTRING orxFASTCALL orxConfig_GetListString(const orxSTRING _zKey, orxS32 _s32ListIndex);
00348
00354 extern orxDLLAPI orxBOOL orxFASTCALL orxConfig_GetListBool(const orxSTRING _zKey, orxS32 _s32ListIndex);
00355
00362 extern orxDLLAPI orxVECTOR *orxFASTCALL orxConfig_GetListVector(const orxSTRING _zKey, orxS32 _s32ListIndex, orxVECTOR *_pvVector);
00363
00370 extern orxDLLAPI orxSTATUS orxFASTCALL orxConfig_SetStringList(const orxSTRING _zKey, const orxSTRING _azValue[], orxU32 _u32Number);
00371
00375 extern orxDLLAPI orxS32 orxFASTCALL orxConfig_GetKeyCounter();
00376
00381 extern orxDLLAPI const orxSTRING orxFASTCALL orxConfig_GetKey(orxS32 _s32KeyIndex);
00382
00383 #endif
00384