-
Notifications
You must be signed in to change notification settings - Fork 0
/
Reflection.h
63 lines (50 loc) · 1.01 KB
/
Reflection.h
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
//
// Created by dimitrije on 6/26/18.
//
#ifndef TESTINGCLASSSTUFF_REFLECTION_H
#define TESTINGCLASSSTUFF_REFLECTION_H
#include "SymbolReader.h"
#include "ClassReflection.h"
class Reflection {
public:
/**
* The constructor for the reflection
*/
explicit Reflection();
/**
* Loads the specified file
* @param fileName - the path to the .so library
* @return true if we can load the library
*/
bool load(std::string fileName);
/**
*
* @param className
* @return
*/
ClassReflectionPtr getClassReflection(std::string className);
/**
*
* @param typeInfo
* @return
*/
ClassReflectionPtr getClassReflection(const std::type_info &typeInfo);
protected:
/**
* This thing reads the symbols
*/
SymbolReader reader;
/**
* The shared library we loaded
*/
void *sharedLibrary;
/**
* Is the reflection loaded
*/
bool isLoaded;
/**
* The file name of the .so library
*/
std::string fileName;
};
#endif //TESTINGCLASSSTUFF_REFLECTION_H