21 #ifndef __SALOMESDS_DATASERVERMANAGER_HXX__
22 #define __SALOMESDS_DATASERVERMANAGER_HXX__
24 #include "SALOMEconfig.h"
25 #include CORBA_SERVER_HEADER(SALOME_SDS)
38 class DataScopeServer;
43 DataServerManager(
int argc,
char *argv[], CORBA::ORB_ptr orb, PortableServer::POA_ptr poa);
46 SALOME::DataScopeServer_ptr getDefaultScope();
47 CORBA::Boolean isAliveAndKicking(
const char *scopeName);
48 SALOME::DataScopeServerBase_ptr retriveDataScope(
const char *scopeName);
50 SALOME::DataScopeServer_ptr createDataScope(
const char *scopeName);
51 SALOME::DataScopeServer_ptr giveADataScopeCalled(
const char *scopeName, CORBA::Boolean& isCreated);
53 SALOME::DataScopeServerTransaction_ptr createDataScopeTransaction(
const char *scopeName);
54 SALOME::DataScopeServerTransaction_ptr giveADataScopeTransactionCalled(
const char *scopeName, CORBA::Boolean& isCreated);
56 void removeDataScope(
const char *scopeName);
57 void cleanScopesInNS();
58 void shutdownScopes();
60 CORBA::ORB_var
getORB() {
return _orb; }
61 static std::string CreateAbsNameInNSFromScopeName(
const std::string& scopeName);
62 static CORBA::Boolean IsAliveAndKicking(SALOME::DataScopeServerBase_ptr scopePtr);
63 static SALOME::DataScopeServerBase_var GetScopePtrGivenName(
const std::string& scopeName,
const std::vector<std::string>& scopes,
SALOME_NamingService& ns);
65 static const char NAME_IN_NS[];
66 static const char DFT_SCOPE_NAME_IN_NS[];
68 std::vector<std::string> listOfScopesCpp();
69 SALOME::DataScopeServerBase_var getScopePtrGivenName(
const std::string& scopeName);
73 PortableServer::POA_var
_poa;