Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
platform
Resources
Roads
Navigation
NavigationGraphAddedCallback.h
1
// Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2
3
#pragma once
4
5
#include "Navigation.h"
6
7
namespace
Eegeo
8
{
9
namespace
Resources
10
{
11
namespace
Roads
12
{
13
namespace
Navigation
14
{
15
class
INavigationGraphAddedCallback
16
{
17
public
:
18
virtual
void
operator()(
const
NavigationGraph
& navGraph) = 0;
19
};
20
21
template
<
class
T>
class
TNavigationGraphAddedCallback
:
public
INavigationGraphAddedCallback
22
{
23
private
:
24
void (T::*m_callback)(
const
NavigationGraph
& navGraph);
25
T* m_context;
26
public
:
27
TNavigationGraphAddedCallback
(T* context,
void
(T::*callback)(
const
NavigationGraph
& navGraph))
28
: m_callback(callback)
29
, m_context(context)
30
{
31
}
32
33
virtual
void
operator()(
const
NavigationGraph
& navGraph)
34
{
35
(*m_context.*m_callback)(navGraph);
36
}
37
};
38
}
39
}
40
}
41
}
Generated on Sat Jun 10 2023 02:00:33 for eeGeo Platform SDK by
1.8.3.1