class
IBlockThis parser represents a block of ArgScript lines.
A block begins when a line with the keyword is read, and it ends when a line with the reserved keyword 'end' is found. The lines inside the block will be read using the parsers contained inside this IBlock, or using the parsers in the FormatParser.
Base classes
Constructors, destructors, conversion operators
Public functions
- auto SetData(FormatParser* formatParser, void* data) -> void override
- Sets the data and FormatParser of this parser.
- auto OnBlockEnd(bool arg_0) -> void virtual
- Event called when the 'end' keyword is found, and therefore the block is finished.
- auto AddParser(const char* pKeyword, IParser* pParser) -> void virtual
- Maps the given IParser to the specified keyword.
- auto GetParser(const char* pKeyword) -> IParser* virtual
- Gets the IParser that is mapped to the given keyword.
Protected variables
- eastl::hash_map<eastl::string, IParserPtr> mParsers
- void* field_30
Function documentation
void ArgScript:: IBlock:: SetData(FormatParser* formatParser,
void* data) override
Sets the data and FormatParser of this parser.
For blocks, this should be used to add any necessary parsers, since it is called when the IBlock is added to a FormatParser or another block.