[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dcout for standard output
Hi Mark,
Since you asked for cleverer ideas, I assume you will also entertain
less clever ones. In that spirit, I offer:
#define dout std::cout
#define derr std::cerr
My $0.02.
Regards,
-David
Mark M. Ito wrote:
> Folks,
>
> As promised at a software meeting long-ago, I've checked in a simple
> macro as a place holder for a future Hall D character
> output/information stream. The file is trunk/src/include/Diostream.h
> and the contents are as follows:
>
> ========================
>
> #ifndef _DIOSTREAM_H_
> #define _DIOSTREAM_H_
>
> // macro to redefine Dcout as the standard library's cout
>
> #include <iostream>
> #define Dcout std::cout
>
> #endif
>
> ========================
>
> The idea is that instead of using "cout", we use "Dcout". "D" stands
> for Hall D, "c" stands for "character" (see
> http://www.research.att.com/~bs/bs_faq2.html#cout). This obviously
> does nothing right now. Cleverer ideas welcome.
>
> -- Mark
>
>
--
------------------------------------------------------------------------
David Lawrence Ph.D.
Staff Scientist Office: (757)269-5567 [[[ [ [ [
Jefferson Lab Pager: (757)584-5567 [ [ [ [ [ [
http://www.jlab.org/~davidl davidl@jlab.org [[[ [[ [[ [[[
------------------------------------------------------------------------