undo_item Class Reference

#include <item.h>

Inheritance diagram for undo_item:

undo_item_chmod undo_item_chmod_errok undo_item_message undo_item_rename undo_item_rmdir_bg undo_item_rmdir_errok undo_item_unlink_errok

Public Member Functions

virtual ~undo_item ()
 undo_item ()
void act ()
virtual void unfinished ()=0

Protected Member Functions

virtual void action ()=0

Private Member Functions

 undo_item (const undo_item &)
undo_itemoperator= (const undo_item &)

Private Attributes

int uid
int gid
int umask

Detailed Description

The undo_item class is used to represent an abstract undo action to be perfomed in the event of command failure.

Definition at line 27 of file item.h.


Constructor & Destructor Documentation

virtual undo_item::~undo_item (  )  [virtual]

The destructor.

undo_item::undo_item (  ) 

The default constructor.

undo_item::undo_item ( const undo_item  )  [private]

The copy constructor. Do not use.


Member Function Documentation

void undo_item::act (  ) 

The act method is used to perform the undo action; it first sets the appropriate user, and then call sthe action() method.

virtual void undo_item::unfinished (  )  [pure virtual]

The unfinished method is used to print a warning about unfinished undo action. This happens when there is an undo error. The default action says nothing.

Implemented in undo_item_chmod, undo_item_chmod_errok, undo_item_message, undo_item_rename, undo_item_rmdir_bg, undo_item_rmdir_errok, and undo_item_unlink_errok.

virtual void undo_item::action (  )  [protected, pure virtual]

The action method is used to perform the undo action.

Implemented in undo_item_chmod, undo_item_chmod_errok, undo_item_message, undo_item_rename, undo_item_rmdir_bg, undo_item_rmdir_errok, and undo_item_unlink_errok.

undo_item& undo_item::operator= ( const undo_item  )  [private]

The assignment operator. Do not use.


Field Documentation

int undo_item::uid [private]

The uid instance variable is used to remember the user ID to be used when performing the action.

Definition at line 64 of file item.h.

int undo_item::gid [private]

The gid instance variable is used to remember the group ID to be used when performing the action.

Definition at line 70 of file item.h.

int undo_item::umask [private]

The umask instance variable is used to remember the user permissions mask to be used when performing the action.

Definition at line 76 of file item.h.


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

Generated on Wed Mar 12 23:37:45 2008 for Aegis by  doxygen 1.5.5