Public Member Functions | |
GlfFileReader () | |
Default Constructor. | |
GlfFileReader (const char *filename) | |
Constructor that opens the specified file for read. |
Definition at line 173 of file GlfFile.h.
GlfFileReader::GlfFileReader | ( | const char * | filename | ) |
Constructor that opens the specified file for read.
filename | file to open for reading. |
Definition at line 521 of file GlfFile.cpp.
References GlfFile::getStatusMessage(), and GlfFile::openForRead().
00522 { 00523 if(!openForRead(filename)) 00524 { 00525 // Failed to open for reading - print error and abort. 00526 fprintf(stderr, "%s\n", getStatusMessage()); 00527 std::cerr << "FAILURE - EXITING!!!" << std::endl; 00528 exit(-1); 00529 } 00530 }