-------------------------------- Excerpt: EngrObjs/InlinePump.cpp -------------------------------- // Inline Pump Object constructor showing the SlotProxy field initializers // (where the object's Slots' UNIT TYPES are configured). InlinePump::InlinePump ( HypSim::KindOfClone k, QString n, const QString &subT, bool isAggSeg ) : SimObj (k, n, subT, isAggSeg), //------------------------- // SeriesSlot constructors //-------------------------- // Common slots (all methods) inflow(IP_INFLOW, FLOW, NOUNITS, "Inflow"), outflow(IP_OUTFLOW, FLOW, NOUNITS, "Outflow"), // Hydraulics Calculations Method Slots inflowhead("Inflow Head", LENGTH ), outflowhead("Outflow Head", LENGTH ), pumpEfficiency("Pump Efficiency", NOUNITS ), minorLosses("Minor Losses", LENGTH ), headAdded("Head Added", LENGTH ), waterDensity("Density of Water", DENSITY ), pumpStatus("Pump Status", NOUNITS ), power("Power Consumed", POWER), energy("Energy Consumed",ENERGY), pumpCurveTable("Pump Curve Table", 1, 2 ), // ---------------------------------------------- // special slots -- not included in the slotTable // ---------------------------------------------- tempAccountingAggSeries("Temp Accounting Agg Series", 1, NOUNITS, NOUNITS, "", Slot::AttributeBits (Slot::SimObjSlotBit | Slot::TemporarySlotBit)) { ... } --- (end) ---