X-Git-Url: http://git.osdn.net/view?p=peercast-im%2FPeerCastIM.git;a=blobdiff_plain;f=c%3A%2FGit%2FPeerCast.root%2FPeerCast%2Fcore%2Fcommon%2Finifile.h;fp=c%3A%2FGit%2FPeerCast.root%2FPeerCast%2Fcore%2Fcommon%2Finifile.h;h=0000000000000000000000000000000000000000;hp=2b75cca5206a2465df016bdd065d0f625b629515;hb=0bb1cde16678f894377e2497e9e1eb0a16d5a215;hpb=fdeb54807c210bd5b53b486d1675aba4567e5f2b diff --git a/c:/Git/PeerCast.root/PeerCast/core/common/inifile.h b/c:/Git/PeerCast.root/PeerCast/core/common/inifile.h deleted file mode 100644 index 2b75cca..0000000 --- a/c:/Git/PeerCast.root/PeerCast/core/common/inifile.h +++ /dev/null @@ -1,53 +0,0 @@ -// ------------------------------------------------ -// File : inifile.h -// Date: 4-apr-2002 -// Author: giles -// Desc: -// -// (c) 2002 peercast.org -// ------------------------------------------------ -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU 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 General Public License for more details. -// ------------------------------------------------ - -#ifndef _INIFILE -#define _INIFILE - -#include "stream.h" - -// ----------------------------------------- -class IniFile -{ -public: - bool openReadOnly(const char *); - bool openWriteReplace(const char *); - void close(); - - bool readNext(); - - bool isName(const char *); - char * getName(); - int getIntValue(); - char * getStrValue(); - bool getBoolValue(); - - void writeSection(const char *); - void writeIntValue(const char *, int); - void writeStrValue(const char *, const char *); - void writeBoolValue(const char *, int); - void writeLine(const char *); - - - FileStream fStream; - char currLine[256]; - char *nameStr,*valueStr; -}; - -#endif