stmm-games-doc  0.32.0
Public Member Functions | List of all members
stmg::XmlVolatileWidgetParser Class Reference
Inheritance diagram for stmg::XmlVolatileWidgetParser:
Inheritance graph
[legend]

Public Member Functions

 XmlVolatileWidgetParser ()
 
shared_ptr< GameWidgetparseGameWidget (LayoutCtx &oCtx, const xmlpp::Element *p0Element) override
 Parses a game widget element. More...
 
- Public Member Functions inherited from stmg::XmlGameWidgetParser
virtual ~XmlGameWidgetParser ()=default
 
 XmlGameWidgetParser (const std::string &sGameWidgetName)
 Constructor. More...
 
const std::string & getGameWidgetName () const
 The game widget name. More...
 

Additional Inherited Members

- Protected Member Functions inherited from stmg::XmlGameWidgetParser
XmlConditionalParsergetXmlConditionalParser ()
 
XmlTraitsParsergetXmlTraitsParser ()
 
XmlImageParsergetXmlImageParser ()
 
void parseGameWidget (GameWidget::Init &oInit, LayoutCtx &oCtx, const xmlpp::Element *p0Element)
 Parse the base class attributes of GameWidget. More...
 
void parseRelSizedGameWidget (RelSizedGameWidget::Init &oInit, LayoutCtx &oCtx, const xmlpp::Element *p0Element)
 Parse the base class attributes of RelSizedGameWidget. More...
 
void parseContainerWidget (ContainerWidget::Init &oInit, LayoutCtx &oCtx, const xmlpp::Element *p0WidgetElement)
 Parse the base class attributes of ContainerWidget. More...
 
void parseContainerWidget (ContainerWidget::Init &oInit, LayoutCtx &oCtx, const xmlpp::Element *p0WidgetElement, const std::vector< std::string const *> &aSkipChildNames)
 Parse the base class attributes of ContainerWidget. More...
 
std::vector< shared_ptr< GameWidget > > parseChildWidgets (LayoutCtx &oCtx, const xmlpp::Element *p0Parent)
 Parse the child game widgets. More...
 
std::vector< shared_ptr< GameWidget > > parseChildWidgets (LayoutCtx &oCtx, const xmlpp::Element *p0Parent, const std::vector< std::string const *> &aSkipChildNames)
 Parse the child game widgets with exceptions. More...
 
std::pair< std::string, int32_t > parseEvIdMessage (ConditionalCtx &oCtx, const xmlpp::Element *p0Element, bool bMandatory, const std::string &sEvIdAttrName, const std::string &sMsgNameAttrName, const std::string &sMsgAttrName)
 Get event and message id for an event, given message name. More...
 
std::pair< int32_t, OwnerTypeparseVariable (LayoutCtx &oCtx, const xmlpp::Element *p0Element, const std::string &sVarNameAttrName, bool bMandatory)
 

Constructor & Destructor Documentation

◆ XmlVolatileWidgetParser()

stmg::XmlVolatileWidgetParser::XmlVolatileWidgetParser ( )

Member Function Documentation

◆ parseGameWidget()

shared_ptr<GameWidget> stmg::XmlVolatileWidgetParser::parseGameWidget ( LayoutCtx oCtx,
const xmlpp::Element *  p0Element 
)
overridevirtual

Parses a game widget element.

Parameters
oCtxThe context.
p0ElementThe element. Cannot be null.
Returns
The created widget. Is not null.
Exceptions
std::runtime_error.

Implements stmg::XmlGameWidgetParser.