64 { fOut.open(fileName, std::ios::out|std::ios::binary); }
66 { fOut.open(fileName, std::ios::out); }
72 G4cerr <<
"G4OrderedTable::::Store():";
80 size_t tableSize = size();
83 fOut.write( (
char*)(&tableSize),
sizeof tableSize);
87 fOut << tableSize <<
G4endl;
96 fOut.write( (
char*)(&vType),
sizeof vType);
102 (*itr)->Store(fOut,ascii);
124 G4cerr <<
"G4OrderedTable::Retrieve():";
138 fIn.read((
char*)(&tableSize),
sizeof tableSize);
147 G4cerr <<
"G4OrderedTable::Retrieve():";
148 G4cerr <<
" Invalid table size: " << tableSize <<
G4endl;
155 for (
G4int idx=0; idx<tableSize; ++idx)
160 fIn.read( (
char*)(&vType),
sizeof vType);
169 G4cerr <<
"G4OrderedTable::Retrieve():";
170 G4cerr <<
" Illegal Data Vector type: " << vType <<
" in ";
182 G4cerr <<
"G4OrderedTable::Retrieve(): ";
183 G4cerr <<
" Rrror in retreiving " << idx
184 <<
"-th Physics Vector from file: ";
206 out << std::setw(8) << i <<
"-th Vector ";
G4OrderedTable::iterator G4OrderedTableIterator
std::ostream & operator<<(std::ostream &, const BasicVector3D< float > &)
G4bool Retrieve(const G4String &filename, G4bool ascii=false)
G4bool Retrieve(std::ifstream &fIn, G4bool ascii=false)
virtual ~G4OrderedTable()
G4GLOB_DLL std::ostream G4cerr
G4bool Store(const G4String &filename, G4bool ascii=false)