Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
CDataFile Class Reference

Class Definitions /////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////. More...

#include <CDataFile.h>

List of all members.

Public Member Functions

 CDataFile ()
 CDataFile (const t_Str &szFileName)
void Clear ()
t_Str CommentStr (const t_Str &szComment)
bool CreateKey (const t_Str &szKey, const t_Str &szValue, const t_Str &szComment=t_Str(""), const t_Str &szSection=t_Str(""))
bool CreateSection (const t_Str &szSection, const t_Str &szComment=t_Str(""))
bool CreateSection (const t_Str &szSection, const t_Str &szComment, const KeyList &Keys)
bool DeleteKey (const t_Str &szKey, const t_Str &szFromSection=t_Str(""))
bool DeleteSection (const t_Str &szSection)
bool GetBool (const t_Str &szKey, const t_Str &szSection=t_Str(""))
float GetFloat (const t_Str &szKey, const t_Str &szSection=t_Str(""))
int GetInt (const t_Str &szKey, const t_Str &szSection=t_Str(""))
t_Str GetString (const t_Str &szKey, const t_Str &szSection=t_Str(""))
t_Str GetValue (const t_Str &szKey, const t_Str &szSection=t_Str(""))
int KeyCount ()
bool Load (const t_Str &szFileName)
bool Save ()
int SectionCount ()
bool SetBool (const t_Str &szKey, bool bValue, const t_Str &szComment=t_Str(""), const t_Str &szSection=t_Str(""))
void SetFileName (const t_Str &szFileName)
bool SetFloat (const t_Str &szKey, float fValue, const t_Str &szComment=t_Str(""), const t_Str &szSection=t_Str(""))
bool SetInt (const t_Str &szKey, int nValue, const t_Str &szComment=t_Str(""), const t_Str &szSection=t_Str(""))
bool SetKeyComment (const t_Str &szKey, const t_Str &szComment, const t_Str &szSection=t_Str(""))
bool SetSectionComment (const t_Str &szSection, const t_Str &szComment)
bool SetValue (const t_Str &szKey, const t_Str &szValue, const t_Str &szComment=t_Str(""), const t_Str &szSection=t_Str(""))
virtual ~CDataFile ()

Public Attributes

long m_Flags

Protected Member Functions

t_KeyGetKey (const t_Str &szKey, const t_Str &szSection)
t_SectionGetSection (const t_Str &szSection)

Protected Attributes

bool m_bDirty
SectionList m_Sections
t_Str m_szFileName

Detailed Description

Class Definitions /////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////.

Definition at line 152 of file CDataFile.h.


Constructor & Destructor Documentation

Definition at line 77 of file CDataFile.cpp.

CDataFile::CDataFile ( const t_Str szFileName)

Definition at line 67 of file CDataFile.cpp.

CDataFile::~CDataFile ( ) [virtual]

Definition at line 86 of file CDataFile.cpp.


Member Function Documentation

void CDataFile::Clear ( )

Definition at line 94 of file CDataFile.cpp.

t_Str CDataFile::CommentStr ( const t_Str szComment)

Definition at line 646 of file CDataFile.cpp.

bool CDataFile::CreateKey ( const t_Str szKey,
const t_Str szValue,
const t_Str szComment = t_Str(""),
const t_Str szSection = t_Str("") 
)

Definition at line 516 of file CDataFile.cpp.

bool CDataFile::CreateSection ( const t_Str szSection,
const t_Str szComment = t_Str("") 
)

Definition at line 538 of file CDataFile.cpp.

bool CDataFile::CreateSection ( const t_Str szSection,
const t_Str szComment,
const KeyList Keys 
)

Definition at line 564 of file CDataFile.cpp.

bool CDataFile::DeleteKey ( const t_Str szKey,
const t_Str szFromSection = t_Str("") 
)

Definition at line 491 of file CDataFile.cpp.

bool CDataFile::DeleteSection ( const t_Str szSection)

Definition at line 472 of file CDataFile.cpp.

bool CDataFile::GetBool ( const t_Str szKey,
const t_Str szSection = t_Str("") 
)

Definition at line 454 of file CDataFile.cpp.

float CDataFile::GetFloat ( const t_Str szKey,
const t_Str szSection = t_Str("") 
)

Definition at line 429 of file CDataFile.cpp.

int CDataFile::GetInt ( const t_Str szKey,
const t_Str szSection = t_Str("") 
)

Definition at line 441 of file CDataFile.cpp.

t_Key * CDataFile::GetKey ( const t_Str szKey,
const t_Str szSection 
) [protected]

Definition at line 609 of file CDataFile.cpp.

t_Section * CDataFile::GetSection ( const t_Str szSection) [protected]

Definition at line 632 of file CDataFile.cpp.

t_Str CDataFile::GetString ( const t_Str szKey,
const t_Str szSection = t_Str("") 
)

Definition at line 421 of file CDataFile.cpp.

t_Str CDataFile::GetValue ( const t_Str szKey,
const t_Str szSection = t_Str("") 
)

Definition at line 411 of file CDataFile.cpp.

Definition at line 591 of file CDataFile.cpp.

bool CDataFile::Load ( const t_Str szFileName)

Definition at line 121 of file CDataFile.cpp.

Definition at line 202 of file CDataFile.cpp.

Definition at line 584 of file CDataFile.cpp.

bool CDataFile::SetBool ( const t_Str szKey,
bool  bValue,
const t_Str szComment = t_Str(""),
const t_Str szSection = t_Str("") 
)

Definition at line 401 of file CDataFile.cpp.

void CDataFile::SetFileName ( const t_Str szFileName)

Definition at line 104 of file CDataFile.cpp.

bool CDataFile::SetFloat ( const t_Str szKey,
float  fValue,
const t_Str szComment = t_Str(""),
const t_Str szSection = t_Str("") 
)

Definition at line 377 of file CDataFile.cpp.

bool CDataFile::SetInt ( const t_Str szKey,
int  nValue,
const t_Str szComment = t_Str(""),
const t_Str szSection = t_Str("") 
)

Definition at line 389 of file CDataFile.cpp.

bool CDataFile::SetKeyComment ( const t_Str szKey,
const t_Str szComment,
const t_Str szSection = t_Str("") 
)

Definition at line 278 of file CDataFile.cpp.

bool CDataFile::SetSectionComment ( const t_Str szSection,
const t_Str szComment 
)

Definition at line 304 of file CDataFile.cpp.

bool CDataFile::SetValue ( const t_Str szKey,
const t_Str szValue,
const t_Str szComment = t_Str(""),
const t_Str szSection = t_Str("") 
)

Definition at line 327 of file CDataFile.cpp.


Member Data Documentation

Definition at line 270 of file CDataFile.h.

Definition at line 265 of file CDataFile.h.

Definition at line 268 of file CDataFile.h.

Definition at line 269 of file CDataFile.h.


The documentation for this class was generated from the following files:


blort
Author(s): Michael Zillich, Thomas Mörwald, Johann Prankl, Andreas Richtsfeld, Bence Magyar (ROS version)
autogenerated on Thu Jan 2 2014 11:38:26