src
Fireworks
Core
interface
FWItemValueGetter.h
Go to the documentation of this file.
1
#ifndef Fireworks_Core_FWItemValueGetter_h
2
#define Fireworks_Core_FWItemValueGetter_h
3
// -*- C++ -*-
4
//
5
// Package: Core
6
// Class : FWItemValueGetter
7
//
16
//
17
// Original Author: Chris Jones
18
// Created: Sun Nov 30 16:14:58 EST 2008
19
//
20
21
#include <string>
22
#include <vector>
23
24
#include "Rtypes.h"
25
#include "
FWCore/Reflection/interface/TypeWithDict.h
"
26
27
#include "
CommonTools/Utils/interface/parser/ExpressionPtr.h
"
28
#include "
CommonTools/Utils/interface/parser/ExpressionBase.h
"
29
30
class
FWItemValueGetter
{
31
public
:
32
FWItemValueGetter
(
const
edm::TypeWithDict
&,
const
std::string
& iPurpose);
33
double
valueFor
(
const
void
*,
int
idx
)
const
;
34
UInt_t
precision
(
int
idx
)
const
;
35
std::vector<std::string>
getTitles
()
const
;
36
int
numValues
()
const
;
37
38
const
std::string
&
getToolTip
(
const
void
* iObject)
const
;
39
40
private
:
41
struct
Entry
{
42
reco::parser::ExpressionPtr
m_expr
;
43
std::string
m_expression
;
44
std::string
m_unit
;
45
std::string
m_title
;
46
UInt_t
m_precision
;
47
48
Entry
(
reco::parser::ExpressionPtr
iExpr,
std::string
iExpression,
std::string
iUnit,
std::string
iTitle,
int
iPrec)
49
:
m_expr
(iExpr),
m_expression
(iExpression),
m_unit
(iUnit),
m_title
(iTitle),
m_precision
(iPrec) {}
50
};
51
52
bool
addEntry
(
std::string
iExpression,
int
iPrec = 2,
std::string
iTitle =
""
,
std::string
iUnit =
""
);
53
54
typedef
std::vector<Entry>
Entries_t
;
55
Entries_t::const_iterator
Entries_i
;
56
57
Entries_t
m_entries
;
58
edm::TypeWithDict
m_type
;
59
60
int
m_titleWidth
;
61
};
62
63
#endif
FWItemValueGetter::Entry::Entry
Entry(reco::parser::ExpressionPtr iExpr, std::string iExpression, std::string iUnit, std::string iTitle, int iPrec)
Definition:
FWItemValueGetter.h:48
FWItemValueGetter::numValues
int numValues() const
Definition:
FWItemValueGetter.cc:149
ExpressionBase.h
FWItemValueGetter::Entries_i
Entries_t::const_iterator Entries_i
Definition:
FWItemValueGetter.h:55
FWItemValueGetter
Definition:
FWItemValueGetter.h:30
heavyIonCSV_trainingSettings.idx
idx
Definition:
heavyIonCSV_trainingSettings.py:5
FWItemValueGetter::Entry::m_title
std::string m_title
Definition:
FWItemValueGetter.h:45
FWItemValueGetter::addEntry
bool addEntry(std::string iExpression, int iPrec=2, std::string iTitle="", std::string iUnit="")
Definition:
FWItemValueGetter.cc:103
reco::parser::ExpressionPtr
std::shared_ptr< ExpressionBase > ExpressionPtr
Definition:
ExpressionBase.h:25
FWItemValueGetter::FWItemValueGetter
FWItemValueGetter(const edm::TypeWithDict &, const std::string &iPurpose)
Definition:
FWItemValueGetter.cc:34
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
FWItemValueGetter::Entry::m_unit
std::string m_unit
Definition:
FWItemValueGetter.h:44
TypeWithDict.h
FWItemValueGetter::m_titleWidth
int m_titleWidth
Definition:
FWItemValueGetter.h:60
FWItemValueGetter::precision
UInt_t precision(int idx) const
Definition:
FWItemValueGetter.cc:137
FWItemValueGetter::getTitles
std::vector< std::string > getTitles() const
Definition:
FWItemValueGetter.cc:139
FWItemValueGetter::m_entries
Entries_t m_entries
Definition:
FWItemValueGetter.h:57
FWItemValueGetter::getToolTip
const std::string & getToolTip(const void *iObject) const
Definition:
FWItemValueGetter.cc:152
FWItemValueGetter::m_type
edm::TypeWithDict m_type
Definition:
FWItemValueGetter.h:58
ExpressionPtr.h
FWItemValueGetter::Entries_t
std::vector< Entry > Entries_t
Definition:
FWItemValueGetter.h:54
FWItemValueGetter::Entry::m_precision
UInt_t m_precision
Definition:
FWItemValueGetter.h:46
FWItemValueGetter::Entry
Definition:
FWItemValueGetter.h:41
edm::TypeWithDict
Definition:
TypeWithDict.h:38
FWItemValueGetter::Entry::m_expr
reco::parser::ExpressionPtr m_expr
Definition:
FWItemValueGetter.h:42
FWItemValueGetter::valueFor
double valueFor(const void *, int idx) const
Definition:
FWItemValueGetter.cc:131
FWItemValueGetter::Entry::m_expression
std::string m_expression
Definition:
FWItemValueGetter.h:43
Generated for CMSSW Reference Manual by
1.8.14