get_InitialValue Method

WRAPPER_API const ParameterCollection* get_InitialValue() const

 

Description

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

 

Example

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

{

std::wstring outStr = L"";

std::wstring parmkIndentStr = kIndentStr + kIndentStr;

const GEOCALCPBW_NAMESPACE::ParameterCollectionChangeDetail* pcDetail = static_cast<const GEOCALCPBW_NAMESPACE::ParameterCollectionChangeDetail*>(detail);

if (pcDetail != NULL)

{

outStr += kIndentStr + kInitValueLabel;

 

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

{

outStr += kNoValue;

}

else

{

outStr += L"\n";

outStr += FormatParameterCollection(*pcDetail->get_InitialValue(), parmkIndentStr);

}

 

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

 

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

{

outStr += kNoValue;

}

else

{

outStr += L"\n";

outStr += FormatParameterCollection(*pcDetail->get_FinalValue(), parmkIndentStr);

}

outStr += L"\n";

}

return outStr;

}