![]() |
The Simons
|
00001 00002 // 00003 // SCL : Simons Component Library 00004 // 00006 // 00007 // Filename: DeviceBusy.h 00008 // Contents: DeviceBusy class, signalling an unresponsive device 00009 // Author: Anthony J H Simons 00010 // Revised: 16 December 2005 00011 00012 // This software is distributed free in the hope that others will 00013 // find it useful. However, it comes WITHOUT ANY WARRANTY. No 00014 // liability can be accepted for software failure, merchantability 00015 // or fitness for a particular purpose. You can redistribute this 00016 // software in its original form, or in a modified form, provided 00017 // that this disclaimer is retained in the file banner. 00018 00019 #ifndef SCL_DEVICE_BUSY 00020 #define SCL_DEVICE_BUSY 00021 00022 #include "DeviceError.h" // Include my superclass type 00023 #include "DeviceBusyID.h" // Include my pointer type 00024 00025 #include "StringID.h" // Depend on the pointer type 00026 00036 00037 class DeviceBusy : public DeviceError { 00038 protected: 00039 DeviceBusy(const DeviceBusy&); 00040 public: 00041 DeviceBusy(); 00042 virtual ~DeviceBusy(); 00043 DeviceBusy(ObjectID, StringID); 00044 virtual ObjectID clone() const; 00045 }; 00046 00048 00049 00051 00054 inline DeviceBusyID::DeviceBusyID() {} 00055 00057 inline DeviceBusyID::~DeviceBusyID() {} 00058 00062 inline DeviceBusyID::DeviceBusyID(const Null* null) : 00063 DeviceErrorID(null) {} 00064 00068 inline DeviceBusyID::DeviceBusyID(const DeviceBusy* exception) : 00069 DeviceErrorID(exception) {} 00070 00074 inline DeviceBusyID::DeviceBusyID(const DeviceBusyID& pointer) : 00075 DeviceErrorID(pointer) {} 00076 00080 inline DeviceBusyID& DeviceBusyID::operator=(const DeviceBusy* exception) { 00081 assign(exception); 00082 return *this; 00083 } 00084 00089 inline DeviceBusyID& DeviceBusyID::operator=(const DeviceBusyID& pointer) { 00090 assign(pointer); 00091 return *this; 00092 } 00093 00094 00095 #endif 00096