VR-Vantage 3.1.1 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 {
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;
57  InitializeFunction myFunctionToCall;
58  };
59 
60 }
Class responsible for initializer order.
Definition: DtInitializer.h:26
std::vector< DependencyFunction > InitStateList
Definition: DtInitializer.h:55
InitializeFunction myFunctionToCall
Definition: DtInitializer.h:57
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
InitStateList myDependencies
Definition: DtInitializer.h:56
Contains DLL export macros.


Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)