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

ippGetChangeToolActionResponse.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/ippGetChangeToolActionResponse.h"
00013 #include "ippdme/misc/ippStringBuilder.h"
00014 
00015 ippGetChangeToolActionResponse::ippGetChangeToolActionResponse(
00016   unsigned int inTagNumber
00017 )
00018   : ippResponse(inTagNumber, CommandTag, DataGetChangeToolAction)
00019   , _changeType(MoveAuto)
00020   , _x(0)
00021   , _y(0)
00022   , _z(0)
00023 {
00024 
00025 }
00026 
00027 ippGetChangeToolActionResponse::ippGetChangeToolActionResponse(
00028   unsigned int inTagNumber,
00029   ippChangeToolActionType inChangeType,
00030   double inX, double inY, double inZ
00031 )
00032   : ippResponse(inTagNumber, CommandTag, DataGetChangeToolAction)
00033 {
00034   _changeType = inChangeType;
00035   _x = inX;
00036   _y = inY;
00037   _z = inZ;
00038 }
00039 
00040 ippGetChangeToolActionResponse::~ippGetChangeToolActionResponse()
00041 {
00042 
00043 }
00044 
00045 std::string ippGetChangeToolActionResponse::getResponseString() const
00046 {  
00047   ippStringBuilder s(_tag,"#");
00048   s.StartFunc("ChangeToolAction");
00049     s.AppendParam(_changeType);
00050     s.AppendFunc("X",_x);
00051     s.AppendFunc("Y",_y);
00052     s.AppendFunc("Z",_z);
00053   s.EndFunc();
00054   return s.ToString();
00055 }

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