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

Classes

struct  EffectsHandler
 
struct  GroupHandler
 

Public Member Functions

 EffectsMenuGroupsHandler (EffectsMenuGroups &groups)
 
bool HandleXMLTag (const std::string_view &tag, const AttributesList &attrs) 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

EffectsMenuGroupsgroups
 
std::unique_ptr< GroupHandlergroupHandler
 

Detailed Description

Definition at line 37 of file MenuHelper.cpp.

Constructor & Destructor Documentation

◆ EffectsMenuGroupsHandler()

anonymous_namespace{MenuHelper.cpp}::EffectsMenuGroupsHandler::EffectsMenuGroupsHandler ( EffectsMenuGroups groups)
inline

Definition at line 96 of file MenuHelper.cpp.

Member Function Documentation

◆ HandleXMLChild()

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

Implements XMLTagHandler.

Definition at line 100 of file MenuHelper.cpp.

101 {
102 if(tag == "Group")
103 {
104 groups.resize(groups.size() + 1);
105 groupHandler = std::make_unique<GroupHandler>(groups.back());
106 return &*groupHandler;
107 }
108 return nullptr;
109 }

◆ HandleXMLTag()

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

Implements XMLTagHandler.

Definition at line 98 of file MenuHelper.cpp.

98{ return true; }

Member Data Documentation

◆ groupHandler

std::unique_ptr<GroupHandler> anonymous_namespace{MenuHelper.cpp}::EffectsMenuGroupsHandler::groupHandler

Definition at line 94 of file MenuHelper.cpp.

◆ groups

EffectsMenuGroups& anonymous_namespace{MenuHelper.cpp}::EffectsMenuGroupsHandler::groups

Definition at line 93 of file MenuHelper.cpp.


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