![]() |
GeneralBrokenLines
V01-11-00
|
00001 /* 00002 * MilleBinary.h 00003 * 00004 * Created on: Aug 31, 2011 00005 * Author: kleinwrt 00006 */ 00007 00008 #ifndef MILLEBINARY_H_ 00009 #define MILLEBINARY_H_ 00010 00011 #include<fstream> 00012 #include<vector> 00013 00015 00041 class MilleBinary { 00042 public: 00043 MilleBinary(std::string fileName = "milleBinaryISN.dat", 00044 unsigned int aSize = 2000); 00045 virtual ~MilleBinary(); 00046 void addData(float aMeas, float aPrec, 00047 const std::vector<unsigned int> &indLocal, 00048 const std::vector<double> &derLocal, 00049 const std::vector<int> &labGlobal, 00050 const std::vector<double> &derGlobal); 00051 void writeRecord(); 00052 00053 private: 00054 std::ofstream binaryFile; 00055 std::vector<int> intBuffer; 00056 std::vector<float> floatBuffer; 00057 }; 00058 00059 #endif /* MILLEBINARY_H_ */
1.7.6.1