get_FinalValue Method

WRAPPER_API const AngularValue* get_FinalValue() const

 

Description

Gets the final value of the AngularValue (empty in the case of removal).

 

Example

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

{

std::wstring outStr = L"";

const GEOCALCPBW_NAMESPACE::AngularValueChangeDetail* avDetail = static_cast<const GEOCALCPBW_NAMESPACE::AngularValueChangeDetail*>(detail);

 

if (avDetail != NULL)

{

outStr += kIndentStr + kInitValueLabel;

 

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

{

outStr += kNoValue;

}

else

{

outStr += avDetail->get_InitialValue()->ToString();

}

 

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

 

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

{

outStr += kNoValue;

}

else

{

outStr += avDetail->get_FinalValue()->ToString();

}

 

outStr += L"\n";

}

return outStr;

}