Changeset 309 in flair-src for trunk/lib/FlairSensorActuator/src/VrpnClient.cpp
- Timestamp:
- Mar 13, 2019, 4:40:18 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/VrpnClient.cpp
r294 r309 44 44 singleton = this; 45 45 } 46 46 47 47 pimpl_ = new VrpnClient_impl(this, name, address); 48 48 } 49 49 50 51 VrpnClient::VrpnClient(std::string name, 52 uint16_t port, uint8_t priority) 53 : Thread(getFrameworkManager(), name, priority) { 54 if (singleton != NULL) { 55 SimpleWarn("VrpnClient should be instanced only one time!\n"); 56 SimpleWarn("Next calls to GetVrpnClient() will return the first created VrpnClient (%s)\n",singleton->ObjectName().c_str()); 57 } else { 58 singleton = this; 59 } 60 61 pimpl_ = new VrpnClient_impl(this, name, port); 62 } 63 50 64 VrpnClient::VrpnClient(string name, 51 65 SerialPort *serialport, uint16_t us_period, … … 69 83 } 70 84 85 VrpnClient::ConnectionType_t VrpnClient::ConnectionType(void) const { 86 return pimpl_->connectionType; 87 } 88 71 89 Layout *VrpnClient::GetLayout(void) const { 72 90 return (Layout *)(pimpl_->setup_tab); … … 75 93 TabWidget *VrpnClient::GetTabWidget(void) const { return pimpl_->tab; } 76 94 77 bool VrpnClient::UseXbee(void) const { return pimpl_->UseXbee(); }78 79 95 void VrpnClient::Run(void) { pimpl_->Run(); } 80 96
Note:
See TracChangeset
for help on using the changeset viewer.