|
| #define | CU_DO_WRITE_PARSER_NAME(funcname) |
| |
| #define | CU_DO_WRITE_BLOCK_PARSER_NAME(funcname, block) |
| |
| #define | CU_DO_WRITE_PARSER_CONTENT bool result = false; |
| |
| #define | CU_DO_WRITE_PARSER_END(retval) result = retval; |
| |
| #define | CU_DeclareAttributeParser(funcname) bool CU_DO_WRITE_PARSER_NAME( funcname ); |
| |
| #define | CU_DeclareAttributeParserBlock(funcname, block) bool CU_DO_WRITE_BLOCK_PARSER_NAME( funcname, block ); |
| |
| #define | CU_ImplementAttributeParser(funcname) |
| |
| #define | CU_EndAttribute() |
| |
| #define | CU_EndAttributePush(section) |
| |
| #define | CU_ImplementAttributeParserBlock(funcname, block) |
| |
| #define | CU_EndAttributePushBlock(section, block) |
| |
| #define | CU_ImplementAttributeParserNewBlock(funcname, oldBlock, newBlock) |
| |
| #define | CU_EndAttributePushNewBlock(section) |
| |
| #define | CU_EndAttributePop() |
| |
| #define | CU_ParsingError(error) context.preprocessed->parseError( error ) |
| |
| #define | CU_ParsingWarning(warning) context.preprocessed->parseWarning( warning ) |
| |
| #define | CU_ParsingDeprecated() context.preprocessed->parseWarning( "This directive is deprecated" ) |
| |
| #define | CU_MakeSectionName(a, b, c, d) ( (castor::SectionId( a ) << 24 ) | ( castor::SectionId( b ) << 16 ) | ( castor::SectionId( c ) << 8 ) | ( castor::SectionId( d ) << 0 ) ) |
| |
|
| using | castor::SectionId = uint32_t |
| | The type for a section ID.
|
| |
| template<ParameterType Type, typename ParserValueHelperT = void> |
| using | castor::ParserParameterValueType = typename ParserParameterHelper< Type, ParserValueHelperT >::ValueType |
| |
| using | castor::ParserParameterBaseSPtr = castor::SharedPtr< ParserParameterBase > |
| |
| using | castor::ParserFunction = castor::Function< bool( FileParserContext &, void *, ParserParameterArray const & ) > |
| | Parser function definition.
|
| |
| using | castor::RawParserFunction = bool( * )( FileParserContext &, void *, ParserParameterArray const & ) |
| |
| template<typename BlockContextT > |
| using | castor::ParserFunctionT = castor::Function< bool( FileParserContext &, BlockContextT *, ParserParameterArray const & ) > |
| | Parser function definition.
|
| |
| template<typename BlockContextT > |
| using | castor::RawParserFunctionT = bool( * )( FileParserContext &, BlockContextT *, ParserParameterArray const & ) |
| |
| using | castor::SectionAttributeParsers = Map< SectionId, ParserFunctionAndParams > |
| | The parsers sorted per section. This will be used to store the functions associated to a unique token.
|
| |
| using | castor::AttributeParsers = StringMap< SectionAttributeParsers > |
| | The parsers sorted per token name.
|
| |
| using | castor::UserContextCreator = castor::Function< void * ( FileParserContext & ) > |
| | User defined parsing context creator.
|
| |
| template<typename BlockContextT > |
| using | castor::BlockParserFunctionT = bool( * )( FileParserContext &, BlockContextT *, ParserParameterArray const & ) |
| |
| static constexpr SectionId | castor::PreviousSection = ( (castor::SectionId( 'P' ) << 24 ) | ( castor::SectionId( 'R' ) << 16 ) | ( castor::SectionId( 'E' ) << 8 ) | ( castor::SectionId( 'V' ) << 0 ) ) |
| | Indicates that the next section for a parser is the previous one.
|
| |
| template<ParameterType Type, typename ParserValueHelperT = void> |
| ParameterType constexpr | castor::ParserParameterParamType = ParserParameterHelper< Type, ParserValueHelperT >::ParamType |
| |
| template<ParameterType Type, typename ParserValueHelperT = void> |
| StringView constexpr | castor::ParserParameterStringType = ParserParameterHelper< Type, ParserValueHelperT >::StringType |
| |
| template<ParameterType Type> |
| bool constexpr | castor::hasBaseParameterTypeV = HasBaseParameterType< Type >::value |
| |
| | castor::CU_DeclareSmartPtr (castor, FileParserContext, CU_API) |
| |
| | castor::CU_DeclareVector (ParserParameterBaseSPtr, ParserParameter) |
| |
| CU_API void | castor::addParser (AttributeParsers &parsers, uint32_t oldSection, uint32_t newSection, String const &name, ParserFunction function, ParserParameterArray params=ParserParameterArray{}) |
| | Adds a parser function to the parsers list.
|
| |
| static void | castor::addParser (AttributeParsers &parsers, uint32_t section, String const &name, ParserFunction function, ParserParameterArray params=ParserParameterArray{}) |
| | Adds a parser function to the parsers list.
|
| |
| template<typename SectionT , typename BlockContextT > |
| void | castor::addParserT (AttributeParsers &parsers, SectionT section, String const &name, BlockParserFunctionT< BlockContextT > function, ParserParameterArray params=ParserParameterArray{}) |
| |
| template<typename SectionT , typename SectionU , typename BlockContextT > |
| void | castor::addParserT (AttributeParsers &parsers, SectionT oldSection, SectionU newSection, String const &name, BlockParserFunctionT< BlockContextT > function, ParserParameterArray params=ParserParameterArray{}) |
| |