Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ippGetErrorInfoCommand.h

Go to the documentation of this file.
00001 // 
00002 // DISCLAIMER: 
00003 //  This software was produced by the National Institute of Standards 
00004 //  and Technology (NIST), an agency of the U.S. government, and by statute is 
00005 //  not subject to copyright in the United States.  Recipients of this 
00006 //  software assume all responsibility associated with its operation,
00007 //  modification,maintenance, and subsequent redistribution. 
00008 //
00009 //  See NIST Administration Manual 4.09.07 b and Appendix I. 
00010 #pragma once
00011 /* ippGetErrorInfoCommand class *******************************************
00012 
00013 The errorNumber identifies theError, so the constructor takes an
00014 inErrorNumber argument but not an inTheError argument. Also, there is
00015 only one "set" method, setTheErrorAndErrorNumber, which takes
00016 inErrorNumber as its argument.
00017 
00018 If inErrorNumber is not the number of a defined error, the constructor
00019 and the setTheErrorAndErrorNumber method set the error to a generic
00020 ippError
00021 
00022 */
00023 #include "ippdme/Command/ippCommand.h"
00024 #include "ippdme/ippError.h"
00025 
00026 
00027 class  IPPDME_EXT_CLASS ippGetErrorInfoCommand : public ippCommand
00028 {
00029   
00030 public:
00031   ippGetErrorInfoCommand(unsigned int tgNum);
00032 
00033   ippGetErrorInfoCommand(unsigned int tgNum, ippErrorNameType inErrorNumber); 
00034   virtual ~ippGetErrorInfoCommand(){}
00035 
00036   ippErrorNameType getErrorNumber()const { return _theError.getName(); }
00037   const ippError* getTheError() const { return &_theError; }
00038 
00039   virtual std::string getCommandString() const;
00040 
00041 private:
00042   ippError _theError;
00043 private:
00044   // prohibited copy constructor/operator
00045   ippGetErrorInfoCommand(const ippGetErrorInfoCommand&);
00046   void operator=(const ippGetErrorInfoCommand&);
00047 };
00048 IPP_DECLARE_SMARTPOINTER(ippGetErrorInfoCommand);

Generated on Wed Nov 8 00:19:56 2006 for IPPDME by  doxygen 1.4.1