Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
platform
Io
IJsonFileLoader.h
1
// Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2
3
#pragma once
4
5
#include "Types.h"
6
#include "ICallback.h"
7
#include <ostream>
8
9
namespace
Eegeo
10
{
11
namespace
Io
12
{
13
struct
JsonFileLoaderResult
14
{
15
JsonFileLoaderResult
(
const
std::string& url,
bool
succeed)
16
: m_url(url)
17
, m_succeed(succeed)
18
{}
19
20
const
std::string& Url()
const
{
return
m_url; }
21
bool
IsSucceed()
const
{
return
m_succeed; }
22
private
:
23
std::string m_url;
24
bool
m_succeed;
25
};
26
27
28
class
IJsonFileLoader
29
{
30
public
:
31
typedef
Helpers::ICallback1<const JsonFileLoaderResult>
LoadCompleteCallbackType
;
32
virtual
~
IJsonFileLoader
() {}
33
34
virtual
void
Load(
const
std::string& url,
LoadCompleteCallbackType
& callback) = 0;
35
36
};
37
38
39
// TODO: Might remove this.
40
class
IUpdatableLoader
41
{
42
public
:
43
virtual
~
IUpdatableLoader
() {}
44
virtual
void
Update() = 0;
45
};
46
}
47
}
Generated on Sat Jun 10 2023 02:00:30 for eeGeo Platform SDK by
1.8.3.1