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

ippStringResponse.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 /* ippStringResponse class **************************************************
00011 
00012 Use this for data from GetErrorInfo and EnumTools.
00013 
00014 This returns one string.
00015 
00016 */
00017 #pragma once
00018 #include "ippResponse.h"
00019 #include <string>
00020 
00021 class IPPDME_EXT_CLASS ippStringResponse : public ippResponse {
00022 
00023 private:
00024   std::string _data;
00025 
00026 public:
00027   ippStringResponse(unsigned int inTagNumber):
00028     ippResponse(inTagNumber, CommandTag, DataString){}
00029   ippStringResponse(unsigned int inTagNumber, const char * inData):
00030     ippResponse(inTagNumber, CommandTag, DataString){ _data = inData; }
00031   
00032   virtual ~ippStringResponse(){}
00033 
00034   void setData(const char * inData){ _data = inData; }
00035 
00036   const char * getData() const  { return _data.c_str(); }
00037   virtual std::string getResponseString() const;
00038 private:
00039   // prohibited copy constructor:
00040   ippStringResponse(const ippStringResponse&);
00041   void operator=(const ippStringResponse&);
00042 
00043 };
00044 IPP_DECLARE_SMARTPOINTER(ippStringResponse);

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