cleanup
This commit is contained in:
+4
-11
@@ -13,14 +13,8 @@
|
|||||||
|
|
||||||
class IniFile
|
class IniFile
|
||||||
{
|
{
|
||||||
//all private variables
|
|
||||||
private:
|
|
||||||
|
|
||||||
//stores pathname of ini file to read/write
|
|
||||||
CString path;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//all keys are of this time
|
// all keys are of this type
|
||||||
struct key
|
struct key
|
||||||
{
|
{
|
||||||
//list of values in key
|
//list of values in key
|
||||||
@@ -31,6 +25,9 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
//stores pathname of ini file to read/write
|
||||||
|
CString path;
|
||||||
|
|
||||||
//list of keys in ini
|
//list of keys in ini
|
||||||
CArray<key, key> keys;
|
CArray<key, key> keys;
|
||||||
|
|
||||||
@@ -38,7 +35,6 @@ private:
|
|||||||
CArray<CString, CString> names;
|
CArray<CString, CString> names;
|
||||||
|
|
||||||
|
|
||||||
//all private functions
|
|
||||||
private:
|
private:
|
||||||
//returns index of specified value, in the specified key, or -1 if not found
|
//returns index of specified value, in the specified key, or -1 if not found
|
||||||
int FindValue(int keynum, const CString &valuename);
|
int FindValue(int keynum, const CString &valuename);
|
||||||
@@ -47,7 +43,6 @@ private:
|
|||||||
int FindKey(const CString &keyname);
|
int FindKey(const CString &keyname);
|
||||||
|
|
||||||
|
|
||||||
//public variables
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//will contain error info if one occurs
|
//will contain error info if one occurs
|
||||||
@@ -55,8 +50,6 @@ public:
|
|||||||
CString error;
|
CString error;
|
||||||
|
|
||||||
|
|
||||||
//public functions
|
|
||||||
public:
|
|
||||||
//constructor, can specify pathname here instead of using SetPath later
|
//constructor, can specify pathname here instead of using SetPath later
|
||||||
IniFile(CString inipath = "");
|
IniFile(CString inipath = "");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user