Rev | Line | |
---|
[2578] | 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 |
|
---|
| 13 | namespace GtpVisibilityPreprocessor
|
---|
| 14 | {
|
---|
| 15 |
|
---|
| 16 |
|
---|
| 17 | struct ViewCellInfo
|
---|
| 18 | {
|
---|
| 19 | int mPiercingRays;
|
---|
| 20 | };
|
---|
| 21 |
|
---|
| 22 | typedef std::vector<ViewCellInfo> ViewCellInfoContainer;
|
---|
[2580] | 23 | //typedef std::map<int, ViewCellInfoContainer *> ViewCellHistoryContainer;
|
---|
[2578] | 24 |
|
---|
| 25 |
|
---|
| 26 | class LogReader
|
---|
| 27 | {
|
---|
| 28 | void SetFilename(const std::string &filename);
|
---|
| 29 |
|
---|
| 30 | /** Reads the info for several #samples.
|
---|
| 31 | */
|
---|
[2580] | 32 | //void Read(ViewCellHistoryContainer &history);
|
---|
| 33 | /** Reads the viewcells info from disc
|
---|
[2578] | 34 | */
|
---|
| 35 | void Read(const int numSamples, ViewCellInfoContainer &infos);
|
---|
| 36 |
|
---|
| 37 |
|
---|
| 38 | protected:
|
---|
| 39 |
|
---|
| 40 | std::string mFilename;
|
---|
| 41 | };
|
---|
| 42 |
|
---|
| 43 | }
|
---|
| 44 |
|
---|
| 45 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.