All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WindowsCacheFileIO.h
1 // Copyright (c) 2014 eeGeo. All rights reserved.
2 
3 #pragma once
4 
5 #include "Types.h"
6 #include "IFileIO.h"
7 #include "WindowsNativeState.h"
8 
9 #include <string>
10 
11 namespace Eegeo
12 {
13  namespace Windows
14  {
15 
17  {
18  std::string m_assetPathPrefix;
19 
20  std::string GetPath(const std::string& name) const;
21 
22  public:
23 
26 
27  bool OpenFile(std::fstream& stream, size_t& size, const std::string& name, std::ios_base::openmode mode=std::ifstream::in);
28  bool WriteFile(const Byte* data, size_t size, const std::string& name, std::ios_base::openmode mode=std::ifstream::out);
29  bool DeleteFile(const std::string& name);
30  bool Exists(const std::string& name);
31  std::string GetAppFilePathname(const std::string& filename);
32  bool TryStat(const std::string& name, Helpers::FileStat& out_s);
33  };
34 
35  }
36 }