X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fcppsalome.rst;h=c65aa624ce66f2255b91272ca74f0606da571893;hb=ff6426f394ecc496bfceee444f0fad78e955861e;hp=f6c1bb9dfa7418fcbef01b9807117b90f319863a;hpb=1b95e72366027c5322af328fbe955e209442f9c7;p=modules%2Fyacs.git diff --git a/doc/cppsalome.rst b/doc/cppsalome.rst index f6c1bb9df..c65aa624c 100644 --- a/doc/cppsalome.rst +++ b/doc/cppsalome.rst @@ -122,8 +122,8 @@ This class contains a constructor whose arguments are imposed by SALOME, a virtu const char *instanceName, const char *interfaceName); virtual ~HELLO(); - HELLO_ORB::status hello ( SALOMEDS::Study_ptr study, const char* name ); - HELLO_ORB::status goodbye( SALOMEDS::Study_ptr study, const char* name ); + HELLO_ORB::status hello ( const char* name ); + HELLO_ORB::status goodbye( const char* name ); void copyOrMove( const HELLO_ORB::object_list& what, SALOMEDS::SObject_ptr where, CORBA::Long row, CORBA::Boolean isCopy ); @@ -147,12 +147,12 @@ to load the HELLO component:: The definitions of the constructor and the HELLOEngine_factory instantiation function (both normalized!), hello, goodbye and copyOrMove are given in the source file (HELLO.cxx):: - HELLO_ORB::status HELLO::hello( SALOMEDS::Study_ptr study, const char* name ) + HELLO_ORB::status HELLO::hello( const char* name ) { ... } - HELLO_ORB::status HELLO::goodbye( SALOMEDS::Study_ptr study, const char* name ) + HELLO_ORB::status HELLO::goodbye( const char* name ) { ... } @@ -237,7 +237,7 @@ Let us check that hello object is correctly typed, and we will call the hello se >>> print hello - >>> status=hello.hello(salome.myStudy, "Nicolas") + >>> status=hello.hello("Nicolas") >>> print status OP_OK