11 #ifndef HPP_CORBASERVER_SERVER_HH 12 # define HPP_CORBASERVER_SERVER_HH 14 # include <omniORB4/CORBA.h> 17 # include <hpp/corbaserver/config.hh> 69 const char* argv[],
bool multiThread =
false);
83 const char* argv[],
bool multiThread =
false);
88 PortableServer::POA_var
poa ()
90 return tools_->main_poa();
100 void startCorbaServer ();
105 return mainContextId_;
122 int processRequest (
bool loop);
128 void requestShutdown (
bool wait);
130 bool createContext (
const std::string& contextName);
132 CORBA::Object_ptr getServer (
const std::string& contextName,
133 const std::string& pluginName,
134 const std::string& objectName);
139 bool loadPlugin (
const std::string& contextName,
140 const std::string& libFilename);
148 PortableServer::Servant getServant (ServantKey servantKey)
const;
150 void addServantKeyAndServant (ServantKey servantKey, PortableServer::Servant servant);
152 void removeServant (PortableServer::Servant servant);
160 void parseArguments (
int argc,
const char* argv[]);
166 std::string ORBendPoint;
167 std::string mainContextId_;
169 bool multiThread_, nameService_;
180 typedef boost::shared_ptr<ServerPlugin> ServerPluginPtr_t;
181 typedef std::map<std::string, ServerPluginPtr_t> ServerPluginMap_t;
183 ServerPluginPtr_t main;
184 ServerPluginMap_t plugins;
186 std::map<std::string, Context> contexts_;
188 Context& getContext (
const std::string& name);
190 typedef std::map <ServantKey, PortableServer::Servant> ServantKeyToServantMap_t;
191 typedef std::map <PortableServer::Servant, ServantKey> ServantToServantKeyMap_t;
192 ServantKeyToServantMap_t servantKeyToServantMap_;
193 ServantToServantKeyMap_t servantToServantKeyMap_;
Implement CORBA interface ``Obstacle''.
CORBA::ORB_var orb()
Definition: server.hh:93
boost::shared_ptr< ProblemSolverMap > ProblemSolverMapPtr_t
Definition: fwd.hh:34
PortableServer::POA_var poa()
Definition: server.hh:88
bool loadPlugin(const std::string &lib, ProblemSolver *ps)
const std::string & mainContextId() const
Get main context ID.
Definition: server.hh:103
Implementation of Hpp module Corba server.
Definition: server.hh:54
const bool & multiThread() const
Definition: server.hh:108
void * ServantKey
Definition: server.hh:146
const bool & nameService() const
Definition: server.hh:113