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.2 2009/01/23 21:35:41 amraktad Exp $
20 //
21 
22 // system include files
23 #include <string>
24 #include <vector>
25 #include "Reflex/Member.h"
26 #include "Reflex/Type.h"
27 // user include files
28 
29 // forward declarations
30 
32 
33 public:
35  const std::vector<std::pair<std::string, std::string> >& iFindValueFrom);
36  //virtual ~FWItemValueGetter();
37 
38  // ---------- const member functions ---------------------
39  double valueFor(const void*) const;
40  const std::string& stringValueFor(const void*) const;
41 
42  bool isValid() const;
43 
44  std::string valueName() const;
45  const std::string& unit() const;
46  // ---------- static member functions --------------------
47 
48  // ---------- member functions ---------------------------
49  void setValueAndUnit(const std::string& iValue, const std::string& iUnit);
50 
51 private:
52  //FWItemValueGetter(const FWItemValueGetter&); // stop default
53 
54  //const FWItemValueGetter& operator=(const FWItemValueGetter&); // stop default
55 
56  // ---------- member data --------------------------------
58  ROOT::Reflex::Member m_memberFunction;
59  std::string m_unit;
60 };
61 
62 
63 #endif
const std::string & unit() const
std::string valueName() const
const std::string & stringValueFor(const void *) const
ROOT::Reflex::Member m_memberFunction
FWItemValueGetter(const ROOT::Reflex::Type &, const std::vector< std::pair< std::string, std::string > > &iFindValueFrom)
void setValueAndUnit(const std::string &iValue, const std::string &iUnit)
double valueFor(const void *) const
ROOT::Reflex::Type m_type