#include <rm_dboperation.h>


Definition at line 1190 of file rm_dboperation.h.
Public Member Functions | |
| dbo_MedVolStatusSet (string a_medVoId, UInt32_t a_status, rm_DBThread &a_DBThread) | |
| virtual void | Process () |
Private Attributes | |
| string | m_medVolId |
| UInt32_t | m_status |
| log_CLASSID_m | |
| dbo_MedVolStatusSet::dbo_MedVolStatusSet | ( | string | a_medVoId, | |
| UInt32_t | a_status, | |||
| rm_DBThread & | a_DBThread | |||
| ) |
Definition at line 1231 of file rm_dboperation.cpp.
01233 : 01234 01235 rm_DBOperation(a_DBThread), 01236 m_medVolId(a_medVolId), 01237 m_status(a_status) { 01238 /*empty*/ 01239 }
| void dbo_MedVolStatusSet::Process | ( | ) | [virtual] |
Implements rm_DBOperation.
Definition at line 1241 of file rm_dboperation.cpp.
References ie_PRECONDITION, ivd_Error, log_WriteEvent(), rm_DBOperation::m_DBThread, m_medVolId, rm_DBThread::m_rmOp, m_status, i_MediumVol_t::medVolId, rm_Operator::SelectMediumVol(), i_MediumVol_t::status, str, and rm_Operator::Update().
01241 { 01242 i_MediumVol_t mv = m_DBThread.m_rmOp.SelectMediumVol(m_medVolId); 01243 01244 if (mv.status & m_status) { 01245 ostringstream str; 01246 str << "Volume " << mv.medVolId <<" has already status " << hex << 01247 mv.status << " set."; 01248 // medium status already set 01249 // fail status set 01250 throw ivd_Error(ie_PRECONDITION, str.str()); 01251 } 01252 log_WriteEvent("MediumVol status set ", "", 0, string(mv.medVolId)); 01253 mv.status = mv.status | m_status; 01254 m_DBThread.m_rmOp.Update(mv); 01255 }

string dbo_MedVolStatusSet::m_medVolId [private] |
UInt32_t dbo_MedVolStatusSet::m_status [private] |
dbo_MedVolStatusSet::log_CLASSID_m [private] |
1.5.6