[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dcout for standard output



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