![]() |
VCCC
2024.05
VisualCamp Common C++ library
|
#include <vccc/__log/stream_wrapper.hpp>
Support writing of
Note: Types marked with (*) are default-separated with a single space
CharT | |
String | |
Stream |
Public Types | |
using | base = StreamWrapperBase< String, Stream > |
using | char_type = CharT |
using | stream_type = typename base::stream_type |
using | string_type = typename base::string_type |
using | traits_type = typename base::traits_type |
![]() | |
using | stream_type = std::basic_stringstream< CharT > |
using | string_type = std::basic_string< CharT > |
using | traits_type = typename stream_type::traits_type |
Public Member Functions | |
BasicStreamWrapper ()=default | |
BasicStreamWrapper (string_type str) | |
BasicStreamWrapper (stream_type &&stream) | |
BasicStreamWrapper & | operator<< (std::ostream &(*pf)(std::ostream &)) |
BasicStreamWrapper & | operator<< (std::ios_base &(&io_manip)(std::ios_base &)) |
template<typename T , std::enable_if_t< std::is_base_of< StreamManipulator, remove_cvref_t< T >> ::value, int > = 0> | |
BasicStreamWrapper & | operator<< (const T &manipulator) |
template<typename T , std::enable_if_t< !std::is_base_of< StreamManipulator, remove_cvref_t< T >> ::value, int > = 0> | |
BasicStreamWrapper & | operator<< (const T &value) |
stream_type & | stream () |
Return internal stream. More... | |
const stream_type & | stream () const |
string_type | str () const |
Equals to stream().str() More... | |
void | str (string_type s) |
Equals to stream().str(string_type) More... | |
![]() | |
const string_type & | separator () const |
Get current separator. More... | |
string_type | separator (string_type new_separator) |
Set current separator. More... | |
VCCC_NODISCARD bool | quote_string () const noexcept |
void | quote_string (bool new_value) noexcept |
VCCC_NODISCARD bool | expand_aggregate () const noexcept |
void | expand_aggregate (bool new_value) noexcept |
VCCC_NODISCARD bool | expand_array () |
void | expand_array (bool new_value) |
Additional Inherited Members | |
![]() | |
static string_type & | global_separator () |
Get global separator. More... | |
![]() | |
string_type | separator_ |
bool | first_ |
bool | quote_string_ |
bool | expand_aggregate_ |
bool | expand_array_ |
![]() | |
struct { | |
string_type separator_ = global_separator() | |
bool first_ = true | |
bool quote_string_ = GlobalStreamWrapperSettings::quote_string() | |
bool expand_aggregate_ = GlobalStreamWrapperSettings::expand_aggregate() | |
bool expand_array_ = GlobalStreamWrapperSettings::expand_array() | |
}; | |
using base = StreamWrapperBase<String, Stream> |
using char_type = CharT |
using stream_type = typename base::stream_type |
using string_type = typename base::string_type |
using traits_type = typename base::traits_type |
|
default |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
s | New string |
|
inline |
|
inline |