asmlib-opencv
an ASM(Active Shape Model) implementation by C++ & OpenCV
|
File reader with support to omit # starting lines. More...
#include <afreader.h>
Public Member Functions | |
AFReader (const char *filename) | |
Constructor. Opens the file. | |
~AFReader () | |
Destructor. Closes the file. | |
bool | MoreNonWhiteSpaceOnLine () |
Returns true if more white space is present on the current line. | |
void | Sync () |
Skips whitespace and any commments preceeding the current file position. | |
bool | IsValid () |
Returns true if the file is valid. | |
FILE * | FH () |
Current open file. |
File reader with support to omit # starting lines.
StatModel::AFReader::AFReader | ( | const char * | filename | ) |
Constructor. Opens the file.
filename | The file to open. |
Destructor. Closes the file.
FILE* StatModel::AFReader::FH | ( | ) | [inline] |
Current open file.
bool StatModel::AFReader::IsValid | ( | ) | [inline] |
Returns true if the file is valid.
Returns true if more white space is present on the current line.
void StatModel::AFReader::Sync | ( | ) | [inline] |
Skips whitespace and any commments preceeding the current file position.