Fixed DTSC analyser

This commit is contained in:
Thulinma 2018-12-14 20:49:27 +01:00
parent 6419da5eba
commit 98054f268f
2 changed files with 7 additions and 1 deletions

View file

@ -12,9 +12,14 @@ void AnalyserDTSC::init(Util::Config &conf){
opt.null(); opt.null();
} }
AnalyserDTSC::AnalyserDTSC(Util::Config &conf) : Analyser(conf){ bool AnalyserDTSC::open(const std::string &filename){
if (!Analyser::open(filename)){return false;}
conn = Socket::Connection(1, 0); conn = Socket::Connection(1, 0);
totalBytes = 0; totalBytes = 0;
return true;
}
AnalyserDTSC::AnalyserDTSC(Util::Config &conf) : Analyser(conf){
headLess = conf.getBool("headless"); headLess = conf.getBool("headless");
} }

View file

@ -6,6 +6,7 @@ public:
AnalyserDTSC(Util::Config &conf); AnalyserDTSC(Util::Config &conf);
bool parsePacket(); bool parsePacket();
static void init(Util::Config &conf); static void init(Util::Config &conf);
virtual bool open(const std::string &filename);
private: private:
bool headLess; bool headLess;