CFEL - ASG Software Suite  2.5.0
CASS
frms6_parser.cpp
Go to the documentation of this file.
1 // Copyright (C) 2011 Lutz Foucar
2 
3 /**
4  * @file frms6_parser.cpp contains class to parse a frms6
5  * file created by Xonline.
6  *
7  * @author Lutz Foucar
8  */
9 
10 #include <fstream>
11 #include <sstream>
12 #include <stdexcept>
13 
14 #include "frms6_parser.h"
15 #include "hlltypes.hpp"
16 
17 using namespace cass;
18 using namespace std;
19 using namespace std::tr1;
20 using Streaming::operator >>;
21 
23 {
24  ifstream &file(*(_readerpointerpair.second._filestream));
26  file >> fileHead;
27  size_t frameWidth_bytes(fileHead.the_width*sizeof(hllDataTypes::pixel));
28 
29  hllDataTypes::FrameHeader frameHead;
30  while (!file.eof())
31  {
32  const streampos eventstartpos;
33  file >> frameHead;
34  savePos(eventstartpos,frameHead.external_id);
35  file.seekg(frameWidth_bytes*frameHead.the_height, std::ios_base::cur);
36  }
37 }
STL namespace.
contains the layout of the hll data types and conversion to cass data types
the header that describe the frames
Definition: hlltypes.hpp:82
contains class to parse a frms6 file created by Xonline.
void run()
parse the frms6 file
int16_t pixel
define a pixel
Definition: hlltypes.hpp:27