/*File Name: CDoubleOut.h
  Author: Betti Österholz ; Date: 20.08.2002
  Mat. Nr.: 706585


  Copyright (C) 2004  Betti Österholz

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2, June 1991, of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#ifndef __CDoubleOut_H__
#define __CDoubleOut_H__
#include <string>
#include <iostream>
#include <fstream>

//---------------------------------------------------------------------------
using namespace std;

class CDoubleOut{
protected:
   char* FileName;

public:

   CDoubleOut();

   CDoubleOut(char* fnam);

   void Print(const string& out);
   //output the string out in a file and on the standart output
   //pre: string out

   void Printi(const long& out);
   //output the long value out in a file and on the standart output
   //pre: long out

   void Printi(const int& out);
   //output the int value out in a file and on the standart output
   //pre: int out

   void Printd(const double& out);
   //output the double value out in a file and on the standart output
   //pre: int out

   void Printb(const bool& out);
   //output the bool value out in a file and on the standart output
   //pre: bool out

   void operator=(const int& out);
   //output the string out in a file
   //pre: int out

   void operator=(const string& out);
   //output the string out in a file
   //pre: int out

   void operator=(const char& out);
   //output the string out in a file
   //pre: int out


};

#endif
