FileJournal class. More...
#include <IpJournalist.hpp>
Protected Member Functions | |
Implementation version of Print methods | |
Overloaded from Journal base class. | |
virtual void | PrintImpl (EJournalCategory, EJournalLevel, const char *str) |
Print to the designated output location. | |
virtual void | PrintfImpl (EJournalCategory, EJournalLevel, const char *pformat, va_list ap) |
Printf to the designated output location. | |
virtual void | FlushBufferImpl () |
Flush output buffer. | |
Implementation version of Print methods. | |
Derived classes should overload the Impl methods. |
Private Member Functions | |
Default Compiler Generated Methods | |
(Hidden to avoid implicit creation/calling). These methods are not implemented and we do not want the compiler to implement them for us, so we declare them private and do not define them. This ensures that they will not be implicitly created/called. | |
FileJournal () | |
Default Constructor. | |
FileJournal (const FileJournal &) | |
Copy Constructor. | |
void | operator= (const FileJournal &) |
Default Assignment 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 416 of file IpJournalist.hpp.
Ipopt::FileJournal::FileJournal | ( | const std::string & | name, |
EJournalLevel | default_level | ||
) |
Constructor.
|
virtual |
Destructor.
|
private |
Default Constructor.
|
private |
Copy Constructor.
Open a new file for the output location.
Special Names: stdout means stdout, : stderr means stderr.
fname | name of file to open |
fappend | whether to append or truncate file (since 3.14.13) |
|
protectedvirtual |
Print to the designated output location.
Implements Ipopt::Journal.
|
protectedvirtual |
Printf to the designated output location.
Implements Ipopt::Journal.
Flush output buffer.
Implements Ipopt::Journal.
|
private |
Default Assignment Operator.
|
private |
FILE pointer for the output destination.
Definition at line 491 of file IpJournalist.hpp.