| Class | Description |
|---|---|
| SMCParser | An SMCParser is a callback-driven parser for SourceMod configuration files. SMC files are similar to Valve KeyValues format, with two key differences: (1) SMC cannot handle single-item entries (that is, a key with no value). (2) SMC files can have multi-line comment blocks, whereas KeyValues cannot. |
| Type | Description |
|---|---|
| SMC_EndSection | Called when the parser finds the end of the current section. |
| SMC_KeyValue | Called when the parser finds a new key/value pair. |
| SMC_NewSection | Called when the parser is entering a new section or sub-section. |
| SMC_ParseEnd | Called when parsing is halted. |
| SMC_ParseStart | Called when parsing is started. |
| SMC_RawLine | Callback for whenever a new line of text is about to be parsed. |
| Function | Description |
|---|---|
| SMC_CreateParser | Creates a new SMC file format parser. This is used to set parse hooks. |
| SMC_GetErrorString | Gets an error string for an SMCError code. |
| SMC_ParseFile | Parses an SMC file. |
| SMC_SetParseEnd | Sets the SMC_ParseEnd of a parse handle. |
| SMC_SetParseStart | Sets the SMC_ParseStart function of a parse Handle. |
| SMC_SetRawLine | Sets a raw line reader on an SMC parser Handle. |
| SMC_SetReaders | Sets the three main reader functions. |
This documentation was generated automatically using pawn-docgen written by xPaw for AlliedMods.