Audacity 3.2.0
Classes | Macros
XMLMethodRegistry.h File Reference
#include <forward_list>
#include <string>
#include <string_view>
#include <functional>
#include <type_traits>
#include <unordered_map>
#include <utility>
#include <vector>
Include dependency graph for XMLMethodRegistry.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  XMLMethodRegistryBase
 Implementation helper for ProjectFileIORegistry. More...
 
class  XMLMethodRegistry< Host >
 
struct  XMLMethodRegistry< Host >::ObjectReaderEntry
 
struct  XMLMethodRegistry< Host >::AttributeReaderEntries
 
struct  XMLMethodRegistry< Host >::AttributeWriterEntry
 Typically statically constructed. More...
 
struct  XMLMethodRegistry< Host >::ObjectWriterEntry
 Typically statically constructed. More...
 

Macros

#define DECLARE_XML_METHOD_REGISTRY(DECLSPEC, Name)    template<> auto DECLSPEC Name::Get() -> Name &;
 
#define DEFINE_XML_METHOD_REGISTRY(Name)
 

Macro Definition Documentation

◆ DECLARE_XML_METHOD_REGISTRY

#define DECLARE_XML_METHOD_REGISTRY (   DECLSPEC,
  Name 
)     template<> auto DECLSPEC Name::Get() -> Name &;

Typically follows the using declaration of an XMLMethodRegistry specialization; DECLSPEC is for linkage visibility

Definition at line 218 of file XMLMethodRegistry.h.

◆ DEFINE_XML_METHOD_REGISTRY

#define DEFINE_XML_METHOD_REGISTRY (   Name)
Value:
template<> auto Name::Get() -> Name & \
{ \
static Name registry; \
return registry; \
}
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.
Definition: BasicUI.cpp:202

Typically in the companion .cpp file

Definition at line 222 of file XMLMethodRegistry.h.