Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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/SelectorPtr.h
"
28
#include "
CommonTools/Utils/interface/SelectorBase.h
"
29
#include "
CommonTools/Utils/interface/ExpressionPtr.h
"
30
#include "
CommonTools/Utils/interface/ExpressionBase.h
"
31
32
class
FWItemValueGetter
{
33
public
:
34
FWItemValueGetter
(
const
edm::TypeWithDict
&,
const
std::string
& iPurpose);
35
double
valueFor
(
const
void
*,
int
idx)
const
;
36
UInt_t
precision
(
int
idx)
const
;
37
std::vector<std::string>
getTitles
()
const
;
38
int
numValues
()
const
;
39
40
const
std::string
&
getToolTip
(
const
void
* iObject)
const
;
41
42
private
:
43
struct
Entry
{
44
reco::parser::ExpressionPtr
m_expr
;
45
std::string
m_expression
;
46
std::string
m_unit
;
47
std::string
m_title
;
48
UInt_t
m_precision
;
49
50
Entry
(
reco::parser::ExpressionPtr
iExpr,
std::string
iExpression,
std::string
iUnit,
std::string
iTitle,
int
iPrec)
51
:
m_expr
(iExpr),
m_expression
(iExpression),
m_unit
(iUnit),
m_title
(iTitle),
m_precision
(iPrec) {}
52
};
53
54
bool
addEntry
(
std::string
iExpression,
int
iPrec = 2,
std::string
iTitle =
""
,
std::string
iUnit =
""
);
55
56
typedef
std::vector<Entry>
Entries_t
;
57
Entries_t::const_iterator
Entries_i
;
58
59
Entries_t
m_entries
;
60
edm::TypeWithDict
m_type
;
61
62
int
m_titleWidth
;
63
};
64
65
#endif
FWItemValueGetter::Entry::Entry
Entry(reco::parser::ExpressionPtr iExpr, std::string iExpression, std::string iUnit, std::string iTitle, int iPrec)
Definition:
FWItemValueGetter.h:50
ExpressionBase.h
FWItemValueGetter::Entries_i
Entries_t::const_iterator Entries_i
Definition:
FWItemValueGetter.h:57
FWItemValueGetter
Definition:
FWItemValueGetter.h:32
SelectorBase.h
FWItemValueGetter::Entry::m_title
std::string m_title
Definition:
FWItemValueGetter.h:47
FWItemValueGetter::addEntry
bool addEntry(std::string iExpression, int iPrec=2, std::string iTitle="", std::string iUnit="")
Definition:
FWItemValueGetter.cc:98
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
FWItemValueGetter::numValues
int numValues() const
Definition:
FWItemValueGetter.cc:144
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
FWItemValueGetter::Entry::m_unit
std::string m_unit
Definition:
FWItemValueGetter.h:46
TypeWithDict.h
SelectorPtr.h
FWItemValueGetter::m_titleWidth
int m_titleWidth
Definition:
FWItemValueGetter.h:62
FWItemValueGetter::m_entries
Entries_t m_entries
Definition:
FWItemValueGetter.h:59
FWItemValueGetter::m_type
edm::TypeWithDict m_type
Definition:
FWItemValueGetter.h:60
ExpressionPtr.h
FWItemValueGetter::getTitles
std::vector< std::string > getTitles() const
Definition:
FWItemValueGetter.cc:134
FWItemValueGetter::Entries_t
std::vector< Entry > Entries_t
Definition:
FWItemValueGetter.h:56
FWItemValueGetter::valueFor
double valueFor(const void *, int idx) const
Definition:
FWItemValueGetter.cc:126
FWItemValueGetter::Entry::m_precision
UInt_t m_precision
Definition:
FWItemValueGetter.h:48
FWItemValueGetter::getToolTip
const std::string & getToolTip(const void *iObject) const
Definition:
FWItemValueGetter.cc:147
FWItemValueGetter::Entry
Definition:
FWItemValueGetter.h:43
edm::TypeWithDict
Definition:
TypeWithDict.h:38
FWItemValueGetter::Entry::m_expr
reco::parser::ExpressionPtr m_expr
Definition:
FWItemValueGetter.h:44
FWItemValueGetter::precision
UInt_t precision(int idx) const
Definition:
FWItemValueGetter.cc:132
FWItemValueGetter::Entry::m_expression
std::string m_expression
Definition:
FWItemValueGetter.h:45
Generated for CMSSW Reference Manual by
1.8.5