Ignore:
Timestamp:
Sep 7, 2014, 10:20:01 AM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP_free/pppClient.cpp

    r6067 r6069  
    8686//////////////////////////////////////////////////////////////////////////////
    8787void t_pppClient::putEphemeris(const t_eph* eph) {
     88  const t_ephGPS* ephGPS = dynamic_cast<const t_ephGPS*>(eph);
     89  const t_ephGlo* ephGlo = dynamic_cast<const t_ephGlo*>(eph);
     90  const t_ephGal* ephGal = dynamic_cast<const t_ephGal*>(eph);
     91  if      (ephGPS) {
     92    _client->putNewEph(new t_ephGPS(*ephGPS));
     93  }
     94  else if (ephGlo) {
     95    _client->putNewEph(new t_ephGlo(*ephGlo));
     96  }
     97  else if (ephGal) {
     98    _client->putNewEph(new t_ephGal(*ephGal));
     99  }
    88100}
    89101
Note: See TracChangeset for help on using the changeset viewer.