7 #ifndef __FWLOG_LOGGER_HPP__ 8 #define __FWLOG_LOGGER_HPP__ 10 #include "fwLog/Log.hpp" 11 #include "fwLog/config.hpp" 13 #include <fwTools/Object.hpp> 30 typedef std::vector< ::fwLog::Log > LogContainerType;
31 typedef LogContainerType::iterator IteratorType;
32 typedef LogContainerType::const_iterator ConstIteratorType;
33 typedef LogContainerType::reverse_iterator ReverseIteratorType;
34 typedef LogContainerType::const_reverse_iterator ConstReverseIteratorType;
46 FWLOG_API
void information(
const std::string& message);
52 FWLOG_API
void warning(
const std::string& message);
58 FWLOG_API
void critical(
const std::string& message);
64 FWLOG_API ::fwLog::Log getLog(
unsigned int index);
67 FWLOG_API std::size_t count()
const;
73 FWLOG_API std::size_t count(::fwLog::Log::LevelType level)
const;
78 FWLOG_API
void sort();
83 FWLOG_API
void clear();
88 return m_logContainer.empty();
93 return m_logContainer.begin();
97 return m_logContainer.end();
99 ConstIteratorType begin()
const 101 return m_logContainer.begin();
103 ConstIteratorType end()
const 105 return m_logContainer.end();
108 ReverseIteratorType rbegin()
110 return m_logContainer.rbegin();
112 ReverseIteratorType rend()
114 return m_logContainer.rend();
116 ConstReverseIteratorType rbegin()
const 118 return m_logContainer.rbegin();
120 ConstReverseIteratorType rend()
const 122 return m_logContainer.rend();
132 static bool logSorter(const ::fwLog::Log& logA, const ::fwLog::Log& logB);
142 #endif // __FWLOG_LOGGER_HPP__
bool empty() const
Return whether the logger contains logs or not.
fwLog contains classes used to manage logs.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
LogContainerType m_logContainer
Log container.
Logger class used to store logs.