4040#include < openfluid/dllexport.hpp>
4141#include < openfluid/config.hpp>
4242#include < openfluid/ware/TypeDefs.hpp>
43+ #include < openfluid/ware/DataItemUtils.hpp>
4344#include < openfluid/ware/WareIssues.hpp>
4445#include < openfluid/tools/MiscHelpers.hpp>
4546#include < openfluid/tools/IDHelpers.hpp>
@@ -227,24 +228,6 @@ class OPENFLUID_API WareSignature
227228// =====================================================================
228229
229230
230- /* *
231- Transmits a given variable name to container without changing type
232- @param[in] VO the string to use
233- @param[in] V the string to populate
234- @param[in] T the type to change (ignored)
235- @return true always
236- */
237- static bool identityExtractor (const std::string& VO, std::string& V, openfluid::core::Value::Type& /* T*/ )
238- {
239- V = VO;
240- return true ;
241- }
242-
243-
244- // =====================================================================
245- // =====================================================================
246-
247-
248231/* *
249232Class for storage of the definition of data handled by the simulator.
250233*/
@@ -262,10 +245,10 @@ class OPENFLUID_API SignatureDataItem
262245
263246 SignatureDataItem (const std::string& N, const std::string& D, const std::string& SI,
264247 std::function<bool (const std::string&,std::string&,
265- openfluid::core::Value::Type&)> Extractor=identityExtractor);
248+ openfluid::core::Value::Type&)> Extractor=openfluid::ware:: identityExtractor);
266249
267250 SignatureDataItem (const std::string& N, const std::string& D, const std::string& SI,
268- openfluid::core::Value::Type T, std::function<bool (const std::string&)> Validator=openfluid::tools ::isNonEmpty);
251+ openfluid::core::Value::Type T, std::function<bool (const std::string&)> Validator=openfluid::ware ::isNonEmpty);
269252};
270253
271254
@@ -288,13 +271,13 @@ class OPENFLUID_API SignatureSpatialDataItem : public SignatureDataItem
288271 SignatureSpatialDataItem (const std::string& N, const openfluid::core::UnitsClass_t& U,
289272 const std::string& D, const std::string& SI,
290273 std::function<bool (const std::string&,std::string&,
291- openfluid::core::Value::Type&)> Extractor=identityExtractor):
274+ openfluid::core::Value::Type&)> Extractor=openfluid::ware:: identityExtractor):
292275 SignatureDataItem (N,D,SI,Extractor),UnitsClass(U)
293276 { }
294277
295278 SignatureSpatialDataItem (const std::string& N, const openfluid::core::UnitsClass_t& U,
296279 const std::string& D, const std::string& SI, openfluid::core::Value::Type T,
297- std::function<bool (const std::string&)> Validator=openfluid::tools ::isNonEmpty):
280+ std::function<bool (const std::string&)> Validator=openfluid::ware ::isNonEmpty):
298281 SignatureDataItem (N,D,SI,T,Validator),UnitsClass(U)
299282 { }
300283};
0 commit comments