OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Catalog_Namespace::UserMetadata Struct Reference

#include <SysCatalog.h>

+ Collaboration diagram for Catalog_Namespace::UserMetadata:

Public Member Functions

 UserMetadata (int32_t u, const std::string &n, const std::string &p, bool s, int32_t d, bool l, bool t)
 
 UserMetadata ()
 
 UserMetadata (UserMetadata const &user_meta)
 
UserMetadataoperator= (UserMetadata const &user_meta)
 
std::string userLoggable () const
 

Public Attributes

int32_t userId {-1}
 
std::string userName
 
std::string passwd_hash
 
std::atomic< bool > isSuper {false}
 
int32_t defaultDbId {-1}
 
bool can_login {true}
 
bool is_temporary {false}
 

Detailed Description

Definition at line 68 of file SysCatalog.h.

Constructor & Destructor Documentation

Catalog_Namespace::UserMetadata::UserMetadata ( int32_t  u,
const std::string &  n,
const std::string &  p,
bool  s,
int32_t  d,
bool  l,
bool  t 
)
inline

Definition at line 69 of file SysCatalog.h.

Catalog_Namespace::UserMetadata::UserMetadata ( )
inline

Definition at line 83 of file SysCatalog.h.

83 {}
Catalog_Namespace::UserMetadata::UserMetadata ( UserMetadata const &  user_meta)
inline

Definition at line 84 of file SysCatalog.h.

85  : UserMetadata(user_meta.userId,
86  user_meta.userName,
87  user_meta.passwd_hash,
88  user_meta.isSuper.load(),
89  user_meta.defaultDbId,
90  user_meta.can_login,
91  user_meta.is_temporary) {}

Member Function Documentation

UserMetadata& Catalog_Namespace::UserMetadata::operator= ( UserMetadata const &  user_meta)
inline

Definition at line 92 of file SysCatalog.h.

References can_login, defaultDbId, is_temporary, isSuper, passwd_hash, userId, and userName.

92  {
93  if (this != &user_meta) {
94  userId = user_meta.userId;
95  userName = user_meta.userName;
96  passwd_hash = user_meta.passwd_hash;
97  isSuper.store(user_meta.isSuper.load());
98  defaultDbId = user_meta.defaultDbId;
99  can_login = user_meta.can_login;
100  is_temporary = user_meta.is_temporary;
101  }
102  return *this;
103  }
std::atomic< bool > isSuper
Definition: SysCatalog.h:107
std::string Catalog_Namespace::UserMetadata::userLoggable ( ) const

Member Data Documentation


The documentation for this struct was generated from the following files: