openscenegraph
Public Member Functions | Public Attributes | List of all members
osg::MakeString Class Reference

#include <io_utils>

Public Member Functions

 MakeString ()
 
template<typename T >
MakeStringoperator<< (const T &t)
 
MakeStringoperator<< (std::ostream &(*fun)(std::ostream &))
 
MakeStringclear ()
 
 operator std::string () const
 
std::string str () const
 

Public Attributes

std::stringstream sstream
 

Detailed Description

Convinience class for building std::string using stringstream. Usage: MakeString str; std::string s = str<<"Mix strings with numbers "<<0" ; std::string s2 = str.clear()<<"and other classes such as ("<<osg::Vec3(0.0,1.0,3.0)<<)" ;

Constructor & Destructor Documentation

◆ MakeString()

osg::MakeString::MakeString ( )
inline

Member Function Documentation

◆ clear()

MakeString & osg::MakeString::clear ( )
inline

◆ operator std::string()

osg::MakeString::operator std::string ( ) const
inline

◆ operator<<() [1/2]

template<typename T >
MakeString & osg::MakeString::operator<< ( const T &  t)
inline

◆ operator<<() [2/2]

MakeString & osg::MakeString::operator<< ( std::ostream &(*)(std::ostream &)  fun)
inline

◆ str()

std::string osg::MakeString::str ( ) const
inline

Member Data Documentation

◆ sstream

std::stringstream osg::MakeString::sstream

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