return false;
}
- SET_ATTRIBUTE(firstFeature, ModelAPI_AttributeReference, ModelAPI_Folder::FIRST_FEATURE_ID());
- SET_ATTRIBUTE(lastFeature, ModelAPI_AttributeReference, ModelAPI_Folder::LAST_FEATURE_ID());
+ myFirstFeature = myFolder->reference(ModelAPI_Folder::FIRST_FEATURE_ID());
+ if (!myFirstFeature)
+ return false;
+ myAttrGetter[ModelAPI_Folder::FIRST_FEATURE_ID()] = "firstFeature";
+
+ myLastFeature = myFolder->reference(ModelAPI_Folder::LAST_FEATURE_ID());
+ if (!myLastFeature)
+ return false;
+ myAttrGetter[ModelAPI_Folder::LAST_FEATURE_ID()] = "lastFeature";
return true;
}
//--------------------------------------------------------------------------------------
#include <ModelHighAPI_Interface.h>
-#include <ModelHighAPI_Macro.h>
#include <ModelAPI_Folder.h>
/// First feature reference
std::shared_ptr<ModelAPI_AttributeReference> firstFeature() const
- { return myfirstFeature; }
+ { return myFirstFeature; }
/// Last feature reference
std::shared_ptr<ModelAPI_AttributeReference> lastFeature() const
- { return mylastFeature; }
+ { return myLastFeature; }
/// Dump wrapped feature
MODELHIGHAPI_EXPORT virtual void dump(ModelHighAPI_Dumper& theDumper) const;
private:
std::shared_ptr<ModelAPI_Folder> myFolder;
- std::shared_ptr<ModelAPI_AttributeReference> myfirstFeature;
- std::shared_ptr<ModelAPI_AttributeReference> mylastFeature;
+ std::shared_ptr<ModelAPI_AttributeReference> myFirstFeature;
+ std::shared_ptr<ModelAPI_AttributeReference> myLastFeature;
};
//--------------------------------------------------------------------------------------