Exemple #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;
}
Exemple #2
0
void Geometry::readSize(RFile &f)
{
	size_.first = f.readInt();
	size_.second = f.readInt();
}