VR-Vantage 2.4 API Documentation
Home
Modules
Namespaces
Classes
Files
Libraries
Examples
Tutorials
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvCore
DtInitializer.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2011 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvCore/vrvCore.h
>
13
#include <vector>
14
#ifdef __linux__
15
#include <cstddef>
16
#endif
17
18
#ifdef __linux__
19
#include <cstddef>
20
#endif
21
22
namespace
makVrv
23
{
26
class
DT_DLL_VRVCORE
DtInitializer
27
{
28
public
:
29
typedef
void
(*InitializeFunction)();
30
typedef
bool
(*DependencyFunction)(
const
DtInitializer
*);
31
34
DtInitializer
(InitializeFunction functionToCall);
35
37
DtInitializer
(
const
DtInitializer
& orig);
38
40
~
DtInitializer
();
41
43
void
addDependency(DependencyFunction func);
44
46
size_t
numberOfDependecies()
const
;
47
49
bool
dependenciesInitialized()
const
;
50
52
void
initialize();
53
54
protected
:
55
typedef
std::vector<DependencyFunction>
InitStateList
;
56
InitStateList
myDependencies
;
57
InitializeFunction
myFunctionToCall
;
58
};
59
60
}
Copyright © 2005-2018 VT MAK. All Rights Reserved (
www.mak.com
)