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

BBC section of observing mode. More...

#include <Bbc.h>

Inheritance diagram for VieVS::Bbc:
Collaboration diagram for VieVS::Bbc:

Classes

class  Bbc_assign
 BBC assign section in BBC block. More...
 

Public Member Functions

 Bbc (std::string name)
 constructor More...
 
 Bbc (const boost::property_tree::ptree &tree)
 constructor More...
 
void addBbc (std::string name, unsigned int physical_bbc_number, std::string if_name)
 add new BBC assignment More...
 
boost::property_tree::ptree toPropertytree () const
 converts object to property tree More...
 
void toVexBbcDefinition (std::ofstream &of, const std::string &comment="") const
 writes BBC block in vex format More...
 
const std::vector< Bbc_assign > & getBbc_assigns () const
 get BBC definitions More...
 
std::vector< Bbc_assign > & refBbc_assigns ()
 reference BBC definitions More...
 
int numberOfBBCs () const
 get number of BBCs More...
 
- Public Member Functions inherited from VieVS::VieVS_NamedObject
 VieVS_NamedObject (std::string name, unsigned long id)
 constructor More...
 
 VieVS_NamedObject (std::string name, std::string alternativeName, unsigned long id)
 constructor More...
 
const std::string & getName () const
 get object name More...
 
const std::string & getAlternativeName () const
 get object alternative name More...
 
bool hasAlternativeName () const
 check if object has alternative name More...
 
bool hasName (const std::string &name) const
 check if object has name More...
 
void changeName (const std::string &newName)
 change name of object 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 Attributes

std::vector< Bbc_assignbbc_assigns_
 list of all BBC assigns More...
 

Static Private Attributes

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

Detailed Description

BBC section of observing mode.

following vex standard The $BBC block connects physical BBC's to the 'logical' BBC's defined in the $FREQ section, and also specifies the connection of the BBC to a 'logical' IF.

Author
Matthias Schartner
Date
17.09.2018

Constructor & Destructor Documentation

Bbc::Bbc ( std::string  name)
explicit

constructor

Author
Matthias Schartner
Parameters
nameBBC name
Bbc::Bbc ( const boost::property_tree::ptree &  tree)
explicit

constructor

Author
Matthias Schartner
Parameters
treeinput property tree from xml file

Member Function Documentation

void Bbc::addBbc ( std::string  name,
unsigned int  physical_bbc_number,
std::string  if_name 
)

add new BBC assignment

Author
Matthias Schartner
Parameters
nameLogical BBC 'link' with chan_def statement in $FREQ block
physical_bbc_numberPhysical BBC# or DBE channel#
if_nameLogical IF 'link' with if_def statement in $IF block
const std::vector<Bbc_assign>& VieVS::Bbc::getBbc_assigns ( ) const
inline

get BBC definitions

Author
Matthias schartner

necessary for custom observing mode in GUI

Returns
all BBC definitions
int Bbc::numberOfBBCs ( ) const

get number of BBCs

Author
Matthias Schartner
Returns
number of BBCs

Here is the caller graph for this function:

std::vector<Bbc_assign>& VieVS::Bbc::refBbc_assigns ( )
inline

reference BBC definitions

Author
Matthias schartner

necessary for custom observing mode in GUI

Returns
reference to all BBC definitions

Here is the call graph for this function:

boost::property_tree::ptree Bbc::toPropertytree ( ) const

converts object to property tree

Author
Matthias Schartner
Returns
property tree

Here is the call graph for this function:

void Bbc::toVexBbcDefinition ( std::ofstream &  of,
const std::string &  comment = "" 
) const

writes BBC block in vex format

Author
Matthias Schartner
Parameters
ofvex file stream
commentoptional comment line

Here is the call graph for this function:

Member Data Documentation

std::vector<Bbc_assign> VieVS::Bbc::bbc_assigns_
private

list of all BBC assigns

unsigned long VieVS::Bbc::nextId = 0
staticprivate

next id for this object type


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