Public Member Functions | Protected Member Functions | Private Attributes

bea_DiskDrive Class Reference
[IVD Back-End Agent]

#include <bea_diskdrive.h>

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

List of all members.

Public Member Functions

 bea_DiskDrive ()
virtual void Open (const string &a_deviceID, const string &a_barcode, UInt64_t a_jobID)
virtual void Close ()
virtual const string & GetVendorID () const
virtual const string & GetProductID () const
virtual const string & GetProductRevision () const
virtual const string & GetSerialNumber () const
virtual UInt64_t GetDefaultSeekThreshold () const

Protected Member Functions

virtual ~bea_DiskDrive ()

Private Attributes

 log_CLASSID_m

Detailed Description

Definition at line 40 of file bea_diskdrive.h.


Constructor & Destructor Documentation

bea_DiskDrive::bea_DiskDrive (  ) 

Definition at line 49 of file bea_diskdrive.cpp.

References log_FUNC_m.

bea_DiskDrive::~bea_DiskDrive (  )  [protected, virtual]

Definition at line 54 of file bea_diskdrive.cpp.

References log_FUNC_m.


Member Function Documentation

void bea_DiskDrive::Close (  )  [virtual]

Implements bea_Drive.

Definition at line 79 of file bea_diskdrive.cpp.

References cmn_Global::evt, g_cmn, log_FUNC_m, NULL, bea_Drive::SetMedium(), and log_EventLogger::SetQualifier().

                          {
    log_FUNC_m(Close);

    g_cmn.evt.SetQualifier("");

    // Close all files and reset internal members

    SetMedium(NULL);
}

Here is the call graph for this function:

UInt64_t bea_DiskDrive::GetDefaultSeekThreshold (  )  const [virtual]

Reimplemented from bea_Drive.

Definition at line 109 of file bea_diskdrive.cpp.

                                                      {
    return cfg_KILOBYTE;
}

const string & bea_DiskDrive::GetProductID (  )  const [virtual]

Implements bea_Drive.

Definition at line 94 of file bea_diskdrive.cpp.

                                                {
    static const string product_c("DISK-STORAGE");
    return product_c;
}

const string & bea_DiskDrive::GetProductRevision (  )  const [virtual]

Implements bea_Drive.

Definition at line 99 of file bea_diskdrive.cpp.

                                                      {
    static const string revision_c("N/A");
    return revision_c;
}

const string & bea_DiskDrive::GetSerialNumber (  )  const [virtual]

Implements bea_Drive.

Definition at line 104 of file bea_diskdrive.cpp.

                                                   {
    static const string serialno_c("N/A");
    return serialno_c;
}

const string & bea_DiskDrive::GetVendorID (  )  const [virtual]

Implements bea_Drive.

Definition at line 89 of file bea_diskdrive.cpp.

                                               {
    static const string vendor_c("UNKNOWN");
    return vendor_c;
}

void bea_DiskDrive::Open ( const string &  a_deviceID,
const string &  a_barcode,
UInt64_t  a_jobID 
) [virtual]

Implements bea_Drive.

Definition at line 58 of file bea_diskdrive.cpp.

References cmn_Global::evt, g_cmn, bea_Drive::GetMedium(), log_FUNC_A_m, bea_Medium::SetBarcode(), bea_Drive::SetJobID(), bea_Drive::SetMedium(), and log_EventLogger::SetQualifier().

                               {

    log_FUNC_A_m(Open,
        "a_deviceID: " << a_deviceID <<
        " a_bc: " << a_barcode <<
        " a_jobID: " << a_jobID);

    g_cmn.evt.SetQualifier(a_deviceID);

    SetMedium(new bea_DiskMedium(a_barcode));

    SetJobID(a_jobID);

    if (GetMedium()->GetBarcode() != a_barcode) {
        GetMedium()->SetBarcode(a_barcode);
    }
}

Here is the call graph for this function:


Member Data Documentation

Reimplemented from bea_Drive.

Definition at line 62 of file bea_diskdrive.h.


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