Back to index

salome-kernel  6.5.0
Public Member Functions | Private Attributes
OSS Class Reference

Class OSS is useful when streaming data through a function that expect a string as parameter. More...

#include <DSC_Exception.hxx>

Collaboration diagram for OSS:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 OSS ()
template<class T >
OSSoperator<< (T obj)
 operator std::string ()

Private Attributes

std::ostringstream oss_

Detailed Description

Class OSS is useful when streaming data through a function that expect a string as parameter.

Definition at line 64 of file DSC_Exception.hxx.


Constructor & Destructor Documentation

OSS::OSS ( ) [inline, explicit]

Definition at line 70 of file DSC_Exception.hxx.

: oss_() {}

Member Function Documentation

OSS::operator std::string ( ) [inline]

Definition at line 79 of file DSC_Exception.hxx.

  {
    return oss_.str();
  }
template<class T >
OSS& OSS::operator<< ( obj) [inline]

Definition at line 73 of file DSC_Exception.hxx.

  {
    oss_ << obj;
    return *this;
  }

Member Data Documentation

std::ostringstream OSS::oss_ [private]

Definition at line 67 of file DSC_Exception.hxx.


The documentation for this class was generated from the following file: