Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages

BaseException.cxx

00001 //File: baseException.cxx
00002 // $Header: /afs/cern.ch/user/s/sctpixel/private/cvsroot/VmeInterface/BaseException.cxx,v 1.7 2003/10/24 14:14:34 moretti Exp $
00003 
00004 #include "BaseException.h"
00005 
00007 using namespace SctPixelRod;
00008 
00009 //***************************Class BaseException**************************
00010 //
00011 // Description:
00012 //  This class is thrown if an error in a ROD operation is detected.
00013 //   
00014 //  Author(s):
00015 //    Tom Meyer (meyer@iastate.edu) - originator
00016 
00017 //  Constructors. Use defaults for destructor, copy, and assignment.
00018 
00019 BaseException::BaseException( std::string descriptor) {
00020   m_descriptor = descriptor;
00021   m_numData = 0;
00022   m_type = BASE;
00023   };  
00024 
00025 void BaseException::what(std::ostream& os) {
00026   os << "BaseException: " << getDescriptor() << std::endl;
00027 };
00028 
00030 std::ostream& operator<<(std::ostream& os, SctPixelRod::BaseException& except) {
00031   except.what(os);
00032   return os;
00033 }

Generated on Thu Dec 22 20:16:57 2005 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5