Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::SVGOStringStream Class Reference

#include <stringstream.h>

Public Member Functions

 SVGOStringStream ()
 
template<typename T , typename std::enable_if<!std::is_floating_point< T >::value, int >::type = 0>
SVGOStringStreamoperator<< (T const &arg)
 
SVGOStringStreamoperator<< (double)
 
SVGOStringStreamoperator<< (Geom::Point const &)
 
std::string str () const
 
void str (std::string &s)
 
std::streamsize precision () const
 
std::streamsize precision (std::streamsize p)
 
std::ios::fmtflags setf (std::ios::fmtflags fmtfl)
 
std::ios::fmtflags setf (std::ios::fmtflags fmtfl, std::ios::fmtflags mask)
 
void unsetf (std::ios::fmtflags mask)
 

Private Attributes

std::ostringstream ostr
 

Detailed Description

Definition at line 21 of file stringstream.h.

Constructor & Destructor Documentation

◆ SVGOStringStream()

Inkscape::SVGOStringStream::SVGOStringStream ( )

Member Function Documentation

◆ operator<<() [1/3]

Inkscape::SVGOStringStream & Inkscape::SVGOStringStream::operator<< ( double  d)

Definition at line 29 of file stringstream.cpp.

References strip_trailing_zeros().

◆ operator<<() [2/3]

Inkscape::SVGOStringStream & Inkscape::SVGOStringStream::operator<< ( Geom::Point const &  p)

Definition at line 52 of file stringstream.cpp.

◆ operator<<() [3/3]

template<typename T , typename std::enable_if<!std::is_floating_point< T >::value, int >::type = 0>
SVGOStringStream & Inkscape::SVGOStringStream::operator<< ( T const &  arg)
inline

Definition at line 31 of file stringstream.h.

References ostr.

◆ precision() [1/2]

std::streamsize Inkscape::SVGOStringStream::precision ( ) const
inline

Definition at line 49 of file stringstream.h.

References ostr.

◆ precision() [2/2]

std::streamsize Inkscape::SVGOStringStream::precision ( std::streamsize  p)
inline

Definition at line 53 of file stringstream.h.

References ostr.

◆ setf() [1/2]

◆ setf() [2/2]

std::ios::fmtflags Inkscape::SVGOStringStream::setf ( std::ios::fmtflags  fmtfl,
std::ios::fmtflags  mask 
)
inline

Definition at line 61 of file stringstream.h.

References ostr.

◆ str() [1/2]

std::string Inkscape::SVGOStringStream::str ( ) const
inline

Definition at line 41 of file stringstream.h.

References ostr.

Referenced by Inkscape::Extension::Internal::Emf::add_clips(), Inkscape::Extension::Internal::Wmf::add_clips(), Inkscape::Extension::Internal::Emf::add_gradient(), Inkscape::UI::Tools::PencilTool::addPowerStrokePencil(), Inkscape::Extension::Internal::PrintLatex::begin(), Inkscape::ObjectSet::cloneOriginalPathLPE(), Inkscape::Extension::Internal::Wmf::common_bm16_to_image(), Inkscape::Extension::Internal::Wmf::common_dib_to_image(), Inkscape::Extension::Internal::Emf::common_image_extraction(), Proj::Pt2::coord_string(), Proj::Pt3::coord_string(), Inkscape::Extension::Internal::Emf::current_matrix(), Inkscape::Extension::Internal::Wmf::current_matrix(), Inkscape::Extension::Internal::PrintLatex::fill(), NumberOptNumber::getValueString(), Inkscape::Extension::Internal::Emf::myEnhMetaFileProc(), Inkscape::Extension::Internal::Wmf::myMetaFileProc(), Inkscape::UI::Widget::RegisteredText::on_activate(), Inkscape::UI::Widget::RegisteredUnitMenu::on_changed(), Inkscape::LivePathEffect::PathArrayParam::on_link_button_click(), Inkscape::UI::Widget::RegisteredScalarUnit::on_value_changed(), Inkscape::UI::Widget::RegisteredScalar::on_value_changed(), Inkscape::UI::Widget::RegisteredInteger::on_value_changed(), Inkscape::UI::Widget::RegisteredTransformedPoint::on_value_changed(), Inkscape::UI::Widget::RegisteredVector::on_value_changed(), Inkscape::UI::Widget::RegisteredRandom::on_value_changed(), Inkscape::UI::Widget::RegisteredFontButton::on_value_changed(), Inkscape::Extension::Internal::Emf::output_style(), Inkscape::Extension::Internal::Wmf::output_style(), Inkscape::LivePathEffect::PointParam::param_getDefaultSVGValue(), Inkscape::LivePathEffect::ScalarParam::param_getDefaultSVGValue(), Inkscape::LivePathEffect::RandomParam::param_getDefaultSVGValue(), Inkscape::LivePathEffect::ScalarArrayParam::param_getDefaultSVGValue(), Inkscape::LivePathEffect::TransformedPointParam::param_getDefaultSVGValue(), Inkscape::LivePathEffect::VectorParam::param_getDefaultSVGValue(), Inkscape::LivePathEffect::PointParam::param_getSVGValue(), Inkscape::LivePathEffect::ArrayParam< StorageType >::param_getSVGValue(), Inkscape::LivePathEffect::ScalarParam::param_getSVGValue(), Inkscape::LivePathEffect::PathArrayParam::param_getSVGValue(), Inkscape::LivePathEffect::RandomParam::param_getSVGValue(), Inkscape::LivePathEffect::TransformedPointParam::param_getSVGValue(), Inkscape::LivePathEffect::VectorParam::param_getSVGValue(), Inkscape::LivePathEffect::FontButtonParam::param_readSVGValue(), Inkscape::LivePathEffect::ArrayParam< StorageType >::param_set_and_write_new_value(), Inkscape::LivePathEffect::PointParam::param_setValue(), Inkscape::Extension::Internal::Emf::pix_to_xy(), Inkscape::Extension::Internal::Wmf::pix_to_xy(), Proj::TransfMat3x4::pt_to_str(), Inkscape::XML::Node::setAttributePoint(), Inkscape::XML::Node::setAttributeSvgDouble(), Inkscape::Extension::Internal::LaTeXTextRenderer::setupDocument(), Inkscape::Extension::Internal::Metafile::setViewBoxIfMissing(), Inkscape::Extension::Internal::LaTeXTextRenderer::sp_flowtext_render(), sp_svg_length_write_with_units(), sp_svg_write_polygon(), Inkscape::Extension::Internal::LaTeXTextRenderer::sp_text_render(), Inkscape::UI::Tools::spdc_apply_bend_shape(), Inkscape::UI::Tools::spdc_paste_curve_as_freehand_shape(), Inkscape::Extension::Internal::PrintLatex::stroke(), Path::svg_dump_path(), SVGLength::toString(), Persp3D::write(), SPTextPath::write(), SPViewBox::write_viewBox(), Inkscape::Extension::Internal::LaTeXTextRenderer::writeGraphicPage(), and Inkscape::LivePathEffect::ArrayParam< StorageType >::writesvgData().

◆ str() [2/2]

void Inkscape::SVGOStringStream::str ( std::string &  s)
inline

Definition at line 45 of file stringstream.h.

References ostr.

◆ unsetf()

void Inkscape::SVGOStringStream::unsetf ( std::ios::fmtflags  mask)
inline

Definition at line 65 of file stringstream.h.

References ostr.

Member Data Documentation

◆ ostr

std::ostringstream Inkscape::SVGOStringStream::ostr
private

Definition at line 23 of file stringstream.h.

Referenced by operator<<(), precision(), precision(), setf(), setf(), str(), str(), SVGOStringStream(), and unsetf().


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