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

ippOnMoveReportECommand.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/Command/ippOnMoveReportECommand.h"
00013 #include "ippdme/misc/ippStringBuilder.h"
00014 
00015 ippOnMoveReportECommand::ippOnMoveReportECommand(
00016   unsigned int tgNum,
00017   bool inHasR, bool inHasX, bool inHasY, bool inHasZ,
00018   bool inHasToolA, bool inHasToolB, bool inHasToolC,
00019         bool inHasDis, bool inHasTime,
00020         double inTheDis, double inTheTime
00021 )
00022   : ippCommand(tgNum, EventTag, OnMoveReportE)
00023 {
00024   _hasR = inHasR;
00025   _hasX = inHasX;
00026   _hasY = inHasY;
00027   _hasZ = inHasZ;
00028   _hasToolA = inHasToolA;
00029   _hasToolB = inHasToolB;
00030   _hasToolC = inHasToolC;
00031   _hasDis = inHasDis;
00032   _hasTime = inHasTime;
00033   _theDis = inTheDis;
00034   _theTime = inTheTime;
00035 }
00036 
00037 std::string ippOnMoveReportECommand::getCommandString() const
00038 {
00039   ippStringBuilder builder(_tag);
00040   builder.StartFunc("OnMoveReportE");
00041 
00042   if (_hasDis) {
00043     builder.AppendFunc("Dis", _theDis);
00044   }
00045   if (_hasTime) {
00046     builder.AppendFunc("Time", _theTime);
00047   }
00048   printLikeGet(builder, _hasR, _hasX, _hasY, _hasZ,
00049                       _hasToolA, _hasToolB, _hasToolC);
00050 
00051   builder.EndFunc();
00052   return builder.ToString();
00053 
00054 }

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