#include <vector>
#include <string>
#include <fstream>
Go to the source code of this file.
Classes | |
class | CDataFile |
Class Definitions /////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////. More... | |
struct | st_key |
struct | st_section |
Defines | |
#define | AUTOCREATE_KEYS (1L<<2) |
#define | AUTOCREATE_SECTIONS (1L<<1) |
#define | MAX_BUFFER_LEN 512 |
Typedefs | |
typedef KeyList::iterator | KeyItor |
typedef std::vector< t_Key > | KeyList |
typedef SectionList::iterator | SectionItor |
typedef std::vector< t_Section > | SectionList |
typedef struct st_key | t_Key |
typedef struct st_section | t_Section |
typedef std::string | t_Str |
Enumerations | |
enum | e_DebugLevel { E_DEBUG = 0, E_INFO, E_WARN, E_ERROR, E_FATAL, E_CRITICAL } |
Functions | |
int | CompareNoCase (const t_Str &str1, const t_Str &str2) |
t_Str | GetNextWord (t_Str &CommandLine) |
void | Report (e_DebugLevel DebugLevel, const char *fmt,...) |
General Purpose Utility Functions /////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////. | |
void | Trim (t_Str &szStr) |
int | WriteLn (std::fstream &stream, const char *fmt,...) |
Variables | |
const t_Str | CommentIndicators = t_Str("#;") |
const t_Str | EqualIndicators = t_Str("=:") |
const t_Str | WhiteSpace = t_Str(" \t\n\r") |
#define AUTOCREATE_KEYS (1L<<2) |
Definition at line 33 of file CDataFile.h.
#define AUTOCREATE_SECTIONS (1L<<1) |
Definition at line 28 of file CDataFile.h.
#define MAX_BUFFER_LEN 512 |
Definition at line 39 of file CDataFile.h.
typedef KeyList::iterator KeyItor |
Definition at line 112 of file CDataFile.h.
typedef std::vector<t_Key> KeyList |
Definition at line 111 of file CDataFile.h.
typedef SectionList::iterator SectionItor |
Definition at line 134 of file CDataFile.h.
typedef std::vector<t_Section> SectionList |
Definition at line 133 of file CDataFile.h.
typedef struct st_section t_Section |
typedef std::string t_Str |
Definition at line 69 of file CDataFile.h.
enum e_DebugLevel |
Definition at line 44 of file CDataFile.h.
int CompareNoCase | ( | const t_Str & | str1, |
const t_Str & | str2 | ||
) |
Definition at line 701 of file CDataFile.cpp.
t_Str GetNextWord | ( | t_Str & | CommandLine | ) |
Definition at line 675 of file CDataFile.cpp.
void Report | ( | e_DebugLevel | DebugLevel, |
const char * | fmt, | ||
... | |||
) |
General Purpose Utility Functions /////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////.
Definition at line 762 of file CDataFile.cpp.
Definition at line 712 of file CDataFile.cpp.
int WriteLn | ( | std::fstream & | stream, |
const char * | fmt, | ||
... | |||
) |
const t_Str CommentIndicators = t_Str("#;") |
Definition at line 76 of file CDataFile.h.
const t_Str EqualIndicators = t_Str("=:") |
Definition at line 85 of file CDataFile.h.
const t_Str WhiteSpace = t_Str(" \t\n\r") |
Definition at line 90 of file CDataFile.h.