Adding nlohmanns json library

This commit is contained in:
Dynamitos committed 2020-05-05 01:52:07 +02:00
1 parent 3ef8342247
commit bb5b48698a
83 files changed
+2426 -646

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
#pragma once
#include "Asset.h"
#include <fstream>
namespace Seele
{
class FileAsset
{
public:
FileAsset();
FileAsset(const std::string& directory, const std::string& name);
FileAsset(const std::string& fullPath);
virtual ~FileAsset();
std::ifstream& getReadStream();
std::ofstream& getWriteStream();
void rename(const std::string& newName);
private:
std::string name;
std::string path;
uint32 byteSize;
std::ifstream inStream;
std::ofstream outStream;
};
}