text: /*
   * Copyright (c) 2011 - 2016 Stephen F. Booth <me@sbooth.org>
   * See https://github.com/sbooth/SFBAudioEngine/blob/master/LICENSE.txt for license information
   */
  
  #pragma once
  
  #include "AudioMetadata.h"
  
  namespace SFB {
  
  	namespace Audio {
  
  		// ========================================
  		// A Metadata subclass supporting Monkey's Audio files
  		// ========================================
  		class MonkeysAudioMetadata : public Metadata
  		{
  
  		public:
  
  			// Data types handled by this class
  			static CFArrayRef CreateSupportedFileExtensions();
  			static CFArrayRef CreateSupportedMIMETypes();
  
  			static bool HandlesFilesWithExtension(CFStringRef extension);
  			static bool HandlesMIMEType(CFStringRef mimeType);
  
  			static Metadata::unique_ptr CreateMetadata(CFURLRef url);
  
  			// Creation
  			explicit MonkeysAudioMetadata(CFURLRef url);
  
  		private:
  
  			// Functionality
  			virtual bool _ReadMetadata(CFErrorRef *error);
  			virtual bool _WriteMetadata(CFErrorRef *error);
  		};
  
  	}
  }
  