Bayeux  3.4.1
Core Foundation library for SuperNEMO
traits.h
Go to the documentation of this file.
1 //
4 // Copyright (c) 2017 by François Mauger <mauger@lpccaen.in2p3.fr>
5 //
6 // This file is part of datatools.
7 //
8 // datatools is free software: you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation, either version 3 of the License, or
11 // (at your option) any later version.
12 //
13 // datatools is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
17 //
18 // You should have received a copy of the GNU General Public License
19 // along with datatools. If not, see <http://www.gnu.org/licenses/>.
20 
21 #ifndef DATATOOLS_UI_TRAITS_H
22 #define DATATOOLS_UI_TRAITS_H
23 
24 // Standard library:
25 #include <string>
26 
27 namespace datatools {
28 
29  namespace ui {
30 
31  struct traits {
32 
34  static const std::string & key_prefix();
35 
37  std::string build_key(const std::string & topic_);
38 
40  static const std::string & busy_label();
41 
43  static const std::string & disabled_label();
44 
46  static const std::string & broken_label();
47 
49  static const std::string & hidden_label();
50 
51  };
52 
53  } // namespace ui
54 
55 } // namespace datatools
56 
57 #endif // DATATOOLS_UI_TRAITS_H
58 
59 // Local Variables: --
60 // mode: c++ --
61 // c-file-style: "gnu" --
62 // tab-width: 2 --
63 // End: --
static const std::string & key_prefix()
Prefix for all trait's keys.
static const std::string & disabled_label()
Disabled command label.
static const std::string & busy_label()
Busy command label.
static const std::string & hidden_label()
Hidden command label.
Definition: traits.h:31
static const std::string & broken_label()
Broken command label.
The Bayeux/datatools library top-level namespace.
Definition: algo.h:13
std::string build_key(const std::string &topic_)
Build the full key for a trait.