preCICE v3.2.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
ContextListener Struct Reference
Inheritance diagram for ContextListener:
[legend]
Collaboration diagram for ContextListener:
[legend]

Public Member Functions

void xmlTagCallback (const ConfigurationContext &context, XMLTag &callingTag) override
 Callback at begin of XML tag.
 
void xmlEndTagCallback (const ConfigurationContext &context, XMLTag &callingTag) override
 Callback at end of XML tag and at end of subtag.
 
- Public Member Functions inherited from precice::xml::XMLTag::Listener
Listeneroperator= (Listener &&)=delete
 
virtual ~Listener ()=default
 

Public Attributes

ConfigurationContext startContext
 
ConfigurationContext endContext
 

Detailed Description

Definition at line 183 of file ParserTest.cpp.

Member Function Documentation

◆ xmlEndTagCallback()

void ContextListener::xmlEndTagCallback ( const ConfigurationContext & context,
XMLTag & callingTag )
inlineoverridevirtual

Callback at end of XML tag and at end of subtag.

At this callback, the attributes and all subtags of callingTag are parsed. This callback is first done for the listener, and then for the parent tag listener (if existing).

Implements precice::xml::XMLTag::Listener.

Definition at line 192 of file ParserTest.cpp.

◆ xmlTagCallback()

void ContextListener::xmlTagCallback ( const ConfigurationContext & context,
XMLTag & callingTag )
inlineoverridevirtual

Callback at begin of XML tag.

At this callback, the attributes of the callingTag are already parsed and available, while the subtags are not yet parsed.

Implements precice::xml::XMLTag::Listener.

Definition at line 187 of file ParserTest.cpp.

Member Data Documentation

◆ endContext

ConfigurationContext ContextListener::endContext

Definition at line 185 of file ParserTest.cpp.

◆ startContext

ConfigurationContext ContextListener::startContext

Definition at line 184 of file ParserTest.cpp.


The documentation for this struct was generated from the following file: