/* 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 to NamedObject.
   */
  interface INamed  {
    /** Assigns a name to this object.
     *
     * @param name of the object
     */
    void setName(in string name);

    /** Returns the name of this object.
     *
     * @return name of the object
     */
    string getName() const;

    /** Redirects the error stream to a file for a given message level.
     *
     * @param filename for error stream
     * @param error_level The message level
     */
    void setErrorStream(in string filename, in nmm_int32 error_level);

    /** Redirects the debug stream to a file for a given message level.
     *
     * @param filename for debug stream
     * @param debug_level The message level
     */
    void setDebugStream(in string filename, in nmm_int32 debug_level);

    /** Redirects the warning stream to a file for a given message level.
     *
     * @param filename for warning stream
     * @param warning_level The message level
     */
    void setWarningStream(in string filename, in nmm_int32 warning_level);

    /** Redirects the message stream to a file for a given message level.
     *
     * @param filename for message stream
     * @param message_level The message level
     */
    void setMessageStream(in string filename, in nmm_int32 message_level);
  };
}

