Ipopt
3.12.12
|
FileJournal class. More...
#include <IpJournalist.hpp>
Public Member Functions | |
FileJournal (const std::string &name, EJournalLevel default_level) | |
Constructor. More... | |
virtual | ~FileJournal () |
Destructor. More... | |
virtual bool | Open (const char *fname) |
Open a new file for the output location. More... | |
![]() | |
Journal (const std::string &name, EJournalLevel default_level) | |
Constructor. More... | |
virtual | ~Journal () |
Destructor. More... | |
virtual std::string | Name () |
Get the name of the Journal. More... | |
virtual void | SetPrintLevel (EJournalCategory category, EJournalLevel level) |
Set the print level for a particular category. More... | |
virtual void | SetAllPrintLevels (EJournalLevel level) |
Set the print level for all category. More... | |
virtual bool | IsAccepted (EJournalCategory category, EJournalLevel level) const |
Ask if a particular print level/category is accepted by the journal. More... | |
virtual void | Print (EJournalCategory category, EJournalLevel level, const char *str) |
Print to the designated output location. More... | |
virtual void | Printf (EJournalCategory category, EJournalLevel level, const char *pformat, va_list ap) |
Printf to the designated output location. More... | |
virtual void | FlushBuffer () |
Flush output buffer. More... | |
![]() | |
ReferencedObject () | |
virtual | ~ReferencedObject () |
Index | ReferenceCount () const |
void | AddRef (const Referencer *referencer) const |
void | ReleaseRef (const Referencer *referencer) const |
Protected Member Functions | |
Implementation version of Print methods - Overloaded from | |
Journal base class. | |
virtual void | PrintImpl (EJournalCategory category, EJournalLevel level, const char *str) |
Print to the designated output location. More... | |
virtual void | PrintfImpl (EJournalCategory category, EJournalLevel level, const char *pformat, va_list ap) |
Printf to the designated output location. More... | |
virtual void | FlushBufferImpl () |
Flush output buffer. More... | |
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. More... | |
FileJournal (const FileJournal &) | |
Copy Constructor. More... | |
void | operator= (const FileJournal &) |
Overloaded Equals Operator. More... | |
Private Attributes | |
FILE * | file_ |
FILE pointer for the output destination. More... | |
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 379 of file IpJournalist.hpp.
Ipopt::FileJournal::FileJournal | ( | const std::string & | name, |
EJournalLevel | default_level | ||
) |
Constructor.
|
virtual |
Destructor.
|
private |
Default Constructor.
|
private |
Copy Constructor.
|
virtual |
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.
|
protectedvirtual |
Print to the designated output location.
Implements Ipopt::Journal.
|
protectedvirtual |
Printf to the designated output location.
Implements Ipopt::Journal.
|
protectedvirtual |
Flush output buffer.
Implements Ipopt::Journal.
|
private |
Overloaded Equals Operator.
|
private |
FILE pointer for the output destination.
Definition at line 434 of file IpJournalist.hpp.