-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ini.h
61 lines (51 loc) · 1.51 KB
/
Ini.h
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef INI_H
#define INI_H
#include "Comment.h"
#include "Common.h"
#include "Comptask.h"
class CIni : public CComment, public CCommon, public CCompTask
{
public:
/** Default constructor */
CIni();
/** Default destructor */
virtual ~CIni();
/** Set m_Filename
* \param val New value to set
*/
void SetFilename(wxString val) { m_Filename = val; }
/** Set m_Section
* \param val New value to set
*/
void SetSection(wxString val) { m_Section = val; }
/** Set m_Key
* \param val New value to set
*/
void SetKey(wxString val) { m_Key = val; }
/** Set m_String
* \param val New value to set
*/
void SetString(wxString val) { m_String = val; }
/** Set m_Flags
* \param val New value to set
*/
void SetFlags(wxString val) { m_Flags = val; }
void WriteInFile( wxTextFile* File);
void Analize( const wxString& content, const wxString& line);
void FillContent(wxListCtrl* liste);
static void AddHeader(wxListCtrl* liste);
static const wxString Flags[];
protected:
private:
wxString m_Filename; //!< Member variable "m_Filename"
wxString m_Section; //!< Member variable "m_Section"
wxString m_Key; //!< Member variable "m_Key"
wxString m_String; //!< Member variable "m_String"
wxString m_Flags; //!< Member variable "m_Flags"
static int m_index_filename;
static int m_index_section;
static int m_index_key;
static int m_index_string;
static int m_index_flags;
};
#endif // INI_H