00001 #ifndef SCTARCHIVING_PUTCOMMAND_H
00002 #define SCTARCHIVING_PUTCOMMAND_H
00003 #include "Sct/Serializable.h"
00004 #include "ArchivingCommand.h"
00005 #include "Sct/IOManager.h"
00006
00007 namespace SctArchiving{
00013 class PutCommand : public ArchivingCommand {
00014 public:
00016 PutCommand(boost::shared_ptr<Sct::Serializable> ob);
00018 void setParams(boost::shared_ptr<Sct::IOParams> params);
00020 boost::shared_ptr<Sct::IOParams> getParams();
00022 PutCommand() {}
00024 ~PutCommand() {}
00026 void set(boost::shared_ptr<Sct::Serializable> ob);
00027 protected:
00028 boost::shared_ptr<Sct::Serializable> m_ob;
00029 boost::shared_ptr<Sct::IOParams> m_params;
00030 };
00031
00032 inline void PutCommand::set(boost::shared_ptr<Sct::Serializable> ob){
00033 m_ob = ob;
00034 }
00035
00036 inline PutCommand::PutCommand(boost::shared_ptr<Sct::Serializable> ob)
00037 : m_ob(ob)
00038 {}
00039
00040 inline boost::shared_ptr<Sct::IOParams> PutCommand::getParams(){
00041 return m_params;
00042 }
00043
00044 inline void PutCommand::setParams(boost::shared_ptr<Sct::IOParams> p){
00045 m_params=p;
00046 }
00047 }
00048
00049 #endif