fsc_ReorgScanDataVolStorage Class Reference
[FSC]

#include <fsc_ReorgScanDataVolStorage.h>

Inheritance diagram for fsc_ReorgScanDataVolStorage:

Inheritance graph
[legend]
Collaboration diagram for fsc_ReorgScanDataVolStorage:

Collaboration graph
[legend]

List of all members.


Detailed Description

cache element.

Why cache element: Because to quick find proper object between many. See

Definition at line 45 of file fsc_ReorgScanDataVolStorage.h.


Public Member Functions

 fsc_ReorgScanDataVolStorage (UInt64_t a_keyNum, const string &a_partName, ivd_MediaKey_t a_mediumKey, ivd_MedVolNum_t a_medVolNum, bool a_create)
 ~fsc_ReorgScanDataVolStorage (void)
void Write (const ivd_FileLocationData_t *a_record_p)
 Store location information of a file.

Public Attributes

 log_CLASSID_m

Private Attributes

const string m_partName
ivd_FileSize_t m_dataSize
 Size of total data stored on volume.

Friends

class ut_fsc_ReorgScanDataVolStorage
class fsc_ReorgScanReorgVolStorage
class fsc_ReorgScanContentVolStorage

Constructor & Destructor Documentation

fsc_ReorgScanDataVolStorage::fsc_ReorgScanDataVolStorage ( UInt64_t  a_keyNum,
const string &  a_partName,
ivd_MediaKey_t  a_mediumKey,
ivd_MedVolNum_t  a_medVolNum,
bool  a_create 
) [inline]

Definition at line 50 of file fsc_ReorgScanDataVolStorage.h.

00055                                  :
00056         stx_CacheEl(a_keyNum),
00057         fsc_DataCollectorStorage(a_mediumKey, a_medVolNum),
00058         m_partName(a_partName),
00059         m_dataSize(0)
00060     {
00061         //empty
00062     };
    

fsc_ReorgScanDataVolStorage::~fsc_ReorgScanDataVolStorage ( void   )  [inline]

Definition at line 64 of file fsc_ReorgScanDataVolStorage.h.

00064 {};


Member Function Documentation

void fsc_ReorgScanDataVolStorage::Write ( const ivd_FileLocationData_t a_record_p  ) 

Store location information of a file.

Definition at line 101 of file fsc_ReorgScanDataVolStorage.cpp.

References assert, df_StreamOverheadSize_c, log_FUNC_m, m_dataSize, NULL, ivd_FileLocationData_t::splitSize, and fsc_DataCollectorStorage::WriteToBuffer().

Referenced by fsc_RawReorgScanDataCollector::ProcRecMedPosMgr().

00101                                                                                 {
00102     log_FUNC_m(Write);
00103     assert(a_record_p != NULL);
00104     WriteToBuffer(reinterpret_cast<const UInt8_t*>(a_record_p));
00105     m_dataSize += a_record_p->splitSize + df_StreamOverheadSize_c;
00106    
00107 }

Here is the call graph for this function:

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class ut_fsc_ReorgScanDataVolStorage [friend]

Definition at line 46 of file fsc_ReorgScanDataVolStorage.h.

friend class fsc_ReorgScanReorgVolStorage [friend]

Reimplemented from fsc_DataCollectorStorage.

Definition at line 47 of file fsc_ReorgScanDataVolStorage.h.

friend class fsc_ReorgScanContentVolStorage [friend]

Reimplemented from fsc_DataCollectorStorage.

Definition at line 48 of file fsc_ReorgScanDataVolStorage.h.


Member Data Documentation

Reimplemented from stx_CacheEl.

Reimplemented in fsc_ReorgScanReorgVolStorage, and fsc_ReorgScanContentVolStorage.

Definition at line 69 of file fsc_ReorgScanDataVolStorage.h.

Definition at line 71 of file fsc_ReorgScanDataVolStorage.h.

Size of total data stored on volume.

Base on FSC migration size + header size

Definition at line 77 of file fsc_ReorgScanDataVolStorage.h.

Referenced by Write(), fsc_ReorgScanContentVolStorage::~fsc_ReorgScanContentVolStorage(), and fsc_ReorgScanReorgVolStorage::~fsc_ReorgScanReorgVolStorage().


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

Generated on Mon Feb 27 19:24:32 2012 for OPENARCHIVE by  doxygen 1.5.6