Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Related Pages

SctArchiving::ArchivingCommand Class Reference

Interface for a command. More...

#include <ArchivingCommand.h>

Inheritance diagram for SctArchiving::ArchivingCommand:

Inheritance graph
[legend]

Public Member Functions

virtual ~ArchivingCommand ()
 virtual destructor makes all sub-class destructors virtual

virtual void execute ()=0
 execute this command.

virtual boost::shared_ptr<
ArchivingCommand
create () const=0
 creates derrived class using virtual constructor idiom


Detailed Description

Interface for a command.

These commands are created by the Archiver, and passed to the ArchivingWorkerGroup, which calls the execute() method. Uses the `composite' and `command' patterns!

Definition at line 14 of file ArchivingCommand.h.


Constructor & Destructor Documentation

virtual SctArchiving::ArchivingCommand::~ArchivingCommand  )  [inline, virtual]
 

virtual destructor makes all sub-class destructors virtual

Definition at line 17 of file ArchivingCommand.h.


Member Function Documentation

virtual boost::shared_ptr<ArchivingCommand> SctArchiving::ArchivingCommand::create  )  const [pure virtual]
 

creates derrived class using virtual constructor idiom

Implemented in SctArchiving::ArchiveGetCommand, SctArchiving::ArchivePutCommand, SctArchiving::IsGetCommand, SctArchiving::IsPutCommand, and SctArchiving::TransferCommand.

virtual void SctArchiving::ArchivingCommand::execute  )  [pure virtual]
 

execute this command.

Default implimentation just does all sub-commands, sending any errors to MRS as it goes

Implemented in SctArchiving::ArchiveGetCommand, SctArchiving::ArchivePutCommand, SctArchiving::IsGetCommand, SctArchiving::IsPutCommand, and SctArchiving::TransferCommand.


The documentation for this class was generated from the following file:
Generated on Thu Jul 15 09:52:06 2004 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5