A class to create small proxy objects that ease indention handling.
More...
|
DcmJsonFormat & | m_Format |
| reference to the parent formatter object
|
|
A class to create small proxy objects that ease indention handling.
Each Indention object only contains a reference to the DcmJsonFormat object that created it and its only purpose is to call the respective methods of that object when one of its overloaded operators is used.
◆ Indention()
◆ operator++()
Indention & DcmJsonFormat::Indention::operator++ |
( |
| ) |
|
|
inline |
increases current indention.
- Returns
- *this
◆ operator--()
Indention & DcmJsonFormat::Indention::operator-- |
( |
| ) |
|
|
inline |
decreases current indention
- Returns
- *this
◆ printIndention()
void DcmJsonFormat::Indention::printIndention |
( |
STD_NAMESPACE ostream & |
out | ) |
const |
|
inlineprivate |
prints the current indention using the parent formatter
- Parameters
-
out | the stream to print to |
◆ operator<<
STD_NAMESPACE ostream & operator<< |
( |
STD_NAMESPACE ostream & |
out, |
|
|
const Indention & |
indention |
|
) |
| |
|
friend |
output current indention to an output stream.
- Parameters
-
out | the output stream to use |
indention | the indention to print |
- Returns
- out
The documentation for this class was generated from the following file:
- dcmdata/include/dcmtk/dcmdata/dcjson.h