StreamJournal 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. | |
StreamJournal () | |
Default Constructor. | |
StreamJournal (const StreamJournal &) | |
Copy Constructor. | |
void | operator= (const StreamJournal &) |
Default Assignment Operator. | |
Private Attributes | |
std::ostream * | os_ |
pointer to output stream for the output destination | |
char | buffer_ [32768] |
buffer for sprintf. | |
StreamJournal class.
This is a particular Journal implementation that writes to a stream for output.
Definition at line 498 of file IpJournalist.hpp.
Ipopt::StreamJournal::StreamJournal | ( | const std::string & | name, |
EJournalLevel | default_level | ||
) |
Constructor.
|
inlinevirtual |
Destructor.
Definition at line 508 of file IpJournalist.hpp.
|
private |
Default Constructor.
|
private |
Copy Constructor.
void Ipopt::StreamJournal::SetOutputStream | ( | std::ostream * | os | ) |
Setting the output stream pointer.
|
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 |
pointer to output stream for the output destination
Definition at line 567 of file IpJournalist.hpp.
|
private |