Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

record_types.hpp

Go to the documentation of this file.
00001 /*
00002  * ******** fete: From ENDF To ENDL *********
00003  * 
00004  * Copyright (c) 2006, The Regents of the University of California. 
00005  * All rights reserved.
00006  * 
00007  * Produced at the Lawrence Livermore National Laboratory. 
00008  * Written by David A. Brown, Gerry Hedstrom, Tony Hill
00009  * 
00010  * This file is part of fete v1.0  (UCRL-CODE-218718)
00011  * 
00012  * Please read the COPYING file for "Our Notice and GNU General 
00013  * Public License" in the root of this software distribution.  
00014  * 
00015  * This program is free software; you can redistribute it and/or modify 
00016  * it under the terms of the GNU General Public License (as published by 
00017  * the Free Software Foundation) version 2, dated June 1991. 
00018  * 
00019  * This program 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 terms 
00022  * and conditions of the GNU General Public License for more details. 
00023  * 
00024  * You should have received a copy of the GNU General Public License along 
00025  * with this program; if not, write to the Free Software Foundation, Inc., 
00026  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
00027  * 
00028  * $Revision: 1735 $
00029  * $Date: 2006-02-09 13:47:26 -0800 (Thu, 09 Feb 2006) $
00030  * $Author: dbrown $
00031  * $Id: record_types.hpp 1735 2006-02-09 21:47:26Z dbrown $
00032  * 
00033  * ******** fete: From ENDF To ENDL *********
00034  */
00035 
00036 // prototypes of the set record readers
00037 
00038 #ifndef ENDFB6_record_types
00039 #define ENDFB6_record_types
00040 
00041 #include <string>
00042 #include <cmath>
00043 #include <fstream>
00044 #include <iostream>
00045 
00046 using namespace std;
00047 
00048 //! Converts a string with a format of double, double, int, int, int, int into numbers
00049 void read_ddiiii(string *pS, 
00050          double *pR1, double *pR2, 
00051          int *pI1, int *pI2, int *pI3, int *pI4);
00052 
00053 //! Converts a string with a format of int, double, int, int, int, int into numbers
00054 void read_idiiii(string *pS, 
00055          int *pI1, 
00056          double *pR2, 
00057          int *pI2, int *pI3, int *pI4, int *pI5);
00058 
00059 //! Converts a string with a format of int, int, int, double, int, int, double, double, double
00060 void read_iiidiiddd(string *pS, 
00061             int *pI1, int *pI2, int *pI3,
00062             double *pR1, 
00063             int *pI4, int *pI5, 
00064             double *pR2, double *pR3, double *pR4 );
00065 
00066 //! Cpnverts a string with format of int, int, int, double, double, double, double, double 
00067 void read_iiiddddd(string *pS, 
00068          int *pI1, int *pI2, int *pI3,
00069          double *pR1, double *pR2, double *pR3, 
00070          double *pR4, double *pR5 );
00071 
00072 //! Converts a string with a format of double into a double
00073 void read_d(string *pS, double *pR);
00074 
00075 //! Converts a string with a format of double, double into numbers
00076 void read_dd(string *pS, double *pR1, double *pR2 );
00077 
00078 //! Converts a string with a format of 3 doubles into numbers
00079 void read_ddd(string *pS, double *pR1, double *pR2, double *pR3 );
00080 
00081 //! Converts a string with a format of 6 doubles into numbers
00082 void read_dddddd(string *pS, double *pR1, double *pR2, double *pR3,
00083   double *pR4, double *pR5, double *pR6 );
00084 
00085 //! Converts a string with a format of int, int into numbers
00086 void read_ii(string *pS, int *pI1, int *pI2 );
00087 
00088 //! Finds the date in line 5 of the ENDF file
00089 void read_date( string *pS, int *pI1 ) ;
00090 #endif
00091 
00092 //! Gets the incident particle from line 8 of the ENDF file
00093 int read_yi( string *pS );

Generated on Thu Sep 7 10:30:13 2006 for fete -- From ENDFB6 To ENDL by doxygen 1.3.4