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

Method AddCustomString

src/plugin/kernel/src/AFCEntity.cpp:808–823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

806}
807
808bool AFCEntity::AddCustomString(const std::string& name, const std::string& value)
809{
810 ARK_ASSERT_RET_VAL(custom_data_list_.find(name) == custom_data_list_.end(), false);
811
812 AFIData* pData = ARK_NEW AFCData;
813 ARK_ASSERT_RET_VAL(pData != nullptr, false);
814
815 pData->SetString(value.c_str());
816 if (!custom_data_list_.insert(name, pData).second)
817 {
818 ARK_DELETE(pData);
819 return false;
820 }
821
822 return true;
823}
824
825bool AFCEntity::AddCustomWString(const std::string& name, const std::wstring& value)
826{

Callers

nothing calls this directly

Calls 5

findMethod · 0.45
endMethod · 0.45
SetStringMethod · 0.45
c_strMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected