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

ippGoToEResponse.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/ippGoToEResponse.h"
00013 #include "ippdme/misc/ippStringBuilder.h"
00014 
00015 ippGoToEResponse::ippGoToEResponse()
00016   :  ippXYZResponse(0, EventTag, DataGoToE)
00017 {
00018 }
00019 ippGoToEResponse::ippGoToEResponse(
00020     bool inHasER, bool inHasIJK, bool inHasR,
00021                 bool inHasToolA, bool inHasToolB, bool inHasToolC,
00022                 bool inHasX, bool inHasY, bool inHasZ, double inTheER,
00023                 double inR, double inToolA, double inToolB, double inToolC,
00024                 double inX, double inY, double inZ
00025  )
00026    : ippXYZResponse(0, EventTag, DataGoToE, inHasR,
00027                                    inHasToolA, inHasToolB, inHasToolC, inHasX, inHasY, inHasZ,
00028                                    inR, inToolA, inToolB, inToolC, inX, inY, inZ)
00029 {
00030   _hasER = inHasER;
00031   _hasIJK = inHasIJK;
00032   
00033   _theER = inTheER;
00034 }
00035 
00036 std::string ippGoToEResponse::getResponseString() const
00037 {  
00038   static ippTag tag(0,EventTag);
00039 
00040   ippStringBuilder str(tag,"#");
00041   str.StartFunc("GoTo");
00042    if (_hasER) str.AppendFunc("ER", _theER);
00043    if (_hasIJK) str.AppendFunc("IJK",0,0,0);
00044    getResponseStringEnd(str);
00045   str.EndFunc();
00046   return str.ToString();
00047 }
00048 

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