9 #ifndef __IPJOURNALIST_HPP__ 10 #define __IPJOURNALIST_HPP__ 153 const char* format, ...)
const;
164 const std::string& line)
const;
170 const char* format, ...)
const;
232 const std::string& location_name,
233 const std::string& fname,
283 virtual std::string Name();
286 virtual void SetPrintLevel(
291 virtual void SetAllPrintLevels(
306 virtual bool IsAccepted(
314 PrintImpl(category, level, str);
319 const char* pformat, va_list ap)
321 PrintfImpl(category, level, pformat, ap);
342 const char* pformat, va_list ap)=0;
345 virtual void FlushBufferImpl()=0;
395 virtual bool Open(
const char* fname);
408 const char* pformat, va_list ap);
411 virtual void FlushBufferImpl();
451 void SetOutputStream(std::ostream* os);
464 const char* pformat, va_list ap);
467 virtual void FlushBufferImpl();
This can be used by the user's application.
virtual void FlushBuffer()
Flush output buffer.
This can be used by the user's application.
This can be used by the user's application.
void operator=(const Journalist &)
Overloaded Equals Operator.
virtual void FlushBuffer() const
Method that flushes the current buffer for all Journalists.
virtual void PrintfIndented(EJournalLevel level, EJournalCategory category, Index indent_level, const char *format,...) const
Method to print a formatted string with indentation.
std::ostream * os_
pointer to output stream for the output destination
This can be used by the user's application.
virtual SmartPtr< Journal > AddFileJournal(const std::string &location_name, const std::string &fname, EJournalLevel default_level=J_WARNING)
Add a new FileJournal.
std::string name_
Name of the output location.
FILE * file_
FILE pointer for the output destination.
This can be used by the user's application.
EJournalLevel
Print Level Enum.
This can be used by the user's application.
This can be used by the user's application.
Template class for Smart Pointers.
virtual ~StreamJournal()
Destructor.
virtual void VPrintf(EJournalLevel level, EJournalCategory category, const char *pformat, va_list ap) const
Method to print a formatted string using the va_list argument.
This can be used by the user's application.
This can be used by the user's application.
This can be used by the user's application.
virtual bool AddJournal(const SmartPtr< Journal > jrnl)
Add a new journal.
This can be used by the user's application.
int Index
Type of all indices of vectors, matrices etc.
This can be used by the user's application.
virtual ~Journalist()
Destructor...
This can be used by the user's application.
virtual void PrintStringOverLines(EJournalLevel level, EJournalCategory category, Index indent_spaces, Index max_length, const std::string &line) const
Method to print a long string including indentation.
Class responsible for all message output.
This can be used by the user's application.
virtual void Printf(EJournalCategory category, EJournalLevel level, const char *pformat, va_list ap)
Printf to the designated output location.
virtual void DeleteAllJournals()
Delete all journals curently known by the journalist.
This can be used by the user's application.
std::vector< SmartPtr< Journal > > journals_
This can be used by the user's application.
Journal class (part of the Journalist implementation.).
virtual bool ProduceOutput(EJournalLevel level, EJournalCategory category) const
Method that returns true if there is a Journal that would write output for the given JournalLevel and...
virtual void VPrintfIndented(EJournalLevel level, EJournalCategory category, Index indent_level, const char *pformat, va_list ap) const
Method to print a formatted string with indentation, using the va_list argument.
virtual void Printf(EJournalLevel level, EJournalCategory category, const char *format,...) const
Method to print a formatted string.
This can be used by the user's application.
This can be used by the user's application.
EJournalCategory
Category Selection Enum.
virtual SmartPtr< Journal > GetJournal(const std::string &location_name)
Get an existing journal.
virtual void Print(EJournalCategory category, EJournalLevel level, const char *str)
Print to the designated output location.