コード例 #1
0
ファイル: Geometry.cpp プロジェクト: nanoo-linux/test
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
ファイル: Geometry.cpp プロジェクト: nanoo-linux/test
void Geometry::readSize(RFile &f)
{
	size_.first = f.readInt();
	size_.second = f.readInt();
}