Changeset 2598 for trunk/components/tools/OmeroCpp/src/omero/client.h
- Timestamp:
- 07/05/08 22:16:07 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/components/tools/OmeroCpp/src/omero/client.h
r2256 r2598 32 32 * omero::api::ServiceFactoryPrx which is the blitz session facade, 33 33 * from which all other proxies can be obtained. Once the 34 * ServiceFactoryPrx is destroyed , times out, or close() is called,34 * ServiceFactoryPrx is destroyed or the session times out, 35 35 * all proxies obtained from this instance are also destroyed. 36 36 * … … 49 49 // These are the central instances provided by this class. 50 50 protected: 51 bool close_on_destroy;52 51 Ice::CommunicatorPtr ic; 53 52 omero::api::ServiceFactoryPrx sf; … … 76 75 /* 77 76 * Destroys the communicator instance. To have the session destroyed, 78 * call close on the client before destruction. Otherwise, the session79 * will be destroyed by the server on timeout.77 * call getSession().closeOnDestroy() on the client before destruction. 78 * Otherwise, the session will be destroyed by the server on timeout. 80 79 */ 81 80 ~client(); … … 99 98 100 99 /* 101 * Frees server-side resources. This method attempts to do everything 102 * it can without throwing an exception. 100 * Closes the Router connection created by createSession(). Due to a bug in Ice, 101 * only one connection is allowed per communicator, so we also destroy the 102 * communicator. 103 103 */ 104 104 void closeSession(); 105 105 106 106 /* 107 * If called, then an existing session will be closed during 108 * destruction. 107 * Environment methods. Allows to store and retrieve 109 108 */ 110 void closeOnDestroy() { 111 close_on_destroy = true; 112 } 109 omero::RTypePtr getInput(const std::string& key); 110 omero::RTypePtr getOutput(const std::string& key); 111 void setInput(const std::string& key, omero::RTypePtr value); 112 void setOutput(const std::string& key, omero::RTypePtr value); 113 std::vector<std::string> getInputKeys(); 114 std::vector<std::string> getOutputKeys(); 115 protected: 116 const std::string sess(); 117 omero::api::ISessionPrx env(); 113 118 114 119 };
