X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSALOMEDS%2FSALOMEDS_AttributeStudyProperties_i.hxx;h=b7e1d00202c602e50ff1d59a4263b0971fc4381c;hb=bd0aa83cc3573de6b62b2a56e168dd372097bd45;hp=95d30cb658a1936fdfb3fb5ae152e244c08d3cb8;hpb=102608ce8b69dd1ea798169e30223b67742ec26d;p=modules%2Fkernel.git diff --git a/src/SALOMEDS/SALOMEDS_AttributeStudyProperties_i.hxx b/src/SALOMEDS/SALOMEDS_AttributeStudyProperties_i.hxx index 95d30cb65..b7e1d0020 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeStudyProperties_i.hxx +++ b/src/SALOMEDS/SALOMEDS_AttributeStudyProperties_i.hxx @@ -13,22 +13,20 @@ #define SALOMEDS_AttributeStudyProperties_i_HeaderFile // IDL headers -#include #include #include CORBA_SERVER_HEADER(SALOMEDS_Attributes) + +#include "SALOMEDS_StudyPropertiesAttribute.hxx" #include "SALOMEDS_GenericAttribute_i.hxx" -class SALOMEDS_AttributeStudyProperties_i: public virtual POA_SALOMEDS::AttributeStudyProperties, - public virtual SALOMEDS_GenericAttribute_i { -public: - - SALOMEDS_AttributeStudyProperties_i(const Handle(SALOMEDS_StudyPropertiesAttribute)& theAttr, CORBA::ORB_ptr orb) - { - _myOrb = CORBA::ORB::_duplicate(orb); - _myAttr = theAttr; - }; - ~SALOMEDS_AttributeStudyProperties_i() {}; +DEFINE_DERIVED_ATTR(AttributeStudyProperties,SALOMEDS_StudyPropertiesAttribute,false); +class SALOMEDS_AttributeStudyProperties_i: + public virtual POA_SALOMEDS::AttributeStudyProperties, + public virtual SALOMEDS_TAttributeStudyProperties_i +{ + DEFINE_DERIVED_ATTR_METH_DEFAULT(AttributeStudyProperties,SALOMEDS_StudyPropertiesAttribute); +public: virtual void SetUserName(const char* theName); virtual char* GetUserName() ; virtual void SetCreationDate(CORBA::Long theMinute, CORBA::Long theHour, CORBA::Long theDay, CORBA::Long theMonth, CORBA::Long theYear); @@ -53,6 +51,10 @@ public: SALOMEDS::LongSeq_out theMonths, SALOMEDS::LongSeq_out theYears, CORBA::Boolean theWithCreator); + + char* Store(); + void Restore(const char*); + };