Public Member Functions | Private Member Functions | Private Attributes

blk_DiskFRIReader Class Reference
[IVD Data format.]

#include <df.h>

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

List of all members.

Public Member Functions

 blk_DiskFRIReader (df_BlockManager &a_mgr, const string &a_medVolID, bool a_recover=false)
virtual ~blk_DiskFRIReader ()

Private Member Functions

virtual UInt32_t Read (UInt8_t *a_data, const UInt32_t a_size)

Private Attributes

 log_CLASSID_m
cmn_File m_diskFRI

Detailed Description

Definition at line 575 of file df.h.


Constructor & Destructor Documentation

blk_DiskFRIReader::blk_DiskFRIReader ( df_BlockManager a_mgr,
const string &  a_medVolID,
bool  a_recover = false 
)

Definition at line 46 of file blk_diskfrireader.cpp.

References cmn_Global::dirs, fom_OPEN_EXISTING, fom_READ, ivd_Directories::fri, g_cmn, cmn_File::GetFullPathRef(), log_FUNC_A_m, m_diskFRI, cmn_File::OpenF(), cmn_File::SetFullPath(), cmn_File::StatF(), and ivd_Directories::tmp.

    : blk_BufferReader(a_mgr) {
    
    if (a_recover) {
        m_diskFRI.SetFullPath(g_cmn.dirs.tmp + string("fri") + a_fName);
        // verify if file exist (i.e. volume closed)
        try {
            ivd_FileInfo_t fi;
            m_diskFRI.StatF(fi);
        } catch (...){
            // assume volume still opened and try alternate location
            m_diskFRI.SetFullPath(g_cmn.dirs.fri + a_fName);
        }
    }
    else {
        m_diskFRI.SetFullPath(g_cmn.dirs.fri + a_fName);
    }
    log_FUNC_A_m(blk_DiskFRIReader, "diskFRI =" << m_diskFRI.GetFullPathRef());

    m_diskFRI.OpenF(fom_READ | fom_OPEN_EXISTING);
}

Here is the call graph for this function:

blk_DiskFRIReader::~blk_DiskFRIReader (  )  [virtual]

Definition at line 71 of file blk_diskfrireader.cpp.

References log_FUNC_m.


Member Function Documentation

UInt32_t blk_DiskFRIReader::Read ( UInt8_t a_data,
const UInt32_t  a_size 
) [private, virtual]

Implements blk_BufferReader.

Definition at line 75 of file blk_diskfrireader.cpp.

References log_FUNC_m, m_diskFRI, and cmn_File::ReadF().

                                                                       {
    log_FUNC_m(Read);

    return m_diskFRI.ReadF(a_data, a_size);
}

Here is the call graph for this function:


Member Data Documentation

Reimplemented from blk_BufferReader.

Definition at line 587 of file df.h.

Definition at line 589 of file df.h.

Referenced by blk_DiskFRIReader(), and Read().


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