MeVisLab Toolbox 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
#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:578
MLEXPORT void stringToValue(const std::string &s, Vector4 &value)
MLEXPORT std::string valueToString(const Vector4 &value)