asmlib-opencv
an ASM(Active Shape Model) implementation by C++ & OpenCV
StatModel::AFReader Class Reference

File reader with support to omit # starting lines. More...

#include <afreader.h>

List of all members.

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.

Detailed Description

File reader with support to omit # starting lines.

Author:
Mikkel B. Stegmann, Chen Xing
Version:
2010-01-26

Constructor & Destructor Documentation

StatModel::AFReader::AFReader ( const char *  filename)

Constructor. Opens the file.

Author:
Mikkel B. Stegmann
Version:
4-17-2000
Parameters:
filenameThe file to open.
Returns:
Nothing.

Destructor. Closes the file.

Author:
Mikkel B. Stegmann
Version:
4-17-2000
Returns:
Nothing.

Member Function Documentation

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.

Author:
Mikkel B. Stegmann
Version:
4-17-2000
Returns:
Nothing.
void StatModel::AFReader::Sync ( ) [inline]

Skips whitespace and any commments preceeding the current file position.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Defines