TwiceAsNice  2019-02-18
Public Member Functions | Public Attributes | List of all members
Lics::LicsIIFSide Class Reference

This class represents the SX or DX or both sides of the LBT. More...

#include <LicsIIFSide.h>

Collaboration diagram for Lics::LicsIIFSide:
Collaboration graph

Public Member Functions

 LicsIIFSide (const enum Sid anysdx=SIDE_NONE)
 
 LicsIIFSide (const std::string &fstation)
 construct from astring like "blabla right" or "bla both" or "sx" or "dx". More...
 
 LicsIIFSide (const LicsIIFSide &oth)
 copy constructor More...
 
LicsIIFSideoperator= (const LicsIIFSide &oth)
 Assignment operator. Deep copy of this state. More...
 
std::string toString () const
 Generate a string as used in the ICS initializations. More...
 
std::string toStringCfg () const
 Generate a string as used in the file names. More...
 
int toIntIdx () const
 Generate a index 0 or 1 suitable for the two indices of two proxies. More...
 
 LicsIIFSide (const enum Sid anysdx=SIDE_NONE)
 
 LicsIIFSide (const std::string &fstation)
 
 LicsIIFSide (const LicsIIFSide &oth)
 
LicsIIFSideoperator= (const LicsIIFSide &oth)
 
std::string toString () const
 
std::string toStringCfg () const
 
int toIntIdx () const
 

Public Attributes

enum Sid s
 

Detailed Description

This class represents the SX or DX or both sides of the LBT.

Constructor & Destructor Documentation

◆ LicsIIFSide() [1/6]

Lics::LicsIIFSide::LicsIIFSide ( const enum Sid  anysdx = SIDE_NONE)

Default ctor. Initialize the state as "no side" (of both)

Parameters
anysdxAn enumerated constant indicating left, right, none or both.
Since
2017-01-17

◆ LicsIIFSide() [2/6]

Lics::LicsIIFSide::LicsIIFSide ( const std::string &  fstation)

construct from astring like "blabla right" or "bla both" or "sx" or "dx".


Parameters
fstationA string of the format found in the FOCAL_STATION property in ltcs.iif-dev.cfg
Since
2017-01-17
2017-05-27 Interpret a "LIRCS" in the name as "both". Used for some drotator names.

◆ LicsIIFSide() [3/6]

Lics::LicsIIFSide::LicsIIFSide ( const LicsIIFSide oth)

copy constructor


Parameters
othThe side to be duplicated
Since
2017-01-17

◆ LicsIIFSide() [4/6]

Lics::LicsIIFSide::LicsIIFSide ( const enum Sid  anysdx = SIDE_NONE)

◆ LicsIIFSide() [5/6]

Lics::LicsIIFSide::LicsIIFSide ( const std::string &  fstation)

◆ LicsIIFSide() [6/6]

Lics::LicsIIFSide::LicsIIFSide ( const LicsIIFSide oth)

Member Function Documentation

◆ operator=() [1/2]

Lics::LicsIIFSide & Lics::LicsIIFSide::operator= ( const LicsIIFSide oth)

Assignment operator. Deep copy of this state.


Since
2017-01-17

◆ operator=() [2/2]

LicsIIFSide& Lics::LicsIIFSide::operator= ( const LicsIIFSide oth)

◆ toIntIdx() [1/2]

int Lics::LicsIIFSide::toIntIdx ( ) const

◆ toIntIdx() [2/2]

int Lics::LicsIIFSide::toIntIdx ( ) const

Generate a index 0 or 1 suitable for the two indices of two proxies.


Returns
0 if SX, 1 if DX, -1 otherwise.
Since
2017-01-17

◆ toString() [1/2]

std::string Lics::LicsIIFSide::toString ( ) const

Generate a string as used in the ICS initializations.


Returns
the standard string representation "left", "right" or "both" or "none".
Since
2017-01-17

◆ toString() [2/2]

std::string Lics::LicsIIFSide::toString ( ) const

◆ toStringCfg() [1/2]

std::string Lics::LicsIIFSide::toStringCfg ( ) const

Generate a string as used in the file names.


Returns
the standard string representation "sx" or "dx". If this is not uniquely either SX or DX, an empty string is returned.
Since
2017-01-17

◆ toStringCfg() [2/2]

std::string Lics::LicsIIFSide::toStringCfg ( ) const

Member Data Documentation

◆ s

enum Sid Lics::LicsIIFSide::s

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