Example #1
0
void SampleList::printInfo (FILE *file) {

	ssi_fprint (file, "samples\t\t%ux%u\n", getSize (), getStreamSize ());	
	ssi_fprint (file, "per class\t");
	for (ssi_size_t nclass = 0; nclass < getClassSize (); nclass++) {
		ssi_fprint (file, "%u ", getSize (nclass));
	}
	ssi_fprint (file, "\nnames\t\t");
	for (ssi_size_t nclass = 0; nclass < getClassSize (); nclass++) {
		ssi_fprint (file, "%s ", getClassName (nclass));
	}
	ssi_fprint (file, "\nstreams\t\t");
	for (ssi_size_t nstream = 0; nstream < getStreamSize (); nstream++) {
		ssi_fprint (file, "%ux%u %s", getSize (), _streams[nstream].dim, SSI_TYPE_NAMES[_streams[nstream].type]);
	}
	ssi_fprint (file, "\n");
	
}
Example #2
0
// If the current pointer is exactly at the end of the stream.
const bool CFStream::isEOF() const
{
	return getStreamPointer() == getStreamSize();
}