00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "stdafx.h"
00012
00013 #include "ippdme/Command/ippSaveNamedCsyTransformationCommand.h"
00014 #include "ippdme/misc/ippStringBuilder.h"
00015
00016 ippSaveNamedCsyTransformationCommand::ippSaveNamedCsyTransformationCommand(
00017 unsigned int tgNum,
00018 const char * inName,
00019 double inX0, double inY0, double inZ0,
00020 double inTheta, double inPsi, double inPhi
00021 )
00022 : ippCommand(tgNum, CommandTag, SaveNamedCsyTransformation)
00023 , _name(inName)
00024 , _x0(inX0)
00025 , _y0(inY0)
00026 , _z0(inZ0)
00027 , _theta(inTheta)
00028 , _psi(inPsi)
00029 , _phi(inPhi)
00030 {
00031 }
00032
00033 std::string ippSaveNamedCsyTransformationCommand::getCommandString() const
00034 {
00035 ippStringBuilder builder(_tag);
00036 builder.StartFunc(getCommandNameString(getCommandName()));
00037 builder.AppendParam(_name);
00038 builder.AppendParam(_x0);
00039 builder.AppendParam(_y0);
00040 builder.AppendParam(_z0);
00041 builder.AppendParam(_theta);
00042 builder.AppendParam(_psi);
00043 builder.AppendParam(_phi);
00044 builder.EndFunc();
00045 return builder.ToString();
00046 }