xorp

TransactionOperation Class Reference

Base class for operations within a Transaction. More...

#include <transaction.hh>

Inheritance diagram for TransactionOperation:
FibConfigTransactionOperation FirewallTransactionOperation IfConfigTransactionOperation FibAddEntry4 FibAddEntry6 FibDeleteAllEntries4 FibDeleteAllEntries6 FibDeleteEntry4 FibDeleteEntry6 FirewallAddEntry4 FirewallAddEntry6 FirewallDeleteAllEntries4 FirewallDeleteAllEntries6 FirewallDeleteEntry4 FirewallDeleteEntry6 FirewallReplaceEntry4 FirewallReplaceEntry6 AddInterface ConfigureAllInterfacesFromSystem ConfigureInterfaceFromSystem InterfaceModifier RemoveInterface

List of all members.

Public Member Functions

virtual ~TransactionOperation ()
 Destructor.
virtual bool dispatch ()=0
 Dispatch operation.
virtual string str () const =0

Detailed Description

Base class for operations within a Transaction.

TransactionOperations when realized through derived classes are operations that can be held and dispatched at a later time. The TransactionManager class is provided as a container for TransactionOperations.

NB TransactionOperation is analogous to the Command pattern in the BoF: Design Patterns , Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides, Addison Wesley, 1995, ISBN 0-201-63361-2.


Member Function Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations