X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FATOMSOLV%2FATOMSOLV.hxx;h=b5cd017a619da65c983bec905e657be4475973f7;hb=773120171f5722471b569ed2b49767943c400b03;hp=b9bc51865bdcb1050bcdff1e36e535a685747f06;hpb=67c422d37b17114dcc7f839b4c316d53abc19e75;p=samples%2Fatomsolv.git diff --git a/src/ATOMSOLV/ATOMSOLV.hxx b/src/ATOMSOLV/ATOMSOLV.hxx index b9bc518..b5cd017 100644 --- a/src/ATOMSOLV/ATOMSOLV.hxx +++ b/src/ATOMSOLV/ATOMSOLV.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2019 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2024 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 @@ -38,18 +38,19 @@ #endif -class ATOMSOLV_EXPORT ATOMSOLV: +class ATOMSOLV_EXPORT ATOMSOLV_Abstract: public POA_ATOMSOLV_ORB::ATOMSOLV_Gen, public Engines_Component_i { public: - ATOMSOLV(CORBA::ORB_ptr orb, + ATOMSOLV_Abstract(CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, PortableServer::ObjectId * contId, const char *instanceName, - const char *interfaceName); - virtual ~ATOMSOLV(); + const char *interfaceName, + bool withRegistry = true); + virtual ~ATOMSOLV_Abstract(); CORBA::Boolean setData( const ATOMSOLV_ORB::TMoleculeList& theData ); CORBA::Boolean getData( ATOMSOLV_ORB::TMoleculeList_out outData ); @@ -60,6 +61,26 @@ private: ATOMSOLV_ORB::TMoleculeList* myData; }; +class ATOMSOLV_EXPORT ATOMSOLV_Session : public ATOMSOLV_Abstract +{ +public: + ATOMSOLV_Session( CORBA::ORB_ptr orb, + PortableServer::POA_ptr poa, + PortableServer::ObjectId* contId, + const char* instanceName, + const char* interfaceName):ATOMSOLV_Abstract(orb,poa,contId,instanceName,interfaceName,true) { } +}; + +class ATOMSOLV_EXPORT ATOMSOLV_No_Session : public ATOMSOLV_Abstract +{ +public: + ATOMSOLV_No_Session( CORBA::ORB_ptr orb, + PortableServer::POA_ptr poa, + PortableServer::ObjectId* contId, + const char* instanceName, + const char* interfaceName):ATOMSOLV_Abstract(orb,poa,contId,instanceName,interfaceName,false) { } +}; + extern "C" ATOMSOLV_EXPORT PortableServer::ObjectId * ATOMSOLVEngine_factory(CORBA::ORB_ptr orb,