I/O manipulator with argument for subclasses of std::basic_ostream
.
More...
#include <tsAlgorithm.h>
|
| IOManipulatorProxy (OSTREAM &(OSTREAM::*func)(PARAM), PARAM param) |
| Constructor.
|
|
std::basic_ostream< typename OSTREAM::char_type, TRAITS > & | manipulator (std::basic_ostream< typename OSTREAM::char_type, TRAITS > &strm) const |
| Invoke the I/O manipulator, typically invoked by the operator "<<".
|
|
template<class OSTREAM, class PARAM, class TRAITS = std::char_traits<typename OSTREAM::char_type>>
class ts::IOManipulatorProxy< OSTREAM, PARAM, TRAITS >
I/O manipulator with argument for subclasses of std::basic_ostream
.
This class has a similar role as IOManipulator() for functions using one argument.
Sample usage:
{
public:
....
};
{
}
}
I/O manipulator with argument for subclasses of std::basic_ostream.
Definition tsAlgorithm.h:243
Format and print a text document using various output types and indentation.
Definition tsTextFormatter.h:29
TSDuck namespace, containing all TSDuck classes and functions.
Definition tsAbstractOutputStream.h:17
std::ostream & margin(std::ostream &os)
I/O manipulator for TextFormatter: move to the current margin.
Definition tsTextFormatter.h:252
- Template Parameters
-
OSTREAM | A subclass of std::basic_ostream . |
PARAM | The type of the parameter for the manipulator. |
◆ IOManipulatorProxy()
template<class OSTREAM , class PARAM , class TRAITS = std::char_traits<typename OSTREAM::char_type>>
ts::IOManipulatorProxy< OSTREAM, PARAM, TRAITS >::IOManipulatorProxy |
( |
OSTREAM &(OSTREAM::*)(PARAM) |
func, |
|
|
PARAM |
param |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
[in] | func | A pointer to member function in OSTREAM. This method shall take one parameter or type PARAM and return a reference to the OSTREAM object. |
[in] | param | The parameter value to pass to the I/O manipulator. |
◆ manipulator()
template<class OSTREAM , class PARAM , class TRAITS = std::char_traits<typename OSTREAM::char_type>>
std::basic_ostream< typename OSTREAM::char_type, TRAITS > & ts::IOManipulatorProxy< OSTREAM, PARAM, TRAITS >::manipulator |
( |
std::basic_ostream< typename OSTREAM::char_type, TRAITS > & |
strm | ) |
const |
|
inline |
Invoke the I/O manipulator, typically invoked by the operator "<<".
- Parameters
-
[in,out] | strm | The stream of class OSTREAM to manipulate. |
- Returns
- A reference to the strm object.
The documentation for this class was generated from the following file: