MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / AddCustomDouble

Method AddCustomDouble

src/plugin/kernel/src/AFCEntity.cpp:791–806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

789}
790
791bool AFCEntity::AddCustomDouble(const std::string& name, const double value)
792{
793 ARK_ASSERT_RET_VAL(custom_data_list_.find(name) == custom_data_list_.end(), false);
794
795 AFIData* pData = ARK_NEW AFCData;
796 ARK_ASSERT_RET_VAL(pData != nullptr, false);
797
798 pData->SetDouble(value);
799 if (!custom_data_list_.insert(name, pData).second)
800 {
801 ARK_DELETE(pData);
802 return false;
803 }
804
805 return true;
806}
807
808bool AFCEntity::AddCustomString(const std::string& name, const std::string& value)
809{

Callers

nothing calls this directly

Calls 4

findMethod · 0.45
endMethod · 0.45
SetDoubleMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected