MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / load

Method load

src/utilities/idf/IdfObject.cpp:1225–1239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1223 // SERIALIZATION
1224
1225 std::shared_ptr<IdfObject_Impl> IdfObject_Impl::load(const std::string& text) {
1226 std::shared_ptr<IdfObject_Impl> result;
1227 IdfObject_Impl idfObjectImpl;
1228
1229 try {
1230 idfObjectImpl.parse(text, true);
1231 idfObjectImpl.resizeToMinFields();
1232 } catch (...) {
1233 return result;
1234 }
1235
1236 bool keepHandle = idfObjectImpl.iddObject().hasHandleField();
1237 result = std::shared_ptr<IdfObject_Impl>(new IdfObject_Impl(idfObjectImpl, keepHandle));
1238 return result;
1239 }
1240
1241 std::shared_ptr<IdfObject_Impl> IdfObject_Impl::load(const std::string& text, const IddObject& iddObject) {
1242 std::shared_ptr<IdfObject_Impl> result;

Callers

nothing calls this directly

Calls 5

resizeToMinFieldsMethod · 0.80
hasHandleFieldMethod · 0.80
iddObjectMethod · 0.80
IdfObjectClass · 0.70
parseMethod · 0.45

Tested by

no test coverage detected