DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dbe::editor_data< T > Class Template Reference

#include <BuildingBlockEditors.hpp>

Inheritance diagram for dbe::editor_data< T >:
[legend]
Collaboration diagram for dbe::editor_data< T >:
[legend]

Public Types

typedef T t_virtue
 

Public Member Functions

 editor_data (T const &virtue)
 
virtual ~editor_data ()
 
t_virtue const & get () const
 
void set_obligatory (bool is)
 
void set_valid (bool const is)
 
void set_not_null (bool const is)
 
 editor_data (dunedaq::conffwk::relationship_t const &virtue)
 
- Public Member Functions inherited from dbe::editor_data_state
virtual ~editor_data_state ()
 
bool is_valid () const
 
bool must_not_be_null () const
 
bool must_be_set () const
 

Private Attributes

t_virtue this_virtue
 

Additional Inherited Members

- Protected Member Functions inherited from dbe::editor_data_state
 editor_data_state (bool isvalid, bool isnotnull, bool isobligatory)
 
- Protected Attributes inherited from dbe::editor_data_state
bool m_valid
 
bool m_notnull
 
bool m_obligatory
 

Detailed Description

template<typename T>
class dbe::editor_data< T >

Base class for editor input blocks

Definition at line 68 of file BuildingBlockEditors.hpp.

Member Typedef Documentation

◆ t_virtue

template<typename T >
T dbe::editor_data< T >::t_virtue

Definition at line 72 of file BuildingBlockEditors.hpp.

Constructor & Destructor Documentation

◆ editor_data() [1/2]

template<typename T >
dbe::editor_data< T >::editor_data ( T const & virtue)
inlineexplicit

Definition at line 74 of file BuildingBlockEditors.hpp.

75 : editor_data_state ( true, virtue.p_is_not_null, true ),
76 this_virtue ( virtue )
77 {}
editor_data_state(bool isvalid, bool isnotnull, bool isobligatory)

◆ ~editor_data()

template<typename T >
dbe::editor_data< T >::~editor_data ( )
virtualdefault

◆ editor_data() [2/2]

Definition at line 32 of file BuildingBlockEditors.cpp.

34 :
35 editor_data_state ( true, false, true ),
36 this_virtue ( virtue )
37{}

Member Function Documentation

◆ get()

template<typename T >
t_virtue const & dbe::editor_data< T >::get ( ) const
inline

Definition at line 81 of file BuildingBlockEditors.hpp.

82 {
83 return this_virtue;
84 }

◆ set_not_null()

template<typename T >
void dbe::editor_data< T >::set_not_null ( bool const is)
inline

Definition at line 96 of file BuildingBlockEditors.hpp.

97 {
98 m_notnull = is;
99 }

◆ set_obligatory()

template<typename T >
void dbe::editor_data< T >::set_obligatory ( bool is)
inline

Definition at line 86 of file BuildingBlockEditors.hpp.

87 {
88 m_obligatory = is;
89 }

◆ set_valid()

template<typename T >
void dbe::editor_data< T >::set_valid ( bool const is)
inline

Definition at line 91 of file BuildingBlockEditors.hpp.

92 {
93 m_valid = is;
94 }

Member Data Documentation

◆ this_virtue

template<typename T >
t_virtue dbe::editor_data< T >::this_virtue
private

Definition at line 102 of file BuildingBlockEditors.hpp.


The documentation for this class was generated from the following files: