Jpp
test-rotations-old-57-g407471f53
the software that should make you happy
Loading...
Searching...
No Matches
software
JDB
JPersons.hh
Go to the documentation of this file.
1
#ifndef __JDB_JPERSONS__
2
#define __JDB_JPERSONS__
3
4
#include <TROOT.h>
5
#include <TObject.h>
6
7
#include <string>
8
9
#include "
JDB/JDBString.hh
"
10
#include "
JDB/JSonSupportkit.hh
"
11
12
/**
13
* \author mdejong
14
*/
15
namespace
JDATABASE
{}
16
namespace
JPP
{
using namespace
JDATABASE
; }
17
18
namespace
JDATABASE
{
19
20
struct
JPersons
:
21
public
TObject
22
{
23
static
const
char
*
const
getName
() {
return
"persons"
; }
//!< Table name
24
25
std::string
OID
;
26
std::string
LOGIN
;
27
JDBString
NAME
;
28
JDBString
SURNAME
;
29
std::string
LOCATIONID
;
30
JDBString
CITY
;
31
JDBString
ADDRESS
;
32
std::string
ACTIVESTATUS
;
33
std::string
MEMBERSTATUS
;
34
std::string
AUTHORSTATUS
;
35
36
ClassDef
(
JPersons
, 1);
37
};
38
39
namespace
APIV2 {
40
41
struct
JPerson
:
42
public
JSonHelper
<JPerson>,
43
public
TObject
44
{
45
static
const
char
*
const
getName
() {
return
"Person"
; }
//!< Table name
46
47
JPerson
() {}
48
49
/**
50
* Copy constructor.
51
*
52
* \param person person
53
*/
54
JPerson
(
const
JPersons
& person) :
55
OID
(person.
OID
),
56
Login
(person.LOGIN),
57
Name
(person.NAME),
58
Surname
(person.SURNAME),
59
Location
(person.LOCATIONID)
60
{}
61
62
/**
63
* Type conversion operator.
64
*
65
* \return person
66
*/
67
operator
JPersons
()
const
68
{
69
JPersons
person;
70
71
person.
OID
= this->
OID
;
72
person.
LOGIN
= this->
Login
;
73
person.
NAME
= this->
Name
;
74
person.
SURNAME
= this->
Surname
;
75
person.
LOCATIONID
= this->
Location
;
76
77
return
person;
78
}
79
80
std::string
OID
;
81
std::string
Login
;
82
std::string
Name
;
83
std::string
Surname
;
84
std::string
Location
;
85
std::string
Title
;
86
std::string
GroupCode
;
87
std::string
Occupation
;
88
std::string
CreationDate
;
89
90
ClassDef
(
JPerson
, 1);
91
};
92
}
93
}
94
95
#endif
JDBString.hh
JSonSupportkit.hh
JDATABASE
Auxiliary classes and methods for database I/O.
Definition
JAHRS.hh:14
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition
JAAnetToolkit.hh:43
JDATABASE::APIV2::JPerson
Definition
JPersons.hh:44
JDATABASE::APIV2::JPerson::Title
std::string Title
Definition
JPersons.hh:85
JDATABASE::APIV2::JPerson::OID
std::string OID
Definition
JPersons.hh:80
JDATABASE::APIV2::JPerson::Location
std::string Location
Definition
JPersons.hh:84
JDATABASE::APIV2::JPerson::GroupCode
std::string GroupCode
Definition
JPersons.hh:86
JDATABASE::APIV2::JPerson::getName
static const char *const getName()
Table name.
Definition
JPersons.hh:45
JDATABASE::APIV2::JPerson::JPerson
JPerson()
Definition
JPersons.hh:47
JDATABASE::APIV2::JPerson::Login
std::string Login
Definition
JPersons.hh:81
JDATABASE::APIV2::JPerson::JPerson
JPerson(const JPersons &person)
Copy constructor.
Definition
JPersons.hh:54
JDATABASE::APIV2::JPerson::ClassDef
ClassDef(JPerson, 1)
JDATABASE::APIV2::JPerson::Occupation
std::string Occupation
Definition
JPersons.hh:87
JDATABASE::APIV2::JPerson::Name
std::string Name
Definition
JPersons.hh:82
JDATABASE::APIV2::JPerson::CreationDate
std::string CreationDate
Definition
JPersons.hh:88
JDATABASE::APIV2::JPerson::Surname
std::string Surname
Definition
JPersons.hh:83
JDATABASE::JDBString
Wrapper class to read string until end-of-line.
Definition
JDBString.hh:22
JDATABASE::JPersons
Definition
JPersons.hh:22
JDATABASE::JPersons::ACTIVESTATUS
std::string ACTIVESTATUS
Definition
JPersons.hh:32
JDATABASE::JPersons::ClassDef
ClassDef(JPersons, 1)
JDATABASE::JPersons::CITY
JDBString CITY
Definition
JPersons.hh:30
JDATABASE::JPersons::AUTHORSTATUS
std::string AUTHORSTATUS
Definition
JPersons.hh:34
JDATABASE::JPersons::OID
std::string OID
Definition
JPersons.hh:25
JDATABASE::JPersons::LOGIN
std::string LOGIN
Definition
JPersons.hh:26
JDATABASE::JPersons::NAME
JDBString NAME
Definition
JPersons.hh:27
JDATABASE::JPersons::getName
static const char *const getName()
Table name.
Definition
JPersons.hh:23
JDATABASE::JPersons::MEMBERSTATUS
std::string MEMBERSTATUS
Definition
JPersons.hh:33
JDATABASE::JPersons::ADDRESS
JDBString ADDRESS
Definition
JPersons.hh:31
JDATABASE::JPersons::SURNAME
JDBString SURNAME
Definition
JPersons.hh:28
JDATABASE::JPersons::LOCATIONID
std::string LOCATIONID
Definition
JPersons.hh:29
JDATABASE::JSonHelper
Auxiliary base class for JSon I/O based on ROOT dictionary.
Definition
JSonSupportkit.hh:165
TObject
Definition
JROOT_t.hh:19
Generated by
1.12.0