FileJournal class. More...
#include <IpJournalist.hpp>


Public Member Functions | |
| FileJournal (const std::string &name, EJournalLevel default_level) | |
| Constructor. | |
| virtual | ~FileJournal () |
| Destructor. | |
| bool | Open (const char *fname) |
| Open a new file for the output location. | |
Protected Member Functions | |
Implementation version of Print methods - Overloaded from | |
| virtual void | PrintImpl (EJournalCategory category, EJournalLevel level, const char *str) |
| Print to the designated output location. | |
| virtual void | PrintfImpl (EJournalCategory category, EJournalLevel level, const char *pformat, va_list ap) |
| Printf to the designated output location. | |
| virtual void | FlushBufferImpl () |
| Flush output buffer. | |
Private Member Functions | |
Default Compiler Generated Methods | |
| FileJournal () | |
| Default Constructor. | |
| FileJournal (const FileJournal &) | |
| Copy Constructor. | |
| void | operator= (const FileJournal &) |
| Overloaded Equals Operator. | |
Private Attributes | |
| FILE * | file_ |
| FILE pointer for the output destination. | |
FileJournal class.
This is a particular Journal implementation that writes to a file for output. It can write to (stdout, stderr, or disk) by using "stdout" and "stderr" as filenames.
Definition at line 366 of file IpJournalist.hpp.
| Ipopt::FileJournal::FileJournal | ( | const std::string & | name, | |
| EJournalLevel | default_level | |||
| ) |
Constructor.
| virtual Ipopt::FileJournal::~FileJournal | ( | ) | [virtual] |
Destructor.
| Ipopt::FileJournal::FileJournal | ( | ) | [private] |
Default Constructor.
| Ipopt::FileJournal::FileJournal | ( | const FileJournal & | ) | [private] |
Copy Constructor.
| bool Ipopt::FileJournal::Open | ( | const char * | fname | ) |
Open a new file for the output location.
Special Names: stdout means stdout, : stderr means stderr.
Return code is false only if the file with the given name could not be opened.
| virtual void Ipopt::FileJournal::PrintImpl | ( | EJournalCategory | category, | |
| EJournalLevel | level, | |||
| const char * | str | |||
| ) | [protected, virtual] |
Print to the designated output location.
Implements Ipopt::Journal.
| virtual void Ipopt::FileJournal::PrintfImpl | ( | EJournalCategory | category, | |
| EJournalLevel | level, | |||
| const char * | pformat, | |||
| va_list | ap | |||
| ) | [protected, virtual] |
Printf to the designated output location.
Implements Ipopt::Journal.
| virtual void Ipopt::FileJournal::FlushBufferImpl | ( | ) | [protected, virtual] |
Flush output buffer.
Implements Ipopt::Journal.
| void Ipopt::FileJournal::operator= | ( | const FileJournal & | ) | [private] |
Overloaded Equals Operator.
Reimplemented from Ipopt::Journal.
FILE* Ipopt::FileJournal::file_ [private] |
FILE pointer for the output destination.
Definition at line 421 of file IpJournalist.hpp.
1.6.1