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
25 template<typename T>
27 };
28 
29 template<>
31 public:
32  static const char* name() { return "MLint8"; }
33 };
34 
35 template<>
37 public:
38  static const char* name() { return "MLuint8"; }
39 };
40 
41 template<>
43 public:
44  static const char* name() { return "MLint16"; }
45 };
46 
47 template<>
49 public:
50  static const char* name() { return "MLuint16"; }
51 };
52 
53 template<>
55 public:
56  static const char* name() { return "MLint32"; }
57 };
58 
59 template<>
61 public:
62  static const char* name() { return "MLuint32"; }
63 };
64 
65 template<>
67 public:
68  static const char* name() { return "MLint64"; }
69 };
70 
71 template<>
73 public:
74  static const char* name() { return "MLuint64"; }
75 };
76 
77 template<>
78 class PropertyTraits<double> {
79 public:
80  static const char* name() { return "double"; }
81 };
82 
83 template<>
85 public:
86  static const char* name() { return "Vector3"; }
87 };
88 
89 template<>
91 public:
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...
UINT64 MLuint64
Introduce platform independent 64 bit unsigned integer type.
Definition: mlTypeDefs.h:513
unsigned int MLuint32
Definition: mlTypeDefs.h:191
unsigned char MLuint8
Definition: mlTypeDefs.h:115
unsigned short MLuint16
Definition: mlTypeDefs.h:148
signed short MLint16
Definition: mlTypeDefs.h:131
char MLint8
Definition: mlTypeDefs.h:103
INT64 MLint64
Include 64 bit integer support for Windows or Unix.
Definition: mlTypeDefs.h:500
signed int MLint32
Definition: mlTypeDefs.h:167
#define VESSELGRAPH_END_NAMESPACE
#define VESSELGRAPH_BEGIN_NAMESPACE
Tvec3< MLdouble > Vector3
A vector with 3 components of type double.
Definition: mlVector3.h:300
Tvec6< MLdouble > Vector6
A vector with 6 components of type double.
Definition: mlVector6.h:194