source: GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/LogReader.h @ 2578

Revision 2578, 806 bytes checked in by mattausch, 17 years ago (diff)
Line 
1#ifndef __LOGREADER_H
2#define __LOGREADER_H
3
4#include <iostream>
5#include <fstream>
6#include <string>
7#include "common.h"
8#include "Containers.h"
9#include "LogReader.h"
10
11
12
13namespace GtpVisibilityPreprocessor
14{
15
16
17struct ViewCellInfo
18{
19        int mPiercingRays;
20};
21
22typedef std::vector<ViewCellInfo> ViewCellInfoContainer;
23typedef std::map<int, ViewCellInfoContainer *> ViewCellHistoryContainer;
24
25
26/*struct ViewCellHistory;
27{
28}*/
29
30class LogReader
31{
32        void SetFilename(const std::string &filename);
33
34        /** Reads the info for several #samples.
35        */
36        void Read(ViewCellHistoryContainer &history);
37        /** Reads the viewcells info after specific #samples.
38        */
39        void Read(const int numSamples, ViewCellInfoContainer &infos);
40
41
42protected:
43
44        std::string mFilename;
45};
46
47}
48
49#endif
Note: See TracBrowser for help on using the repository browser.