#include <FileParserContext.hpp>
◆ FileParserContext()
Constructor.
- Parameters
-
[in] | parser | The parser. |
[in] | path | The file access path. |
◆ ~FileParserContext()
virtual CU_API castor::FileParserContext::~FileParserContext |
( |
| ) |
|
|
virtualdefaultnoexcept |
◆ getUserContext()
CU_API void * castor::FileParserContext::getUserContext |
( |
String const & | name | ) |
|
Retrieves a user context.
- Parameters
-
[in] | name | The context name. |
- Returns
- The user context data.
◆ hasUserContext()
CU_API bool castor::FileParserContext::hasUserContext |
( |
String const & | name | ) |
|
Retrieves a user context.
- Parameters
-
[in] | name | The context name. |
- Returns
- The user context data.
◆ registerUserContext()
CU_API void castor::FileParserContext::registerUserContext |
( |
String const & | name, |
|
|
void * | data ) |
Registers a user context.
- Parameters
-
[in] | name | The context name, must be unique. |
[in] | data | The user context data. |
◆ unregisterUserContext()
CU_API void * castor::FileParserContext::unregisterUserContext |
( |
String const & | name | ) |
|
Unregisters a user context.
- Parameters
-
[in] | name | The context name. |
- Returns
- The user context data.
◆ allocatedBlocks
The allocated block contexts.
◆ blocks
Deque< void * > castor::FileParserContext::blocks {} |
The context blocks stack.
◆ file
Path castor::FileParserContext::file {} |
The file currently parsed.
◆ functionName
String castor::FileParserContext::functionName {} |
The current function name.
◆ line
unsigned long long castor::FileParserContext::line {} |
◆ logger
◆ parser
◆ pendingBlock
void* castor::FileParserContext::pendingBlock {} |
The block context to push on the stack.
◆ pendingSection
SectionId castor::FileParserContext::pendingSection {} |
The section to push on the stack.
◆ preprocessed
◆ sections
◆ userContexts
StringMap< void * > castor::FileParserContext::userContexts {} |
The user context data, useful in plug-ins.
The documentation for this class was generated from the following file: