.. oe:namespace:: OEPlatform



.. meta::
   :keywords: oemultiostream, multiostream


.. _OEPlatform_oemultiostream:

.. oe:class:: oemultiostream

   .. oe:api::


      class oemultiostream : public OEPlatform::oeostream

   This class represents `oemultiostream`.  This class can be used to write to more than one :ref:`oeostream <OEPlatform_oeostream>`.

   
   The following methods are publicly inherited from :ref:`oeostream <OEPlatform_oeostream>`:


   ========================================================= ======================================================= =======================================================
   :oe:meth:`operator\< <OEPlatform::oeostream::operator<<>` :oe:meth:`flush<OEPlatform::oeostream::flush>`          :oe:meth:`putbyte<OEPlatform::oeostream::putbyte>`     
   :oe:meth:`close<OEPlatform::oeostream::close>`            :oe:meth:`open<OEPlatform::oeostream::open>`            :oe:meth:`write<OEPlatform::oeostream::write>`         
   ========================================================= ======================================================= =======================================================

   The following methods are publicly inherited from :ref:`oestream <OEPlatform_oestream>`:

   ============================================================= ============================================================ ============================================================
   :oe:meth:`operator bool<OEPlatform::oestream::operator bool>` :oe:meth:`rewind<OEPlatform::oestream::rewind>`              :oe:meth:`tell<OEPlatform::oestream::tell>`                 
   :oe:meth:`eof<OEPlatform::oestream::eof>`                     :oe:meth:`seek<OEPlatform::oestream::seek>`                                                                              
   :oe:meth:`length<OEPlatform::oestream::length>`               :oe:meth:`size<OEPlatform::oestream::size>`                                                                              
   ============================================================= ============================================================ ============================================================


   .. oe:method:: Constructors

      .. oe:language:: c++ java csharp

         .. oe:api::

            oemultiostream()

      .. oe:language:: python

         .. oe:api:: python

            oemultiostream() -> oemultiostream

      Default constructor.

   .. oe:method:: addstream

      .. oe:language:: c++ java csharp

         .. oe:api::

            void addstream(oeostream* ostr, bool owned = false)

      .. oe:language:: python

         .. oe:api:: python

            addstream(ostr: oeostream, owned: bool = False) -> None

      This method adds the stream `ostr` for output.  The second parameter can be used to give ownership to the `oemultiostream` instance, which will
      make the instance responsible for deletion of the `oeostream`.

   .. oe:method:: clear

      .. oe:language:: c++ java csharp

         .. oe:api::

            void clear()

      .. oe:language:: python

         .. oe:api:: python

            clear() -> None

      Clears all streams and deletes them if owned.

