BASE::RCFile Class Reference

Text file providing line based read and write operations. More...

Inherited by BASE::RCIniFile [protected], and BASE::RCLogFile [protected].

Inheritance diagram for BASE::RCFile:

Inheritance graph
[legend]
Collaboration diagram for BASE::RCFile:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RCFile (const RCString &sFileName=_T(""))
TBool Open (const RCString &sFileName, TLong nDesiredAccess, TLong nShareMode, TLong nCreationDisposition, TLong nFlagsAndAttributes=FILE_ATTRIBUTE_NORMAL)
TBool Open (TLong nDesiredAccess, TLong nShareMode, TLong nCreationDisposition, TLong nFlagsAndAttributes=FILE_ATTRIBUTE_NORMAL)
void Close ()
TBool IsOpen () const
const RCStringGetFileName () const
TBool GetLine (RCString &sLine)
TBool PutLine (const RCString &sLine=_T(""))
TBool Load (RCString &sDataRef)
TBool Save (const RCString &sData)
TLong GetSize ()

Static Public Member Functions

static void StripDir (RCString &sPathRef)
static RCString GetDir (const RCString &sPathRef)
static TBool StripOneDirRight (RCString &sPathRef)
static void StripExt (RCString &sPathRef)
static RCString GetExt (const RCString &sPath)
static RCString GetDrive (const RCString &sPath)
static RCString GetCurrentDir ()
static void SetCurrentDir (const RCString &sPath)
static RCString ForceAblsolutePath (const RCString &sPath, const RCString &sRoot=_T(""))
static RCString ForceRelativePath (const RCString &sPath, const RCString &sRoot=_T(""))
static RCString ConcatPath (const RCString &sFront, const RCString &sBack)
static RCString ForceDirPath (const RCString &sPath)
static TBool IsPathAbsolute (const RCString &sPath)
static RCString AlignSlashes (const RCString &sPath)
static TBool Exists (const RCString &sPath, TBool bAcceptDir=false)
static TSLong GetSize (const RCString &sPath)
static TBool LoadFile (const RCString &sPath, RCString &sDataRef)
static TBool SaveFile (const RCString &sPath, const RCString &sData, TBool bOverwrite=true)

Protected Attributes

RCString m_sFileName
HANDLE m_hFile

Detailed Description

Text file providing line based read and write operations.

Author:
Patrik Stellmann
This class provides the ability to read and write text files while the file is read and written line by line. It generates always ANSI files and assumes also that the file is in ANSI format when reading it - even when the project is compiled with UNICODE settings.


The documentation for this class was generated from the following files:
Generated on Thu Feb 16 12:46:23 2006 for Simulator Bob by  doxygen 1.4.6-NO