#include "Session_ServerCheck.hxx"
#include "Session_ServerLauncher.hxx"
#include "Session_Promises.hxx"
+#include "SALOME_Fake_NamingService.hxx"
#include "GUI_version.h"
#include "Qtx.h"
// ---------------------------- MAIN -----------------------
int AbstractGUIApp::main(int argc, char **argv)
{
+ using NamingServiceImplementation = SALOME_Fake_NamingService;
// Set-up application settings configuration (as for QSettings)
// Note: these are default settings which can be customized (see below)
QApplication::setOrganizationName("salome");
SUIT_Session *aGUISession = 0;
GetInterfaceThread *guiThread = 0;
- Session_ServerLauncher<SALOME_NamingService> *myServerLauncher = nullptr;
+ Session_ServerLauncher<NamingServiceImplementation> *myServerLauncher = nullptr;
#if defined(WIN32) && defined(UNICODE)
char **new_argv = NULL;
}
// Free memory allocated for CommandLineToArgvW arguments.
LocalFree(szArglist);
- myServerLauncher = new Session_ServerLauncher<SALOME_NamingService>(nArgs, new_argv, orb, poa, &_GUIMutex, &_ServerLaunch, &_SessionMutex, &_SessionStarted);
+ myServerLauncher = new Session_ServerLauncher<NamingServiceImplementation>(nArgs, new_argv, orb, poa, &_GUIMutex, &_ServerLaunch, &_SessionMutex, &_SessionStarted);
#else
- myServerLauncher = new Session_ServerLauncher<SALOME_NamingService>(argc, argv, orb, poa, &_GUIMutex, &_ServerLaunch, &_SessionMutex, &_SessionStarted);
+ myServerLauncher = new Session_ServerLauncher<NamingServiceImplementation>(argc, argv, orb, poa, &_GUIMutex, &_ServerLaunch, &_SessionMutex, &_SessionStarted);
#endif
// ...block this thread until launcher is ready
_ServerLaunch.wait(&_GUIMutex);
_orb = CORBA::ORB::_duplicate(orb);
_root_poa = PortableServer::POA::_duplicate(poa);
_servType =-1;
- _NS.reset( new SALOME_NamingService(_orb) ); // one instance per server to limit
+ _NS.reset( new MY_NS(_orb) ); // one instance per server to limit
// multi thread coherence problems
_container = nullptr; // embedded container
}
INFOS("Caught unknown exception.");
}
}
+
+template class Session_ServerThread<SALOME_NamingService>;
+template class Session_SessionThread<SALOME_NamingService>;
+
+#include "SALOME_Fake_NamingService.hxx"
+
+template class Session_ServerThread<SALOME_Fake_NamingService>;
+template class Session_SessionThread<SALOME_Fake_NamingService>;