Bayeux  3.4.1
Core Foundation library for SuperNEMO
not_cut.h
Go to the documentation of this file.
1 /* Author(s) : Francois Mauger <mauger@lpccaen.in2p3.fr>
3  * Creation date: 2010-09-18
4  * Last modified: 2013-04-22
5  *
6  * License:
7  *
8  * Description:
9  * NOT logic unary cut.
10  *
11  * History:
12  *
13  */
14 
15 #ifndef CUTS_NOT_CUT_H
16 #define CUTS_NOT_CUT_H 1
17 
18 // This project:
19 #include <cuts/i_cut.h>
20 
21 namespace cuts {
22 
24  class not_cut : public cuts::i_cut
25  {
26  public:
27 
28  void set_cut(cut_handle_type &);
29 
31  not_cut(datatools::logger::priority a_logging_priority =
33 
35  virtual ~not_cut();
36 
38  virtual void initialize(const datatools::properties &,
41 
43  virtual void export_to_config(datatools::properties & config_,
44  uint32_t flags_ = i_cut::EXPORT_CONFIG_DEFAULT,
45  const std::string & prefix_ = "") const;
46 
48  virtual void reset();
49 
50  protected :
51 
53  virtual int _accept();
54 
55  protected:
56 
57  virtual void _at_set_user_data();
58 
59  virtual void _at_reset_user_data();
60 
61  protected:
62 
64 
65  private:
66 
69 
70  };
71 
72 } // end of namespace cuts
73 
74 #endif // _CUTS_NOT_CUT_H
75 
76 /*
77 ** Local Variables: --
78 ** mode: c++ --
79 ** c-file-style: "gnu" --
80 ** tab-width: 2 --
81 ** End: --
82 */
priority
Priority levels for logging from most to least critical.
Definition: logger.h:82
virtual ~not_cut()
Destructor.
Definition: i_cut.h:270
A fatal error. The application will most likely terminate. This is the highest priority.
Definition: logger.h:85
The cut abstract base class (interface)
Definition: i_cut.h:62
The NOT cut.
Definition: not_cut.h:24
virtual void _at_set_user_data()
Hook executed when user data is set.
Top-level namespace of the Bayeux/cuts module library.
Definition: accept_cut.h:21
virtual void initialize(const datatools::properties &, datatools::service_manager &, cuts::cut_handle_dict_type &)
Initialization.
virtual void export_to_config(datatools::properties &config_, uint32_t flags_=i_cut::EXPORT_CONFIG_DEFAULT, const std::string &prefix_="") const
Export to a container of properties.
virtual void reset()
Reset.
virtual int _accept()
Selection.
#define CUT_REGISTRATION_INTERFACE(T)
Definition: i_cut.h:411
not_cut(datatools::logger::priority a_logging_priority=datatools::logger::PRIO_FATAL)
Constructor.
cut_handle_type _handle
The cut to be negated by the "NOT" cut class.
Definition: not_cut.h:63
void set_cut(cut_handle_type &)
std::map< std::string, cut_entry_type > cut_handle_dict_type
Alias type of a dictionary of cut entry.
Definition: cut_tools.h:175
virtual void _at_reset_user_data()
Hook executed when user data is reset.
Service management class.
Definition: service_manager.h:57
A dictionary of arbitrary properties.
Definition: properties.h:125