File: level.yo

package info (click to toggle)
bobcat 1.18.1-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,920 kB
  • ctags: 575
  • sloc: makefile: 12,973; cpp: 6,284; perl: 401; ansic: 68; sh: 52
file content (63 lines) | stat: -rw-r--r-- 1,892 bytes parent folder | download | duplicates (2)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
includefile(header.inc)

COMMENT(manpage, section, releasedate, archive, short name)
manpage(FBB::level)(3bobcat)(_CurYrs_)(libbobcat1-dev__CurVers_-x.tar.gz)
                    (Log-manipulator)

manpagename(FBB::level)
            (Manipulator setting the log-level of bf(FBB::Log) objects)

manpagesynopsis()
    bf(#include <bobcat/level>)nl()
    Linking option: tt(-lbobcat) 

manpagedescription()
    An bf(FBB::level) object is used to change the log-level of bf(FBB::Log)
objects. It may be inserted into an empty bf(FBB::Log) object (i.e.,
immediately before a time stamp might be inserted by the bf(FBB::Log) object
itself. This is the case after terminating a log message using a tt(std::endl)
or tt(\n) character.

includefile(namespace.inc)

manpagesection(INHERITS FROM)
    -

manpagesection(CONSTRUCTORS)
    itemization(
    itb(level(size_t nextLevel))
        The constructor is normally used in a insertion statement where it is
inserted into an bf(FBB::Log) object.

    itb(level(level const &other) throw()) 
    The copy constructor is available, but normally not used.
    )

manpagesection(OVERLOADED OPERATOR)
    itemization(
    itb(std::ostream &::operator<<(std::ostream &str, FBB::level const &)) 
        The bf(std::ostream &str) object should be an empty bf(FBB::Log)
object. In that case the value stored in the bf(FBB::level) object is used to
set the bf(FBB::Log) object's next message level. If the bf(std::ostream)
object is not an bf(FBB::Log) object or if the object is not empty, the
function returns bf(str) without further action. 
    )

manpagesection(EXAMPLE)
        verb(
    FBB::Log log;
    
    log << FBB::level(3) << "Message at level 3\n";
        )


manpagefiles()
    em(bobcat/level) - defines the class interface.

manpageseealso()
    bf(bobcat)(7), bf(log)(3bobcat)

manpagebugs()
    None Reported.

includefile(trailer.inc)