Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
platform
Windows
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
16
class
WindowsCacheFileIO
:
public
Eegeo::Helpers::IFileIO
17
{
18
std::string m_assetPathPrefix;
19
20
std::string GetPath(
const
std::string& name)
const
;
21
22
public
:
23
24
WindowsCacheFileIO
(
WindowsNativeState
* pState);
25
~
WindowsCacheFileIO
();
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
}
Generated on Sat Jun 10 2023 02:00:35 for eeGeo Platform SDK by
1.8.3.1