GeneralBrokenLines  trunk_rev46
 All Classes Files Functions Variables Typedefs Pages
MilleBinary.h
Go to the documentation of this file.
1 /*
2  * MilleBinary.h
3  *
4  * Created on: Aug 31, 2011
5  * Author: kleinwrt
6  */
7 
8 #ifndef MILLEBINARY_H_
9 #define MILLEBINARY_H_
10 
11 #include<fstream>
12 #include<vector>
13 
15 
41 class MilleBinary {
42 public:
43  MilleBinary(const std::string fileName = "milleBinaryISN.dat",
44  unsigned int aSize = 2000);
45  virtual ~MilleBinary();
46  void addData(float aMeas, float aPrec,
47  const std::vector<unsigned int> &indLocal,
48  const std::vector<double> &derLocal,
49  const std::vector<int> &labGlobal,
50  const std::vector<double> &derGlobal);
51  void writeRecord();
52 
53 private:
54  std::ofstream binaryFile;
55  std::vector<int> intBuffer;
56  std::vector<float> floatBuffer;
57 };
58 
59 #endif /* MILLEBINARY_H_ */