VieSched++
VieVS VLBI Scheduling Software
VieVS::LogParser Class Reference

parser for station log files More...

#include <LogParser.h>

Inheritance diagram for VieVS::LogParser:
Collaboration diagram for VieVS::LogParser:

Classes

struct  LogScan
 station log file scan More...
 

Public Member Functions

 LogParser (const std::string &filename)
 constructor More...
 
void parseLogFile (const std::string &slewStart, const std::string &slewEnd)
 parse log file More...
 
void output (const std::string &outfile)
 output parser to text file More...
 
bool addScheduledTimes (const std::vector< std::vector< unsigned int >> &times)
 add scheduled times for comparison More...
 
- Public Member Functions inherited from VieVS::VieVS_Object
 VieVS_Object (unsigned long id)
 constructor More...
 
const unsigned long getId () const
 get object id More...
 
bool hasValidId () const
 check if id is valid More...
 
bool hasId (unsigned long id) const
 check if object has specific id More...
 
void setId (unsigned long id)
 set object id More...
 
std::string printId () const
 object id string More...
 

Private Member Functions

boost::posix_time::ptime getTime (const std::string &line)
 get time from log file line More...
 

Private Attributes

bool addedScheduledTimes_ = false
 flag if scheduled times are added More...
 
std::string filename_
 file name to log file More...
 
std::vector< LogScanlogScans_
 list of scans found in log file More...
 

Static Private Attributes

static unsigned long nextId = 0
 next id for this object type More...
 

Detailed Description

parser for station log files

Author
Matthias Schartner
Date
07.03.2018

Constructor & Destructor Documentation

LogParser::LogParser ( const std::string &  filename)
explicit

constructor

Author
Matthias Schartner
Parameters
filenamepath to log file

Member Function Documentation

bool LogParser::addScheduledTimes ( const std::vector< std::vector< unsigned int >> &  times)

add scheduled times for comparison

Author
Matthias Schartner

content of vector: Entry for each scan with

  • scheduled slew time
  • scheduled idle time
  • scheduled preob time
  • scheduled scan time

number of elements in times parameter must be equal to number of scans in log file

Parameters
timesscheduled times
Returns
true if scheduled times can be compared to log file
boost::posix_time::ptime LogParser::getTime ( const std::string &  line)
private

get time from log file line

Here is the caller graph for this function:

void LogParser::output ( const std::string &  outfile)

output parser to text file

Author
Matthias Schartner
Parameters
outfileoutput text file name
void LogParser::parseLogFile ( const std::string &  slewStart,
const std::string &  slewEnd 
)

parse log file

Author
Matthias Schartner
Parameters
slewStartregular expression for slew start
slewEndregular expression for slew end

Here is the call graph for this function:

Member Data Documentation

bool VieVS::LogParser::addedScheduledTimes_ = false
private

flag if scheduled times are added

std::string VieVS::LogParser::filename_
private

file name to log file

std::vector<LogScan> VieVS::LogParser::logScans_
private

list of scans found in log file

unsigned long LogParser::nextId = 0
staticprivate

next id for this object type


The documentation for this class was generated from the following files: