Public Member Functions | |
GlfFileWriter () | |
Default Constructor. | |
GlfFileWriter (const char *filename) | |
Constructor that opens the specified file for write. |
Definition at line 188 of file GlfFile.h.
GlfFileWriter::GlfFileWriter | ( | const char * | filename | ) |
Constructor that opens the specified file for write.
filename | file to open for writing. |
Definition at line 545 of file GlfFile.cpp.
References GlfFile::getStatusMessage(), and GlfFile::openForWrite().
00546 { 00547 if(!openForWrite(filename)) 00548 { 00549 // Failed to open for reading - print error and abort. 00550 fprintf(stderr, "%s\n", getStatusMessage()); 00551 std::cerr << "FAILURE - EXITING!!!" << std::endl; 00552 exit(-1); 00553 } 00554 }