-// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
-//
-// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
+// Copyright (C) 2014-2015 EDF-R&D
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
#include <HYDROData.h>
+#include <TCollection_AsciiString.hxx>
+#include <NCollection_Sequence.hxx>
+
#include <string>
-#include <vector>
#include <map>
class HYDROData_IProfilesInterpolator;
-/**\class HYDROData_InterpolatorsFactory
+/**
+ * \class HYDROData_InterpolatorsFactory
*
* \brief Profile interpolators factory.
*
{
public:
+ /**
+ * Public constructor.
+ */
HYDROData_InterpolatorsFactory();
+
+ /**
+ * Public virtual destructor.
+ */
virtual ~HYDROData_InterpolatorsFactory();
/**
* Registers the interpolator of a certain type with the given name.
* \param theName the interpolator name used as identifier
*/
- template <class T> HYDRODATA_EXPORT void Register( const std::string& theName )
+ template <class T> /*HYDRODATA_EXPORT */void Register( const TCollection_AsciiString& theName )
{
- myInterpolators[theName] = new T();
+ myInterpolators[theName.ToCString()] = new T();
}
/**
* \param theName name of the interpolator
* \returns the appropriate interpolator or NULL if interpolator with such name is not registered
*/
- HYDRODATA_EXPORT HYDROData_IProfilesInterpolator* GetInterpolator( const std::string& theName ) const;
+ HYDRODATA_EXPORT HYDROData_IProfilesInterpolator* GetInterpolator( const TCollection_AsciiString& theName ) const;
/**
* Get list of registered interpolator names.
* \return the list of unique names
*/
- std::vector<std::string> GetInterpolatorNames() const;
+ HYDRODATA_EXPORT NCollection_Sequence<TCollection_AsciiString> GetInterpolatorNames() const;
private:
//! Map that stores all interpolators, identified by interpolator name (string)