/usr/include/stxxl/bits/common
Edit: /usr/include/stxxl/bits/common/log.h (1265B)
/***************************************************************************
* include/stxxl/bits/common/log.h
*
* Part of the STXXL. See http://stxxl.sourceforge.net
*
* Copyright (C) 2004-2005 Roman Dementiev
* Copyright (C) 2009 Andreas Beckmann
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
**************************************************************************/
#ifndef STXXL_COMMON_LOG_HEADER
#define STXXL_COMMON_LOG_HEADER
#include
#include
#include
STXXL_BEGIN_NAMESPACE
class logger : public singleton
{
friend class singleton;
std::ofstream log_stream_;
std::ofstream errlog_stream_;
std::ofstream* waitlog_stream_;
logger();
~logger();
public:
inline std::ofstream & log_stream()
{
return log_stream_;
}
inline std::ofstream & errlog_stream()
{
return errlog_stream_;
}
inline std::ofstream * waitlog_stream()
{
return waitlog_stream_;
}
};
STXXL_END_NAMESPACE
#endif // !STXXL_COMMON_LOG_HEADER