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

ippPtMeasOrGetResponse.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 
00011 /* ippPtMeasOrGetResponse class **************************************************
00012 
00013 Use this for data resulting from a PtMeas or Get command.
00014 See documentation of XYZResponse.
00015 
00016 In parsing a response, a response to a Get command cannot be distinguished
00017 from a response to a PtMeas command.
00018 
00019 Of course, if the response contains an ER or an IJK it must be the response
00020 to a PtMeas command. It would be possible to define a PtMeasReponse class as
00021 a derived class of this, but then sometimes a response to a PtMeas command
00022 would be recognized as being in the PtMeasReponse class and sometimes it
00023 could only be determined that it is in the ippPtMeasOrGetResponse class.
00024 This would be a nuisance, so the PtMeasReponse class has not been defined.
00025 
00026 */
00027 #include "ippdme/Response/ippXYZResponse.h"
00028 #include "ippdme/ippTargetVector.h"
00029 
00030 class IPPDME_EXT_CLASS ippPtMeasOrGetResponse : public ippXYZResponse {
00031 
00032 private:
00033   bool _hasER;
00034   bool _hasIJK;
00035   bool _hasIJKAct;
00036   bool _hasQ;
00037 
00038 
00039   double _theER;
00040   ippTargetVector _theIJK;
00041   int _theIJKAct;
00042   double _theQ;
00043 
00044 
00045 public:
00046   ippPtMeasOrGetResponse(
00047     unsigned int inTagNumber
00048   );
00049   
00050   ippPtMeasOrGetResponse(
00051     unsigned int inTagNumber, 
00052     bool inHasER, bool inHasIJK,bool inHasIJKAct,bool inHasQ,
00053     bool inHasR,
00054     bool inHasToolA, bool inHasToolB,bool inHasToolC,
00055     bool inHasX, bool inHasY, bool inHasZ,
00056     double inTheER, double inI, double inJ, double inK,int inIJKAct,double inQ,
00057     double inR, 
00058     double inToolA, double inToolB, double inToolC, 
00059     double inX, double inY, double inZ
00060   );
00061 
00062   virtual ~ippPtMeasOrGetResponse(){}
00063   
00064   void setHasER(bool inHasER){ _hasER = inHasER; }
00065   void setHasIJK(bool inHasIJK){ _hasIJK = inHasIJK; }
00066   void setHasIJKAct(bool inHasIJKAct){  _hasIJKAct = inHasIJKAct; }
00067   void setHasQ(bool inHasQ){  _hasQ = inHasQ; }
00068 
00069   void setER(double inTheER){ _theER = inTheER; }
00070   void setIJK(double inI, double inJ, double inK)
00071     { _theIJK.setValues(inI, inJ, inK); }
00072   void setQ(double inQ) { _theQ = inQ;  }
00073   void setIJKAct(int inIJKAct) { _theIJKAct = inIJKAct; }
00074 
00075   bool   getHasER() const   { return _hasER; }
00076   bool   getHasIJK()const   { return _hasIJK; }
00077   bool   getHasIJKAct()const   { return _hasIJKAct; }
00078   bool   getHasQ()const   { return _hasQ; }
00079   double getTheER()const    { return _theER; }
00080   double getI()  const      { return _theIJK.getI(); }
00081   double getJ()  const      { return _theIJK.getJ(); }
00082   double getK()  const      { return _theIJK.getK(); }
00083   double getQ()  const      { return _theQ; }
00084   int    getIJKAct() const  { return _theIJKAct ;}
00085 
00086   virtual std::string getResponseString() const;
00087 private:
00088   // prohibited copy constructor:
00089   ippPtMeasOrGetResponse(const ippPtMeasOrGetResponse&);
00090   void operator=(const ippPtMeasOrGetResponse&);
00091 
00092 };
00093 IPP_DECLARE_SMARTPOINTER(ippPtMeasOrGetResponse);

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