IoManip.h
Go to the documentation of this file.
const char * suffix
a c-string to print after the last item (if any). Caller must ensure lifetime.
Definition: IoManip.h:203
Definition: IoManip.h:50
std::ostream & operator<<(std::ostream &os, const RawPointerT< Pointer > &pd)
prints RawPointerT<>, dereferencing the io_manip pointer if possible
Definition: IoManip.h:89
Definition: IoManip.h:259
auto & upperCase(const bool u=true)
Print hex digits in upper (or, with a false parameter value, lower) case.
Definition: IoManip.h:128
RawPointerT(const char *aLabel, const Pointer &aPtr)
Definition: IoManip.h:52
RawPointerT< Pointer > & orNil(const char *nilTextToUse="[nil]")
enable and, optionally, customize reporting of nil pointers
Definition: IoManip.h:59
void PrintHex(std::ostream &, const char *data, size_t n)
Prints the first n data bytes using hex notation. Does nothing if n is 0.
Definition: IoManip.cc:16
auto & quoted(const char *const q="\"")
c-string to print before and after each item. Caller must ensure lifetime.
Definition: IoManip.h:191
const char * delimiter
a c-string to print between consecutive items (if any). Caller must ensure lifetime.
Definition: IoManip.h:204
AsHex< Integer > asHex(const Integer n)
a helper to ease AsHex object creation
Definition: IoManip.h:169
auto & delimitedBy(const char *const d)
a c-string to print between consecutive items (if any). Caller must ensure lifetime.
Definition: IoManip.h:188
auto & quoted(const char *const preQ, const char *const postQ)
c-strings to print before and after each item. Caller must ensure lifetime.
Definition: IoManip.h:194
const char * prefix
a c-string to print before the first item (if any). Caller must ensure lifetime.
Definition: IoManip.h:202
std::optional< bool > forceCase
Print hex digits in upper (or, with a false parameter value, lower) case.
Definition: IoManip.h:138
auto & prefixedBy(const char *const p)
a c-string to print before the first item (if any). Caller must ensure lifetime.
Definition: IoManip.h:182
auto & suffixedBy(const char *const p)
a c-string to print after the last item (if any). Caller must ensure lifetime.
Definition: IoManip.h:185
AtMostOnce(const T &t)
caller must ensure t lifetime extends to the last use of this AtMostOnce instance
Definition: IoManip.h:263
RawPointerT< Pointer > & asExtra()
Report the pointed-to-object on a dedicated Debug::Extra line.
Definition: IoManip.h:56
Helps prints T object using object's T::printWithExtras() method.
Definition: IoManip.h:293
Definition: IoManip.h:111
RawPointerT< Pointer > RawPointer(const char *label, const Pointer &ptr)
convenience wrapper for creating RawPointerT<> objects
Definition: IoManip.h:73
WithExtras(const T &t)
caller must ensure t lifetime extends to the last use of this class instance
Definition: IoManip.h:297
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products