rttr  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
standard_types.h
Go to the documentation of this file.
1 /************************************************************************************
2 * *
3 * Copyright (c) 2014 Axel Menzel <info@axelmenzel.de> *
4 * *
5 * This file is part of RTTR (Run Time Type Reflection) *
6 * License: MIT License *
7 * *
8 * Permission is hereby granted, free of charge, to any person obtaining *
9 * a copy of this software and associated documentation files (the "Software"), *
10 * to deal in the Software without restriction, including without limitation *
11 * the rights to use, copy, modify, merge, publish, distribute, sublicense, *
12 * and/or sell copies of the Software, and to permit persons to whom the *
13 * Software is furnished to do so, subject to the following conditions: *
14 * *
15 * The above copyright notice and this permission notice shall be included in *
16 * all copies or substantial portions of the Software. *
17 * *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE *
24 * SOFTWARE. *
25 * *
26 *************************************************************************************/
27 
28 #ifndef __RTTR_STANDARD_TYPES_H__
29 #define __RTTR_STANDARD_TYPES_H__
30 
31 #include "rttr/type.h"
32 #include "rttr/rttr_enable.h"
34 
35 #include <string>
36 #include <vector>
37 
45 RTTR_DECLARE_STANDARD_TYPE_VARIANTS(unsigned short int)
49 RTTR_DECLARE_STANDARD_TYPE_VARIANTS(unsigned long int)
51 RTTR_DECLARE_STANDARD_TYPE_VARIANTS(unsigned long long int)
57 RTTR_DECLARE_STANDARD_TYPE_VARIANTS(std::vector<float>)
58 RTTR_DECLARE_STANDARD_TYPE_VARIANTS(std::vector<double>)
59 
60 RTTR_DECLARE_TYPE(char[1 ])
61 RTTR_DECLARE_TYPE(char[2 ])
62 RTTR_DECLARE_TYPE(char[3 ])
63 RTTR_DECLARE_TYPE(char[4 ])
64 RTTR_DECLARE_TYPE(char[5 ])
65 RTTR_DECLARE_TYPE(char[6 ])
66 RTTR_DECLARE_TYPE(char[7 ])
67 RTTR_DECLARE_TYPE(char[8 ])
68 RTTR_DECLARE_TYPE(char[9 ])
69 RTTR_DECLARE_TYPE(char[10])
70 RTTR_DECLARE_TYPE(char[11])
71 RTTR_DECLARE_TYPE(char[12])
72 RTTR_DECLARE_TYPE(char[13])
73 RTTR_DECLARE_TYPE(char[14])
74 RTTR_DECLARE_TYPE(char[15])
75 RTTR_DECLARE_TYPE(char[16])
76 RTTR_DECLARE_TYPE(char[17])
77 RTTR_DECLARE_TYPE(char[18])
78 RTTR_DECLARE_TYPE(char[19])
79 RTTR_DECLARE_TYPE(char[20])
80 RTTR_DECLARE_TYPE(char[21])
81 RTTR_DECLARE_TYPE(char[22])
82 RTTR_DECLARE_TYPE(char[23])
83 RTTR_DECLARE_TYPE(char[24])
84 RTTR_DECLARE_TYPE(char[25])
85 RTTR_DECLARE_TYPE(char[26])
86 RTTR_DECLARE_TYPE(char[27])
87 RTTR_DECLARE_TYPE(char[28])
88 RTTR_DECLARE_TYPE(char[29])
89 RTTR_DECLARE_TYPE(char[30])
90 RTTR_DECLARE_TYPE(char[31])
91 RTTR_DECLARE_TYPE(char[32])
92 RTTR_DECLARE_TYPE(char[33])
93 RTTR_DECLARE_TYPE(char[34])
94 RTTR_DECLARE_TYPE(char[35])
95 RTTR_DECLARE_TYPE(char[36])
96 RTTR_DECLARE_TYPE(char[37])
97 RTTR_DECLARE_TYPE(char[38])
98 RTTR_DECLARE_TYPE(char[39])
99 RTTR_DECLARE_TYPE(char[40])
100 RTTR_DECLARE_TYPE(char[41])
101 RTTR_DECLARE_TYPE(char[42])
102 RTTR_DECLARE_TYPE(char[43])
103 RTTR_DECLARE_TYPE(char[44])
104 RTTR_DECLARE_TYPE(char[45])
105 RTTR_DECLARE_TYPE(char[46])
106 RTTR_DECLARE_TYPE(char[47])
107 RTTR_DECLARE_TYPE(char[48])
108 RTTR_DECLARE_TYPE(char[49])
109 RTTR_DECLARE_TYPE(char[50])
110 RTTR_DECLARE_TYPE(char[51])
111 RTTR_DECLARE_TYPE(char[52])
112 RTTR_DECLARE_TYPE(char[53])
113 RTTR_DECLARE_TYPE(char[54])
114 RTTR_DECLARE_TYPE(char[55])
115 RTTR_DECLARE_TYPE(char[56])
116 RTTR_DECLARE_TYPE(char[57])
117 RTTR_DECLARE_TYPE(char[58])
118 RTTR_DECLARE_TYPE(char[59])
119 RTTR_DECLARE_TYPE(char[60])
120 
121 #endif // __RTTR_STANDARD_TYPES_H__
#define RTTR_DECLARE_TYPE(Type)
This macro makes the type Type known to the type system.
Definition: type.h:696
#define RTTR_DECLARE_STANDARD_TYPE_VARIANTS(Type)
This macro will define three common variants of the given type Type.
Definition: type.h:703