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