44 floatBuffer(), doubleBuffer(), doublePrecision(doublePrec)
73 unsigned int* indLocal,
double* derLocal,
74 const std::vector<int> &labGlobal,
75 const std::vector<double> &derGlobal) {
81 for (
unsigned int i = 0;
i < numLocal; ++
i) {
87 for (
unsigned int i = 0;
i < labGlobal.size(); ++
i) {
97 for (
unsigned int i = 0;
i < numLocal; ++
i) {
103 for (
unsigned int i = 0;
i < labGlobal.size(); ++
i) {
115 const int recordLength =
117 binaryFile.write(reinterpret_cast<const char*>(&recordLength),
118 sizeof(recordLength));
MilleBinary(const std::string &fileName="milleBinaryISN.dat", bool doublePrec=false, unsigned int aSize=2000)
Create binary file.
void writeRecord()
Write record to file.
std::vector< int > intBuffer
Integer buffer.
void addData(double aMeas, double aErr, unsigned int numLocal, unsigned int *indLocal, double *derLocal, const std::vector< int > &labGlobal, const std::vector< double > &derGlobal)
Add data block to (end of) record.
std::vector< double > doubleBuffer
Double buffer.
Namespace for the general broken lines package.
bool doublePrecision
Flag for storage in as double values.
std::ofstream binaryFile
Binary File.
std::vector< float > floatBuffer
Float buffer.