AmpGen 2.1
Loading...
Searching...
No Matches
Configurable.h
Go to the documentation of this file.
1#ifndef AMPGEN_CONFIGURABLE_H
2#define AMPGEN_CONFIGURABLE_H 1
3#include "AmpGen/MsgService.h"
4#include "AmpGen/Property.h"
5#include "AmpGen/MetaUtils.h"
7
8namespace AmpGen {
9
10 template <typename T> class Configurable : public ConfigurableBase {
11 static T *gImpl;
12
13 public:
14 virtual ~Configurable() = default;
15
16 protected:
17 Property<bool> m_verbose{this, remove_namespace(type_string<T>()) + "::Verbose", false, "Enable verbose printing"};
18 };
19}
20#endif
std::string remove_namespace(const std::string &name)
Property< bool > m_verbose
virtual ~Configurable()=default
Properties are configurable characteristics of objects that will at some point inherit from a base cl...
Definition Property.h:25
std::string type_string()
Utility classes for compile-time metaprogramming, such as identifying the types of arguments for gene...
Definition MetaUtils.h:17