#include <tsAlgorithm.h>
|
| | IOManipulatorProxy (OSTREAM &(OSTREAM::*func)(PARAM), PARAM param) |
| std::basic_ostream< typename OSTREAM::char_type, TRAITS > & | manipulator (std::basic_ostream< typename OSTREAM::char_type, TRAITS > &strm) const |
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:
....
};
{
}
}
ts::TextFormatter out;
Definition tsAlgorithm.h:247
Definition tsTextFormatter.h:29
TextFormatter & setMarginSize(size_t margin)
TSDuck namespace, containing all TSDuck classes and functions.
Definition tsAbstractStandardOutputStream.h:17
std::ostream & margin(std::ostream &os)
Definition tsTextFormatter.h:266
- 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::* | func )(PARAM), |
|
|
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: