// Handle(SALOMEDS_ExternalFileDef)::DownCast(_myAttr)->Set(TCollection_ExtendedString(Str));
Handle(TDataStd_Comment)::DownCast(_myAttr)->Set(TCollection_ExtendedString(Str));
}
+
+char* SALOMEDS_AttributeExternalFileDef_i::Store() {
+ SALOMEDS::Locker lock;
+ return Value();
+}
+
+void SALOMEDS_AttributeExternalFileDef_i::Restore(const char* value) {
+ SALOMEDS::Locker lock;
+ SetValue(value);
+}
+
+
// Handle(SALOMEDS_FileType)::DownCast(_myAttr)->Set(TCollection_ExtendedString(Str));
Handle(TDataStd_Comment)::DownCast(_myAttr)->Set(TCollection_ExtendedString(Str));
}
+
+char* SALOMEDS_AttributeFileType_i::Store() {
+ SALOMEDS::Locker lock;
+
+ return Value();
+}
+
+void SALOMEDS_AttributeFileType_i::Restore(const char* value) {
+ SALOMEDS::Locker lock;
+
+ SetValue(value);
+}
+
+
SALOMEDS::ListOfAttributes_var anAttrList = SO->GetAllAttributes();
for(a = anAttrList->length() - 1; a >= 0; a--) {
if (strcmp(anAttrList[a]->Type(), "AttributeIOR") == 0) continue; // never write AttributeIOR to file
- if (strcmp(anAttrList[a]->Type(), "AttributeExternalFileDef") == 0) continue; // never write ExternalFileDef to file
- if (strcmp(anAttrList[a]->Type(), "AttributeFileType") == 0) continue; // never write FileType to file
CORBA::String_var aSaveStr(anAttrList[a]->Store());
size[0] = (hdf_int32) strlen(aSaveStr.in()) + 1;
HDFdataset *hdf_dataset = new HDFdataset(anAttrList[a]->Type(),hdf_group_sobject,HDF_STRING,size,1);