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

ippScanXXXXDensityCommand.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 
00013 #include "ippdme/Command/ippScanXXXXDensityCommand.h"
00014 #include "ippdme/misc/ippStringBuilder.h"
00015 
00016 ippScanXXXXDensityCommand::ippScanXXXXDensityCommand(
00017   unsigned int tgNum,
00018   ippCommandNameType inCommand,
00019   double inDis,
00020   bool bHasAngle, double inAngle,
00021   bool bHasNominals, bool bAtNominals
00022 )
00023   : ippCommand(tgNum, CommandTag, inCommand)
00024   , _dis(inDis)
00025   , _hasAngle(bHasAngle)
00026   , _angle(inAngle)
00027   , _hasNominals(bHasNominals)
00028   , _atNominals(bAtNominals)
00029 {
00030 
00031 }
00032 
00033 ippScanXXXXDensityCommand::~ippScanXXXXDensityCommand()
00034 {
00035 }
00036 
00037 std::string ippScanXXXXDensityCommand::getCommandString() const
00038 {
00039   ippStringBuilder builder(_tag);
00040   builder.StartFunc(getCommandName());
00041         builder.AppendFunc("Dis",_dis);
00042     if (_hasAngle) { 
00043       builder.AppendFunc("Angle",_angle);
00044     }
00045     if (_hasNominals) {
00046       builder.AppendFunc("AtNominals",_atNominals ? 1 : 0);
00047     }
00048   builder.EndFunc();
00049   return builder.ToString();
00050 }

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