get_FinalValue Method

WRAPPER_API const IdentifierCollection* get_FinalValue() const

 

Description

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

 

Example

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

{

std::wstring outStr = L"";

std::wstring idkIndentStr = kIndentStr + kIndentStr;

const GEOCALCPBW_NAMESPACE::IdentifierCollectionChangeDetail* idDetail = static_cast<const GEOCALCPBW_NAMESPACE::IdentifierCollectionChangeDetail*>(detail);

if (idDetail != NULL)

{

outStr += kIndentStr + kInitValueLabel;

 

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

{

outStr += kNoValue;

}

else

{

outStr += L"\n";

outStr += FormatIdentifiers(idDetail->get_InitialValue(), idkIndentStr);

}

 

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

 

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

{

outStr += kNoValue;

}

else

{

outStr += L"\n";

outStr += FormatIdentifiers(idDetail->get_FinalValue(), idkIndentStr);

}

 

outStr += L"\n";

}

return outStr;

}