Stream manipulator

Hi, I’d like to write a custom stream manipulator for std::iostream. Unfortunately rootcint won’t make a dictionary for the class I’ve designed because it finds a syntax error in this line of the header file:

std::iostream& operator()(std::iostream& stream) const;

Is this because the operator returns a reference to a std::iostream? Is there any way to accomplish what I’m trying to achieve and make a dictionary for this class? The full class is attached.

Also, is there any way to get ACliC to print the commands it is executing i.e. increase its verbosity?

Cheers,

Hugh
hjdmanip.h (650 Bytes)
hjdmanip.cpp (840 Bytes)

[quote]Also, is there any way to get ACliC to print the commands it is executing i.e. increase its verbosity? [/quote]Yes. Set the global variable gDebug to 5 (or 7 to keep the temporary files).

Cheers,
Philippe.

Hi,

[quote]Is this because the operator returns a reference to a std::iostream?[/quote]We currently do not generate the dictionary for the type std::iostream. Instead use std::istream or std::ostream (anyway it is likely that it is what you meant and/or need to do).

Cheers,
Philippe.