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

ippXYZResponse.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 /* ippXYZResponse class ***************************************************
00012 
00013 This is the parent class for PtMeasOrGetResponse, PtMeasEResponse,
00014 GoToEResponse, and OnMoveReportEResponse. This class is not intended
00015 to be instantiated.  The first three of the derived classes have the
00016 additional data members ER and IJK.  PtMeasOrGetResponse uses a
00017 CommandTag, while the other three (which have "E" in their names) use
00018 an EventTag. PtMeasEResponse and GoToEResponse always use E0000.
00019 
00020 */
00021 #pragma once 
00022 
00023 #include "ippResponse.h"
00024 #include <string>
00025 
00026 // forward declarations to avoid header inclusion
00027 class IPPDME_EXT_CLASS ippStringBuilder;
00028 
00029 class IPPDME_EXT_CLASS ippXYZResponse : public ippResponse 
00030 {
00031 
00032 private:
00033 
00034   bool _hasR;
00035   bool _hasToolA;
00036   bool _hasToolB;
00037   bool _hasToolC;
00038   bool _hasX;
00039   bool _hasY;
00040   bool _hasZ;
00041   
00042   double _r;
00043   double _toolA;
00044   double _toolB;
00045   double _toolC;
00046   double _x;
00047   double _y;
00048   double _z;
00049 
00050 public:
00051 
00052 
00053   virtual ~ippXYZResponse(){}
00054 
00055   void setHasR(bool inHasR){ _hasR = inHasR; }
00056   void setHasToolA(bool inHasToolA){ _hasToolA = inHasToolA; }
00057   void setHasToolB(bool inHasToolB){ _hasToolB = inHasToolB; }
00058   void setHasToolC(bool inHasToolC){ _hasToolC = inHasToolC; }
00059   void setHasX(bool inHasX){ _hasX = inHasX; }
00060   void setHasY(bool inHasY){ _hasY = inHasY; }
00061   void setHasZ(bool inHasZ){ _hasZ = inHasZ; }
00062 
00063   void setR(double inR){ _r = inR; }
00064   void setToolA(double inToolA){ _toolA = inToolA; }
00065   void setToolB(double inToolB){ _toolB = inToolB; }
00066   void setToolC(double inToolC){ _toolC = inToolC; }
00067   void setX(double inX){ _x = inX; }
00068   void setY(double inY){ _y = inY; }
00069   void setZ(double inZ){ _z = inZ; }
00070 
00071   bool   getHasR() const    { return _hasR; }
00072   bool   getHasToolA() const{ return _hasToolA; }
00073   bool   getHasToolB()const { return _hasToolB; }
00074   bool   getHasToolC() const{ return _hasToolC; }
00075   bool   getHasX()const     { return _hasX; }
00076   bool   getHasY()const     { return _hasY; }
00077   bool   getHasZ()const     { return _hasZ; }
00078 
00079   double getR()const       { return _r; }
00080   double getToolA()const    { return _toolA; }
00081   double getToolB()const    { return _toolB; }
00082   double getToolC()const    { return _toolC; }
00083   double getX()const        { return _x; }
00084   double getY()const        { return _y; }
00085   double getZ()const        { return _z; }
00086 
00087   void getResponseStringEnd(ippStringBuilder& builder) const;
00088 protected:
00089     ippXYZResponse(
00090     unsigned int inTagNumber,
00091     tagIdType inTagType, 
00092     ippResponseNameType inResponseName
00093   );
00094 
00095   ippXYZResponse(
00096     unsigned int inTagNumber,
00097     tagIdType inTagType,
00098     ippResponseNameType inResponseName, bool inHasR,
00099     bool inHasToolA, bool inHasToolB, bool inHasToolC,
00100     bool inHasX, bool inHasY, bool inHasZ,
00101     double inR, double inToolA, double inToolB, double inToolC,
00102     double inX, double inY, double inZ
00103    );
00104 private:
00105   ippXYZResponse(const ippXYZResponse&);
00106   void operator=(const ippXYZResponse&);
00107 };
00108 
00109 IPP_DECLARE_SMARTPOINTER(ippXYZResponse);

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