/* Network-Integrated Multimedia Middleware (NMM)
 * http://www.motama.com/nmm.html
 *
 * Copyright (C) 2006-2007
 * Motama GmbH, Saarbruecken, Germany
 * http://www.motama.com
 *
 * This file is part of NMM. 
 * 
 * NMM is free software; you can redistribute it and/or modify it    
 * under the terms of the GNU General Public License as published by 
 * the Free Software Foundation; only version 2 of the License.      
 * 
 * NMM is distributed in the hope that it will be useful, but WITHOUT 
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 
 * License for more details.  
 * 
 * You should have received a copy of the GNU General Public License 
 * along with NMM; if not, write to the Free Software Foundation,    
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 */

module NMM {
  
  /** Interface for setting the value streams of a transport strategy.
   */
  interface ISetValueStream {
    /** Sets the input value stream stack.
     *
     * Set the %ValueStream that should be used for serializing
     * outgoing data.
     *
     * This method should be used for setting the complete value
     * stream stack, including all configuration parameters of all
     * stream objects.
     *
     * @param value_stream The value stream object
     */
    void setOValueStreamStack(in OValueStream* value_stream);
    
    /** Sets the output value stream stack.
     *
     * Set the %ValueStream that should be used for deserializing
     * incoming data.
     *
     * This method should be used for setting the complete value
     * stream stack, including all configuration parameters of all
     * stream objects.
     *
     * @param value_stream The value stream object
     */
    void setIValueStreamStack(in IValueStream* value_stream);

    /** Sets the output value stream by type.
     *
     * Set the %ValueStream that should be used for serializing
     * outgoing data.
     *
     * This method only sets the top-level value stream, which is
     * created by the factory from the value stream type.
     *
     * @param value_stream_type Type name of the %ValueStream
     * @exception BindingException if a %ValueStream of the specified type isn't available
     */
    void setOValueStream(in string value_stream_type)
      raises(BindingException);
    
    /** Sets the input value stream by type.
     *
     * Set the %ValueStream that should be used for deserializing
     * incoming data.
     *
     * This method only sets the top-level value stream, which is
     * created by the factory from the value stream type.
     *
     * @param value_stream_type Type name of the %ValueStream
     * @exception BindingException if a %ValueStream of the specified type isn't available
     */
    void setIValueStream(in string value_stream_type)
      raises(BindingException);
  };
  
}
