Jpp  pmt_effective_area_update
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JTitle.hh
Go to the documentation of this file.
1 #ifndef __JLANG__JTITLE__
2 #define __JLANG__JTITLE__
3 
4 #include <string>
5 
6 
7 /**
8  * \author mdejong
9  */
10 
11 namespace JLANG {}
12 namespace JPP { using namespace JLANG; }
13 
14 namespace JLANG {
15 
16  /**
17  * Auxiliary class for title.
18  */
19  class JTitle {
20  public:
21  /**
22  * Default constructor.
23  */
25  {}
26 
27 
28  /**
29  * Constructor.
30  *
31  * \param title title
32  */
33  JTitle(const char* title)
34  {
35  this->title = title;
36  }
37 
38 
39  /**
40  * Constructor.
41  *
42  * \param title title
43  */
44  JTitle(const std::string& title)
45  {
46  this->title = title;
47  }
48 
49 
50  /**
51  * Get title.
52  *
53  * \return title
54  */
55  const std::string& getTitle() const
56  {
57  return this->title;
58  }
59 
60 
61  /**
62  * Set title.
63  *
64  * \param title title
65  */
66  void setTitle(const std::string& title)
67  {
68  this->title = title;
69  }
70 
71 
72  protected:
73  std::string title;
74  };
75 }
76 
77 #endif
const std::string & getTitle() const
Get title.
Definition: JTitle.hh:55
void setTitle(const std::string &title)
Set title.
Definition: JTitle.hh:66
JTitle()
Default constructor.
Definition: JTitle.hh:24
Auxiliary class for title.
Definition: JTitle.hh:19
JTitle(const char *title)
Constructor.
Definition: JTitle.hh:33
JTitle(const std::string &title)
Constructor.
Definition: JTitle.hh:44
std::string title
Definition: JTitle.hh:73