Main Page
Namespaces
Classes
Package Documentation
FWCore
ParameterSet
interface
DocFormatHelper.h
Go to the documentation of this file.
1
#ifndef FWCore_ParameterSet_DocFormatHelper_h
2
#define FWCore_ParameterSet_DocFormatHelper_h
3
4
// Used internally by ParameterSetDescription in its
5
// print function. This function is used to produce
6
// human readable documentation.
7
8
#include <string>
9
#include <iosfwd>
10
11
namespace
edm
{
12
13
class
ParameterDescriptionNode;
14
15
class
DocFormatHelper
{
16
17
public
:
18
19
enum
DescriptionParent
{
20
TOP
,
21
OR
,
22
XOR
,
23
AND
,
24
OTHER
25
};
26
27
DocFormatHelper
() :
28
brief_
(
false
),
29
lineWidth_
(80),
30
indentation_
(4),
31
startColumn2_
(24
U
),
32
section_
(),
33
pass_
(0),
34
column1_
(0),
35
column2_
(0),
36
column3_
(0),
37
counter_
(0),
38
parent_
(
OTHER
)
39
{ }
40
41
void
init
();
42
43
bool
brief
()
const
{
return
brief_
; }
44
size_t
lineWidth
()
const
{
return
lineWidth_
; }
45
int
indentation
()
const
{
return
indentation_
; }
46
int
startColumn2
()
const
{
return
startColumn2_
; }
47
48
void
setBrief
(
bool
value
) {
brief_
=
value
; }
49
void
setLineWidth
(
size_t
value
) {
lineWidth_
=
value
; }
50
void
setIndentation
(
int
value
) {
indentation_
=
value
; }
51
52
std::string
const
&
section
()
const
{
return
section_
; }
53
void
setSection
(
std::string
const
&
value
) {
section_
=
value
; }
54
55
int
pass
()
const
{
return
pass_
; }
56
void
setPass
(
int
value
) {
pass_
=
value
; }
57
58
size_t
column1
()
const
{
return
column1_
; }
59
size_t
column2
()
const
{
return
column2_
; }
60
size_t
column3
()
const
{
return
column3_
; }
61
62
void
setAtLeast1
(
size_t
width
) {
if
(width >
column1_
)
column1_
=
width
; }
63
void
setAtLeast2
(
size_t
width
) {
if
(width >
column2_
)
column2_
=
width
; }
64
void
setAtLeast3
(
size_t
width
) {
if
(width >
column3_
)
column3_
=
width
; }
65
66
int
counter
()
const
{
return
counter_
; }
67
void
setCounter
(
int
value
) {
counter_
=
value
; }
68
void
incrementCounter
() { ++
counter_
; }
69
void
decrementCounter
() { --
counter_
; }
70
71
DescriptionParent
parent
()
const
{
return
parent_
; }
72
void
setParent
(
DescriptionParent
value
) {
parent_
=
value
; }
73
74
size_t
commentWidth
()
const
;
75
76
static
void
wrapAndPrintText
(std::ostream & os,
77
std::string
const
&
text
,
78
size_t
indent
,
79
size_t
suggestedWidth);
80
81
void
indent
(std::ostream & os)
const
;
82
void
indent2
(std::ostream & os)
const
;
83
84
static
int
offsetModuleLabel
() {
return
2; }
85
static
int
offsetTopLevelPSet
() {
return
2; }
86
static
int
offsetSectionContent
() {
return
4; }
87
88
private
:
89
90
bool
brief_
;
91
size_t
lineWidth_
;
92
int
indentation_
;
93
size_t
startColumn2_
;
94
95
std::string
section_
;
96
97
int
pass_
;
98
99
size_t
column1_
;
100
size_t
column2_
;
101
size_t
column3_
;
102
103
int
counter_
;
104
105
DescriptionParent
parent_
;
106
};
107
}
108
#endif
edm::DocFormatHelper::counter_
int counter_
Definition:
DocFormatHelper.h:103
edm::DocFormatHelper::brief_
bool brief_
Definition:
DocFormatHelper.h:90
edm::DocFormatHelper::section_
std::string section_
Definition:
DocFormatHelper.h:95
edm::DocFormatHelper::OR
Definition:
DocFormatHelper.h:21
edm::DocFormatHelper::AND
Definition:
DocFormatHelper.h:23
edm::DocFormatHelper::counter
int counter() const
Definition:
DocFormatHelper.h:66
funct::false
false
Definition:
Factorize.h:35
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
edm::DocFormatHelper::wrapAndPrintText
static void wrapAndPrintText(std::ostream &os, std::string const &text, size_t indent, size_t suggestedWidth)
Definition:
DocFormatHelper.cc:98
edm::DocFormatHelper::startColumn2_
size_t startColumn2_
Definition:
DocFormatHelper.h:93
edm::DocFormatHelper::TOP
Definition:
DocFormatHelper.h:20
edm::DocFormatHelper::startColumn2
int startColumn2() const
Definition:
DocFormatHelper.h:46
edm::DocFormatHelper::init
void init()
Definition:
DocFormatHelper.cc:115
mitigatedMETSequence_cff.U
U
Definition:
mitigatedMETSequence_cff.py:36
edm::DocFormatHelper::parent
DescriptionParent parent() const
Definition:
DocFormatHelper.h:71
edm::DocFormatHelper::setCounter
void setCounter(int value)
Definition:
DocFormatHelper.h:67
RecoTauValidation_cfi.text
text
Definition:
RecoTauValidation_cfi.py:334
edm::DocFormatHelper::column1_
size_t column1_
Definition:
DocFormatHelper.h:99
edm::DocFormatHelper::lineWidth
size_t lineWidth() const
Definition:
DocFormatHelper.h:44
edm::DocFormatHelper::offsetModuleLabel
static int offsetModuleLabel()
Definition:
DocFormatHelper.h:84
edm::DocFormatHelper::indentation
int indentation() const
Definition:
DocFormatHelper.h:45
edm::DocFormatHelper::pass_
int pass_
Definition:
DocFormatHelper.h:97
edm::DocFormatHelper::setBrief
void setBrief(bool value)
Definition:
DocFormatHelper.h:48
edm::DocFormatHelper::incrementCounter
void incrementCounter()
Definition:
DocFormatHelper.h:68
edm::DocFormatHelper::setAtLeast2
void setAtLeast2(size_t width)
Definition:
DocFormatHelper.h:63
edm::DocFormatHelper::offsetSectionContent
static int offsetSectionContent()
Definition:
DocFormatHelper.h:86
value
Definition:
value.py:1
edm::DocFormatHelper::indent2
void indent2(std::ostream &os) const
Definition:
DocFormatHelper.cc:142
edm::DocFormatHelper::OTHER
Definition:
DocFormatHelper.h:24
edm::DocFormatHelper::setPass
void setPass(int value)
Definition:
DocFormatHelper.h:56
edm::DocFormatHelper::XOR
Definition:
DocFormatHelper.h:22
edm::DocFormatHelper::DocFormatHelper
DocFormatHelper()
Definition:
DocFormatHelper.h:27
edm::DocFormatHelper::parent_
DescriptionParent parent_
Definition:
DocFormatHelper.h:105
edm::DocFormatHelper::brief
bool brief() const
Definition:
DocFormatHelper.h:43
relativeConstraints.value
value
Definition:
relativeConstraints.py:52
edm::DocFormatHelper::pass
int pass() const
Definition:
DocFormatHelper.h:55
edm::DocFormatHelper::column2
size_t column2() const
Definition:
DocFormatHelper.h:59
edm::DocFormatHelper::column3_
size_t column3_
Definition:
DocFormatHelper.h:101
ApeEstimator_cff.width
width
Definition:
ApeEstimator_cff.py:24
edm::DocFormatHelper::column3
size_t column3() const
Definition:
DocFormatHelper.h:60
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::DocFormatHelper
Definition:
DocFormatHelper.h:15
edm::DocFormatHelper::lineWidth_
size_t lineWidth_
Definition:
DocFormatHelper.h:91
edm::DocFormatHelper::setAtLeast1
void setAtLeast1(size_t width)
Definition:
DocFormatHelper.h:62
edm::DocFormatHelper::column1
size_t column1() const
Definition:
DocFormatHelper.h:58
edm::DocFormatHelper::setAtLeast3
void setAtLeast3(size_t width)
Definition:
DocFormatHelper.h:64
edm::DocFormatHelper::column2_
size_t column2_
Definition:
DocFormatHelper.h:100
edm::DocFormatHelper::indent
void indent(std::ostream &os) const
Definition:
DocFormatHelper.cc:136
edm::DocFormatHelper::offsetTopLevelPSet
static int offsetTopLevelPSet()
Definition:
DocFormatHelper.h:85
edm::DocFormatHelper::setSection
void setSection(std::string const &value)
Definition:
DocFormatHelper.h:53
edm::DocFormatHelper::indentation_
int indentation_
Definition:
DocFormatHelper.h:92
edm::DocFormatHelper::DescriptionParent
DescriptionParent
Definition:
DocFormatHelper.h:19
edm::DocFormatHelper::commentWidth
size_t commentWidth() const
Definition:
DocFormatHelper.cc:125
edm::DocFormatHelper::setParent
void setParent(DescriptionParent value)
Definition:
DocFormatHelper.h:72
edm::DocFormatHelper::setIndentation
void setIndentation(int value)
Definition:
DocFormatHelper.h:50
edm::DocFormatHelper::setLineWidth
void setLineWidth(size_t value)
Definition:
DocFormatHelper.h:49
edm::DocFormatHelper::section
std::string const & section() const
Definition:
DocFormatHelper.h:52
edm::DocFormatHelper::decrementCounter
void decrementCounter()
Definition:
DocFormatHelper.h:69
Generated for CMSSW Reference Manual by
1.8.11