IniFile.h
Go to the documentation of this file.00001
00002
00003
#ifndef INIFILE_H
00004
#define INIFILE_H
00005
00006
#include "XmlFile.h"
00007
using namespace std;
00008
00009
class RageFileBasic;
00010
00011 class IniFile :
public XNode
00012 {
00013
private:
00014 CString m_sPath;
00015
00016 mutable CString m_sError;
00017
00018
public:
00019
IniFile();
00020
00021
00022 CString GetPath()
const {
return m_sPath; }
00023 const CString &
GetError()
const {
return m_sError; }
00024
00025
bool ReadFile(
const CString &sPath );
00026
bool ReadFile(
RageFileBasic &sFile );
00027
bool WriteFile(
const CString &sPath )
const;
00028
bool WriteFile(
RageFileBasic &sFile )
const;
00029
00030
bool GetValue(
const CString &key,
const CString &valuename, CString& value )
const;
00031
bool GetValue(
const CString &key,
const CString &valuename,
int& value )
const;
00032
bool GetValue(
const CString &key,
const CString &valuename,
unsigned& value )
const;
00033
bool GetValue(
const CString &key,
const CString &valuename,
float& value )
const;
00034
bool GetValue(
const CString &key,
const CString &valuename,
bool& value )
const;
00035
00036
void SetValue(
const CString &key,
const CString &valuename,
const CString &value );
00037
void SetValue(
const CString &key,
const CString &valuename,
int value );
00038
void SetValue(
const CString &key,
const CString &valuename,
unsigned value );
00039
void SetValue(
const CString &key,
const CString &valuename,
float value );
00040
void SetValue(
const CString &key,
const CString &valuename,
bool value );
00041
00042
bool DeleteKey(
const CString &keyname );
00043
bool DeleteValue(
const CString &keyname,
const CString &valuename );
00044
00045
00046
00047
00048
bool RenameKey(
const CString &from,
const CString &to );
00049 };
00050
00051
#endif
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
Generated on Thu Jan 27 20:57:21 2005 for StepMania by
1.3.7