/home/ale/projects/ConfigML/inipat.cpp File Reference

#include <string.h>
#include "cstream.h"
#include "inipat.h"

Functions

ostream & operator<< (ostream &Out, TagInfo &Info)
ostream & operator<< (ostream &Out, const TagInfo *Info)
bool strToBool (const char *text, bool NoMatch)
char ValidateINI (char *filename)

Detailed Description

Copyright (C) 2008 by Alexander Yeliseyev
y575@yandex.ru

The implementation of the functions


Function Documentation

bool strToBool ( const char *  text,
bool  NoMatch = false 
)

converts some often used strings into booleans

Parameters:
text the character string to be converted
Returns:
true / false depending on text, or NoMatch value, given from caller if the text does not match anything

char ValidateINI ( char *  filename  ) 

checks if file with the given filename can be opened and if all open/close markups are consistent

Parameters:
filename name of the configuration markup file to be checked
Returns:
0 if everything is Ok negative value if something there is wrong errors are printed to stdout


doxygen