SourceMod::ITextListener_INI Class Reference

Contains parse events for INI files. More...

#include <public/ITextParsers.h>

List of all members.

Public Member Functions

virtual unsigned int GetTextParserVersion1 ()
 Returns version number.
virtual bool ReadINI_NewSection (const char *section, bool invalid_tokens, bool close_bracket, bool extra_tokens, unsigned int *curtok)
 Called when a new section is encountered in an INI file.
virtual bool ReadINI_KeyValue (const char *key, const char *value, bool invalid_tokens, bool equal_token, bool quotes, unsigned int *curtok)
 Called when encountering a key/value pair in an INI file.
virtual bool ReadINI_RawLine (const char *line, unsigned int *curtok)
 Called after a line has been preprocessed, if it has text.


Detailed Description

Contains parse events for INI files.

Definition at line 90 of file ITextParsers.h.


Member Function Documentation

virtual bool SourceMod::ITextListener_INI::ReadINI_NewSection ( const char *  section,
bool  invalid_tokens,
bool  close_bracket,
bool  extra_tokens,
unsigned int *  curtok 
) [inline, virtual]

Called when a new section is encountered in an INI file.

Parameters:
section Name of section in between the [ and ] characters.
invalid_tokens True if invalid tokens were detected in the name.
close_bracket True if a closing bracket was detected, false otherwise.
extra_tokens True if extra tokens were detected on the line.
curtok Contains current token in the line where the section name starts. You can add to this offset when failing to point to a token.
Returns:
True to keep parsing, false otherwise.

Definition at line 112 of file ITextParsers.h.

virtual bool SourceMod::ITextListener_INI::ReadINI_KeyValue ( const char *  key,
const char *  value,
bool  invalid_tokens,
bool  equal_token,
bool  quotes,
unsigned int *  curtok 
) [inline, virtual]

Called when encountering a key/value pair in an INI file.

Parameters:
key Name of key.
value String containing value (with quotes stripped, if any).
invalid_tokens Whether or not the key contained invalid tokens.
equal_token There was an '=' sign present (in case the value is missing).
quotes Whether value was enclosed in quotes.
curtok Contains the token index of the start of the value string. This can be changed when returning false.
Returns:
True to keep parsing, false otherwise.

Definition at line 133 of file ITextParsers.h.

virtual bool SourceMod::ITextListener_INI::ReadINI_RawLine ( const char *  line,
unsigned int *  curtok 
) [inline, virtual]

Called after a line has been preprocessed, if it has text.

Parameters:
line Contents of line.
curtok Pointer to optionally store failed position in string.
Returns:
True to keep parsing, false otherwise.

Definition at line 150 of file ITextParsers.h.


The documentation for this class was generated from the following file:
Generated on Fri Nov 21 08:10:13 2008 for SourceMod SDK by  doxygen 1.5.1