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.
| Name | Description |
|---|---|
| GetErrorString | Gets an error string for an SMCError code. |
| ParseFile | Parses an SMC file. |
| ParseString | Parses raw UTF-8 text as an SMC file. |
| SMCParser | Create a new SMC file format parser. |
| Name | Type | Description |
|---|---|---|
| OnStart | SMC_ParseStart | Sets the callback for receiving SMC_ParseStart events. |
| OnEnd | SMC_ParseEnd | Sets the callback for receiving SMC_ParseEnd events. |
| OnEnterSection | SMC_NewSection | Sets the callback for receiving SMC_NewSection events. |
| OnLeaveSection | SMC_EndSection | Sets the callback for receiving SMC_EndSection events. |
| OnKeyValue | SMC_KeyValue | Sets the callback for receiving SMC_KeyValue events. |
| OnRawLine | SMC_RawLine | Sets the callback for receiving SMC_RawLine events. |
This documentation was generated automatically using pawn-docgen written by xPaw for AlliedMods.