CIniFile C++ Class Library 

Description

The CIniFile class library is a simple C++ class to read and write ini files like
the microsoft ini files. The CIniFile package contains both, the C++ and the
C version.

CIniFile translates the hole ini file in a structure, so it works best when a set
of entrys (more then one) have to be read or write.

CIniFile is writen by Carsten Breuer (C.Breuer@openwin.de).

License

LGPL (Free for private and comercial use).

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your option)
any later version.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Methods

CIniFile (void);

~CIniFile (void);

UINT GetVersion (void);

BOOL OpenIniFile (CCHR *pFileName);

BOOL ReadBool (CCHR *pSection, CCHR *pKey, BOOL Default);

int ReadInt (CCHR *pSection, CCHR *pKey, int Default);

double ReadDouble (CCHR *pSection, CCHR *pKey, double Default);

CCHR *ReadString (CCHR *pSection, CCHR *pKey, CCHR *pDefault);

void WriteBool (CCHR *pSection, CCHR *pKey, bool Value);

void WriteInt (CCHR *pSection, CCHR *pKey, int Value);

void WriteDouble (CCHR *pSection, CCHR *pKey, double Value);

void WriteString (CCHR *pSection, CCHR *pKey, CCHR *pValue);

bool DeleteKey (CCHR *pSection, CCHR *pKey);

void CloseIniFile ();

bool WriteIniFile (CCHR *pFileName);



To have our freedom: 
THIS SITE contains only material for EDUCATIONAL PURPOSE. We dissociate ourself from any
link we have set here. Every TRADEMARK ARE TRADEMARKS OF THE RESPECTIVE OWNER!
This SITE IS BUILD WITH THE PURPOSE TO HELP PEOPLE.