1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
#ifndef Fireworks_Core_FWProxyBuilderConfiguration_h
#define Fireworks_Core_FWProxyBuilderConfiguration_h
// -*- C++ -*-
//
// Package: Core
// Class : FWProxyBuilderConfiguration
//
/**\class FWProxyBuilderConfiguration FWProxyBuilderConfiguration.h Fireworks/Core/interface/FWProxyBuilderConfiguration.h
Description: [one line class summary]
Usage:
<usage>
*/
//
// Original Author:
// Created: Wed Jul 27 00:58:35 CEST 2011
//
#include <string>
#include "Fireworks/Core/interface/FWConfigurableParameterizable.h"
#include "Fireworks/Core/interface/FWViewType.h"
#include "Fireworks/Core/interface/FWParameterSetterBase.h"
#include "Fireworks/Core/interface/FWParameterSetterEditorBase.h"
#include "Fireworks/Core/interface/FWParameters.h"
#include "Fireworks/Core/interface/FWGenericParameterWithRange.h"
#ifndef __CINT__
#include <memory>
#include <sigc++/sigc++.h>
#endif
class TGCompositeFrame;
class FWParameterBase;
class FWConfiguration;
class FWEventItem;
//==============================================================================
class FWProxyBuilderConfiguration : public FWConfigurableParameterizable, public FWParameterSetterEditorBase {
public:
FWProxyBuilderConfiguration(const FWConfiguration* c, const FWEventItem* item);
~FWProxyBuilderConfiguration() override;
template <class T>
FWGenericParameter<T>* assertParam(const std::string& name, T def);
template <class T>
FWGenericParameterWithRange<T>* assertParam(const std::string& name, T def, T min, T max);
template <class T>
T value(const std::string& name);
void setFrom(const FWConfiguration& iFrom) override;
void addTo(FWConfiguration& iTo) const override;
void populateFrame(TGCompositeFrame* frame);
void keepEntries(bool b);
private:
void makeSetter(TGCompositeFrame*, FWParameterBase*);
const FWConfiguration* m_txtConfig;
const FWEventItem* m_item;
bool m_keepEntries;
#ifndef __CINT__
std::vector<std::shared_ptr<FWParameterSetterBase> > m_setters;
#endif
};
#endif
|