• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Change
  • Next Change →

Changeset 2598 for trunk/components/tools/OmeroCpp/src/omero/client.h

Show
Ignore:
Timestamp:
07/05/08 22:16:07 (5 months ago)
Author:
jmoore
Message:

ticket:1018 - Propagating changes to OmeroJava and OmeroCpp

Also add environment methods which have been in OmeroPy for
some time.

Files:
1 modified

  • trunk/components/tools/OmeroCpp/src/omero/client.h (modified) (4 diffs)

Legend:

Unmodified
Added
Removed
  • trunk/components/tools/OmeroCpp/src/omero/client.h

    r2256 r2598  
    3232   * omero::api::ServiceFactoryPrx which is the blitz session facade, 
    3333   * 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, 
    3535   * all proxies obtained from this instance are also destroyed. 
    3636   * 
    … …  
    4949    // These are the central instances provided by this class. 
    5050  protected: 
    51     bool close_on_destroy; 
    5251    Ice::CommunicatorPtr ic; 
    5352    omero::api::ServiceFactoryPrx sf; 
    … …  
    7675    /* 
    7776     * Destroys the communicator instance. To have the session destroyed, 
    78      * call close on the client before destruction. Otherwise, the session 
    79      * 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. 
    8079     */ 
    8180    ~client(); 
    … …  
    9998 
    10099    /* 
    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. 
    103103     */ 
    104104    void closeSession(); 
    105105 
    106106    /* 
    107      * If called, then an existing session will be closed during 
    108      * destruction. 
     107     * Environment methods. Allows to store and retrieve 
    109108     */ 
    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(); 
    113118 
    114119  }; 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/