Audacity  3.0.3
Classes | Macros
XMLMethodRegistry.h File Reference
#include <wx/string.h>
#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 >::WriterEntry
 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 185 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; \
}

Typically in the companion .cpp file

Definition at line 189 of file XMLMethodRegistry.h.

BasicUI::Get
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.
Definition: BasicUI.cpp:26