ML Reference
mlValuePersistence.h
Go to the documentation of this file.
1
/*************************************************************************************
2
**
3
** Copyright 2018, 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
15
16
#pragma once
17
18
#include "
mlInitSystemML.h
"
19
20
#include <
mlVector3.h
>
21
#include <
mlVector4.h
>
22
#include <
mlVector2.h
>
23
#include <
mlTypeDefs.h
>
24
#include <string>
25
26
ML_START_NAMESPACE
27
28
namespace
ValuePersistence {
29
30
MLEXPORT
std::string
valueToString
(
MLint
value);
31
MLEXPORT
void
stringToValue
(
const
std::string& s,
MLint
& value);
32
33
MLEXPORT
std::string
valueToString
(
float
value);
34
MLEXPORT
void
stringToValue
(
const
std::string& s,
float
& value);
35
36
MLEXPORT
std::string
valueToString
(
double
value);
37
MLEXPORT
void
stringToValue
(
const
std::string& s,
double
& value);
38
39
MLEXPORT
std::string
valueToString
(
const
Vector2
& value);
40
MLEXPORT
void
stringToValue
(
const
std::string& s,
Vector2
& value);
41
42
MLEXPORT
std::string
valueToString
(
const
Vector3
& value);
43
MLEXPORT
void
stringToValue
(
const
std::string& s,
Vector3
& value);
44
45
MLEXPORT
std::string
valueToString
(
const
Vector4
& value);
46
MLEXPORT
void
stringToValue
(
const
std::string& s,
Vector4
& value);
47
48
}
49
50
ML_END_NAMESPACE
ml::Tvec2< MLdouble >
ml::Tvec3< MLdouble >
ml::Tvec4< MLdouble >
mlInitSystemML.h
MLEXPORT
#define MLEXPORT
To export symbols from a dll/shared object, we need to mark them with the MLEXPORT symbol.
Definition
mlInitSystemML.h:38
mlTypeDefs.h
MLint
MLint64 MLint
A signed ML integer type with at least 64 bits used for index calculations on very large images even ...
Definition
mlTypeDefs.h:490
mlVector2.h
mlVector3.h
mlVector4.h
ml::ValuePersistence::valueToString
MLEXPORT std::string valueToString(MLint value)
ml::ValuePersistence::stringToValue
MLEXPORT void stringToValue(const std::string &s, MLint &value)
MeVis
Foundation
Sources
ML
include
mlValuePersistence.h
Generated by
1.10.0