[DEV] add io provider

This commit is contained in:
Edouard DUPIN 2018-09-07 21:15:35 +02:00
parent 1b64f05c43
commit 26d5d87fd7
3 changed files with 26 additions and 0 deletions

26
etk/uri/IoProvider.hpp Normal file
View File

@ -0,0 +1,26 @@
/** @file
* @author Edouard DUPIN
* @copyright 2018, Edouard DUPIN, all right reserved
* @license MPL v2.0 (see license file)
*/
#pragma once
#include <etk/types.hpp>
#include <etk/fs/Type.hpp>
#include <etk/String.hpp>
#include <etk/Map.hpp>
#include <etk/uri/Query.hpp>
#include <etk/fs/Path.hpp>
namespace etk {
namespace uri {
class IoProviderInterface : public ememory::EnableSharedFromThis<IoProvider> {
public:
};
void addProvider(const etk::String& _scheme, ememory::SharedPtr<IoProviderInterface> _interface);
void removeProvider(const etk::String& _scheme);
ememory::SharedPtr<etk::io::Interface> provideIO(const etk::uri::Uri& _uri);
}
}