Changeset 15 in flair-src for trunk/lib/FlairSensorActuator/src/VrpnClient.cpp
- Timestamp:
- 04/08/16 15:40:57 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/VrpnClient.cpp
r3 r15 26 26 using namespace flair::gui; 27 27 28 namespace flair 29 { 30 namespace sensor 31 { 28 namespace flair { 29 namespace sensor { 32 30 33 VrpnClient::VrpnClient(const FrameworkManager* parent,string name,string address,uint16_t us_period,uint8_t priority): Thread(parent,name,priority) 34 { 35 pimpl_=new VrpnClient_impl(this,name,address,us_period); 31 VrpnClient::VrpnClient(const FrameworkManager *parent, string name, 32 string address, uint16_t us_period, uint8_t priority) 33 : Thread(parent, name, priority) { 34 pimpl_ = new VrpnClient_impl(this, name, address, us_period); 36 35 } 37 36 38 VrpnClient::VrpnClient(const FrameworkManager* parent,string name,SerialPort* serialport,uint16_t us_period,uint8_t priority): Thread(parent,name,priority) 39 { 40 pimpl_=new VrpnClient_impl(this,name,serialport,us_period); 37 VrpnClient::VrpnClient(const FrameworkManager *parent, string name, 38 SerialPort *serialport, uint16_t us_period, 39 uint8_t priority) 40 : Thread(parent, name, priority) { 41 pimpl_ = new VrpnClient_impl(this, name, serialport, us_period); 41 42 } 42 43 43 VrpnClient::~VrpnClient() 44 { 45 SafeStop(); 46 Join(); 44 VrpnClient::~VrpnClient() { 45 SafeStop(); 46 Join(); 47 47 48 48 delete pimpl_; 49 49 } 50 50 51 Layout* VrpnClient::GetLayout(void) const 52 { 53 return (Layout*)(pimpl_->setup_tab); 51 Layout *VrpnClient::GetLayout(void) const { 52 return (Layout *)(pimpl_->setup_tab); 54 53 } 55 54 56 TabWidget* VrpnClient::GetTabWidget(void) const 57 { 58 return pimpl_->tab; 59 } 55 TabWidget *VrpnClient::GetTabWidget(void) const { return pimpl_->tab; } 60 56 61 bool VrpnClient::UseXbee(void) const 62 { 63 return pimpl_->UseXbee(); 64 } 57 bool VrpnClient::UseXbee(void) const { return pimpl_->UseXbee(); } 65 58 66 void VrpnClient::Run(void) 67 { 68 pimpl_->Run(); 69 } 59 void VrpnClient::Run(void) { pimpl_->Run(); } 70 60 71 61 } // end namespace sensor
Note:
See TracChangeset
for help on using the changeset viewer.