[50c14b]: ini.h Maximize Restore History

Download this file

ini.h    35 lines (27 with data), 835 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// ini.h: interface for the Cini class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_INI_H__14AB31A7_EC8E_41A0_A456_EE34709F8C5F__INCLUDED_)
#define AFX_INI_H__14AB31A7_EC8E_41A0_A456_EE34709F8C5F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class Cini:public CStringMapToCStringMapString
{
private:
int fhandle;
int startpoint;
int maxlen;
public:
Cini();
~Cini();
CStringList valid;
bool IsValid(CString what);
void AddValid(CString what);
void AddValid(CString *what, int cnt);
bool HasSection(CString what);
CString GetValue(CString section, CString key);
void RemoveAll();
int ReadIniFromFile(int fh, long ml);
};
#endif // !defined(AFX_INI_H__14AB31A7_EC8E_41A0_A456_EE34709F8C5F__INCLUDED_)