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

ippPtMeasSelfCenterCommand.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 
00012 #include "stdafx.h"
00013 #include "ippdme/Command/ippPtMeasSelfCenterCommand.h"
00014 #include "ippdme/misc/ippStringBuilder.h"
00015 
00016 ippPtMeasSelfCenterCommand::ippPtMeasSelfCenterCommand(
00017   unsigned int tgNum
00018 )
00019    : ippCommand(tgNum, CommandTag, PtMeasSelfCenter)
00020    , _x(0)
00021    , _y(0)
00022    , _z(0)
00023 {
00024 }
00025 
00026 ippPtMeasSelfCenterCommand::ippPtMeasSelfCenterCommand(
00027     unsigned int tgNum, 
00028     double inX, double inY, double inZ,
00029                 const ippTargetVector& inIJK
00030   )
00031    : ippCommand(tgNum, CommandTag, PtMeasSelfCenter)
00032    , _x(inX)
00033    , _y(inY)
00034    , _z(inZ)
00035    , _theIJK(inIJK)
00036 {
00037 }
00038 
00039 std::string ippPtMeasSelfCenterCommand::getCommandString() const
00040 {
00041   ippStringBuilder builder(_tag);
00042   builder.StartFunc("PtMeasSelfCenter");
00043     builder.AppendFunc("X",_x);
00044     builder.AppendFunc("Y",_y);
00045     builder.AppendFunc("Z",_z);
00046     builder.AppendFunc("IJK",_theIJK.getI(),_theIJK.getJ(),_theIJK.getK());
00047   builder.EndFunc();
00048   return builder.ToString();
00049 }

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