Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
anonymous_namespace{MenuHelper.cpp}::EffectsMenuGroupsHandler::EffectsHandler Struct Reference
Inheritance diagram for anonymous_namespace{MenuHelper.cpp}::EffectsMenuGroupsHandler::EffectsHandler:
[legend]
Collaboration diagram for anonymous_namespace{MenuHelper.cpp}::EffectsMenuGroupsHandler::EffectsHandler:
[legend]

Public Member Functions

 EffectsHandler (std::vector< TranslatableString > &effects)
 
bool HandleXMLTag (const std::string_view &tag, const AttributesList &attrs) override
 
void HandleXMLContent (const std::string_view &text) override
 
void HandleXMLEndTag (const std::string_view &tag) override
 
XMLTagHandlerHandleXMLChild (const std::string_view &tag) override
 
- Public Member Functions inherited from XMLTagHandler
 XMLTagHandler ()
 
virtual ~XMLTagHandler ()
 
virtual bool HandleXMLTag (const std::string_view &tag, const AttributesList &attrs)=0
 
virtual void HandleXMLEndTag (const std::string_view &WXUNUSED(tag))
 
virtual void HandleXMLContent (const std::string_view &WXUNUSED(content))
 
virtual XMLTagHandlerHandleXMLChild (const std::string_view &tag)=0
 
void ReadXMLEndTag (const char *tag)
 
void ReadXMLContent (const char *s, int len)
 
XMLTagHandlerReadXMLChild (const char *tag)
 

Public Attributes

std::optional< std::string > textContent
 
std::vector< TranslatableString > & effects
 

Detailed Description

Definition at line 39 of file MenuHelper.cpp.

Constructor & Destructor Documentation

◆ EffectsHandler()

anonymous_namespace{MenuHelper.cpp}::EffectsMenuGroupsHandler::EffectsHandler::EffectsHandler ( std::vector< TranslatableString > &  effects)
inline

Definition at line 44 of file MenuHelper.cpp.

Member Function Documentation

◆ HandleXMLChild()

XMLTagHandler * anonymous_namespace{MenuHelper.cpp}::EffectsMenuGroupsHandler::EffectsHandler::HandleXMLChild ( const std::string_view &  tag)
inlineoverridevirtual

Implements XMLTagHandler.

Definition at line 54 of file MenuHelper.cpp.

55 {
56 if(tag == "Effect")
57 return this;
58 return nullptr;
59 }

◆ HandleXMLContent()

void anonymous_namespace{MenuHelper.cpp}::EffectsMenuGroupsHandler::EffectsHandler::HandleXMLContent ( const std::string_view &  text)
inlineoverride

Definition at line 47 of file MenuHelper.cpp.

◆ HandleXMLEndTag()

void anonymous_namespace{MenuHelper.cpp}::EffectsMenuGroupsHandler::EffectsHandler::HandleXMLEndTag ( const std::string_view &  tag)
inlineoverride

Definition at line 48 of file MenuHelper.cpp.

49 {
50 if(textContent.has_value() && tag == "Effect")
51 effects.emplace_back(TranslatableString { *textContent, {} });
52 textContent.reset();
53 }
Holds a msgid for the translation catalog; may also bind format arguments.

◆ HandleXMLTag()

bool anonymous_namespace{MenuHelper.cpp}::EffectsMenuGroupsHandler::EffectsHandler::HandleXMLTag ( const std::string_view &  tag,
const AttributesList attrs 
)
inlineoverridevirtual

Implements XMLTagHandler.

Definition at line 46 of file MenuHelper.cpp.

46{ return true; }

Member Data Documentation

◆ effects

std::vector<TranslatableString>& anonymous_namespace{MenuHelper.cpp}::EffectsMenuGroupsHandler::EffectsHandler::effects

Definition at line 42 of file MenuHelper.cpp.

◆ textContent

std::optional<std::string> anonymous_namespace{MenuHelper.cpp}::EffectsMenuGroupsHandler::EffectsHandler::textContent

Definition at line 41 of file MenuHelper.cpp.


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