#include <Device.h>
Inheritance diagram for OSCAR::Device:

Public Methods | |
| Device (const String &name=String(), OSCARError &err=DUMMY_ERROR(noError)) | |
| Device (const Device &device) | |
| Device & | operator= (const Device &device) |
| virtual | ~Device () |
| virtual bool | Initialize () |
| virtual bool | Close () |
Protected Attributes | |
| bool | isInitialized |
| bool | isClosed |
|
||||||||||||
|
|
|
|
|
|
|
Destructor that calls Close() if the device has not been closed by a call to the Close() method The destructor checks to see whether isClosed is false, in which case it will call the Close() method.
|
|
|
Generic close device function, could be overriden and implemented according to specific application in derivative class. This function provides a method to close a device after finishing use it. "isClosed" is false if this function is not executed.
Reimplemented in OSCAR::ATISensor, OSCAR::KB2017Interface, OSCAR::PCRoboworksInterface, OSCAR::RobixInterface, and OSCAR::RoboworksInterface. |
|
|
Generic initialize function, could be overriden and implemented according to specific application in derivative class This function must be called every time after an object is created, otherwise an error will happen which indicates not initialized. In derived classes, check must be done to see if data member"isInitialized" is true in member functions in order to judge whether initialize has been executed.
Reimplemented in OSCAR::ATISensor, OSCAR::Drill, OSCAR::KB2017Interface, OSCAR::PCRoboworksInterface, OSCAR::Relay, OSCAR::RobixInterface, OSCAR::RoboworksInterface, OSCAR::Saw, OSCAR::SprayGun, and OSCAR::ToolChanger. |
|
|
|
|
|
data member to indicate whether Close() is executed. true -- has been closed false-- not be closed yet |
|
|
Data member to indicate whether Initialize() is executed. true -- has been initialized false-- not be initialized yet |
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |