University of Sheffield   

    The Simons
    Component Library

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

NotFound.h

00001 
00002 //
00003 //  SCL : Simons Component Library
00004 //
00006 //
00007 //  Filename:   NotFound.h
00008 //  Contents:   NotFound class, signalling an unknown 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_NOT_FOUND
00020 #define SCL_NOT_FOUND
00021 
00022 #include "DeviceError.h"        // Include my superclass type
00023 #include "NotFoundID.h"         // Include my pointer type
00024 
00025 #include "StringID.h"           // Depend on the pointer type
00026 
00035 
00036 class NotFound : public DeviceError {
00037 protected:
00038         NotFound(const NotFound&);
00039 public:
00040         NotFound();
00041         virtual ~NotFound();
00042         NotFound(ObjectID, StringID);
00043         virtual ObjectID clone() const;
00044 };
00045 
00047 
00048 
00050 
00053 inline NotFoundID::NotFoundID() {}
00054 
00056 inline NotFoundID::~NotFoundID() {}
00057 
00061 inline NotFoundID::NotFoundID(const Null* null) :
00062         DeviceErrorID(null) {}
00063         
00067 inline NotFoundID::NotFoundID(const NotFound* exception) :
00068         DeviceErrorID(exception) {}
00069         
00073 inline NotFoundID::NotFoundID(const NotFoundID& pointer) :
00074         DeviceErrorID(pointer) {}
00075         
00079 inline NotFoundID& NotFoundID::operator=(const NotFound* exception) {
00080         assign(exception);
00081         return *this;
00082 }
00083 
00088 inline NotFoundID& NotFoundID::operator=(const NotFoundID& pointer) {
00089         assign(pointer);
00090         return *this;
00091 }
00092 
00093 
00094 #endif
00095 

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