![]() |
VieSched++
VieVS VLBI Scheduling Software
|
parser for station log files More...
#include <LogParser.h>
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 >> ×) |
add scheduled times for comparison More... | |
![]() | |
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< LogScan > | logScans_ |
list of scans found in log file More... | |
Static Private Attributes | |
static unsigned long | nextId = 0 |
next id for this object type More... | |
parser for station log files
|
explicit |
constructor
filename | path to log file |
bool LogParser::addScheduledTimes | ( | const std::vector< std::vector< unsigned int >> & | times | ) |
add scheduled times for comparison
content of vector: Entry for each scan with
number of elements in times parameter must be equal to number of scans in log file
times | scheduled times |
|
private |
get time from log file line
void LogParser::output | ( | const std::string & | outfile | ) |
output parser to text file
outfile | output text file name |
void LogParser::parseLogFile | ( | const std::string & | slewStart, |
const std::string & | slewEnd | ||
) |
parse log file
slewStart | regular expression for slew start |
slewEnd | regular expression for slew end |
|
private |
flag if scheduled times are added
|
private |
file name to log file
|
private |
list of scans found in log file
|
staticprivate |
next id for this object type