WRAPPER_API const BmgChar* get_InitialValue() const
Gets the initial value of the string (empty in the case of addition).
std::wstring TestForm::StringDetailsTowstring(const GEOCALCPBW_NAMESPACE::ChangeDetail* detail)
{
std::wstring outStr = L"";
const GEOCALCPBW_NAMESPACE::StringChangeDetail* strDetail = static_cast<const GEOCALCPBW_NAMESPACE::StringChangeDetail*>(detail);
if (strDetail != NULL)
{
outStr += L" " + L"Initial Value: ";
if (strDetail->get_ChangeType() == GEOCALCPBW_NAMESPACE::eChangeAdd)
{
outStr += L"N/A";
}
else
{
outStr += strDetail->get_InitialValue();
}
outStr += L"\n" + L" " + L"Final Value: ";
if (strDetail->get_ChangeType() == GEOCALCPBW_NAMESPACE::eChangeRemove)
{
outStr += L"N/A";
}
else
{
outStr += strDetail->get_FinalValue();
}
outStr += L"\n";
}
return outStr;
}