MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
mlPropertyTraits.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2010, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13#ifndef ML_PROPERTY_TRAITS_H
14#define ML_PROPERTY_TRAITS_H
15
16
19
20#include "mlVesselGraphSystem.h"
21
23
24// Traits
25template <typename T> class PropertyTraits
26{
27};
28
29template <> class PropertyTraits<MLint8>
30{
31public:
32 static const char* name()
33 {
34 return "MLint8";
35 }
36};
37
38template <> class PropertyTraits<MLuint8>
39{
40public:
41 static const char* name()
42 {
43 return "MLuint8";
44 }
45};
46
47template <> class PropertyTraits<MLint16>
48{
49public:
50 static const char* name()
51 {
52 return "MLint16";
53 }
54};
55
56template <> class PropertyTraits<MLuint16>
57{
58public:
59 static const char* name()
60 {
61 return "MLuint16";
62 }
63};
64
65template <> class PropertyTraits<MLint32>
66{
67public:
68 static const char* name()
69 {
70 return "MLint32";
71 }
72};
73
74template <> class PropertyTraits<MLuint32>
75{
76public:
77 static const char* name()
78 {
79 return "MLuint32";
80 }
81};
82
83template <> class PropertyTraits<MLint64>
84{
85public:
86 static const char* name()
87 {
88 return "MLint64";
89 }
90};
91
92template <> class PropertyTraits<MLuint64>
93{
94public:
95 static const char* name()
96 {
97 return "MLuint64";
98 }
99};
100
101template <> class PropertyTraits<double>
102{
103public:
104 static const char* name()
105 {
106 return "double";
107 }
108};
109
110template <> class PropertyTraits<Vector3>
111{
112public:
113 static const char* name()
114 {
115 return "Vector3";
116 }
117};
118
119template <> class PropertyTraits<Vector6>
120{
121public:
122 static const char* name()
123 {
124 return "Vector6";
125 }
126};
127
129
130#endif // __mlPropertyTraits_HPP
static const char * name()
static const char * name()
static const char * name()
static const char * name()
static const char * name()
static const char * name()
static const char * name()
static const char * name()
static const char * name()
static const char * name()
static const char * name()
Class PropertyValue, which is used to hold properties of a given set of allowed types in typesafe way...
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
UINT64 MLuint64
Introduce platform-independent 64-bit unsigned integer type.
Definition mlTypeDefs.h:424
unsigned int MLuint32
Definition mlTypeDefs.h:185
unsigned char MLuint8
Definition mlTypeDefs.h:109
unsigned short MLuint16
Definition mlTypeDefs.h:142
signed short MLint16
Definition mlTypeDefs.h:125
char MLint8
Definition mlTypeDefs.h:97
INT64 MLint64
Include 64-bit integer support for Windows or Unix.
Definition mlTypeDefs.h:411
signed int MLint32
Definition mlTypeDefs.h:161
#define VESSELGRAPH_END_NAMESPACE
#define VESSELGRAPH_BEGIN_NAMESPACE