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

ArchiveGetCommand.cpp

00001 #include "ArchiveGetCommand.h"
00002 #include "boost/timer.hpp"
00003 #include "Archiver.h"
00004 #include "Sct/Archive/IOManagerArchive.h"
00005 
00006 namespace SctArchiving{
00007   ArchiveGetCommand::ArchiveGetCommand(boost::shared_ptr<Sct::Archive::IONameArchiveFile> name)
00008     : GetCommand(name)
00009   {}
00010 
00011   ArchiveGetCommand::ArchiveGetCommand() {}
00012   
00013   ArchiveGetCommand::~ArchiveGetCommand(){}
00014 
00015   void ArchiveGetCommand::execute(){
00016     boost::timer t;
00017     m_ob=Archiver::instance().getIOManagerArchive().read(m_name->getIOName());
00018     Archiver::instance().addFileTime(t.elapsed());
00019     Archiver::instance().incrimentNRetrieved();
00020   }
00021 
00022   boost::shared_ptr<ArchivingCommand> ArchiveGetCommand::create() const{
00023     return shared_ptr<ArchivingCommand>(new ArchiveGetCommand());
00024   }
00025 }

Generated on Thu Jul 15 09:50:42 2004 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5