Changeset 5761 in ntrip for trunk/BNC/src/PPP/pppClient.cpp
- Timestamp:
- Aug 3, 2014, 2:09:40 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppClient.cpp
r5760 r5761 74 74 // Constructor 75 75 ////////////////////////////////////////////////////////////////////////////// 76 t_pppClient::t_pppClient() { 77 _opt = 0; 76 t_pppClient::t_pppClient(const t_options* opt) { 78 77 _output = 0; 79 _ antex = 0;78 _opt = new t_options(*opt); 80 79 _log = new ostringstream(); 81 80 _ephPool = new t_ephPool(); … … 83 82 _staRover = new t_station(); 84 83 _filter = new t_filter(); 84 85 if (!_opt->_antexFile.empty()) { 86 _antex = new bncAntex(_opt->_antexFile.c_str()); 87 } 88 else { 89 _antex = 0; 90 } 91 85 92 CLIENTS.setLocalData(this); // CLIENTS takes ownership over "this" 86 93 } … … 98 105 delete _filter; 99 106 clearObs(); 100 }101 102 //103 //////////////////////////////////////////////////////////////////////////////104 void t_pppClient::setOptions(const t_options* opt) {105 delete _opt;106 _opt = new t_options(*opt);107 108 delete _antex; _antex = 0;109 if (!_opt->_antexFile.empty()) {110 _antex = new bncAntex(_opt->_antexFile.c_str());111 }112 107 } 113 108
Note:
See TracChangeset
for help on using the changeset viewer.