00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #pragma once
00022
00023 #include "ippResponse.h"
00024 #include <string>
00025
00026
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);