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

ippAlignResponse.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/ippAlignResponse.h"
00013 #include "ippdme/misc/ippStringBuilder.h"
00014 
00015 
00016 
00017 ippAlignResponse::ippAlignResponse(
00018   unsigned int inTagNumber, 
00019   double inI1, double inJ1,double inK1,
00020   double inI2, double inJ2, double inK2
00021 )
00022   : ippResponse(inTagNumber, CommandTag, DataAlign)
00023 {
00024   _i1 = inI1;
00025   _j1 = inJ1;
00026   _k1 = inK1;
00027   _i2 = inI2;
00028   _j2 = inJ2;
00029   _k2 = inK2;
00030   _has2 = true;
00031 }
00032 ippAlignResponse::ippAlignResponse(
00033   unsigned int inTagNumber, 
00034   double inI1, double inJ1,double inK1
00035 )
00036   : ippResponse(inTagNumber, CommandTag, DataAlign)
00037 {
00038   _i1 = inI1;
00039   _j1 = inJ1;
00040   _k1 = inK1;
00041   _has2 = false;
00042 }
00043 std::string ippAlignResponse::getResponseString() const
00044 { 
00045   ippStringBuilder builder(_tag,"#");
00046   
00047   builder.StartFunc("");
00048     
00049     builder.AppendParam(_i1);
00050     builder.AppendParam(_j1);
00051     builder.AppendParam(_k1);
00052 
00053     if (_has2){ 
00054       builder.AppendParam(_i2);
00055       builder.AppendParam(_j2);
00056       builder.AppendParam(_k2);
00057     }
00058   builder.EndFunc();
00059   return builder.ToString();
00060 
00061 }

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