00001
00002
00003
00004
00005
00006
00007
00008
00009
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 }