Public Member Functions | Private Attributes

dbo_MediumUnreliable Class Reference

#include <rm_dboperation.h>

Inheritance diagram for dbo_MediumUnreliable:
Inheritance graph
Collaboration diagram for dbo_MediumUnreliable:
Collaboration graph

List of all members.

Public Member Functions

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

Private Attributes

UInt32_t m_medKey

Detailed Description

Definition at line 1149 of file rm_dboperation.h.

Constructor & Destructor Documentation

dbo_MediumUnreliable::dbo_MediumUnreliable ( UInt32_t  a_medKey,
rm_DBThread a_DBThread 

Definition at line 1169 of file rm_dboperation.cpp.


                m_medKey(a_medKey) {

Member Function Documentation

void dbo_MediumUnreliable::Process (  )  [virtual]

Implements rm_DBOperation.

Definition at line 1178 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 unusable flag
    m.status = m.status & ~rmdb_MEDIUM_UNUSABLE;
    // set unreliable flag
    m.status = m.status | rmdb_MEDIUM_UNRELIABLE;
    log_WriteEvent("Medium marked unreliable", "", 0, string(m.barcode));

Here is the call graph for this function:

Member Data Documentation

Reimplemented from rm_DBOperation.

Definition at line 1156 of file rm_dboperation.h.

Definition at line 1155 of file rm_dboperation.h.

Referenced by Process().

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