MeVisLab Toolbox Reference
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>
27};
28
29template<>
31public:
32 static const char* name() { return "MLint8"; }
33};
34
35template<>
37public:
38 static const char* name() { return "MLuint8"; }
39};
40
41template<>
43public:
44 static const char* name() { return "MLint16"; }
45};
46
47template<>
49public:
50 static const char* name() { return "MLuint16"; }
51};
52
53template<>
55public:
56 static const char* name() { return "MLint32"; }
57};
58
59template<>
61public:
62 static const char* name() { return "MLuint32"; }
63};
64
65template<>
67public:
68 static const char* name() { return "MLint64"; }
69};
70
71template<>
73public:
74 static const char* name() { return "MLuint64"; }
75};
76
77template<>
79public:
80 static const char* name() { return "double"; }
81};
82
83template<>
84class PropertyTraits<Vector3> {
85public:
86 static const char* name() { return "Vector3"; }
87};
88
89template<>
90class PropertyTraits<Vector6> {
91public:
92 static const char* name() { return "Vector6"; }
93};
94
96
97#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:425
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:412
signed int MLint32
Definition mlTypeDefs.h:161
#define VESSELGRAPH_END_NAMESPACE
#define VESSELGRAPH_BEGIN_NAMESPACE