30#ifndef __CLAW_LOG_STREAM_HPP__
31#define __CLAW_LOG_STREAM_HPP__
38#ifndef CLAW_LOGGER_EXPORT
39#ifdef CLAW_LOGGER_NO_EXPORT
40#define CLAW_LOGGER_EXPORT
43#ifdef claw_logger_EXPORTS
44#define CLAW_LOGGER_EXPORT __declspec(dllexport)
46#define CLAW_LOGGER_EXPORT __declspec(dllimport)
49#define CLAW_LOGGER_EXPORT
64 virtual void write(
const std::string& str) = 0;
77 virtual void write(
const std::string& str);
93 virtual void write(
const std::string& str);
98 std::ofstream* m_file;
This class write log messages in std::clog.
virtual void write(const std::string &str)
Write a string in the stream.
virtual void flush()
Flush the stream.
virtual void flush()
Flush the stream.
virtual void write(const std::string &str)
Write a string in the file.
file_logger(const std::string &filename)
Constructor.
Base class for streams accepting log output.
virtual void flush()
Flush the stream.
Inherit from this class to forbid construction of your class by copy.
This is the main namespace.
Inherit from this class to forbid copy constructor in your class.