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 00013 #include "ippdme/Command/ippTiltPartCommand.h" 00014 #include "ippdme/misc/ippStringBuilder.h" 00015 00016 00017 ippTiltPartCommand::ippTiltPartCommand( 00018 unsigned int tgNum, 00019 double inDx, double inDy, double inDz, double inLimit 00020 ) 00021 : ippCommand(tgNum, CommandTag, TiltPart) 00022 { 00023 _dx = inDx; 00024 _dy = inDy; 00025 _dz = inDz; 00026 _limit = inLimit; 00027 } 00028 00029 ippTiltPartCommand::~ippTiltPartCommand() 00030 { 00031 00032 } 00033 00034 00035 std::string ippTiltPartCommand::getCommandString() const 00036 { 00037 ippStringBuilder builder(_tag); 00038 builder.StartFunc("TiltPart"); 00039 builder.AppendParam(_dx); 00040 builder.AppendParam(_dy); 00041 builder.AppendParam(_dz); 00042 builder.AppendParam(_limit); 00043 builder.EndFunc(); 00044 return builder.ToString(); 00045 00046 }