MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
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
27
28namespace ValuePersistence
29{
30
31 MLEXPORT std::string valueToString(MLint value);
32 MLEXPORT void stringToValue(const std::string& s, MLint& value);
33
34 MLEXPORT std::string valueToString(float value);
35 MLEXPORT void stringToValue(const std::string& s, float& value);
36
37 MLEXPORT std::string valueToString(double value);
38 MLEXPORT void stringToValue(const std::string& s, double& value);
39
40 MLEXPORT std::string valueToString(const Vector2& value);
41 MLEXPORT void stringToValue(const std::string& s, Vector2& value);
42
43 MLEXPORT std::string valueToString(const Vector3& value);
44 MLEXPORT void stringToValue(const std::string& s, Vector3& value);
45
46 MLEXPORT std::string valueToString(const Vector4& value);
47 MLEXPORT void stringToValue(const std::string& s, Vector4& value);
48
49} // namespace ValuePersistence
50
#define MLEXPORT
To export symbols from a DLL/shared object, we need to mark them with the MLEXPORT symbol.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
MLint64 MLint
A signed ML integer type with at least 64 bits used for index calculations on very large images even ...
Definition mlTypeDefs.h:489
MLEXPORT std::string valueToString(MLint value)
MLEXPORT void stringToValue(const std::string &s, MLint &value)