From: fayolle Date: Thu, 22 Mar 2007 15:36:11 +0000 (+0000) Subject: Ajout des types CORBA/CALCIUM pour la gestion des propriétées X-Git-Tag: DSC_CalciumOK~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cfbfdbf17ad42b7202de2c4128419654e0282615;p=modules%2Fkernel.git Ajout des types CORBA/CALCIUM pour la gestion des propriétées --- diff --git a/idl/Calcium_Ports.idl b/idl/Calcium_Ports.idl index 94fe3e088..ee381a491 100644 --- a/idl/Calcium_Ports.idl +++ b/idl/Calcium_Ports.idl @@ -29,11 +29,18 @@ module Ports { module Calcium_Ports { + const long UNLIMITED_STORAGE_LEVEL = -70; + enum DependencyType { UNDEFINED_DEPENDENCY, TIME_DEPENDENCY, ITERATION_DEPENDENCY }; + enum DateCalSchem { TI_SCHEM, TF_SCHEM , ALPHA_SCHEM}; + enum InterpolationSchem { L0_SCHEM, L1_SCHEM }; + enum ExtrapolationSchem { UNDEFINED_EXTRA_SCHEM, E0_SCHEM, E1_SCHEM}; + + // enum DisconnectDirective {UNDEFINED_DIRECTIVE,CONTINUE,STOP}; typedef boolean DisconnectDirective; const DisconnectDirective stop = FALSE; const DisconnectDirective cont = TRUE; - interface Calcium_Port : Ports::Data_Port { + interface Calcium_Port : Ports::Data_Port, Ports::PortProperties { void disconnect(in DisconnectDirective mode); }; diff --git a/idl/SALOME_Ports.idl b/idl/SALOME_Ports.idl index ba880c6bd..9be003c82 100644 --- a/idl/SALOME_Ports.idl +++ b/idl/SALOME_Ports.idl @@ -72,11 +72,17 @@ module Ports { exception NotDefined {}; /*! - This exception indicates that the value gived to the property is not + This exception indicates that the given value to the property is not of a good type. */ exception BadType {}; + /*! + This exception indicates that the given value to the property is not + authorized. + */ + exception BadValue {}; + /*! \brief Interface of a PortProperties. This interface permits to set and get properties associated to a port. Each uses or provides port have a @@ -93,7 +99,8 @@ module Ports { \exception Ports::BadType \exception Ports::NotDefined */ - void set_property(in string name, in any value) raises (Ports::BadType, + void set_property(in string name, in any value) raises (Ports::BadType, + Ports::BadValue, Ports::NotDefined); /*!