Method Maps1
SymbolDescription
SMCParserAn 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.
Enumerations2
SymbolDescription
SMCErrorParse error codes.
SMCResultParse result directive.
Type Definitions6
SymbolDescription
SMC_EndSectionCalled when the parser finds the end of the current section.
SMC_KeyValueCalled when the parser finds a new key/value pair. Note: Enclosing quotes are always stripped.
SMC_NewSectionCalled when the parser is entering a new section or sub-section. Note: Enclosing quotes are always stripped.
SMC_ParseEndCalled when parsing is halted.
SMC_ParseStartCalled when parsing is started.
SMC_RawLineCallback for whenever a new line of text is about to be parsed.
Functions7
SymbolDescription
SMC_CreateParserCreates a new SMC file format parser. This is used to set parse hooks.
SMC_GetErrorStringGets an error string for an SMCError code.
SMC_ParseFileParses an SMC file.
SMC_SetParseEndSets the SMC_ParseEnd of a parse handle.
SMC_SetParseStartSets the SMC_ParseStart function of a parse Handle.
SMC_SetRawLineSets a raw line reader on an SMC parser Handle.
SMC_SetReadersSets the three main reader functions.