X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FKernelHelpers%2FSALOME_KernelServices.hxx;h=76602d11e6f229f3a29671215dc4ad35795ff1ef;hb=20c132438f5b8f7337bf35272989b10eb003d71c;hp=4353d44f1a25d3184cc0544166f19e9d69596ab0;hpb=dc4b16b9dd53dd42139fd22ef26556861db58989;p=modules%2Fkernel.git diff --git a/src/KernelHelpers/SALOME_KernelServices.hxx b/src/KernelHelpers/SALOME_KernelServices.hxx index 4353d44f1..76602d11e 100644 --- a/src/KernelHelpers/SALOME_KernelServices.hxx +++ b/src/KernelHelpers/SALOME_KernelServices.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -16,10 +16,11 @@ // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // -// Author: Guillaume Boulant (EDF/R&D) -#ifndef __KERNEL_SERVICES_H__ -#define __KERNEL_SERVICES_H__ +// Author: Guillaume Boulant (EDF/R&D) +#ifndef __SALOME_KERNEL_SERVICES_HXX__ +#define __SALOME_KERNEL_SERVICES_HXX__ +#pragma once #include "KernelHelpers.hxx" @@ -33,12 +34,14 @@ #include "SALOME_NamingService.hxx" #include "SALOME_LifeCycleCORBA.hxx" +#include "SALOME_KernelORB.hxx" + namespace KERNEL { // --------------------------------------------- // SALOME KERNEL main services - KERNELHELPERS_EXPORT CORBA::ORB_ptr getORB(); - KERNELHELPERS_EXPORT SALOME_NamingService * getNamingService(); + KERNELHELPERS_EXPORT SALOME_NamingService_Abstract *getNamingService(); + KERNELHELPERS_EXPORT void assignNamingServiceSL(); KERNELHELPERS_EXPORT SALOME_LifeCycleCORBA * getLifeCycleCORBA(); KERNELHELPERS_EXPORT SALOME::Session_ptr getSalomeSession(); KERNELHELPERS_EXPORT SALOMEDS::Study_ptr getStudyServant(); @@ -53,7 +56,8 @@ namespace KERNEL { KERNELHELPERS_EXPORT CORBA::Object_ptr SObjectToObject(SALOMEDS::SObject_ptr); - + KERNELHELPERS_EXPORT void RegisterCompo(const std::string& compoName, CORBA::Object_var compoPtr); + KERNELHELPERS_EXPORT CORBA::Object_var RetrieveCompo(const std::string& compoName); /*! * This template function provides you with the servant (CORBA * object narrowed to its interface) corresponding to the specified @@ -92,10 +96,12 @@ namespace KERNEL { // We can use the macros defined by SALOMELocalTrace/utilities.h #include "utilities.h" #define SALOMELOG(msg) {MESS_BEGIN("[XSALOME]") << msg << MESS_END} +#ifdef LOG +#undef LOG +#endif #define LOG SALOMELOG #include "Utils_CorbaException.hxx" // Tip: CORBA exceptions can be used with LOG (or more generally in streams) // Ex: LOG("An exception occurs: "<