Changeset 3280 in ntrip


Ignore:
Timestamp:
Apr 27, 2011, 10:45:42 AM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM3/ephemeris.cpp

    r3279 r3280  
    1111#include "timeutils.h"
    1212#include "bnctime.h"
     13#include "bncapp.h"
    1314
    1415using namespace std;
     
    457458    }
    458459
    459     if (changed) {
     460    if (changed && ((bncApp*) qApp)->mode() == bncApp::batchPostProcessing) {
    460461      bncTime newHTime(ww, (double) tow);
    461462      cout << "GLONASS " << ee->almanac_number <<  " Time Changed at "
  • trunk/BNC/bncapp.h

    r3232 r3280  
    4141  Q_OBJECT
    4242  public:
     43    enum e_mode {interactive, nonInteractive, batchPostProcessing};
    4344    bncApp(int& argc, char* argv[], bool GUIenabled);
    4445    virtual ~bncApp(); 
     46    e_mode mode() const {return _mode;}
     47    void   setMode(e_mode mode) {_mode = mode;}
    4548    void setPort(int port);
    4649    void setPortCorr(int port);
     
    125128    int                 _GLOFreq[PRN_GLONASS_NUM];
    126129    bncComb*            _bncComb;
     130    e_mode              _mode;
    127131 public:
    128132    bncPPPclient*       _bncPPPclient;
  • trunk/BNC/bncmain.cpp

    r3251 r3280  
    112112  if (GUIenabled) {
    113113
     114    app.setMode(bncApp::interactive);
     115
    114116    QString fontString = settings.value("font").toString();
    115117    if ( !fontString.isEmpty() ) {
     
    149151    // --------------------------------
    150152    if ( rawFileName.isEmpty() ) {
     153      app.setMode(bncApp::nonInteractive);
    151154      caster->slotReadMountPoints();
    152155      if (caster->numStations() == 0) {
     
    158161    // -----------------------------
    159162    else {
     163      app.setMode(bncApp::batchPostProcessing);
     164
    160165      if ( format.isEmpty() || staID.isEmpty() ) {
    161166        cout << printHelp.toAscii().data() << endl;
Note: See TracChangeset for help on using the changeset viewer.