+/*!
+ * \brief Ensure aFamily to have required ID
+ * \param aFamily - a family to check and update
+ * \param anID - an ID aFamily should have
+ * \retval bool - true if successful
+ */
+bool DriverMED_R_SMESHDS_Mesh::checkFamilyID(DriverMED_FamilyPtr & aFamily, int anID) const
+{
+ if ( !aFamily || aFamily->GetId() != anID ) {
+ map<int, DriverMED_FamilyPtr>::const_iterator i_fam = myFamilies.find(anID);
+ if ( i_fam == myFamilies.end() )
+ return false;
+ aFamily = i_fam->second;
+ }
+ return ( aFamily->GetId() == anID );
+}
+