#include <fstream>
#include <cassert>

#include "WCP3dST/GeomDataSource.h"

using namespace WCP3DST;

GeomDataSource::GeomDataSource()
{
}

GeomDataSource::~GeomDataSource()
{
}
/*
GeomDataSource::GeomDataSource(const char* filename)
{
	if(filename){
		std::ifstream geomtryfile(filename);
		this->load(geomtryfile);

	}

}


void GeomDataSource::load(std::istream &data)
{
	std::string line;
	
}
*/
/*
void GeomDataSource::add_wire(GeomWire& wire)
{
	_wireset.insert(wire);
}
*/


void GeomDataSource::add_wire(GeomPhysicalWire& wire)
{
	_physWireSet.insert(wire);
}


bool GeomDataSource::buildPhysWCPSetMap()
{
	size_t num = _physWireSet.size();
	PhysWire2CellSetMap.clear();
	for(GeomPhysicalWireSet::const_iterator it=_physWireSet.begin(); it!=_physWireSet.end(); it++)
	{
		const GeomPhysicalWire& phywire = *it; 
	}
}

//GeomDataSource::
//GeomDataSource::
//GeomDataSource::
//GeomDataSource::


