General Purpose Geodetic Library
NsSessionHandler Class Reference

#include <NsSessionHandler.h>

Inheritance diagram for NsSessionHandler:
NsSessionEditDialog

Public Types

enum  SaveStatus {
  SS_UNDEF = 0 , SS_OK = 1 , SS_NOT_READY = 2 , SS_FILE_EXISTS = 3 ,
  SS_SAVING_ERROR = 4 , SS_CATALOG_ERROR = 5 , SS_INTERNAL_ERROR = 6
}
 

Public Member Functions

 NsSessionHandler (const QString &fileName, const QString &fileNameAux, SgTaskConfig *, SgParametersDescriptor *, SgVlbiSessionInfo::OriginType)
 
 NsSessionHandler (SgTaskConfig *, SgParametersDescriptor *)
 
virtual ~NsSessionHandler ()
 
bool isImportOk () const
 
const QString & getFileName () const
 
const QString & getFileNameAux () const
 
SgVlbiSessionInfo::OriginType getOtype () const
 
const SgTaskConfigcfg () const
 
const SgParametersDescriptorparametersDescriptor () const
 
const SgVlbiSessionsession () const
 
void setFileName (const QString &f)
 
void setFileNameAux (const QString &f)
 
void setOtype (SgVlbiSessionInfo::OriginType ot)
 
SgTaskConfigcfg ()
 
SgParametersDescriptorparametersDescriptor ()
 
SgVlbiSessionsession ()
 
QString className () const
 
bool importSession (bool guiExpected)
 
bool performPia ()
 
bool saveResults ()
 
void process ()
 
void calcIono ()
 
void zeroIono ()
 
void changeActiveBand (int idx)
 
void generateReport (bool isExtended=false)
 
void generateReport4StcPars ()
 
void generateReport4Tzds ()
 
void generateAposterioriFiles ()
 
void exportDataToNgs ()
 
bool exportDataIntoVgosDa (QString output=QString(""))
 
bool exportDataIntoVgosDb (QString output=QString(""))
 
void generateMyReport ()
 
void addUserComment (const QString &comment)
 

Protected Member Functions

void initData ()
 
bool initSessionFromDbh (bool guiExpected)
 
bool initSessionFromOdb (bool guiExpected)
 
bool initSessionFromVda (bool guiExpected)
 
void setupCatsDbhFileNames (const QString &fName, const QString &fName2)
 
void setupDogsDbhFileNames (const QString &fileName)
 
void setupVgosDbFileNames (const QString &fileName)
 
void setupVgosDaFileNames (const QString &fileName)
 
int inquireCat (const QString &, int, QString &, QString &)
 
int notifyCat (const QString &, bool, QString &)
 
bool exportDataIntoDbh ()
 
virtual bool canSave ()
 
void postSave ()
 

Protected Attributes

bool isImportOk_
 
SgVlbiSessionInfo::OriginType oType_
 
QString fileName_
 
QString fileNameAux_
 
QString path2DbhFiles_
 
QMap< QString, SgDbhImage * > dbhImageByKey_
 
QMap< QString, QString > dbhNameByKey_
 
QMap< QString, QString > dbhPathByKey_
 
QString path2VdbFiles_
 
QString vdbWrapperFileName_
 
SgVgosDbvgosDb_
 
SaveStatus saveStatus_
 
QString path2VdaFiles_
 
SgVlbiSessionsession_
 
SgTaskConfigconfig_
 
SgParametersDescriptorparametersDescriptor_
 
SgSolutionReporterreporter_
 
int activeBand_
 

Friends

class NsScrPrx4SessionHandler
 

Detailed Description

====================================================================================================

Definition at line 47 of file NsSessionHandler.h.

Member Enumeration Documentation

◆ SaveStatus

Enumerator
SS_UNDEF 
SS_OK 
SS_NOT_READY 
SS_FILE_EXISTS 
SS_SAVING_ERROR 
SS_CATALOG_ERROR 
SS_INTERNAL_ERROR 

Definition at line 51 of file NsSessionHandler.h.

Constructor & Destructor Documentation

◆ NsSessionHandler() [1/2]

NsSessionHandler::NsSessionHandler ( const QString &  fileName,
const QString &  fileNameAux,
SgTaskConfig config,
SgParametersDescriptor parametersDescriptor,
SgVlbiSessionInfo::OriginType  oType 
)

A constructor.

Definition at line 62 of file NsSessionHandler.cpp.

References config, config_, initData(), oType_, parametersDescriptor(), parametersDescriptor_, reporter_, session_, and vgosDb_.

◆ NsSessionHandler() [2/2]

NsSessionHandler::NsSessionHandler ( SgTaskConfig config,
SgParametersDescriptor parametersDescriptor 
)

◆ ~NsSessionHandler()

NsSessionHandler::~NsSessionHandler ( )
virtual

A destructor. Frees allocated memory.

Definition at line 144 of file NsSessionHandler.cpp.

References config, config_, dbhImageByKey_, dbhNameByKey_, dbhPathByKey_, parametersDescriptor_, reporter_, session_, and vgosDb_.

Member Function Documentation

◆ addUserComment()

void NsSessionHandler::addUserComment ( const QString &  comment)

◆ calcIono()

void NsSessionHandler::calcIono ( )

◆ canSave()

virtual bool NsSessionHandler::canSave ( )
inlineprotectedvirtual

◆ cfg() [1/2]

SgTaskConfig* NsSessionHandler::cfg ( )
inline

Definition at line 94 of file NsSessionHandler.h.

References config_.

◆ cfg() [2/2]

const SgTaskConfig* NsSessionHandler::cfg ( ) const
inline

Definition at line 86 of file NsSessionHandler.h.

References config_.

Referenced by executeScript().

◆ changeActiveBand()

void NsSessionHandler::changeActiveBand ( int  idx)

Definition at line 274 of file NsSessionHandler.cpp.

References activeBand_, config_, and SgTaskConfig::setActiveBandIdx().

◆ className()

◆ exportDataIntoDbh()

◆ exportDataIntoVgosDa()

◆ exportDataIntoVgosDb()

◆ exportDataToNgs()

◆ generateAposterioriFiles()

◆ generateMyReport()

◆ generateReport()

◆ generateReport4StcPars()

◆ generateReport4Tzds()

◆ getFileName()

const QString& NsSessionHandler::getFileName ( ) const
inline

◆ getFileNameAux()

const QString& NsSessionHandler::getFileNameAux ( ) const
inline

Definition at line 84 of file NsSessionHandler.h.

References fileNameAux_.

Referenced by NsScrPrx4SessionHandler::getFileNameAux().

◆ getOtype()

SgVlbiSessionInfo::OriginType NsSessionHandler::getOtype ( ) const
inline

◆ importSession()

◆ initData()

◆ initSessionFromDbh()

◆ initSessionFromOdb()

◆ initSessionFromVda()

◆ inquireCat()

int NsSessionHandler::inquireCat ( const QString &  databaseName,
int  version,
QString &  str1,
QString &  str2 
)
protected

◆ isImportOk()

bool NsSessionHandler::isImportOk ( ) const
inline

Definition at line 81 of file NsSessionHandler.h.

References isImportOk_.

◆ notifyCat()

◆ parametersDescriptor() [1/2]

SgParametersDescriptor* NsSessionHandler::parametersDescriptor ( )
inline

Definition at line 95 of file NsSessionHandler.h.

References parametersDescriptor_.

◆ parametersDescriptor() [2/2]

const SgParametersDescriptor* NsSessionHandler::parametersDescriptor ( ) const
inline

Definition at line 87 of file NsSessionHandler.h.

References parametersDescriptor_.

Referenced by NsSessionHandler(), and executeScript().

◆ performPia()

◆ postSave()

void NsSessionHandler::postSave ( )
inlineprotected

Definition at line 175 of file NsSessionHandler.h.

◆ process()

void NsSessionHandler::process ( )

Definition at line 252 of file NsSessionHandler.cpp.

References SgVlbiSession::process(), and session_.

◆ saveResults()

◆ session() [1/2]

SgVlbiSession* NsSessionHandler::session ( )
inline

Definition at line 96 of file NsSessionHandler.h.

References session_.

◆ session() [2/2]

const SgVlbiSession* NsSessionHandler::session ( ) const
inline

Definition at line 88 of file NsSessionHandler.h.

References session_.

Referenced by executeScript().

◆ setFileName()

void NsSessionHandler::setFileName ( const QString &  f)
inline

Definition at line 91 of file NsSessionHandler.h.

References fileName_.

Referenced by NsScrPrx4SessionHandler::setFileName().

◆ setFileNameAux()

void NsSessionHandler::setFileNameAux ( const QString &  f)
inline

Definition at line 92 of file NsSessionHandler.h.

References fileNameAux_.

Referenced by NsScrPrx4SessionHandler::setFileNameAux().

◆ setOtype()

void NsSessionHandler::setOtype ( SgVlbiSessionInfo::OriginType  ot)
inline

Definition at line 93 of file NsSessionHandler.h.

References oType_.

Referenced by NsScrPrx4SessionHandler::setInputType().

◆ setupCatsDbhFileNames()

void NsSessionHandler::setupCatsDbhFileNames ( const QString &  fName,
const QString &  fName2 
)
protected

◆ setupDogsDbhFileNames()

void NsSessionHandler::setupDogsDbhFileNames ( const QString &  fileName)
protected

◆ setupVgosDaFileNames()

void NsSessionHandler::setupVgosDaFileNames ( const QString &  fileName)
protected

Definition at line 638 of file NsSessionHandler.cpp.

References fileName_, NsSetup::getPath2VgosDaFiles(), and setup.

Referenced by importSession().

◆ setupVgosDbFileNames()

◆ zeroIono()

void NsSessionHandler::zeroIono ( )

Definition at line 268 of file NsSessionHandler.cpp.

References config_, session_, and SgVlbiSession::zerofyIonoCorrections().

Friends And Related Function Documentation

◆ NsScrPrx4SessionHandler

friend class NsScrPrx4SessionHandler
friend

Definition at line 49 of file NsSessionHandler.h.

Member Data Documentation

◆ activeBand_

◆ config_

◆ dbhImageByKey_

QMap<QString, SgDbhImage*> NsSessionHandler::dbhImageByKey_
protected

Definition at line 143 of file NsSessionHandler.h.

Referenced by ~NsSessionHandler(), exportDataIntoDbh(), and initSessionFromDbh().

◆ dbhNameByKey_

QMap<QString, QString> NsSessionHandler::dbhNameByKey_
protected

◆ dbhPathByKey_

QMap<QString, QString> NsSessionHandler::dbhPathByKey_
protected

◆ fileName_

QString NsSessionHandler::fileName_
protected

◆ fileNameAux_

QString NsSessionHandler::fileNameAux_
protected

Definition at line 140 of file NsSessionHandler.h.

Referenced by getFileNameAux(), importSession(), and setFileNameAux().

◆ isImportOk_

bool NsSessionHandler::isImportOk_
protected

Definition at line 137 of file NsSessionHandler.h.

Referenced by importSession(), initData(), isImportOk(), and performPia().

◆ oType_

◆ parametersDescriptor_

◆ path2DbhFiles_

QString NsSessionHandler::path2DbhFiles_
protected

◆ path2VdaFiles_

QString NsSessionHandler::path2VdaFiles_
protected

Definition at line 152 of file NsSessionHandler.h.

◆ path2VdbFiles_

QString NsSessionHandler::path2VdbFiles_
protected

Definition at line 147 of file NsSessionHandler.h.

Referenced by initSessionFromOdb(), and setupVgosDbFileNames().

◆ reporter_

◆ saveStatus_

◆ session_

SgVlbiSession* NsSessionHandler::session_
protected

Definition at line 154 of file NsSessionHandler.h.

Referenced by NsSessionEditDialog::NsSessionEditDialog(), NsSessionHandler(), ~NsSessionHandler(), NsSessionEditDialog::adjustAmbiguityMultipliers(), NsSessionEditDialog::calcIono(), calcIono(), NsSessionEditDialog::canSave(), NsSessionEditDialog::changeActiveBand(), NsSessionEditDialog::changeNumOfAmbigSpacing4MarkedPoints(), NsSessionEditDialog::changeNumOfSubAmbig4MarkedPoints(), NsSessionEditDialog::changePrimaryBand(), NsSessionEditDialog::clearAllEditings(), NsSessionEditDialog::clearAuxSigmas(), NsSessionEditDialog::detectAndProcessClockBreaks(), NsSessionEditDialog::dispatchChangeOfClocksParameterModel(), NsSessionEditDialog::dispatchChangeOfYAxis(), NsSessionEditDialog::dispatchChangeOfZenithParameterModel(), NsSessionEditDialog::displayExcludedObs(), NsSessionEditDialog::displayExcludedObs_old(), NsSessionEditDialog::displayPointInfo(), NsSessionEditDialog::excludeMarkedPoints(), NsSessionEditDialog::executeTestAction(), exportDataIntoDbh(), exportDataIntoVgosDa(), exportDataIntoVgosDb(), exportDataToNgs(), NsSessionEditDialog::findClockBreakEvent(), generateAposterioriFiles(), generateMyReport(), generateReport(), generateReport4StcPars(), generateReport4Tzds(), NsSessionEditDialog::generateRequest4Refringing(), NsSessionEditDialog::includeMarkedPoints(), initData(), initSessionFromDbh(), initSessionFromOdb(), initSessionFromVda(), NsSessionEditDialog::loadIntermediateResults(), NsSessionEditDialog::netIdCurrentIndexChanged(), notifyCat(), performPia(), NsSessionEditDialog::postSave(), NsSessionEditDialog::process(), process(), NsSessionEditDialog::processClockBreakMarks(), NsSessionEditDialog::processClockBreakMarksNew(), NsSessionEditDialog::processRmOutButton(), NsSessionEditDialog::processTestFunctionN1(), NsSessionEditDialog::runExternalCommand(), NsSessionEditDialog::saveIntermediateResults(), saveResults(), NsSessionEditDialog::scanAmbiguityMultipliers(), session(), NsSessionEditDialog::tab4Band(), NsSessionEditDialog::tab4BandPlots(), NsSessionEditDialog::tab4BaselinesInfo(), NsSessionEditDialog::tab4BaselinesPlot(), NsSessionEditDialog::tab4GeneralInfo(), NsSessionEditDialog::tab4Options(), NsSessionEditDialog::tab4SessionPlot(), NsSessionEditDialog::tab4SourcesInfo(), NsSessionEditDialog::tab4StationsInfo(), NsSessionEditDialog::tab4StationsPlot(), NsSessionEditDialog::updateResiduals(), NsSessionEditDialog::updateSessionWideSolutions(), NsSessionEditDialog::zeroIono(), and zeroIono().

◆ vdbWrapperFileName_

QString NsSessionHandler::vdbWrapperFileName_
protected

Definition at line 148 of file NsSessionHandler.h.

Referenced by importSession(), initSessionFromOdb(), and setupVgosDbFileNames().

◆ vgosDb_

SgVgosDb* NsSessionHandler::vgosDb_
protected

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