aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Resource.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api/Resource.h')
-rw-r--r--src/crepe/api/Resource.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/crepe/api/Resource.h b/src/crepe/api/Resource.h
index 620a10e..2260b1a 100644
--- a/src/crepe/api/Resource.h
+++ b/src/crepe/api/Resource.h
@@ -1,16 +1,21 @@
#pragma once
#include <string>
+#include <fstream>
+#include <iostream>
namespace crepe::api {
class Resource {
public:
- Resource(const std::string & source);
- virtual ~Resource();
+ Resource(const std::string & src);
+
+public:
+ const std::istream & read();
private:
- std::string _source;
+ std::string src;
+ std::ifstream file;
};
}