File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,37 @@ T convertFromString(const StringView& /*str*/)
72
72
" convertFromString for this type: " ) + type_name );
73
73
}
74
74
75
+ template <>
76
+ std::string convertFromString<std::string>(const StringView& str);
77
+
78
+ template <>
79
+ const char * convertFromString<const char *>(const StringView& str);
80
+
81
+ template <>
82
+ int convertFromString<int >(const StringView& str);
83
+
84
+ template <>
85
+ unsigned convertFromString<unsigned >(const StringView& str);
86
+
87
+ template <>
88
+ double convertFromString<double >(const StringView& str);
89
+
90
+ template <> // Integer numbers separated by the characted ";"
91
+ std::vector<int > convertFromString<std::vector<int >>(const StringView& str);
92
+
93
+ template <> // Real numbers separated by the characted ";"
94
+ std::vector<double > convertFromString<std::vector<double >>(const StringView& str);
95
+
96
+ template <> // This recognizes either 0/1, true/false, TRUE/FALSE
97
+ bool convertFromString<bool >(const StringView& str);
98
+
99
+ template <> // Names with all capital letters
100
+ NodeStatus convertFromString<NodeStatus>(const StringView& str);
101
+
102
+ template <> // Names with all capital letters
103
+ NodeType convertFromString<NodeType>(const StringView& str);
104
+
105
+
75
106
// ------------------------------------------------------------------
76
107
77
108
/* *
You can’t perform that action at this time.
0 commit comments