/usr/include/trilinos/fei_iostream.hpp is in libtrilinos-dev 10.4.0.dfsg-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | /*--------------------------------------------------------------------*/
/* Copyright 2005 Sandia Corporation. */
/* Under the terms of Contract DE-AC04-94AL85000, there is a */
/* non-exclusive license for use of this work by or on behalf */
/* of the U.S. Government. Export of this program may require */
/* a license from the United States Government. */
/*--------------------------------------------------------------------*/
#ifndef _fei_iostream_hpp_
#define _fei_iostream_hpp_
#include "fei_macros.hpp"
//
//The stuff in this file somewhat protects us from the fact that some
//platforms may not put stream-related stuff in the std namespace,
//even though most do.
//These days (2007) perhaps all platforms do put everything in std and
//perhaps no platforms still have iostream.h without having <iostream>, etc.
//But historically we've had to account for these possibilities and I see
//little to be gained from removing this flexibility at this point.
//
//The basic mechanism here is to use macros that are defined differently
//for certain situations. An alternative approach would be to import
//symbols into our namespace, but we choose not to do that since it is
//a well-known sin to perform namespace pollution from within a header.
//
#ifdef FEI_HAVE_IOSTREAM
#include <iostream>
#define FEI_OSTREAM std::ostream
#define FEI_ISTREAM std::istream
#define FEI_COUT std::cout
#define FEI_CERR std::cerr
#define FEI_ENDL std::endl
#elif defined(FEI_HAVE_IOSTREAM_H)
#include <iostream.h>
#define FEI_OSTREAM ostream
#define FEI_ISTREAM istream
#define FEI_COUT cout
#define FEI_CERR cerr
#define FEI_ENDL endl
#else
#error "must have <iostream> or <iostream.h>"
#endif
//endif for ifdef FEI_HAVE_IOSTREAM
#ifdef FEI_HAVE_IOMANIP
#include <iomanip>
#elif defined (FEI_HAVE_IOMANIP_H)
#include <iomanip.h>
#endif
#ifdef FEI_HAVE_STD_IOS_FMTFLAGS
#define IOS_FMTFLAGS std::ios_base::fmtflags
#define IOS_SCIENTIFIC std::ios_base::scientific
#define IOS_FLOATFIELD std::ios_base::floatfield
#define IOS_FIXED std::ios_base::fixed
#define IOS_APP std::ios_base::app
#define IOS_OUT std::ios_base::out
#else
#define IOS_FMTFLAGS long
#define IOS_SCIENTIFIC ios::scientific
#define IOS_FLOATFIELD ios::floatfield
#define IOS_FIXED ios::fixed
#define IOS_APP ios::app
#define IOS_OUT ios::out
#ifdef FEI_IOS_FMTFLAGS
#undef IOS_FMTFLAGS
#define IOS_FMTFLAGS ios::fmtflags
#endif
#endif
//endif for ifdef FEI_HAVE_STD_IOS_FMTFLAGS
#endif
//endif for ifndef _fei_iostream_hpp_
|