예제 #1
0
bool Geometry::readOnePoint(RFile &f)
{
	int x;
	int y;
	double c;
	try {
		x = f.readInt();
		y = f.readInt();
		c = f.readDouble();
	} catch (RFileException &e) {
		return false;
	}
	points_.push_back(PointCharge(x, y, c));
	return true;
}
예제 #2
0
void Geometry::readSize(RFile &f)
{
	size_.first = f.readInt();
	size_.second = f.readInt();
}