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

ippPtMeasEResponse.cpp

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 #include "stdafx.h"
00012 #include "ippdme/Response/ippPtMeasEResponse.h"
00013 #include "ippdme/misc/ippStringBuilder.h"
00014 
00015 ippPtMeasEResponse::ippPtMeasEResponse()
00016   : ippXYZResponse(0, EventTag, DataPtMeasE)
00017   ,  _hasER(false)
00018   , _theER(0.0)
00019   , _hasIJK(false)
00020   , _hasIJKAct(0)
00021   , _theIJKAct(0)
00022 {
00023 }
00024 
00025 ippPtMeasEResponse::ippPtMeasEResponse(
00026   bool inHasER, bool inHasIJK,bool inHasIJKAct,
00027         bool inHasR,
00028   bool inHasToolA, bool inHasToolB,bool inHasToolC,
00029   bool inHasX, bool inHasY, bool inHasZ,
00030         double inTheER, 
00031   double inI, double inJ, double inK, int inIJKAct,
00032         double inR, double inToolA, double inToolB, double inToolC,
00033         double inX, double inY, double inZ
00034 )
00035  : ippXYZResponse(0, EventTag, DataPtMeasE, inHasR,
00036                 inHasToolA, inHasToolB, inHasToolC, inHasX, inHasY, inHasZ,
00037                 inR, inToolA, inToolB, inToolC, inX, inY, inZ)
00038 {
00039   _hasER = inHasER;
00040   _hasIJK = inHasIJK;
00041   _hasIJKAct = inHasIJKAct;
00042   _theER = inTheER;
00043   _theIJK.setValues(inI, inJ, inK);
00044   _theIJKAct = inIJKAct;
00045 }
00046 
00047 std::string ippPtMeasEResponse::getResponseString() const
00048 {
00049   static ippTag tag(0,EventTag);
00050   ippStringBuilder str(tag,"#");
00051 
00052   str.StartFunc("PtMeas");
00053     if (_hasER) { str.AppendFunc("ER",_theER); }
00054   //xx  if (_hasER) { str.AppendFunc("Q",_theQ); }
00055     if (_hasIJK){ str.AppendFunc("IJK",getI(), getJ(), getK()); }
00056     if (_hasIJKAct){ str.AppendFunc("IJKAct",_theIJKAct); }
00057     getResponseStringEnd(str);
00058   str.EndFunc();
00059   return str.ToString();
00060 }
00061 

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