Riostream.h

Go to the documentation of this file.
00001 // @(#)root/base:$Id: Riostream.h 20877 2007-11-19 11:17:07Z rdm $
00002 // Author: Fons Rademakers   23/1/02
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_Riostream
00013 #define ROOT_Riostream
00014 
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // Riostream                                                            //
00019 //                                                                      //
00020 // This headers is only supposed to be used in implementation files.    //
00021 // Never in headers, since it has "using namespace std".                //
00022 // In headers use the companion Riosfwd.h.                              //
00023 //                                                                      //
00024 //////////////////////////////////////////////////////////////////////////
00025 
00026 #ifndef ROOT_RConfig
00027 #include "RConfig.h"
00028 #endif
00029 
00030 #if defined(R__ANSISTREAM)
00031 #   include <fstream>
00032 #   include <iostream>
00033 #   include <iomanip>
00034     using namespace std;
00035 #else
00036 #   include <fstream.h>
00037 #   include <iostream.h>
00038 #   include <iomanip.h>
00039 #endif
00040 
00041 #if defined(_MSC_VER) && (_MSC_VER <= 1200)
00042 static std::ostream& operator<<(std::ostream& os, __int64 i)
00043 {
00044    char buf[20];
00045    sprintf(buf,"%I64d", i);
00046    os << buf;
00047    return os;
00048 }
00049 
00050 static std::ostream& operator<<(std::ostream& os, unsigned __int64 i)
00051 { return os << (__int64) i; }
00052 #endif
00053 
00054 #endif

Generated on Tue Jul 5 14:10:19 2011 for ROOT_528-00b_version by  doxygen 1.5.1