University of Sheffield   

    The Simons
    Component Library

Introduction   Class Hierarchy   Class Listing   Index of Classes   Index of Methods   Header Files  

NoResponse.h

00001 
00002 //
00003 //  SCL : Simons Component Library
00004 //
00006 //
00007 //  Filename:   NoResponse.h
00008 //  Contents:   NoResponse class, signalling an unresponsive device
00009 //  Author:     Anthony J H Simons
00010 //  Revised:    1 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_NO_RESPONSE
00020 #define SCL_NO_RESPONSE
00021 
00022 #include "DeviceError.h"        // Include my superclass type
00023 #include "NoResponseID.h"       // Include my pointer type
00024 
00025 #include "StringID.h"           // Depend on the pointer type
00026 
00037 
00038 class NoResponse : public DeviceError {
00039 protected:
00040         NoResponse(const NoResponse&);
00041 public:
00042         NoResponse();
00043         virtual ~NoResponse();
00044         NoResponse(ObjectID, StringID);
00045         virtual ObjectID clone() const;
00046 };
00047 
00049 
00050 
00052 
00055 inline NoResponseID::NoResponseID() {}
00056 
00058 inline NoResponseID::~NoResponseID() {}
00059 
00063 inline NoResponseID::NoResponseID(const Null* null) :
00064         DeviceErrorID(null) {}
00065         
00069 inline NoResponseID::NoResponseID(const NoResponse* exception) :
00070         DeviceErrorID(exception) {}
00071         
00075 inline NoResponseID::NoResponseID(const NoResponseID& pointer) :
00076         DeviceErrorID(pointer) {}
00077         
00081 inline NoResponseID& NoResponseID::operator=(const NoResponse* exception) {
00082         assign(exception);
00083         return *this;
00084 }
00085 
00090 inline NoResponseID& NoResponseID::operator=(const NoResponseID& pointer) {
00091         assign(pointer);
00092         return *this;
00093 }
00094 
00095 
00096 #endif
00097 

Generated on Fri May 5 17:17:15 2006 for The Simons Component Library by doxygen1.3