OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
StringToVariableConverter.h
Go to the documentation of this file.
1#pragma once
2#include "Variable.h"
3#include <string>
4
5namespace ot
6{
12 class __declspec(dllexport) StringToVariableConverter
13 {
14 public:
15 Variable operator() (const std::string& _value, const char _decimalSeparator);
16
21 bool normaliseNumericString(std::string& _value, const char _decimalSeparator);
22 private:
23 void removeThousandsSeparators(std::string& _value, const char _thousandsSeparator);
24 void removeWhitespaces(std::string& _value);
25 void removeControlCharacters(std::string& _value);
26 void ensurePointAsDecimalSeparator(std::string& _value);
27 Variable convertIfFitsNumericalValue(const std::string& _value);
28 };
29}
Definition Connector.h:8