![]() |
Castor3D 0.16.0
Multiplatform 3D engine
|
Classes | |
struct | castor::HasBaseParameterType< Type > |
Structure utilisée pour déterminer si un ParameterType a un type de paramètre de base. Plus de détails... | |
struct | castor::ParserFunctionAndParams |
La fonction ainsi que les paramètres attendus pour un parser. Plus de détails... | |
struct | castor::AdditionalParsers |
Espaces de nommage | |
namespace | castor |
Macros | |
#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_MakeSectionName(a, b, c, d) ( (castor::SectionId( a ) << 24 ) | ( castor::SectionId( b ) << 16 ) | ( castor::SectionId( c ) << 8 ) | ( castor::SectionId( d ) << 0 ) ) |
Définitions de type | |
STL typedefs | |
using | castor::Regex = std::basic_regex< xchar > |
using | castor::RegexIterator = std::regex_iterator< String::const_iterator > |
using | castor::MatchResults = std::match_results< String::const_iterator > |
Parsers holders | |
using | castor::SectionId = uint32_t |
Le type d'un ID de section. | |
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 & ) > |
Définition d'une fonction d'analyse. | |
using | castor::RawParserFunction = bool( * )( FileParserContext &, void *, ParserParameterArray const & ) |
template<typename BlockContextT > | |
using | castor::ParserFunctionT = castor::Function< bool( FileParserContext &, BlockContextT *, ParserParameterArray const & ) > |
Définition d'une fonction d'analyse. | |
template<typename BlockContextT > | |
using | castor::RawParserFunctionT = bool( * )( FileParserContext &, BlockContextT *, ParserParameterArray const & ) |
using | castor::SectionAttributeParsers = Map< SectionId, ParserFunctionAndParams > |
Les parsers triés par section. Sera utilisé pour stocker les fonctions associées à un unique token. | |
using | castor::AttributeParsers = StringMap< SectionAttributeParsers > |
Les parsers triés par nom de token. | |
using | castor::UserContextCreator = castor::Function< void * ( FileParserContext & ) > |
Fonction de création d'un contexte défini par l'utilisateur. | |
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 ) ) |
Indique que la prochaine section d'un parser est la précédente. | |
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{}) |
Ajoute une fonction d'analyse à la liste. | |
static void | castor::addParser (AttributeParsers &parsers, uint32_t section, String const &name, ParserFunction function, ParserParameterArray params=ParserParameterArray{}) |
Ajoute une fonction d'analyse à la liste. | |
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{}) |
#define CU_DeclareAttributeParser | ( | funcname | ) | bool CU_DO_WRITE_PARSER_NAME( funcname ); |
Un define pour faciliter la déclaration d'un analyseur.
#define CU_DeclareAttributeParserBlock | ( | funcname, | |
block ) bool CU_DO_WRITE_BLOCK_PARSER_NAME( funcname, block ); |
Un define pour faciliter la déclaration d'un analyseur.
#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_DO_WRITE_PARSER_NAME | ( | funcname | ) |
#define CU_EndAttribute | ( | ) |
Un define pour faciliter l'implémentation d'un analyseur.
#define CU_EndAttributePop | ( | ) |
Un define pour faciliter l'implémentation d'un analyseur.
#define CU_EndAttributePush | ( | section | ) |
Un define pour faciliter l'implémentation d'un analyseur.
#define CU_EndAttributePushBlock | ( | section, | |
block ) |
Un define pour faciliter l'implémentation d'un analyseur.
#define CU_EndAttributePushNewBlock | ( | section | ) |
Un define pour faciliter l'implémentation d'un analyseur.
#define CU_ImplementAttributeParser | ( | funcname | ) |
Un define pour faciliter l'implémentation d'un analyseur.
#define CU_ImplementAttributeParserBlock | ( | funcname, | |
block ) |
Un define pour faciliter l'implémentation d'un analyseur.
#define CU_ImplementAttributeParserNewBlock | ( | funcname, | |
oldBlock, | |||
newBlock ) |
Un define pour faciliter l'implémentation d'un analyseur.
#define CU_MakeSectionName | ( | a, | |
b, | |||
c, | |||
d ) ( (castor::SectionId( a ) << 24 ) | ( castor::SectionId( b ) << 16 ) | ( castor::SectionId( c ) << 8 ) | ( castor::SectionId( d ) << 0 ) ) |
Un define pour faciliter la création d'un nom de section.
#define CU_ParsingError | ( | error | ) | context.preprocessed->parseError( error ) |
Un define pour faciliter l'appel de FileParser::parseError.
#define CU_ParsingWarning | ( | warning | ) | context.preprocessed->parseWarning( warning ) |
Un define pour faciliter l'appel de FileParser::parseWarning.