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 00012 #include "stdafx.h" 00013 #include "ippdme/Response/ippTiltPartResponse.h" 00014 #include "ippdme/misc/ippStringBuilder.h" 00015 00016 ippTiltPartResponse::ippTiltPartResponse( 00017 unsigned int inTagNumber, 00018 bool inTilted 00019 ) 00020 : ippResponse(inTagNumber, CommandTag, DataTiltPart) 00021 , _tilted(inTilted) 00022 { 00023 } 00024 00025 /* 00026 Version 4.0 of the spec says the name of the data is MoveCenterPart, 00027 but this appears to be unintentional. Here, the name is TiltPart. 00028 */ 00029 std::string ippTiltPartResponse::getResponseString() const 00030 { 00031 ippStringBuilder builder(_tag,"#"); 00032 builder.AppendFunc("TiltPart",(_tilted ? 1 : 0)); 00033 return builder.ToString(); 00034 00035 return ippStringBuilder(_tag,"#").AppendFunc("TiltPart",(_tilted ? 1 : 0)).ToString(); 00036 00037 }