21 binaryFile(fileName.c_str(), std::ios::binary | std::ios::
out), intBuffer(), floatBuffer(), doubleBuffer(), doublePrecision(
49 const std::vector<unsigned int> &indLocal,
50 const std::vector<double> &derLocal,
const std::vector<int> &labGlobal,
51 const std::vector<double> &derGlobal) {
57 for (
unsigned int i = 0;
i < indLocal.size(); ++
i) {
63 for (
unsigned int i = 0;
i < labGlobal.size(); ++
i) {
73 for (
unsigned int i = 0;
i < indLocal.size(); ++
i) {
79 for (
unsigned int i = 0;
i < labGlobal.size(); ++
i) {
91 const int recordLength =
93 binaryFile.write(reinterpret_cast<const char*>(&recordLength),
94 sizeof(recordLength));
void writeRecord()
Write record to file.
MilleBinary(const std::string fileName="milleBinaryISN.dat", bool doublePrec=false, unsigned int aSize=2000)
Create binary file.
std::vector< int > intBuffer
Integer buffer.
std::vector< double > doubleBuffer
Double buffer.
bool doublePrecision
Flag for storage in as double values.
std::ofstream binaryFile
Binary File.
void addData(double aMeas, double aPrec, const std::vector< unsigned int > &indLocal, const std::vector< double > &derLocal, const std::vector< int > &labGlobal, const std::vector< double > &derGlobal)
Add data block to (end of) record.
std::vector< float > floatBuffer
Float buffer.