Ipopt  3.12.12
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
matlabjournal.hpp
Go to the documentation of this file.
1 // Copyright (C) 2007 Peter Carbonetto. All Rights Reserved.
2 // This code is published under the Eclipse Public License.
3 //
4 // Author: Peter Carbonetto
5 // Dept. of Computer Science
6 // University of British Columbia
7 // May 19, 2007
8 
9 #ifndef INCLUDE_MATLABJOURNAL
10 #define INCLUDE_MATLABJOURNAL
11 
12 #include "IpJournalist.hpp"
13 
14 namespace Ipopt {
15 
16  // Class MatlabJournal.
17  // ---------------------------------------------------------------
18  // This class encapsulates journal output to the MATLAB console.
19  class MatlabJournal : public Journal {
20  public:
21 
22  // The constructor.
23  MatlabJournal (EJournalLevel default_level);
24 
25  // The destructor.
26  virtual ~MatlabJournal() { };
27 
28  protected:
29 
30  // These functions override the functions in the Journal class.
31  virtual void PrintImpl (EJournalCategory category, EJournalLevel level,
32  const char* str);
33  virtual void PrintfImpl (EJournalCategory category, EJournalLevel level,
34  const char* pformat, va_list ap);
35  virtual void FlushBufferImpl();
36  };
37 }
38 
39 #endif
EJournalLevel
Print Level Enum.
virtual void PrintImpl(EJournalCategory category, EJournalLevel level, const char *str)
Print to the designated output location.
MatlabJournal(EJournalLevel default_level)
virtual void FlushBufferImpl()
Flush output buffer.
Journal class (part of the Journalist implementation.).
EJournalCategory
Category Selection Enum.
virtual void PrintfImpl(EJournalCategory category, EJournalLevel level, const char *pformat, va_list ap)
Printf to the designated output location.