Audacity 3.2.0
Public Member Functions | List of all members
XMLMethodRegistry< Host >::AttributeWriterEntry Struct Reference

Typically statically constructed. More...

#include <XMLMethodRegistry.h>

Public Member Functions

template<typename Writer >
 AttributeWriterEntry (Writer fn)
 

Detailed Description

template<typename Host>
struct XMLMethodRegistry< Host >::AttributeWriterEntry

Typically statically constructed.

Definition at line 158 of file XMLMethodRegistry.h.

Constructor & Destructor Documentation

◆ AttributeWriterEntry()

template<typename Host >
template<typename Writer >
XMLMethodRegistry< Host >::AttributeWriterEntry::AttributeWriterEntry ( Writer  fn)
inlineexplicit

Definition at line 170 of file XMLMethodRegistry.h.

171 {
172 // Remember the function, type-erased
174 [ fn = std::move(fn) ] ( const void *p, XMLWriter &writer ) {
175 // CallObjectAccessor will guarantee p is not null
176 return fn( *static_cast<const Host *>(p), writer );
177 } );
178 }
static const auto fn
void RegisterAttributeWriter(TypeErasedWriter writer)
static XMLMethodRegistry & Get()
Get the unique instance.
Base class for XMLFileWriter and XMLStringWriter that provides the general functionality for creating...
Definition: XMLWriter.h:26

References fn, XMLMethodRegistry< Host >::Get(), and XMLMethodRegistryBase::RegisterAttributeWriter().

Here is the call graph for this function:

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