summaryrefslogtreecommitdiff
path: root/libcult/cult/trace/record.ixx
blob: ae564a45e98941e44d3c0848f360f5c105fc94f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// file      : cult/trace/record.ixx
// author    : Boris Kolpackov <boris@kolpackov.net>
// copyright : Copyright (c) 2005-2010 Boris Kolpackov
// license   : GNU GPL v2 + exceptions; see accompanying LICENSE file

namespace Cult
{
  namespace Trace
  {
    inline
    Record::
    Record (Char const* id, Int level)
        : id_ (id), level_ (level), sbuf_ (buf_, sizeof (buf_)), os_ (&sbuf_)
    {
    }

    inline
    Char const* Record::
    text () const
    {
      return buf_;
    }

    inline
    Char const* Record::
    id () const
    {
      return id_;
    }

    inline
    Int Record::
    level () const
    {
      return level_;
    }

    inline
    Void Record::
    level (Int level)
    {
      level_ = level;
    }
  }
}