~ubuntu-branches/ubuntu/oneiric/libclaw/oneiric

« back to all changes in this revision

Viewing changes to claw/log_stream.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Julien Jorge
  • Date: 2010-12-23 20:55:14 UTC
  • mfrom: (4.2.1 sid)
  • Revision ID: james.westby@ubuntu.com-20101223205514-s10m6ywla7s4ttqf
Tags: 1.6.1-3
UploadĀ inĀ sid

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
  CLAW is a free library without any particular aim but being useful to 
5
5
  anyone.
6
6
 
7
 
  Copyright (C) 2005-2008 Julien Jorge
 
7
  Copyright (C) 2005-2010 Julien Jorge
8
8
 
9
9
  This library is free software; you can redistribute it and/or
10
10
  modify it under the terms of the GNU Lesser General Public
35
35
#include <claw/non_copyable.hpp>
36
36
 
37
37
#ifndef CLAW_LOGGER_EXPORT
38
 
#  ifdef _WIN32
39
 
#    ifdef claw_logger_EXPORTS
40
 
#      define CLAW_LOGGER_EXPORT __declspec(dllexport)
41
 
#    else
42
 
#      define CLAW_LOGGER_EXPORT __declspec(dllimport)
43
 
#    endif // def claw_logger_EXPORTS
44
 
#  else // def _WIN32
 
38
#  ifdef CLAW_LOGGER_NO_EXPORT
45
39
#    define CLAW_LOGGER_EXPORT
46
 
#  endif // def _WIN32
 
40
#  else
 
41
#    ifdef _WIN32
 
42
#      ifdef claw_logger_EXPORTS
 
43
#        define CLAW_LOGGER_EXPORT __declspec(dllexport)
 
44
#      else
 
45
#        define CLAW_LOGGER_EXPORT __declspec(dllimport)
 
46
#      endif // def claw_logger_EXPORTS
 
47
#    else // def _WIN32
 
48
#      define CLAW_LOGGER_EXPORT
 
49
#    endif // def _WIN32
 
50
#  endif // def CLAW_LOGGER_NO_EXPORT
47
51
#endif // ndef CLAW_LOGGER_EXPORT
48
52
 
49
53
namespace claw
66
70
   */
67
71
  class CLAW_LOGGER_EXPORT console_logger
68
72
    : public log_stream,
69
 
      public claw::concept::non_copyable
 
73
      public pattern::non_copyable
70
74
  {
71
75
  public:
72
76
    virtual void write( const std::string& str );
79
83
   */
80
84
  class CLAW_LOGGER_EXPORT file_logger
81
85
    : public log_stream,
82
 
      public claw::concept::non_copyable
 
86
      public pattern::non_copyable
83
87
  {
84
88
  public:
85
89
    file_logger( const std::string& filename );