cog/Plugins/AdPlug/AdPlug/fileprovider.h

36 lines
708 B
Objective-C

//
// fileprovider.h
// AdPlug
//
// Created by Christopher Snowhill on 1/27/18.
// Copyright © 2018 Christopher Snowhill. All rights reserved.
//
#ifndef fileprovider_h
#define fileprovider_h
#import <Cocoa/Cocoa.h>
#import "Plugin.h"
#include <string>
#include <binio.h>
#include <AdPlug/fprovide.h>
class CProvider_cog : public CFileProvider
{
id<CogSource> m_file_hint;
std::string m_file_path;
public:
virtual binistream *open(std::string filename) const;
virtual void close(binistream *f) const;
CProvider_cog() { }
CProvider_cog(std::string filename, id<CogSource> file)
: m_file_path( filename ), m_file_hint(file) { }
};
#endif /* fileprovider_h */