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/Command/ippCenterPartCommand.h" 00013 #include "ippdme/misc/ippStringBuilder.h" 00014 00015 00016 ippCenterPartCommand::ippCenterPartCommand( 00017 unsigned int tgNum, 00018 double inPx, double inPy, double inPz, double inLimit 00019 ) 00020 : ippCommand(tgNum, CommandTag, CenterPart) 00021 { 00022 _px = inPx; 00023 _py = inPy; 00024 _pz = inPz; 00025 _limit = inLimit; 00026 } 00027 00028 std::string ippCenterPartCommand::getCommandString() const 00029 { 00030 ippStringBuilder builder(_tag); 00031 00032 builder.StartFunc("CenterPart"); 00033 builder.AppendParam(_px); 00034 builder.AppendParam(_py); 00035 builder.AppendParam(_pz); 00036 builder.AppendParam(_limit); 00037 builder.EndFunc(); 00038 return builder.ToString(); 00039 }