#include <inipat.h>
Public Member Functions | |
TagInfo (unsigned int N, char *Text) | |
constructor | |
TagInfo (const TagInfo &Other) | |
copy constructor | |
TagInfo (const TagInfo *Other) | |
copy from pointer constructor | |
TagInfo & | operator= (const TagInfo &Other) |
assignment from other | |
const char * | data () |
the string of the tag, restricted against changes | |
char * | GetString () |
this function allows to change the string of the tag | |
unsigned int | GetLineNo () |
returns the line number where this tag was read from | |
~TagInfo () | |
destructor , releases the memory, allocated for Tag text | |
Friends | |
class | ConfigObj |
class | TypeTagIs |
class | NameIs |
ostream & | operator<< (ostream &Out, TagInfo &Info) |
output to the stream | |
ostream & | operator<< (ostream &Out, const TagInfo *Info) |
Tag is just non empty non-comment line from config file and have not any markup brackets <blahblah> or </blahblah> Also TagInfo stores the line position of the stream where this tag have been read. So the configuration program could print out the line number where the wrong parameter was encountered. The user then can read such output and make corrections