+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
// File: SketchPlugin_Validators.cpp
// Created: 01 Aug 2014
// Author: Vitaly SMETANNIKOV
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
{
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();