Salome HOME
projects
/
modules
/
kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
correct previous integration (Porting to Python 2.6)
[modules/kernel.git]
/
src
/
DSC
/
DSC_User
/
Superv_Component_i.hxx
diff --git
a/src/DSC/DSC_User/Superv_Component_i.hxx
b/src/DSC/DSC_User/Superv_Component_i.hxx
index 6c7b1590ec2d0c9301d76428121ae867f9eff7bb..246118160e2db9cb1d7583a7f9cd2141c6588719 100644
(file)
--- a/
src/DSC/DSC_User/Superv_Component_i.hxx
+++ b/
src/DSC/DSC_User/Superv_Component_i.hxx
@@
-44,7
+44,7
@@
* a programming level for service's developpers who want to use DSC ports.
*
* This class has two level for using and declare ports. The higher level proposes
* a programming level for service's developpers who want to use DSC ports.
*
* This class has two level for using and declare ports. The higher level proposes
- * operations to add ports that are provided by default by S
alomé
like Calcium ports.
+ * operations to add ports that are provided by default by S
ALOME
like Calcium ports.
* It provides too some methods to add their own DSC_User ports.
*
* \note This class doesn't implement the init_service CORBA operation.
* It provides too some methods to add their own DSC_User ports.
*
* \note This class doesn't implement the init_service CORBA operation.
@@
-256,6
+256,12
@@
public:
*/
virtual port_factory * get_factory(const std::string & factory_name);
*/
virtual port_factory * get_factory(const std::string & factory_name);
+ /*!
+ */
+ static long dscTimeOut;
+ static void setTimeOut();
+ void beginService(const char *serviceName);
+
private:
// Factory map
typedef std::map<std::string, port_factory*> factory_map_t;
private:
// Factory map
typedef std::map<std::string, port_factory*> factory_map_t;
@@
-384,8
+390,7
@@
Superv_Component_i::get_port( const char * port_name)
retPort = dynamic_cast<SpecificPortType *>(port);
if ( retPort == NULL ) {
retPort = dynamic_cast<SpecificPortType *>(port);
if ( retPort == NULL ) {
- delete port;
- throw BadCast( LOC("Can't cast to asked port type " ));
+ throw BadCast( LOC("Can't cast to required port type " ));
}
return retPort;
}
return retPort;