File: level.yo

package info (click to toggle)
bobcat 2.08.01-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 5,668 kB
  • ctags: 953
  • sloc: cpp: 10,403; makefile: 9,042; perl: 401; sh: 195
file content (61 lines) | stat: -rw-r--r-- 1,848 bytes parent folder | download
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
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.
    )
    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)