Update of /cvsroot/oprofile/oprofile/libutil++
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21447/libutil++
Modified Files:
cverb.cpp cverb.h
Log Message:
cverb minor tidy
Index: cverb.cpp
===================================================================
RCS file: /cvsroot/oprofile/oprofile/libutil++/cverb.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -p -d -r1.11 -r1.12
--- cverb.cpp 6 Jul 2004 21:32:26 -0000 1.11
+++ cverb.cpp 4 May 2005 04:01:42 -0000 1.12
@@ -113,15 +113,6 @@ bool verbose::setup(vector<string> const
}
-/**
- * We don't use the out object, all output are directed to the null stream
- * or to cout. This is a real limitation we must be aware. That come from
- * the fact I want chained output to work ala:
- * cverb << stats << "foo" << debug << "blah";
- * This mean a real misuse of verbose output will be:
- * ofstream fout("logfile");
- * fout << debug << "foo";
- */
ostream& operator<<(cverb_object &, verbose const & v)
{
return v.set ? cout : null_stream;
Index: cverb.h
===================================================================
RCS file: /cvsroot/oprofile/oprofile/libutil++/cverb.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -p -d -r1.6 -r1.7
--- cverb.h 6 Apr 2005 23:24:48 -0000 1.6
+++ cverb.h 4 May 2005 04:01:42 -0000 1.7
@@ -49,7 +49,7 @@ extern cverb_object cverb;
* build a sentry object for each << (more efficient even with one level of <<)
*/
class verbose {
- friend class verbose_recorder;
+ /// The returned stream is either a null stream or cout.
friend std::ostream & operator<<(cverb_object &, verbose const &);
public:
/**
@@ -77,6 +77,6 @@ extern verbose vlevel1; /**< named "leve
extern verbose vdebug; /**< named "debug" */
extern verbose vstats; /**< named "stats" */
// all sample filename manipulation.
-extern verbose vsfile; /**< named "vfsfile" */
+extern verbose vsfile; /**< named "sfile" */
#endif /* !CVERB_H */
|