get_FinalValue Method

WRAPPER_API const LinearValue* get_FinalValue() const

 

Description

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

 

Example

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

{

std::wstring outStr = L"";

const GEOCALCPBW_NAMESPACE::LinearValueChangeDetail* lvDetail = static_cast<const GEOCALCPBW_NAMESPACE::LinearValueChangeDetail*>(detail);

 

if (lvDetail != NULL)

{

outStr += kIndentStr + kInitValueLabel;

 

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

{

outStr += kNoValue;

}

else

{

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

}

 

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

 

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

{

outStr += kNoValue;

}

else

{

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

}

 

outStr += L"\n";

}

return outStr;

}