Salome HOME
Merge branch 'Dev_1.1.0' of newgeom:newgeom into Dev_1.1.0
[modules/shaper.git] / src / ExchangePlugin / ExchangePlugin_Validators.cpp
index 7954c540be2e8a9c71230e78021b915c7b35a603..c001a0c3f41585bd42416e2b7ca68ec4822807d3 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 // File:        SketchPlugin_Validators.cpp
 // Created:     01 Aug 2014
 // Author:      Vitaly SMETANNIKOV
@@ -31,23 +33,6 @@ bool ExchangePlugin_ImportFormatValidator::parseFormats(const std::list<std::str
   return result;
 }
 
-bool ExchangePlugin_ImportFormatValidator::parsePlugins(const std::list<std::string>& theArguments,
-                                                        std::list<std::string>& outPlugins)
-{
-  std::list<std::string>::const_iterator it = theArguments.begin();
-  bool result = true;
-  for (; it != theArguments.end(); ++it) {
-    std::string anArg = *it;
-    int aSepPos = anArg.find(":");
-    if (aSepPos == std::string::npos) {
-      result = false;
-      continue;
-    }
-    outPlugins.push_back(anArg.substr(aSepPos + 1));
-  }
-  return result;
-}
-
 bool ExchangePlugin_ImportFormatValidator::isValid(const AttributePtr& theAttribute,
                                                    const std::list<std::string>& theArguments) const
 {
@@ -55,7 +40,7 @@ bool ExchangePlugin_ImportFormatValidator::isValid(const AttributePtr& theAttrib
   ModelAPI_ValidatorsFactory* aFactory = aMgr->validators();
   if (theAttribute->isInitialized()) {
     const AttributeStringPtr aStrAttr =
-        boost::dynamic_pointer_cast<ModelAPI_AttributeString>(theAttribute);
+        std::dynamic_pointer_cast<ModelAPI_AttributeString>(theAttribute);
     if(!aStrAttr)
       return false;
     std::string aFileName = aStrAttr->value();