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

#include <clientctx.h>

Collaboration diagram for ClientCtxGuard:

Public Member Functions

 ClientCtxGuard (uid_t uid, gid_t gid, pid_t pid, InterruptCue *ic)
 
 ~ClientCtxGuard ()
 

Private Attributes

bool set_on_construction_
 
uid_t old_uid_
 
gid_t old_gid_
 
pid_t old_pid_
 
InterruptCueold_interrupt_cue_
 

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 69 of file clientctx.h.

Constructor & Destructor Documentation

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

Definition at line 71 of file clientctx.h.

Here is the call graph for this function:

ClientCtxGuard::~ClientCtxGuard ( )
inline

Definition at line 88 of file clientctx.h.

Here is the call graph for this function:

Member Data Documentation

gid_t ClientCtxGuard::old_gid_
private

Definition at line 100 of file clientctx.h.

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

InterruptCue* ClientCtxGuard::old_interrupt_cue_
private

Definition at line 102 of file clientctx.h.

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

pid_t ClientCtxGuard::old_pid_
private

Definition at line 101 of file clientctx.h.

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

uid_t ClientCtxGuard::old_uid_
private

Definition at line 99 of file clientctx.h.

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

bool ClientCtxGuard::set_on_construction_
private

Definition at line 98 of file clientctx.h.

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


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