43 class Device :
public Worker {
52 Device(
const std::string &name);
54 virtual bool Find(ConfigIO &cfg);
79 class DeviceRef :
public WorkerRef {
#define DABC_REFERENCE(RefClass, ParentClass, T)
bool DeviceDestroyed() const
virtual void ObjectCleanup()
Central cleanup method for worker.
virtual const char * ClassName() const
Returns class name of the object instance.
virtual bool Find(ConfigIO &cfg)
Method to locate object in xml file.
bool fDeviceDestroyed
if true, device and all transports should not be used
Mutex * DeviceMutex() const
Returns device mutex - it is just object mutex.
virtual Transport * CreateTransport(Command cmd, const Reference &port)
virtual int ExecuteCommand(Command cmd)
Main method where commands are executed.
Device(const std::string &name)
Mutex * ObjectMutex() const
Returns mutex, used for protection of Object data members.
Object * GetObject() const
Return pointer on the object.