19#ifndef _BINARYFORMAT2_
20#define _BINARYFORMAT2_
51 void write(ofstream &out);
52 void read(ifstream &in,
int version);
65 void write(ofstream &out);
66 void read(ifstream &in,
int version);
78 void write(ofstream &out);
79 void read(ifstream &in,
int version);
88 void write(ofstream &out);
89 void read(ifstream &in,
int version = 1);
97 out.write((
char *) &
Time,
sizeof(
Time));
98 out.write((
char *) &
K,
sizeof(
K));
99 out.write((
char *) &
Kerr,
sizeof(
Kerr));
107 in.read((
char *) &
Time,
sizeof(
Time));
108 in.read((
char *) &
K,
sizeof(
K));
109 in.read((
char *) &
Kerr,
sizeof(
Kerr));
119 out.write((
char *) &
Flux,
sizeof(
Flux));
130 in.read((
char *) &
Flux,
sizeof(
Flux));
148 out.write((
char *) &
Z,
sizeof(
Z));
149 out.write((
char *) &
A,
sizeof(
A));
150 out.write((
char *) &
I,
sizeof(
I));
151 out.write((
char *) &
Mass,
sizeof(
Mass));
158 in.read((
char *) &
Z,
sizeof(
Z));
159 in.read((
char *) &
A,
sizeof(
A));
160 in.read((
char *) &
I,
sizeof(
I));
161 in.read((
char *) &
Mass,
sizeof(
Mass));
168 out.write((
char *) &
Code,
sizeof(
Code));
175 in.read((
char *) &
Code,
sizeof(
Code));
the namespace of the Standard C++
Record of a nucleus in a binary file.
Definition BinaryFormat2.hxx:71
short A
Nucleon number of the nucleus.
Definition BinaryFormat2.hxx:73
short Z
Proton number of the nucleus.
Definition BinaryFormat2.hxx:72
void write(ofstream &out)
Write the record into a stream.
Definition BinaryFormat2.hxx:146
float Proportion
Number of this nuclei in cell.
Definition BinaryFormat2.hxx:76
short I
Isomeric state of the nucleus.
Definition BinaryFormat2.hxx:74
void read(ifstream &in, int version)
Read the record from a stream.
Definition BinaryFormat2.hxx:156
short NReactionRecords
Number of reaction records of this nucleus.
Definition BinaryFormat2.hxx:77
float Mass
Atomic mass.
Definition BinaryFormat2.hxx:75
Record of a reaction in a binary file.
Definition BinaryFormat2.hxx:84
float Sigma
Reaction cross-section.
Definition BinaryFormat2.hxx:86
short Code
Reaction code.
Definition BinaryFormat2.hxx:85
void write(ofstream &out)
Write the record into a stream.
Definition BinaryFormat2.hxx:166
void read(ifstream &in, int version=1)
Read the record from a stream.
Definition BinaryFormat2.hxx:173
float SigmaErr
Cross-section error.
Definition BinaryFormat2.hxx:87