00001 /* 00002 * Methods of class Eos_BalbN1H1 00003 * 00004 * (see file eos_tabul.h for documentation). 00005 * 00006 */ 00007 00008 /* 00009 * Copyright (c) 2001 Eric Gourgoulhon 00010 * Copyright (c) 2001 J. Leszek Zdunik 00011 * 00012 * This file is part of LORENE. 00013 * 00014 * LORENE is free software; you can redistribute it and/or modify 00015 * it under the terms of the GNU General Public License as published by 00016 * the Free Software Foundation; either version 2 of the License, or 00017 * (at your option) any later version. 00018 * 00019 * LORENE is distributed in the hope that it will be useful, 00020 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00022 * GNU General Public License for more details. 00023 * 00024 * You should have received a copy of the GNU General Public License 00025 * along with LORENE; if not, write to the Free Software 00026 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00027 * 00028 */ 00029 00030 00031 char eos_balbn1h1_C[] = "$Header: /cvsroot/Lorene/C++/Source/Eos/eos_balbn1h1.C,v 1.2 2002/10/16 14:36:34 j_novak Exp $" ; 00032 00033 /* 00034 * $Id: eos_balbn1h1.C,v 1.2 2002/10/16 14:36:34 j_novak Exp $ 00035 * $Log: eos_balbn1h1.C,v $ 00036 * Revision 1.2 2002/10/16 14:36:34 j_novak 00037 * Reorganization of #include instructions of standard C++, in order to 00038 * use experimental version 3 of gcc. 00039 * 00040 * Revision 1.1.1.1 2001/11/20 15:19:27 e_gourgoulhon 00041 * LORENE 00042 * 00043 * Revision 2.0 2001/09/11 16:22:50 eric 00044 * *** empty log message *** 00045 * 00046 * 00047 * $Header: /cvsroot/Lorene/C++/Source/Eos/eos_balbn1h1.C,v 1.2 2002/10/16 14:36:34 j_novak Exp $ 00048 * 00049 */ 00050 00051 00052 // Headers Lorene 00053 #include "headcpp.h" 00054 #include "eos.h" 00055 00056 //----------------------------// 00057 // Constructors // 00058 //----------------------------// 00059 00060 // Standard constructor 00061 // -------------------- 00062 Eos_BalbN1H1::Eos_BalbN1H1(const char* path) 00063 : Eos_tabul( 00064 "EOS BalbN1H1 [Balberg (2000)]", 00065 "eos_balbn1h1.d", path) 00066 {} 00067 00068 00069 // Constructor from binary file 00070 // ---------------------------- 00071 Eos_BalbN1H1::Eos_BalbN1H1(FILE* fich) : Eos_tabul(fich) {} 00072 00073 00074 00075 // Constructor from a formatted file 00076 // --------------------------------- 00077 Eos_BalbN1H1::Eos_BalbN1H1(ifstream& fich) : Eos_tabul(fich, "eos_balbn1h1.d") {} 00078 00079 00080 00081 //--------------// 00082 // Destructor // 00083 //--------------// 00084 00085 Eos_BalbN1H1::~Eos_BalbN1H1(){ 00086 00087 // does nothing 00088 00089 } 00090 00091 00092 //------------------------// 00093 // Comparison operators // 00094 //------------------------// 00095 00096 00097 bool Eos_BalbN1H1::operator==(const Eos& eos_i) const { 00098 00099 bool resu = true ; 00100 00101 if ( eos_i.identify() != identify() ) { 00102 cout << "The second EOS is not of type Eos_BalbN1H1 !" << endl ; 00103 resu = false ; 00104 } 00105 00106 return resu ; 00107 00108 } 00109 00110 bool Eos_BalbN1H1::operator!=(const Eos& eos_i) const { 00111 00112 return !(operator==(eos_i)) ; 00113 00114 } 00115 00116 //------------// 00117 // Outputs // 00118 //------------// 00119 00120 00121 ostream& Eos_BalbN1H1::operator>>(ostream & ost) const { 00122 00123 ost << 00124 "EOS of class Eos_BalbN1H1 (Balberg 2000) : " 00125 << endl ; 00126 00127 return ost ; 00128 00129 } 00130 00131
1.4.6