2008-05-07 21:33:35 +00:00
|
|
|
#ifndef AI_LOGSTREAM_H_INC
|
|
|
|
#define AI_LOGSTREAM_H_INC
|
|
|
|
|
2008-05-08 20:02:51 +00:00
|
|
|
#include <string>
|
|
|
|
|
2008-05-07 21:33:35 +00:00
|
|
|
namespace Assimp
|
|
|
|
{
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
/** @class LogStream
|
|
|
|
* @brief Abstract interface for log stream implementations.
|
|
|
|
*/
|
2008-06-22 10:09:26 +00:00
|
|
|
class ASSIMP_API LogStream
|
2008-05-07 21:33:35 +00:00
|
|
|
{
|
|
|
|
protected:
|
|
|
|
/** @brief Default constructor */
|
|
|
|
LogStream();
|
|
|
|
|
|
|
|
public:
|
|
|
|
/** @brief Virtual destructor */
|
|
|
|
virtual ~LogStream();
|
|
|
|
|
|
|
|
/** @brief Overwrite this for your own output methods */
|
|
|
|
virtual void write(const std::string &message) = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
// Default constructor
|
|
|
|
inline LogStream::LogStream()
|
|
|
|
{
|
|
|
|
// empty
|
|
|
|
}
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
// Virtual destructor
|
|
|
|
inline LogStream::~LogStream()
|
|
|
|
{
|
|
|
|
// empty
|
|
|
|
}
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
} // Namespace Assimp
|
|
|
|
|
|
|
|
#endif
|