1 // @(#)root/base:$Id$ 2 // Author: Fons Rademakers 23/1/02 3 4 /************************************************************************* 5 * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. * 6 * All rights reserved. * 7 * * 8 * For the licensing terms see $ROOTSYS/LICENSE. * 9 * For the list of contributors see $ROOTSYS/README/CREDITS. * 10 *************************************************************************/ 11 12 #ifndef ROOT_Riostream 13 #define ROOT_Riostream 14 15 16 ////////////////////////////////////////////////////////////////////////// 17 // // 18 // Riostream // 19 // // 20 // This headers is only supposed to be used in implementation files. // 21 // Never in headers, since it has "using namespace std". // 22 // In headers use the companion Riosfwd.h. // 23 // // 24 ////////////////////////////////////////////////////////////////////////// 25 26 #ifndef ROOT_RConfig 27 #include "RConfig.h" 28 #endif 29 30 #if defined(R__ANSISTREAM) 31 # include <fstream> 32 # include <iostream> 33 # include <iomanip> 34 using namespace std; 35 #else 36 # include <fstream.h> 37 # include <iostream.h> 38 # include <iomanip.h> 39 #endif 40 41 #if defined(_MSC_VER) && (_MSC_VER <= 1200) 42 static std::ostream& operator<<(std::ostream& os, __int64 i) 43 { 44 char buf[20]; 45 sprintf(buf,"%I64d", i); 46 os << buf; 47 return os; 48 } 49 50 static std::ostream& operator<<(std::ostream& os, unsigned __int64 i) 51 { return os << (__int64) i; } 52 #endif 53 54 #endif 55