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
26ML_START_NAMESPACE
27
28namespace ValuePersistence {
29
30MLEXPORT std::string valueToString(MLint value);
31MLEXPORT void stringToValue(const std::string& s, MLint& value);
32
33MLEXPORT std::string valueToString(float value);
34MLEXPORT void stringToValue(const std::string& s, float& value);
35
36MLEXPORT std::string valueToString(double value);
37MLEXPORT void stringToValue(const std::string& s, double& value);
38
39MLEXPORT std::string valueToString(const Vector2& value);
40MLEXPORT void stringToValue(const std::string& s, Vector2& value);
41
42MLEXPORT std::string valueToString(const Vector3& value);
43MLEXPORT void stringToValue(const std::string& s, Vector3& value);
44
45MLEXPORT std::string valueToString(const Vector4& value);
46MLEXPORT void stringToValue(const std::string& s, Vector4& value);
47
48}
49
50ML_END_NAMESPACE
#define MLEXPORT
To export symbols from a dll/shared object, we need to mark them with the MLEXPORT symbol.
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
MLEXPORT std::string valueToString(MLint value)
MLEXPORT void stringToValue(const std::string &s, MLint &value)