Last change
on this file since 4bc937 was 4dca8e, checked in by Frederik Heber <heber@…>, 16 years ago |
definitions for class element and verbose moved to their own header files and reducing contents of helpers.hpp
|
-
Property mode
set to
100644
|
File size:
824 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * verbose.hpp
|
---|
3 | *
|
---|
4 | * Created on: Aug 3, 2009
|
---|
5 | * Author: heber
|
---|
6 | */
|
---|
7 |
|
---|
8 | #ifndef VERBOSE_HPP_
|
---|
9 | #define VERBOSE_HPP_
|
---|
10 |
|
---|
11 | /************************************* Class Verbose & Binary *******************************/
|
---|
12 |
|
---|
13 | /** Verbose is an IO manipulator, that writes tabs according to \a Verbosity level.
|
---|
14 | */
|
---|
15 | class Verbose
|
---|
16 | {
|
---|
17 | public:
|
---|
18 | Verbose(int value) : Verbosity(value) { }
|
---|
19 |
|
---|
20 | ostream& print (ostream &ost) const;
|
---|
21 | private:
|
---|
22 | int Verbosity;
|
---|
23 | };
|
---|
24 |
|
---|
25 | ostream& operator<<(ostream& ost,const Verbose& m);
|
---|
26 |
|
---|
27 | /** Binary is an IO manipulator, that writes 0 and 1 according to number \a Binary.
|
---|
28 | */
|
---|
29 | class Binary
|
---|
30 | {
|
---|
31 | public:
|
---|
32 | Binary(int value) : BinaryNumber(value) { }
|
---|
33 |
|
---|
34 | ostream& print (ostream &ost) const;
|
---|
35 | private:
|
---|
36 | int BinaryNumber;
|
---|
37 | };
|
---|
38 |
|
---|
39 | ostream& operator<<(ostream& ost,const Binary& m);
|
---|
40 |
|
---|
41 |
|
---|
42 |
|
---|
43 | #endif /* VERBOSE_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.