// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
//
# include "RegistryService.hxx"
# include "OpUtil.hxx"
# include "utilities.h"
-using namespace std;
extern "C"
{
# include <time.h>
}
+#ifndef WNT
#include <unistd.h>
+#else
+#include <process.h>
+#endif
+using namespace std;
/* ------------------------------*/
/* Constructeurs et Destructeurs */
RegistryService::RegistryService( void ) : _SessionName(0), _Compteur(0)
{
MESSAGE("Passage dans RegistryService::RegistryService()") ;
-
+ _orb = CORBA::ORB::_nil();
}
_Compteur = -1 ;
if ( _SessionName )
{
+#ifndef WNT
delete [] _SessionName ;
+#else
+ delete [] (char*)_SessionName ;
+#endif
_SessionName = 0 ;
}
END_OF("RegistryService::~RegistryService()") ;
return (CORBA::ULong)_Compteur ;
}
-
+#ifndef WNT
void RegistryService::remove( const CORBA::ULong id)
+#else
+void RegistryService::remove( CORBA::ULong id)
+#endif
{
BEGIN_OF("RegistryService::remove") ;
SCRUTE(id) ;
}
-
+#ifndef WNT
void RegistryService::hello( const CORBA::ULong id )
+#else
+void RegistryService::hello( CORBA::ULong id )
+#endif
{
BEGIN_OF("RegistryService::hello") ;
SCRUTE(id) ;
}
void RegistryService::ping()
{
+#ifndef WNT
MESSAGE(" RegistryService::ping() pid "<< getpid());
+#else
+ MESSAGE(" RegistryService::ping() pid "<< _getpid());
+#endif
+}
+
+CORBA::Long RegistryService::getPID()
+{
+ return (CORBA::Long)getpid();
}