Public Member Functions | Private Attributes

dbo_MediumUnusable Class Reference

#include <rm_dboperation.h>

Inheritance diagram for dbo_MediumUnusable:
Inheritance graph
[legend]
Collaboration diagram for dbo_MediumUnusable:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 dbo_MediumUnusable (UInt32_t a_medKey, rm_DBThread &a_DBThread)
virtual void Process ()

Private Attributes

UInt32_t m_medKey
 log_CLASSID_m

Detailed Description

Definition at line 1159 of file rm_dboperation.h.


Constructor & Destructor Documentation

dbo_MediumUnusable::dbo_MediumUnusable ( UInt32_t  a_medKey,
rm_DBThread a_DBThread 
)

Definition at line 1188 of file rm_dboperation.cpp.

                                                 : 

                rm_DBOperation(a_DBThread),
                m_medKey(a_medKey) {
    /*empty*/
}


Member Function Documentation

void dbo_MediumUnusable::Process (  )  [virtual]

Implements rm_DBOperation.

Definition at line 1197 of file rm_dboperation.cpp.

References i_Medium_t::barcode, log_WriteEvent(), rm_DBOperation::m_DBThread, m_medKey, rm_DBThread::m_rmOp, rm_Operator::SelectMedium(), i_Medium_t::status, and rm_Operator::Update().

                                 {
    i_Medium_t m = m_DBThread.m_rmOp.SelectMedium(m_medKey);

    // clear unreliable flag
    m.status = m.status & ~rmdb_MEDIUM_UNRELIABLE;

    // set unusable flag
    m.status = m.status | rmdb_MEDIUM_UNUSABLE;
    
    log_WriteEvent("Medium marked unusable", "", 0, string(m.barcode));
    m_DBThread.m_rmOp.Update(m);
}

Here is the call graph for this function:


Member Data Documentation

Reimplemented from rm_DBOperation.

Definition at line 1166 of file rm_dboperation.h.

Definition at line 1165 of file rm_dboperation.h.

Referenced by Process().


The documentation for this class was generated from the following files: