MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / set

Method set

src/ifcparse/IfcEntityInstanceData.cpp:500–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498
499template<typename T>
500void rocks_db_attribute_storage::set(void* storage, const IfcParse::declaration* decl, std::size_t identity, std::size_t index, const T& value)
501{
502 const bool is_header = decl->schema() == &Header_section_schema::get_schema();
503 IfcParse::impl::rocks_db_file_storage* rdb_storage = (IfcParse::impl::rocks_db_file_storage*)storage;
504 std::string v;
505 impl::serialize(v, value);
506 rdb_storage->db->Put(
507 rdb_storage->wopts,
508 (is_header ? "h|" : (decl->as_entity() ? "i|" : "t|")) +
509 (is_header ? decl->name() : std::to_string(identity)) + "|" +
510 std::to_string(index), v);
511}
512
513template IFC_PARSE_API void rocks_db_attribute_storage::set<Blank>(void* storage, const IfcParse::declaration* decl, std::size_t identity, size_t index, const Blank& value);
514template IFC_PARSE_API void rocks_db_attribute_storage::set<int>(void* storage, const IfcParse::declaration* decl, std::size_t identity, size_t index, const int& value);

Callers 15

createMethod · 0.45
calculateMethod · 0.45
get_segment_lengthMethod · 0.45
DoImportMethod · 0.45
import_ifcFunction · 0.45
_sendMessageMethod · 0.45
loadIfcFunction · 0.45
runAuditFunction · 0.45
constructMethod · 0.45
asBinaryMethod · 0.45
set_attribute_valueFunction · 0.45
create_geometryMethod · 0.45

Calls 5

get_schemaFunction · 0.85
to_stringFunction · 0.85
serializeFunction · 0.70
schemaMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected