|
cgma
|
#include <CubitFile.hpp>
Public Member Functions | |
| CubitFile () | |
| CubitFile (const CubitString &file, const char *mode) | |
| virtual | ~CubitFile () |
| bool | open (const CubitString &file, const char *mode) |
| void | close () |
| FILE * | file () const |
| operator bool () const | |
| int | error () |
Protected Attributes | |
| FILE * | mFile |
| int | mError |
Definition at line 14 of file CubitFile.hpp.
Definition at line 7 of file CubitFile.cpp.
| CubitFile::CubitFile | ( | const CubitString & | file, |
| const char * | mode | ||
| ) |
Definition at line 12 of file CubitFile.cpp.
| CubitFile::~CubitFile | ( | ) | [virtual] |
Definition at line 18 of file CubitFile.cpp.
{
close();
}
| void CubitFile::close | ( | ) |
| int CubitFile::error | ( | ) |
Definition at line 62 of file CubitFile.cpp.
{
return this->mError;
}
| FILE * CubitFile::file | ( | ) | const |
Definition at line 52 of file CubitFile.cpp.
{
return this->mFile;
}
| bool CubitFile::open | ( | const CubitString & | file, |
| const char * | mode | ||
| ) |
Definition at line 23 of file CubitFile.cpp.
| CubitFile::operator bool | ( | ) | const |
Definition at line 57 of file CubitFile.cpp.
{
return this->mFile != NULL;
}
int CubitFile::mError [protected] |
Definition at line 45 of file CubitFile.hpp.
FILE* CubitFile::mFile [protected] |
Definition at line 44 of file CubitFile.hpp.