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

Typically statically constructed. More...

#include <XMLMethodRegistry.h>

Public Member Functions

template<typename Writer >
 ObjectWriterEntry (Writer fn)
 

Detailed Description

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

Typically statically constructed.

Definition at line 182 of file XMLMethodRegistry.h.

Constructor & Destructor Documentation

◆ ObjectWriterEntry()

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

Definition at line 194 of file XMLMethodRegistry.h.

195 {
196 // Remember the function, type-erased
198 [ fn = std::move(fn) ] ( const void *p, XMLWriter &writer ) {
199 // CallObjectAccessor will guarantee p is not null
200 return fn( *static_cast<const Host *>(p), writer );
201 } );
202 }
static const auto fn
void RegisterObjectWriter(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:25

References fn, XMLMethodRegistry< Host >::Get(), audacity::network_manager::common_headers::Host, and XMLMethodRegistryBase::RegisterObjectWriter().

Here is the call graph for this function:

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