|
stmm-games-doc
0.32.0
|

Public Member Functions | |
| virtual | ~XmlModifierParser ()=default |
| XmlModifierParser (const std::string &sModifierName) | |
| Constructor. More... | |
| const std::string & | getModifierName () const |
| The modifier name. More... | |
| virtual unique_ptr< StdThemeModifier > | parseModifier (ThemeCtx &oCtx, const xmlpp::Element *p0Element)=0 |
| Parse a tile modifier element. More... | |
Protected Member Functions | |
| std::vector< unique_ptr< StdThemeModifier > > | parseSubModifiers (ThemeCtx &oCtx, const xmlpp::Element *p0ParentElement) |
| Parse all children as modifiers. More... | |
| std::vector< unique_ptr< StdThemeModifier > > | parseSubModifiers (ThemeCtx &oCtx, const xmlpp::Element *p0ParentElement, const std::vector< std::string const *> &aSkipChildNames) |
| Parse all children as modifiers. More... | |
| unique_ptr< StdThemeModifier > | parseSubModifier (ThemeCtx &oCtx, const xmlpp::Element *p0ModifierElement) |
| Parses a submodifier. More... | |
| void | parseBaseModifier (ThemeCtx &oCtx, const xmlpp::Element *p0Element, StdThemeModifier::Init &oInit) |
| Parse the base class attributes. More... | |
| shared_ptr< TileAni > | parseModifierTileAniId (ThemeCtx &oCtx, const xmlpp::Element *p0Element, bool bMandatory) |
| Parse tile ani id. More... | |
| int32_t | parseModifierTileAniName (ThemeCtx &oCtx, const xmlpp::Element *p0Element, bool bMandatory) |
| Parse tile ani name. More... | |
| double | parseModifierElapsedDefault (ThemeCtx &oCtx, const xmlpp::Element *p0Element) |
| Parse elapsed default. More... | |
| bool | parseModifierInvert (ThemeCtx &oCtx, const xmlpp::Element *p0Element) |
| Parse invert. More... | |
| std::tuple< int32_t, double, bool > | parseTileAniNameDefault (ThemeCtx &oCtx, const xmlpp::Element *p0Element, bool bMandatory) |
| Parse tile ani name, default elapsed and invert. More... | |
| std::tuple< int32_t, double, bool, shared_ptr< Image >, shared_ptr< TileAni > > | parseTileAniIdNameImgDefault (ThemeCtx &oCtx, const xmlpp::Element *p0Element) |
| Parse tile ani id, name, default image or elapsed and invert. More... | |
| XmlConditionalParser * | getXmlConditionalParser () |
| XmlTraitsParser * | getXmlTraitsParser () |
| XmlThemeImageParser * | getXmlThemeImageParser () |
|
virtualdefault |
| stmg::XmlModifierParser::XmlModifierParser | ( | const std::string & | sModifierName | ) |
Constructor.
| sModifierName | The modifier name. Cannot be empty. |
| const std::string& stmg::XmlModifierParser::getModifierName | ( | ) | const |
The modifier name.
|
protected |
|
protected |
|
protected |
|
protected |
Parse the base class attributes.
| oCtx | The theme context. |
| p0Element | The element. Cannot be null. |
| oInit | The initialization data to fill. |
|
pure virtual |
Parse a tile modifier element.
| oCtx | The theme context. |
| p0Element | The element. Cannot be null. |
| std::runtime_error. |
Implemented in stmg::XmlSelectAniModifierParser, stmg::XmlSelectCaseModifierParser, stmg::XmlSelectVarModifierParser, stmg::XmlAlphaModifierParser, stmg::XmlCaseModifierParser, stmg::XmlFadeModifierParser, stmg::XmlFillModifierParser, stmg::XmlGrowModifierParser, stmg::XmlIfElseModifierParser, stmg::XmlImageModifierParser, stmg::XmlMaskModifierParser, stmg::XmlNextThemeModifierParser, stmg::XmlRotateModifierParser, stmg::XmlSelectedImageModifierParser, stmg::XmlStopModifierParser, stmg::XmlTextModifierParser, and stmg::XmlTileAniModifierParser.
|
protected |
Parse elapsed default.
If not defined as attribute default is -1.0.
| oCtx | The theme context. |
| p0Element | The element. Cannot be null. |
|
protected |
Parse invert.
If not defined as attribute default is false.
| oCtx | The theme context. |
| p0Element | The element. Cannot be null. |
|
protected |
Parse tile ani id.
| oCtx | The theme context. |
| p0Element | The element. Cannot be null. |
| bMandatory | Whether tile ani id must be defined. |
|
protected |
Parse tile ani name.
| oCtx | The theme context. |
| p0Element | The element. Cannot be null. |
| bMandatory | Whether tile ani name must be defined. |
|
protected |
Parses a submodifier.
If the element is not a modifier it throws.
| oCtx | The theme context. |
| p0ModifierElement | The submodifier element. Cannot be null. |
| std::runtime_error. |
|
protected |
Parse all children as modifiers.
Use this if the child Elements are all Modifiers, if one isn't an error is thrown. Alternatively use parseSubModifier(), to parse them one by one.
| oCtx | The theme context. |
| p0ParentElement | The parent element. Cannot be null. |
| std::runtime_error. |
|
protected |
Parse all children as modifiers.
Use this if the child Elements are all Modifiers, if one isn't an error is thrown. Alternatively use parseSubModifier(), to parse them one by one.
| oCtx | The theme context. |
| p0ParentElement | The parent element. Cannot be null. |
| aSkipChildNames | The child names that should be ignored. |
| std::runtime_error. |
|
protected |
Parse tile ani id, name, default image or elapsed and invert.
Used by MaskModifier, TileAniModifier.
| oCtx | The theme context. |
| p0Element | The element. Cannot be null. |
|
protected |
Parse tile ani name, default elapsed and invert.
Used by RotateModifier, FadeModifier.
| oCtx | The theme context. |
| p0Element | The element. Cannot be null. |
| bMandatory | Whether either tile ani name or default elapsed must be defined. |
1.8.13