log4cpp::CategoryStream(3)

πŸ“¦
version 1.1.4 Β· 3 versions
, in opensuse-leap 16.0

πŸ’… log4cpp::CategoryStream(3) πŸ’…

hey bestie!! welcome to the Library Functions Manual page for log4cpp::CategoryStream(3) β€” manual name folded in right here, no copied header line, we’re keeping it cute. πŸ’– This one is all about streaming simple types and objects to a category, and it’s lowkey giving β€œtiny output stream with main character energy.” ✨


🌸 NAME 🌸

log4cpp::CategoryStream β€” This class enables streaming simple types and objects to a category. literally that’s the whole vibe. 🫢

✨ SYNOPSIS ✨

#include <CategoryStream.hh>

πŸŽ€ Public Types πŸŽ€

  • typedef CategoryStream &(* cspf) (CategoryStream &) β€” the cspf typedef, exactly as listed. no renaming, no merging, we keep it character-for-character. πŸ’…

πŸ¦‹ Public Member Functions πŸ¦‹

  • CategoryStream (Category &category, Priority::Value priority) β€” Construct a CategoryStream for given Category with given priority.
  • ~CategoryStream () β€” Destructor for CategoryStream.
  • Category & getCategory () const β€” Returns the destination Category for this stream.
  • Priority::Value getPriority () const LOG4CPP_NOTHROW β€” Returns the priority for this stream.
  • void flush () β€” Flush the contents of the stream buffer to the Category and empties the buffer.
  • template<typename T> CategoryStream & operator<< (const T &t) β€” Stream in arbitrary types and objects.
  • CategoryStream & operator<< (const char *t) β€” this is the const char *t overload.
  • template<typename T> CategoryStream & operator<< (const std::string &t) β€” this is the std::string overload.
  • std::streamsize width (std::streamsize wide) β€” Set the width output on CategoryStream.
  • CategoryStream & operator<< (cspf) β€” this is the cspf overload.

πŸ’€ Friends πŸ’€

  • LOG4CPP_EXPORT friend CategoryStream & eol (CategoryStream &os) β€” eol manipulator.
  • LOG4CPP_EXPORT friend CategoryStream & left (CategoryStream &os) β€” left manipulator.

πŸ’– Detailed Description πŸ’–

This class enables streaming simple types and objects to a category.

Use category.errorStream(), etc. to obtain a CategoryStream class.

🧚 Member Typedef Documentation 🧚

typedef CategoryStream &(* log4cpp::CategoryStream::cspf) (CategoryStream &)

πŸ”₯ Constructor & Destructor Documentation πŸ”₯

log4cpp::CategoryStream::CategoryStream (Category & category, Priority::Value priority)

Construct a CategoryStream for given Category with given priority.

Parameters

  • category β€” The category this stream will send log messages to.
  • priority β€” The priority the log messages will get or Priority::NOTSET to silently discard any streamed in messages.

log4cpp::CategoryStream::~CategoryStream ()

Destructor for CategoryStream.

πŸ‘‘ Member Function Documentation πŸ‘‘

void log4cpp::CategoryStream::flush ()

Flush the contents of the stream buffer to the Category and empties the buffer.

Category & log4cpp::CategoryStream::getCategory () const [inline]

Returns the destination Category for this stream.

Returns

  • The Category.

Priority::Value log4cpp::CategoryStream::getPriority () const [inline]

Returns the priority for this stream.

Returns

  • The priority.

CategoryStream & log4cpp::CategoryStream::operator<< (const char * t)

No extra description on the page for this overload β€” just the exact signature above. 🫢

template<typename T> CategoryStream & log4cpp::CategoryStream::operator<< (const std::string & t) [inline]

This is the inline std::string overload.

template<typename T> CategoryStream & log4cpp::CategoryStream::operator<< (const T & t) [inline]

Stream in arbitrary types and objects.

Parameters

  • t β€” The value or object to stream in.

Returns

  • A reference to itself.

CategoryStream & log4cpp::CategoryStream::operator<< (cspf pf)

This is the cspf overload.

std::streamsize log4cpp::CategoryStream::width (std::streamsize wide)

Set the width output on CategoryStream.

LOG4CPP_EXPORT friend CategoryStream & eol (CategoryStream & os) [friend]

eol manipulator.

LOG4CPP_EXPORT friend CategoryStream & left (CategoryStream & os) [friend]

left manipulator.

πŸ“ Member Data Documentation πŸ“

  • std::ostringstream* log4cpp::CategoryStream::_buffer β€” the buffer pointer, exactly as listed. no extra description on the page, bestie. πŸ’œ

🌟 Author 🌟

Generated automatically by Doxygen for log4cpp from the source code.


okay bestie, that’s the whole page! source/version: log4cpp Version 1.1. date: not listed on this page, so I’m not inventing one. page: log4cpp::CategoryStream(3) πŸ’œπŸ«Άβœ¨

πŸ“¦ where this page comes from