#include "CivReportReader.h"

#include "StringUtils.h"
#include "CivReport.h"
#include<fstream>
#include<iostream>

CivReportReader::CivReportReader()
{
	
}

float CivReportReader::readEnergy(const string& pumpSn)
{
	float res = 0;
	return res;
}

void CivReportReader::open(const string& reportFile)
{
	ifstream reader(reportFile.c_str());

	// ÖðÐÐ¶ÁÈ¡
	string sLine;
	int lineNumber = 0;
	while (getline(reader, sLine))
	{
		StringUtils::trim(sLine);
		if (sLine.find(EnergyHead))
		{

		}
		lineNumber++;
	}

	reader.close();
}
