Salome HOME
DCQ : Merge with Ecole_ete_a6.
[modules/yacs.git] / src / SALOMEDS / SALOMEDS_AttributeExpandable_i.cxx
index 1560deeaa55dd5795ce94a4447a8a057624592cb..98a0720cf9373f66644f80aa440b47bd8fadeb31 100644 (file)
@@ -39,3 +39,11 @@ void SALOMEDS_AttributeExpandable_i::SetExpandable(CORBA::Boolean value) {
   if (value != 0) val = 1;
   Handle(TDataStd_Integer)::DownCast(_myAttr)->Set(val);
 }
+
+char* SALOMEDS_AttributeExpandable_i::Store() {
+  return strdup(IsExpandable()?"1":"0");
+}
+
+void SALOMEDS_AttributeExpandable_i::Restore(const char* value) {
+  SetExpandable(value[0] == '1');
+}