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
public
:
17
enum
DescriptionParent
{
TOP
,
OR
,
XOR
,
AND
,
OTHER
};
18
19
DocFormatHelper
()
20
:
brief_
(
false
),
21
lineWidth_
(80),
22
indentation_
(4),
23
startColumn2_
(24
U
),
24
section_
(),
25
pass_
(0),
26
column1_
(0),
27
column2_
(0),
28
column3_
(0),
29
counter_
(0),
30
parent_
(
OTHER
) {}
31
32
void
init
();
33
34
bool
brief
()
const
{
return
brief_
; }
35
size_t
lineWidth
()
const
{
return
lineWidth_
; }
36
int
indentation
()
const
{
return
indentation_
; }
37
int
startColumn2
()
const
{
return
startColumn2_
; }
38
39
void
setBrief
(
bool
value
) {
brief_
=
value
; }
40
void
setLineWidth
(
size_t
value
) {
lineWidth_
=
value
; }
41
void
setIndentation
(
int
value
) {
indentation_
=
value
; }
42
43
std::string
const
&
section
()
const
{
return
section_
; }
44
void
setSection
(
std::string
const
&
value
) {
section_
=
value
; }
45
46
int
pass
()
const
{
return
pass_
; }
47
void
setPass
(
int
value
) {
pass_
=
value
; }
48
49
size_t
column1
()
const
{
return
column1_
; }
50
size_t
column2
()
const
{
return
column2_
; }
51
size_t
column3
()
const
{
return
column3_
; }
52
53
void
setAtLeast1
(
size_t
width
) {
54
if
(
width
>
column1_
)
55
column1_
=
width
;
56
}
57
void
setAtLeast2
(
size_t
width
) {
58
if
(
width
>
column2_
)
59
column2_
=
width
;
60
}
61
void
setAtLeast3
(
size_t
width
) {
62
if
(
width
>
column3_
)
63
column3_
=
width
;
64
}
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,
std::string
const
&
text
,
size_t
indent
,
size_t
suggestedWidth);
77
78
void
indent
(std::ostream& os)
const
;
79
void
indent2
(std::ostream& os)
const
;
80
81
static
int
offsetModuleLabel
() {
return
2; }
82
static
int
offsetTopLevelPSet
() {
return
2; }
83
static
int
offsetSectionContent
() {
return
4; }
84
85
private
:
86
bool
brief_
;
87
size_t
lineWidth_
;
88
int
indentation_
;
89
size_t
startColumn2_
;
90
91
std::string
section_
;
92
93
int
pass_
;
94
95
size_t
column1_
;
96
size_t
column2_
;
97
size_t
column3_
;
98
99
int
counter_
;
100
101
DescriptionParent
parent_
;
102
};
103
}
// namespace edm
104
#endif
edm::DocFormatHelper::counter_
int counter_
Definition:
DocFormatHelper.h:99
edm::DocFormatHelper::brief_
bool brief_
Definition:
DocFormatHelper.h:86
edm::DocFormatHelper::section_
std::string section_
Definition:
DocFormatHelper.h:91
edm::DocFormatHelper::OR
Definition:
DocFormatHelper.h:17
edm::DocFormatHelper::counter
int counter() const
Definition:
DocFormatHelper.h:66
edm::DocFormatHelper::AND
Definition:
DocFormatHelper.h:17
edm::DocFormatHelper::pass
int pass() const
Definition:
DocFormatHelper.h:46
funct::false
false
Definition:
Factorize.h:29
edm::DocFormatHelper::startColumn2
int startColumn2() const
Definition:
DocFormatHelper.h:37
edm::DocFormatHelper::wrapAndPrintText
static void wrapAndPrintText(std::ostream &os, std::string const &text, size_t indent, size_t suggestedWidth)
Definition:
DocFormatHelper.cc:97
edm::DocFormatHelper::startColumn2_
size_t startColumn2_
Definition:
DocFormatHelper.h:89
edm::DocFormatHelper::TOP
Definition:
DocFormatHelper.h:17
edm::DocFormatHelper::init
void init()
Definition:
DocFormatHelper.cc:113
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::DocFormatHelper::indentation
int indentation() const
Definition:
DocFormatHelper.h:36
mitigatedMETSequence_cff.U
U
Definition:
mitigatedMETSequence_cff.py:36
edm::DocFormatHelper::commentWidth
size_t commentWidth() const
Definition:
DocFormatHelper.cc:123
edm::DocFormatHelper::setCounter
void setCounter(int value)
Definition:
DocFormatHelper.h:67
edm::DocFormatHelper::column1_
size_t column1_
Definition:
DocFormatHelper.h:95
edm::DocFormatHelper::indent2
void indent2(std::ostream &os) const
Definition:
DocFormatHelper.cc:139
edm::DocFormatHelper::offsetModuleLabel
static int offsetModuleLabel()
Definition:
DocFormatHelper.h:81
edm::DocFormatHelper::pass_
int pass_
Definition:
DocFormatHelper.h:93
edm::DocFormatHelper::setBrief
void setBrief(bool value)
Definition:
DocFormatHelper.h:39
edm::DocFormatHelper::column1
size_t column1() const
Definition:
DocFormatHelper.h:49
edm::DocFormatHelper::incrementCounter
void incrementCounter()
Definition:
DocFormatHelper.h:68
edm::DocFormatHelper::setAtLeast2
void setAtLeast2(size_t width)
Definition:
DocFormatHelper.h:57
edm::DocFormatHelper::offsetSectionContent
static int offsetSectionContent()
Definition:
DocFormatHelper.h:83
value
Definition:
value.py:1
edm::DocFormatHelper::column3
size_t column3() const
Definition:
DocFormatHelper.h:51
edm::DocFormatHelper::OTHER
Definition:
DocFormatHelper.h:17
edm::DocFormatHelper::setPass
void setPass(int value)
Definition:
DocFormatHelper.h:47
edm::DocFormatHelper::column2
size_t column2() const
Definition:
DocFormatHelper.h:50
edm::DocFormatHelper::XOR
Definition:
DocFormatHelper.h:17
edm::DocFormatHelper::DocFormatHelper
DocFormatHelper()
Definition:
DocFormatHelper.h:19
edm::DocFormatHelper::parent_
DescriptionParent parent_
Definition:
DocFormatHelper.h:101
edm::DocFormatHelper::section
std::string const & section() const
Definition:
DocFormatHelper.h:43
relativeConstraints.value
value
Definition:
relativeConstraints.py:53
submitPVValidationJobs.text
string text
Definition:
submitPVValidationJobs.py:483
edm::DocFormatHelper::column3_
size_t column3_
Definition:
DocFormatHelper.h:97
ApeEstimator_cff.width
width
Definition:
ApeEstimator_cff.py:24
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::DocFormatHelper::brief
bool brief() const
Definition:
DocFormatHelper.h:34
edm::DocFormatHelper
Definition:
DocFormatHelper.h:15
edm::DocFormatHelper::lineWidth_
size_t lineWidth_
Definition:
DocFormatHelper.h:87
edm::DocFormatHelper::lineWidth
size_t lineWidth() const
Definition:
DocFormatHelper.h:35
edm::DocFormatHelper::setAtLeast1
void setAtLeast1(size_t width)
Definition:
DocFormatHelper.h:53
edm::DocFormatHelper::setAtLeast3
void setAtLeast3(size_t width)
Definition:
DocFormatHelper.h:61
edm::DocFormatHelper::column2_
size_t column2_
Definition:
DocFormatHelper.h:96
edm::DocFormatHelper::offsetTopLevelPSet
static int offsetTopLevelPSet()
Definition:
DocFormatHelper.h:82
edm::DocFormatHelper::setSection
void setSection(std::string const &value)
Definition:
DocFormatHelper.h:44
edm::DocFormatHelper::indent
void indent(std::ostream &os) const
Definition:
DocFormatHelper.cc:133
edm::DocFormatHelper::indentation_
int indentation_
Definition:
DocFormatHelper.h:88
edm::DocFormatHelper::DescriptionParent
DescriptionParent
Definition:
DocFormatHelper.h:17
edm::DocFormatHelper::setParent
void setParent(DescriptionParent value)
Definition:
DocFormatHelper.h:72
edm::DocFormatHelper::parent
DescriptionParent parent() const
Definition:
DocFormatHelper.h:71
edm::DocFormatHelper::setIndentation
void setIndentation(int value)
Definition:
DocFormatHelper.h:41
edm::DocFormatHelper::setLineWidth
void setLineWidth(size_t value)
Definition:
DocFormatHelper.h:40
edm::DocFormatHelper::decrementCounter
void decrementCounter()
Definition:
DocFormatHelper.h:69
Generated for CMSSW Reference Manual by
1.8.14