alaCarte Maps
Renderer for OpenStreetMap tiles
ParserLogger::LogStream Class Reference

#include <parser_logger.hpp>

Public Member Functions

 LogStream (const shared_ptr< ParserLogger > &logger, Category cat)
 This file is part of alaCarte. More...
 
 LogStream (const LogStream &other)
 Creates a log stream from another log stream. More...
 
 ~LogStream ()
 Destroyes the log stream. More...
 
template<typename T >
LogStreamoperator<< (const T &v)
 
string logvalue () const
 Returns the log value. More...
 

Private Attributes

std::ostringstream value
 
shared_ptr< ParserLoggerlogger
 
Category category
 

Detailed Description

Definition at line 41 of file parser_logger.hpp.

Constructor & Destructor Documentation

ParserLogger::LogStream::LogStream ( const shared_ptr< ParserLogger > &  logger,
Category  cat 
)

This file is part of alaCarte.

alaCarte is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

alaCarte is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with alaCarte. If not, see http://www.gnu.org/licenses/.

Copyright alaCarte 2012-2013 Simon Dreher, Florian Jacob, Tobias Kahlert, Patrick Niklaus, Bernhard Scheirle, Lisa Winter Maintainer: Tobias Kahlert Creates a log stream

Parameters
loggerused for output
catCategory for this outputstream

Definition at line 33 of file parser_logger.cpp.

ParserLogger::LogStream::LogStream ( const LogStream other)

Creates a log stream from another log stream.

Parameters
otheroutputstream

Definition at line 46 of file parser_logger.cpp.

ParserLogger::LogStream::~LogStream ( )

Destroyes the log stream.

Definition at line 57 of file parser_logger.cpp.

Member Function Documentation

string ParserLogger::LogStream::logvalue ( ) const

Returns the log value.

Definition at line 69 of file parser_logger.cpp.

template<typename T >
LogStream& ParserLogger::LogStream::operator<< ( const T &  v)
inline

Definition at line 49 of file parser_logger.hpp.

Member Data Documentation

Category ParserLogger::LogStream::category
private

Definition at line 59 of file parser_logger.hpp.

shared_ptr<ParserLogger> ParserLogger::LogStream::logger
private

Definition at line 58 of file parser_logger.hpp.

std::ostringstream ParserLogger::LogStream::value
private

Definition at line 57 of file parser_logger.hpp.


The documentation for this class was generated from the following files: