Public Member Functions | Private Attributes

dbo_MediumUnusable Class Reference

#include <rm_dboperation.h>

Inheritance diagram for dbo_MediumUnusable:
Inheritance graph
Collaboration diagram for dbo_MediumUnusable:
Collaboration graph

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

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.


                m_medKey(a_medKey) {

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));

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: