1 #ifndef __FBCONFIGFILE_H__
2 #define __FBCONFIGFILE_H__
43 #include <kaydaradef.h>
48 #define FBSDK_DLL K_DLLIMPORT
51 #include <fbsdk/fbversion.h>
53 #ifdef FBSDKUseNamespace
54 namespace FBSDKNamespace {
75 void* mImplementation;
88 FBConfigFile(
const char* pConfigFileName,
bool pVirtualMode =
false,
bool pClearFile =
false);
101 FBConfigFile(
const char* pConfigFileName,
const char* pConfigFilePath,
bool pVirtualMode =
false,
bool pClearFile =
false );
115 bool Set(
const char* pSectionName,
const char* pItemName,
const char* pValue,
const char* pComment = 0 );
124 const char*
Get(
const char* pSectionName,
const char* pItemName,
const char* pDefaultValue = 0 );
133 bool GetOrSet(
const char* pSectionName,
const char* pItemName,
const char*& pValue,
const char* pComment = 0 );
141 #ifdef FBSDKUseNamespace
Interface to the application config files.
FBConfigFile(const char *pConfigFileName, bool pVirtualMode=false, bool pClearFile=false)
Constructor.
FBConfigFile(const char *pConfigFileName, const char *pConfigFilePath, bool pVirtualMode=false, bool pClearFile=false)
Constructor.
void ClearFile()
Remove all content from the config file.
const char * Get(const char *pSectionName, const char *pItemName, const char *pDefaultValue=0)
Get an item's value.
bool GetOrSet(const char *pSectionName, const char *pItemName, const char *&pValue, const char *pComment=0)
Get a value from the config file and set it if it was not found.
bool Set(const char *pSectionName, const char *pItemName, const char *pValue, const char *pComment=0)
Set an item's value.
~FBConfigFile()
Destructor.
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...