43 binaryFile(fileName.c_str(), std::ios::binary | std::ios::out), intBuffer(), floatBuffer(), doubleBuffer(), doublePrecision(
57 MilleBinary::~MilleBinary() {
71 const std::vector<unsigned int> &indLocal,
72 const std::vector<double> &derLocal,
const std::vector<int> &labGlobal,
73 const std::vector<double> &derGlobal) {
79 for (
unsigned int i = 0; i < indLocal.size(); ++i) {
85 for (
unsigned int i = 0; i < labGlobal.size(); ++i) {
95 for (
unsigned int i = 0; i < indLocal.size(); ++i) {
101 for (
unsigned int i = 0; i < labGlobal.size(); ++i) {
113 const int recordLength =
115 binaryFile.write(
reinterpret_cast<const char*
>(&recordLength),
116 sizeof(recordLength));
void writeRecord()
Write record to file.
std::vector< double > doubleBuffer
Double buffer.
bool doublePrecision
Flag for storage in as double values.
MilleBinary(const std::string &fileName="milleBinaryISN.dat", bool doublePrec=false, unsigned int aSize=2000)
Create binary file.
std::vector< int > intBuffer
Integer buffer.
std::ofstream binaryFile
Binary File.
std::vector< float > floatBuffer
Float buffer.
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.
Namespace for the general broken lines package.