fdhwlib  2.0.25
akInifile Class Reference

#include <akinifile.h>

Inheritance diagram for akInifile:
Inifile

List of all members.

Public Member Functions

Protected Member Functions

Private Attributes


Detailed Description

Extension of the inifile reader.

New features:

  • Logging
  • Default values

Changes:

  • 8.3.01 ak: Internal preprocessor define pragmas SUCCESS and FAIL changed to kSUCCESS and kFAIL

Definition at line 28 of file akinifile.h.


Constructor & Destructor Documentation

akInifile::akInifile ( const char *  filename,
FILE *  logfile = 0,
const char *  secondDir = 0,
const char *  thirdDir = 0 
)
akInifile::~akInifile ( )

Member Function Documentation

int akInifile::concatFilename ( char *  filepath,
char *  filename,
char *  dir 
) [protected]

Concat filename and directory to the filepath.

The directory entry can also be a environment variable (e.g. $HOME)

double akInifile::GetFirstDouble ( const char *  entry,
result error 
)
char* akInifile::GetFirstString ( const char *  entry,
const char *  defString,
result error 
)
int akInifile::GetFirstValue ( const char *  entry,
int  defValue,
result error 
)
double akInifile::GetFirstValue ( const char *  entry,
double  defValue,
result error 
)
double akInifile::GetNextDouble ( result error)
char* akInifile::GetNextString ( const char *  defString,
result error 
)
int akInifile::GetNextValue ( int  defValue,
result error 
)
double akInifile::GetNextValue ( double  defValue,
result error 
)
int akInifile::open ( char *  filename) [protected]

Try to open another file.

result akInifile::SpecifyGroup ( const char *  string)

Member Data Documentation

FILE* akInifile::logfile [private]

Definition at line 72 of file akinifile.h.

bool akInifile::writeLog [private]

Flag set if logging output is required.

Definition at line 75 of file akinifile.h.


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