Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cAuthUser.h
Go to the documentation of this file.
1 //
4 //
5 
6 #ifndef _INC_cAuthUser_H
7 #define _INC_cAuthUser_H
8 #ifndef NO_PRAGMA_ONCE
9 #pragma once
10 #endif
11 
12 #include "IAuthUser.h"
15 
16 namespace GrayLib
17 {
19  : public IAuthUser
20  {
25  public:
26  cAuthUser() noexcept
27  {
28  }
29  virtual ~cAuthUser()
30  {
31  }
32  STDMETHOD_(cString, get_Name)() const
33  {
36  return _GT("RootUser");
37  }
38  STDMETHOD_(PLEVEL_TYPE, get_PrivLevel)() const
39  {
42  return PLEVEL_Owner; // my acting privilege level can be made temporarily higher by the system.
43  }
44  STDMETHOD_(bool, CanBeDetectedBy)(const IAuthUser* pViewer) const
45  {
50  UNREFERENCED_PARAMETER(pViewer);
51  return true;
52  }
53  };
54 };
55 
56 #endif
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
#define _GT(x)
like _T(x) macro for static text.
Definition: StrConst.h:27
#define UNREFERENCED_PARAMETER(P)
< _WIN32 type thing. get rid of stupid warning.
Definition: SysTypes.h:299
Definition: cAuthUser.h:20
virtual ~cAuthUser()
Definition: cAuthUser.h:29
STDMETHOD_(bool, CanBeDetectedBy)(const IAuthUser *pViewer) const
Definition: cAuthUser.h:44
STDMETHOD_(cString, get_Name)() const
Definition: cAuthUser.h:32
STDMETHOD_(PLEVEL_TYPE, get_PrivLevel)() const
Definition: cAuthUser.h:38
cAuthUser() noexcept
Definition: cAuthUser.h:26
Definition: IAuthUser.h:17
Definition: cMesh.h:22
PLEVEL_TYPE
Definition: PrivLevel.h:16