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

Function mapFields

src/energyplus/MapFields.cpp:14–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace energyplus {
13
14 bool mapFields(const IdfObject& oldObject, IdfObject& newObject) {
15 bool result = true;
16 unsigned numFields = oldObject.numFields();
17 for (unsigned i = 0; i < numFields; ++i) {
18 if (auto s_ = oldObject.getString(i)) {
19 result = result && newObject.setString(i, s_.get());
20 }
21 }
22 return result;
23 }
24
25 bool mapFields(const IdfObject& oldObject, IdfObject& newObject, const std::vector<std::pair<unsigned, unsigned>>& fieldMap) {
26 bool result = true;

Callers 3

convertSimpleShadingMethod · 0.85
convertSimpleSurfacesMethod · 0.85

Calls 4

numFieldsMethod · 0.45
getStringMethod · 0.45
setStringMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected