home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
tlx501.zip
/
PROFILE.H
< prev
next >
Wrap
C/C++ Source or Header
|
1996-01-05
|
752b
|
36 lines
#ifndef _TLX_PROFILE_H
#define _TLX_PROFILE_H
#ifndef _TLX_TLX_H
#include <tlx\501\tlx.h>
#endif
//
// class TProfile
// ----- --------
//
class _TLXCLASS TProfile
{
public:
// Use system profile for filename==0
//
TProfile(const char* section, const char* filename = 0);
~TProfile();
int GetInt(const char* key, int defaultInt = 0);
// Returns all section values if key==0
//
bool GetString(const char* key, char buff[],
unsigned buffSize, const char* defaultString = "");
bool WriteInt(const char* key, int value);
bool WriteString(const char* key, const char* str);
private:
char* Section;
char* FileName;
};
#endif // _TLX_PROFILE_H