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

skd output file parser More...

#include <SkdParser.h>

Inheritance diagram for VieVS::SkdParser:
Collaboration diagram for VieVS::SkdParser:

Public Member Functions

 SkdParser (const std::string &filename)
 constructor More...
 
void setLogFiles ()
 enables log files for output More...
 
void read ()
 read skd file More...
 
Scheduler createScheduler (boost::property_tree::ptree xml=boost::property_tree::ptree())
 create schedule More...
 
std::map< std::string, std::vector< double > > getFrequencies ()
 get observed frequencies More...
 
std::vector< std::vector< unsigned int > > getScheduledTimes (const std::string &station)
 get scheduled times 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

void createScans (std::ofstream &of)
 create scans More...
 
void copyScanMembersToObjects (std::ofstream &of)
 link created objects More...
 

Private Attributes

std::string fname_
 skd file name More...
 
std::string fpath_
 skd file path More...
 
unsigned int systemDelay_ = 0
 scheduled field system time More...
 
unsigned int preob_ = 0
 scheduled calibrator time More...
 
unsigned int midob_ = 0
 scheduled correlator synchronization time More...
 
unsigned int postob_ = 0
 scheduled postob time More...
 
SkdCatalogReader skd_
 sked catalog reader More...
 
Network network_
 station network More...
 
SourceList sourceList_
 all sources More...
 
std::vector< Scanscans_
 all scans in schedule More...
 
std::shared_ptr< ObservingModeobsModes_ = nullptr
 observing mode More...
 
std::map< std::string, std::vector< double > > freqs_
 all observed frequencies per band More...
 

Static Private Attributes

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

Detailed Description

skd output file parser

Author
Matthias Schartner
Date
31.01.2018

Constructor & Destructor Documentation

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

constructor

Author
Matthias Schartner
Parameters
filenamepath to skd file

Member Function Documentation

void SkdParser::copyScanMembersToObjects ( std::ofstream &  of)
private

link created objects

Author
Matthias Schartner
Parameters
ofoutput stream object

Here is the call graph for this function:

Here is the caller graph for this function:

void SkdParser::createScans ( std::ofstream &  of)
private

create scans

Author
Matthias Schartner
Parameters
ofoutput stream object

Here is the call graph for this function:

Here is the caller graph for this function:

Scheduler SkdParser::createScheduler ( boost::property_tree::ptree  xml = boost::property_tree::ptree())

create schedule

Author
Matthias Schartner
Returns
schedule

Here is the call graph for this function:

Here is the caller graph for this function:

std::map<std::string, std::vector<double> > VieVS::SkdParser::getFrequencies ( )
inline

get observed frequencies

Author
Matthias Schartner
Returns
observed frequencies per band

Here is the call graph for this function:

std::vector< vector< unsigned int > > SkdParser::getScheduledTimes ( const std::string &  station)

get scheduled times

Author
Matthias Schartner
Returns
vector with scheduled times

Here is the call graph for this function:

Here is the caller graph for this function:

void SkdParser::read ( )

read skd file

Author
Matthias Schartner

Here is the call graph for this function:

Here is the caller graph for this function:

void SkdParser::setLogFiles ( )

enables log files for output

Author
Matthias Schartner

Member Data Documentation

std::string VieVS::SkdParser::fname_
private

skd file name

std::string VieVS::SkdParser::fpath_
private

skd file path

std::map<std::string, std::vector<double> > VieVS::SkdParser::freqs_
private

all observed frequencies per band

unsigned int VieVS::SkdParser::midob_ = 0
private

scheduled correlator synchronization time

Network VieVS::SkdParser::network_
private

station network

unsigned long SkdParser::nextId = 0
staticprivate

next id for this object type

std::shared_ptr<ObservingMode> VieVS::SkdParser::obsModes_ = nullptr
private

observing mode

unsigned int VieVS::SkdParser::postob_ = 0
private

scheduled postob time

unsigned int VieVS::SkdParser::preob_ = 0
private

scheduled calibrator time

std::vector<Scan> VieVS::SkdParser::scans_
private

all scans in schedule

SkdCatalogReader VieVS::SkdParser::skd_
private

sked catalog reader

SourceList VieVS::SkdParser::sourceList_
private

all sources

unsigned int VieVS::SkdParser::systemDelay_ = 0
private

scheduled field system time


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