Jpp 20.0.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
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
11namespace JLANG {}
12namespace JPP { using namespace JLANG; }
13
14namespace 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
Auxiliary class for title.
Definition JTitle.hh:19
std::string title
Definition JTitle.hh:73
JTitle(const std::string &title)
Constructor.
Definition JTitle.hh:44
JTitle()
Default constructor.
Definition JTitle.hh:24
void setTitle(const std::string &title)
Set title.
Definition JTitle.hh:66
JTitle(const char *title)
Constructor.
Definition JTitle.hh:33
const std::string & getTitle() const
Get title.
Definition JTitle.hh:55
Auxiliary classes and methods for language specific functionality.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).