Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ioext.h

Go to the documentation of this file.
00001 // SuperMix version 1.0a  C++ source file
00002 //
00003 // Copyright (c) 1999 California Institute of Technology.
00004 // All rights reserved.
00005 //
00006 // Redistribution and use in source and binary forms for noncommercial
00007 // purposes are permitted provided that the above copyright notice and
00008 // this paragraph are duplicated in all such forms and that any
00009 // documentation and other materials related to such distribution and
00010 // use acknowledge that the software was developed by California
00011 // Institute of Technology. Redistribution and/or use in source or
00012 // binary forms is not permitted for any commercial purpose. Use of
00013 // this software does not include a permitted use of the Institute's
00014 // name or trademark for any purpose.
00015 //
00016 // DISCLAIMER:
00017 // THIS SOFTWARE AND/OR RELATED MATERIALS ARE PROVIDED "AS-IS" WITHOUT
00018 // WARRANTY OF ANY KIND INCLUDING ANY WARRANTIES OF PERFORMANCE OR
00019 // MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE OR PURPOSE (AS SET
00020 // FORTH IN UCC 23212-2313) OR FOR ANY PURPOSE WHATSOEVER, FOR THE
00021 // LICENSED PRODUCT, HOWEVER USED.  IN NO EVENT SHALL CALTECH/JPL BE
00022 // LIABLE FOR ANY DAMAGES AND/OR COSTS, INCLUDING BUT NOT LIMITED TO
00023 // INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND, INCLUDING ECONOMIC
00024 // DAMAGE OR INJURY TO PROPERTY AND LOST PROFITS, REGARDLESS OF
00025 // WHETHER CALTECH/JPL SHALL BE ADVISED, HAVE REASON TO KNOW, OR IN
00026 // FACT SHALL KNOW OF THE POSSIBILITY.  THE USER BEARS ALL RISK
00027 // RELATING TO QUALITY AND PERFORMANCE OF THE SOFTWARE AND/OR RELATED
00028 // MATERIALS.
00029 //
00030 // ********************************************************************
00031 // ioext.h
00032 //
00033 // i/o extensions to make older versions of the C++ i/o stream library
00034 // a little more compatible with the latest C++ standard
00035 //
00036 // 7/29/98 F.R.R.
00037 //
00038 // 4/29/00 :  Made all functions inline; avoid linker errors
00039 //
00040 // ********************************************************************
00041 #ifndef IOEXT_H
00042 #define IOEXT_H
00043 
00044 // Some addtional io manipulators:
00045 
00046 inline ios& showbase(ios& s) { s.setf(ios::showbase); return s; }
00047 inline ios& noshowbase(ios& s) { s.unsetf(ios::showbase); return s; }
00048 
00049 inline ios& showpoint(ios& s) { s.setf(ios::showpoint); return s; }
00050 inline ios& noshowpoint(ios& s) { s.unsetf(ios::showpoint); return s; }
00051 
00052 inline ios& showpos(ios& s) { s.setf(ios::showpos); return s; }
00053 inline ios& noshowpos(ios& s) { s.unsetf(ios::showpos); return s; }
00054 
00055 inline ios& skipws(ios& s) { s.setf(ios::skipws); return s; }
00056 inline ios& noskipws(ios& s) { s.unsetf(ios::skipws); return s; }
00057 
00058 inline ios& uppercase(ios& s) { s.setf(ios::uppercase); return s; }
00059 inline ios& nouppercase(ios& s) { s.unsetf(ios::uppercase); return s; }
00060 
00061 inline ios& internal(ios& s) { s.setf(ios::internal,ios::adjustfield); return s; }
00062 inline ios& left(ios& s)     { s.setf(ios::left,ios::adjustfield); return s; }
00063 inline ios& right(ios& s)    { s.setf(ios::right,ios::adjustfield); return s; }
00064 
00065 inline ios& scientific(ios& s) { s.setf(ios::scientific,ios::floatfield); return s; }
00066 inline ios& fixed(ios& s)      { s.setf(ios::fixed,ios::floatfield); return s; }
00067 inline ios& general(ios& s)    { s.setf(0,ios::floatfield); return s; }
00068 
00069 
00070 #endif  /* IOEXT_H */

Please direct comments and corrections to supermix@submm.caltech.edu
Go to the supermix home page
Generated by doxygen1.2.7