AdminUser.cpp 1.71 KB
Newer Older
1
#include "cta/AdminUser.hpp"
Steven Murray's avatar
Steven Murray committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15

//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
cta::AdminUser::AdminUser():
  m_creationTime(time(NULL)) {
}

//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
cta::AdminUser::AdminUser(
  const UserIdentity &user,
  const UserIdentity &creator,
Daniele Kruse's avatar
Daniele Kruse committed
16
  const time_t creationTime,
Steven Murray's avatar
Steven Murray committed
17
18
  const std::string &comment):
  m_user(user),
Daniele Kruse's avatar
Daniele Kruse committed
19
  m_creationTime(creationTime),
Steven Murray's avatar
Steven Murray committed
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
  m_creator(creator),
  m_comment(comment) {
}

//------------------------------------------------------------------------------
// getUser
//------------------------------------------------------------------------------
const cta::UserIdentity &cta::AdminUser::getUser() const throw() {
  return m_user;
}

//------------------------------------------------------------------------------
// getCreationTime
//------------------------------------------------------------------------------
time_t cta::AdminUser::getCreationTime() const throw() {
  return m_creationTime;
}

//------------------------------------------------------------------------------
// getCreator
//------------------------------------------------------------------------------
const cta::UserIdentity &cta::AdminUser::getCreator()
  const throw() {
  return m_creator;
}

//------------------------------------------------------------------------------
// getComment
//------------------------------------------------------------------------------
const std::string &cta::AdminUser::getComment() const throw() {
  return m_comment;
}