.\" .de Id .. .de Sp .if n .sp .if t .sp 0.4 .. .TH catchmark 4rheolef "rheolef-6.7" "rheolef-6.7" "rheolef-6.7" .\" label: /*Class: .SH NAME \fBcatchmark\fP - iostream manipulator .\" skip: @clindex catchmark .\" skip: @clindex field .SH DESCRIPTION The \fBcatchmark\fP is used for building labels used for input-output of vector-valued fields (see field(2)): .\" begin_example .Sp .nf cin >> catchmark("f") >> fh; cout << catchmark("u") << uh << catchmark("w") << wh << catchmark("psi") << psih; .Sp .fi .\" end_example Assuming its value for output is \fB"u"\fP, the corresponding labels will be \fB"#u0"\fP, \fB"#u1"\fP, \fB"#u2"\fP, ... .\" END .SH IMPLEMENTATION .\" begin_example .Sp .nf class catchmark { public: catchmark(const std::string& x); const std::string& mark() const { return _mark; } friend std::istream& operator >> (std::istream& is, const catchmark& m); friend std::ostream& operator << (std::ostream& os, const catchmark& m); protected: std::string _mark; }; .Sp .fi .\" end_example .\" LENGTH = 1 .SH SEE ALSO field(2)