ADMB Documentation  11.1.1641
 All Classes Files Functions Variables Typedefs Friends Defines
gccmanip.h
Go to the documentation of this file.
00001 /*
00002  * $Id: gccmanip.h 1112 2013-07-12 21:41:41Z johnoel $
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  *
00007  * ADModelbuilder and associated libraries and documentations are
00008  * provided under the general terms of the "BSD" license.
00009  *
00010  * License:
00011  *
00012  * Redistribution and use in source and binary forms, with or without
00013  * modification, are permitted provided that the following conditions are
00014  * met:
00015  *
00016  * 1. Redistributions of source code must retain the above copyright
00017  * notice, this list of conditions and the following disclaimer.
00018  *
00019  * 2.  Redistributions in binary form must reproduce the above copyright
00020  * notice, this list of conditions and the following disclaimer in the
00021  * documentation and/or other materials provided with the distribution.
00022  *
00023  * 3.  Neither the name of the  University of California, Otter Research,
00024  * nor the ADMB Foundation nor the names of its contributors may be used
00025  * to endorse or promote products derived from this software without
00026  * specific prior written permission.
00027  *
00028  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00029  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00030  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00031  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
00032  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00033  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00034  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00035  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00036  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00037  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00038  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00039  *
00040  */
00041   #ifndef __GCCMANIP_HPP
00042   #define __GCCMANIP_HPP
00043 
00044 //   #ifndef __GNUDOS__
00045 //     #include <admanip.h>
00046 //   #else
00047 //     #include <iostream.h>
00048 //   #endif
00049 //
00050 //   class smanip_int
00051 //   {
00052 //   public:
00053 //       smanip_int(BOR_CONST ios &(*f)(BOR_CONST ios&, int), int v)
00054 //       {
00055 //         func=f;
00056 //         val=v;
00057 //       }
00058 //       friend istream &operator>>(BOR_CONST istream&, BOR_CONST smanip_int&);
00059 //       friend ostream &operator<<(BOR_CONST ostream&, BOR_CONST smanip_int&);
00060 //   private:
00061 //       ios &(*func)(BOR_CONST ios&, int);
00062 //       int val;
00063 //   };
00064 //
00065 //   inline istream &operator>>(BOR_CONST istream &s, BOR_CONST smanip_int &m)
00066 //   {
00067 //     (*m.func)(s, m.val);
00068 //     return s;
00069 //   }
00070 //   inline ostream &operator<<(BOR_CONST ostream &s, BOR_CONST smanip_int &m)
00071 //   {
00072 //     (*m.func)(s, m.val);
00073 //     return s;
00074 //   }
00075 //
00076 //
00077 //  smanip_int setprecision(int);
00078 //  smanip_int setw(int);
00079    #endif