20 const int IntSize =
sizeof(int);
21 const int FloatSize =
sizeof(float);
22 const int NumSysVars = 21;
23 const int NumNodeVars = 6;
24 const int NumLinkVars = 7;
25 const int NumPumpVars = 6;
36 int open(
const std::string fileName,
Network* nw);
40 int writeEnergyResults(
double totalHrs,
double peakKwatts);
41 int writeNetworkResults();
44 void seekEnergyOffset();
45 void readEnergyResults(
int* pumpIndex);
46 void readEnergyDemandCharge(
float* demandCharge);
47 void seekNetworkOffset();
48 void readNodeResults();
49 void readLinkResults();
50 void skipNodeResults();
51 void skipLinkResults();
57 std::ofstream fwriter;
58 std::ifstream freader;
66 int energyResultsOffset;
67 int networkResultsOffset;
68 float nodeResults[NumNodeVars];
69 float linkResults[NumLinkVars];
70 float pumpResults[NumPumpVars];
71 void writeNodeResults();
72 void writeLinkResults();
Definition: reportwriter.h:24
Manages the writing and reading of analysis results to a binary file.
Definition: outputfile.h:30
Contains the data elements that describe a pipe network.
Definition: network.h:41