1 // File: Model_FeatureValidator.cpp
3 // Author: Vitaly SMETANNIKOV
5 #include <Model_FeatureValidator.h>
6 #include <ModelAPI_Attribute.h>
7 #include <ModelAPI_Data.h>
8 #include <ModelAPI_Feature.h>
9 #include <ModelAPI_Object.h>
12 #include <boost/shared_ptr.hpp>
14 bool Model_FeatureValidator::isValid(const boost::shared_ptr<ModelAPI_Feature>& theFeature
15 /*, const std::string theAttr*/
16 /*, std::list<std::string> theArguments*/) const
18 boost::shared_ptr<ModelAPI_Data> aData = theFeature->data();
19 if (!aData->isValid())
21 const std::string kAllTypes = "";
22 std::list<AttributePtr> aLtAttributes = aData->attributes(kAllTypes);
23 std::list<AttributePtr>::iterator it = aLtAttributes.begin();
24 for (; it != aLtAttributes.end(); it++) {
25 if (!(*it)->isInitialized())