get_InitialValue Method

WRAPPER_API const double get_InitialValue() const

 

Description

Gets the initial value of the double (empty in the case of addition).

 

Example

std::wstring TestForm::DoubleDetailsTowstring(const GEOCALCPBW_NAMESPACE::ChangeDetail* detail)

{

std::wstring outStr = L"";

const GEOCALCPBW_NAMESPACE::DoubleChangeDetail* dDetail = static_cast<const GEOCALCPBW_NAMESPACE::DoubleChangeDetail*>(detail);

 

if (dDetail != NULL)

{

outStr += kIndentStr + kInitValueLabel;

 

if (dDetail->get_ChangeType() == GEOCALCPBW_NAMESPACE::eChangeAdd)

{

outStr += kNoValue;

}

else

{

outStr += QString::number(dDetail->get_InitialValue());

}

 

outStr += L"\n" + kIndentStr + kFinalValueLabel;

 

if (dDetail->get_ChangeType() == GEOCALCPBW_NAMESPACE::eChangeRemove)

{

outStr += kNoValue;

}

else

{

outStr += QString::number(dDetail->get_FinalValue());

}

outStr += L"\n";

}

 

return outStr;

}