Changeset 5761 in ntrip for trunk/BNC/src/PPP/pppClient.h


Ignore:
Timestamp:
Aug 3, 2014, 2:09:40 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppClient.h

    r5758 r5761  
    2020class t_pppClient {
    2121 public:
    22   t_pppClient();                                                     
     22  t_pppClient(const t_options* opt);                                                     
    2323  ~t_pppClient();                                                     
    24   void setOptions(const t_options* opt);                         
     24
    2525  void putGPSEphemeris(const t_ephGPS* eph);                 
    2626  void putGloEphemeris(const t_ephGlo* eph);                 
     
    3030  void processEpoch(int numSatRover, const t_pppSatObs* satObsRover,
    3131                    t_output* output);                       
     32
    3233  const t_ephPool* ephPool() const {return _ephPool;}
    3334  const t_obsPool* obsPool() const {return _obsPool;}
    3435  const bncAntex*  antex() const {return _antex;}
    3536  const t_station* staRover() const {return _staRover;}
    36   double offGG() const {return _offGG;}
     37  double           offGG() const {return _offGG;}
     38
     39  std::ostringstream& log() {return *_log;}
     40  const t_options*    opt() const {return _opt;}
     41
    3742  static void bancroft(const Matrix& BBpass, ColumnVector& pos);
    38 
    39   std::ostringstream* _log;
    40   t_options*          _opt;
    4143
    4244  static t_pppClient* instance();
     
    6466  double                 _offGG;
    6567  std::vector<t_satObs*> _obsRover;
    66 
     68  std::ostringstream*    _log;
     69  t_options*             _opt;
    6770};
    6871
    6972}; // namespace BNC
    7073
    71 // Pointer to the main object (thread-specific)
    7274#define PPP_CLIENT (BNC::t_pppClient::instance())
    73 
    74 // Log stream abbreviation
    75 #define LOG (*PPP_CLIENT->_log)
    76 
    77 // Options abbreviation
    78 #define OPT (PPP_CLIENT->_opt)
     75#define LOG        (BNC::t_pppClient::instance()->log())
     76#define OPT        (BNC::t_pppClient::instance()->opt())
    7977
    8078#endif
Note: See TracChangeset for help on using the changeset viewer.