-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShared.cpp
More file actions
72 lines (51 loc) · 1.59 KB
/
Copy pathShared.cpp
File metadata and controls
72 lines (51 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// ===========================================================================
/// <summary>
/// Shared.cpp
/// DirectXIntroduction
/// created by Mehrdad Soleimanimajd on 30.07.2019
/// </summary>
/// <created>ʆϒʅ, 30.07.2019</created>
/// <changed>ʆϒʅ, 04.07.2023</changed>
// ===========================================================================
#include "Shared.h"
//template<class tType>
//std::shared_ptr<tType> PointerProvider<tType>::pointerEntity = nullptr;
//template<class tType>
//tType* PointerProvider<tType>::get ()
//{
// return pointerEntity.get ();
//};
//template<class tType>
//void PointerProvider<tType>::provider ( std::shared_ptr<tType> object )
//{
// pointerEntity = object;
//};
std::shared_ptr<theException> PointerProvider::exception = nullptr;
std::shared_ptr<Configurations> PointerProvider::configuration = nullptr;
std::shared_ptr<Logger<toFile>> PointerProvider::fileLogger = nullptr;
std::exception_ptr PointerProvider::exceptionPointer = nullptr;
theException* PointerProvider::getException (void)
{
return exception.get ();
};
Configurations* PointerProvider::getConfiguration (void)
{
return configuration.get ();
};
Logger<toFile>* PointerProvider::getFileLogger (void)
{
return fileLogger.get ();
};
void PointerProvider::exceptionProvider (std::shared_ptr<theException> object)
{
exception = object;
};
void PointerProvider::configurationProvider (std::shared_ptr<Configurations> object)
{
configuration = object;
};
void PointerProvider::fileLoggerProvider (std::shared_ptr<Logger<toFile>> object)
{
fileLogger = object;
};