CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ClientCtxGuard Class Reference

#include <clientctx.h>

Public Member Functions

 ClientCtxGuard (uid_t uid, gid_t gid, pid_t pid)
 
 ~ClientCtxGuard ()
 

Private Attributes

bool set_on_construction_
 
uid_t old_uid_
 
gid_t old_gid_
 
pid_t old_pid_
 

Detailed Description

RAII form of the ClientCtx. On construction, automatically sets the context via the constructor; on destruction, restores to the previous values.

Meant to be allocated on the stack.

Definition at line 62 of file clientctx.h.

Constructor & Destructor Documentation

ClientCtxGuard::ClientCtxGuard ( uid_t  uid,
gid_t  gid,
pid_t  pid 
)
inline

Definition at line 64 of file clientctx.h.

Here is the call graph for this function:

ClientCtxGuard::~ClientCtxGuard ( )
inline

Definition at line 80 of file clientctx.h.

Here is the call graph for this function:

Member Data Documentation

gid_t ClientCtxGuard::old_gid_
private

Definition at line 92 of file clientctx.h.

Referenced by ClientCtxGuard(), and ~ClientCtxGuard().

pid_t ClientCtxGuard::old_pid_
private

Definition at line 93 of file clientctx.h.

Referenced by ClientCtxGuard(), and ~ClientCtxGuard().

uid_t ClientCtxGuard::old_uid_
private

Definition at line 91 of file clientctx.h.

Referenced by ClientCtxGuard(), and ~ClientCtxGuard().

bool ClientCtxGuard::set_on_construction_
private

Definition at line 90 of file clientctx.h.

Referenced by ClientCtxGuard(), and ~ClientCtxGuard().


The documentation for this class was generated from the following file: