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

ippOnPtMeasReportCommand.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/ippOnPtMeasReportCommand.h"
00013 #include "ippdme/misc/ippStringBuilder.h"
00014 
00015 
00016 ippOnPtMeasReportCommand::ippOnPtMeasReportCommand(
00017   unsigned int tgNum,
00018   bool inHasER, bool inHasIJK,
00019   bool inHasQ,  bool inHasR, 
00020   bool inHasX, bool inHasY, bool inHasZ,
00021   bool inHasToolA, bool inHasToolB, bool inHasToolC,
00022   bool inHasIJKAct
00023 
00024 )
00025   : ippCommand(tgNum, CommandTag, OnPtMeasReport)
00026 {
00027 
00028   _hasER = inHasER;
00029   _hasIJK = inHasIJK;
00030   _hasQ = inHasQ;
00031   _hasR = inHasR;
00032   _hasX = inHasX;
00033   _hasY = inHasY;
00034   _hasZ = inHasZ;
00035   _hasToolA = inHasToolA;
00036   _hasToolB = inHasToolB;
00037   _hasToolC = inHasToolC;
00038   _hasIJKAct = inHasIJKAct;
00039 
00040 }
00041 
00042 ippOnPtMeasReportCommand::ippOnPtMeasReportCommand(
00043     unsigned int tgNum
00044 )
00045   : ippCommand(tgNum, CommandTag, OnPtMeasReport)
00046 {
00047   setDefault();
00048 }
00049 
00050 void ippOnPtMeasReportCommand::setDefault()
00051 {
00052   _hasER = false;
00053   _hasIJK = false;
00054   _hasQ = false;
00055   _hasR = false;
00056   _hasX = true;
00057   _hasY = true;
00058   _hasZ = true;
00059   _hasToolA = false;
00060   _hasToolB = false;
00061   _hasToolC = false;
00062   _hasIJKAct = false;
00063 }
00064 
00065 std::string ippOnPtMeasReportCommand::getCommandString() const
00066 {
00067   ippStringBuilder builder(_tag);
00068   builder.StartFunc("OnPtMeasReport");
00069 
00070   if (_hasER) {
00071     builder.AppendFunc("ER");
00072   }
00073   if (_hasIJK) {
00074     builder.AppendFunc("IJK");
00075   }
00076   if (_hasIJKAct) {
00077     builder.AppendFunc("IJKAct");
00078   }
00079   if (_hasQ) {
00080     builder.AppendFunc("Q");
00081   } 
00082   printLikeGet(builder, _hasR, _hasX, _hasY, _hasZ,
00083                       _hasToolA, _hasToolB, _hasToolC);
00084 
00085   builder.EndFunc();
00086   return builder.ToString();
00087 
00088 }

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