CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: FWItemValueGetter.h,v 1.8 2012/08/28 22:25:42 wmtan Exp $
20 //
21 
22 #include <string>
23 #include <vector>
24 
25 #include "Rtypes.h"
27 
32 
33 
35 {
36 public:
37  FWItemValueGetter(const edm::TypeWithDict&, const std::string& iPurpose);
38  double valueFor(const void*, int idx) const;
39  UInt_t precision( int idx) const;
40  std::vector<std::string> getTitles() const;
41  int numValues() const;
42 
43  const std::string& getToolTip(const void* iObject) const;
44 
45 
46 private:
47  struct Entry {
53 
54  Entry(reco::parser::ExpressionPtr iExpr, std::string iExpression, std::string iUnit, std::string iTitle, int iPrec) :
55  m_expr(iExpr), m_expression(iExpression), m_unit(iUnit), m_title(iTitle), m_precision(iPrec) {}
56  };
57 
58  bool addEntry(std::string iExpression,int iPrec = 2, std::string iTitle = "", std::string iUnit = "");
59 
60  typedef std::vector<Entry > Entries_t;
61  Entries_t::const_iterator Entries_i;
62 
65 
67 
68 
69 };
70 
71 #endif
Entry(reco::parser::ExpressionPtr iExpr, std::string iExpression, std::string iUnit, std::string iTitle, int iPrec)
Entries_t::const_iterator Entries_i
bool addEntry(std::string iExpression, int iPrec=2, std::string iTitle="", std::string iUnit="")
FWItemValueGetter(const edm::TypeWithDict &, const std::string &iPurpose)
std::vector< Entry > Entries_t
boost::shared_ptr< ExpressionBase > ExpressionPtr
edm::TypeWithDict m_type
unsigned int UInt_t
Definition: FUTypes.h:12
std::vector< std::string > getTitles() const
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
double valueFor(const void *, int idx) const
const std::string & getToolTip(const void *iObject) const
reco::parser::ExpressionPtr m_expr
UInt_t precision(int idx) const