mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-07 15:22:34 +02:00
36 lines
782 B
C++
36 lines
782 B
C++
/**********************************************************************
|
|
|
|
Audacity: A Digital Audio Editor
|
|
|
|
ProjectFileIORegistry.h
|
|
|
|
Paul Licameli
|
|
|
|
**********************************************************************/
|
|
|
|
#ifndef __AUDACITY_PROJECT_FILE_IO_REGISTRY__
|
|
#define __AUDACITY_PROJECT_FILE_IO_REGISTRY__
|
|
|
|
#include <functional>
|
|
|
|
class AudacityProject;
|
|
class XMLTagHandler;
|
|
class wxString;
|
|
|
|
namespace ProjectFileIORegistry {
|
|
|
|
// Type of functions returning objects that interpret a part of the saved XML
|
|
using TagHandlerFactory =
|
|
std::function< XMLTagHandler *( AudacityProject & ) >;
|
|
|
|
// Typically statically constructed
|
|
struct Entry{
|
|
Entry( const wxString &tag, const TagHandlerFactory &factory );
|
|
};
|
|
|
|
TagHandlerFactory Lookup( const wxString &tag );
|
|
|
|
}
|
|
|
|
#endif
|