Audacity  3.0.3
Namespaces | Classes | Typedefs | Functions
ProjectFileIORegistry Namespace Reference

Namespaces

 anonymous_namespace{ProjectFileIORegistry.cpp}
 

Classes

struct  Entry
 

Typedefs

using TagHandlerFactory = std::function< XMLTagHandler *(AudacityProject &) >
 

Functions

TagHandlerFactory Lookup (const wxString &tag)
 

Typedef Documentation

◆ TagHandlerFactory

Definition at line 23 of file ProjectFileIORegistry.h.

Function Documentation

◆ Lookup()

TagHandlerFactory ProjectFileIORegistry::Lookup ( const wxString &  tag)

Definition at line 35 of file ProjectFileIORegistry.cpp.

36 {
37  const auto &table = sTagTable();
38  auto iter = table.find( tag );
39  if ( iter == table.end() )
40  return {};
41  return iter->second;
42 }

References ProjectFileIORegistry::anonymous_namespace{ProjectFileIORegistry.cpp}::sTagTable().

Referenced by ProjectSerializer::Decode(), and ProjectFileIO::HandleXMLChild().

Here is the call graph for this function:
Here is the caller graph for this function:
ProjectFileIORegistry::anonymous_namespace{ProjectFileIORegistry.cpp}::sTagTable
static TagTable & sTagTable()
Definition: ProjectFileIORegistry.cpp:22