Beispiel #1
0
void Faces::save(BinaryFileWriter& file) const
{
	file.write(getSize());
	file.write(width);
	file.write(height);
	for (int i=0; i<getSize(); i++) {
		(*this)[i].save(file);
	}
	average_face.save(file);
	std::cout << "Saved faces to '" << file.getFilename() << "'" << std::endl;
}
void Users::save(BinaryFileWriter& file) const
{
	file.write(getSize());
	for(int i=0; i<getSize(); i++) {
		(*this)[i].save(file);
	}
	std::cout << "Saved users to '" << file.getFilename() << "'" << std::endl;

}
void User::save(BinaryFileWriter& file) const
{
	file.write(name);
	Vector::save(file);
}