/*
5 * Authors: see git history
7 * Copyright (C) 2014 Authors
8 * Released under GNU GPL v2+, read the file
'COPYING' for more information.
10#ifndef INKSCAPE_STRINGSTREAM_H
11#define INKSCAPE_STRINGSTREAM_H
30 typename std::enable_if<!std::is_floating_point<T>::value,
int>::type = 0>
33 static_assert(!std::is_base_of<Geom::Point, T>::value,
"");
41 std::string
str()
const {
45 void str (std::string &s) {
50 return ostr.precision();
54 return ostr.precision(p);
57 std::ios::fmtflags
setf(std::ios::fmtflags fmtfl) {
58 return ostr.setf(fmtfl);
61 std::ios::fmtflags
setf(std::ios::fmtflags fmtfl, std::ios::fmtflags mask) {
62 return ostr.setf(fmtfl, mask);
65 void unsetf(std::ios::fmtflags mask) {
Two-dimensional point that doubles as a vector.
SVGOStringStream & operator<<(T const &arg)
std::streamsize precision(std::streamsize p)
std::ios::fmtflags setf(std::ios::fmtflags fmtfl, std::ios::fmtflags mask)
std::streamsize precision() const
std::ios::fmtflags setf(std::ios::fmtflags fmtfl)
void unsetf(std::ios::fmtflags mask)
Contains forward declarations of 2geom types.
Helper class to stream background task notifications as a series of messages.