Public Member Functions | Public Attributes | Private Attributes | Friends

fsc_nsDirectory Class Reference
[G_new_group]

#include <fsc_nsDirectory.h>

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

List of all members.

Public Member Functions

 fsc_nsDirectory (ivd_RecordIDX_t a_fileID)
 used if you know dir entry type (file or directory) Usualy when add split info.
 fsc_nsDirectory (ivd_RecordIDX_t a_fileID, fsc_nsElement_t &a_elRec, nse_Opentype_e a_openType)
 used in FSC dump, when record is read first and then checked if file or directory is read.
 ~fsc_nsDirectory (void)
virtual void Write2DB (fio_Transaction &a_trans)
virtual bool IsDirectory ()
virtual void RemoveNotification ()
 call just before removed from cache
void AddEntry (ivd_FileID_t a_fileID)
 AddEntry is used by OwnerMgr to add directory members.
void RemoveEntry (ivd_FileID_t a_fileID)
 REmoveEntry is used by OwnerMgr to remove directory members.
virtual void Dump (ostream &os)

Public Attributes

 log_CLASSID_m

Private Attributes

fsc_nsDirEntryMgr m_dirEntryMgr

Friends

class ut_fsc_nsDirectory

Detailed Description

Definition at line 47 of file fsc_nsDirectory.h.


Constructor & Destructor Documentation

fsc_nsDirectory::fsc_nsDirectory ( ivd_RecordIDX_t  a_fileID  ) 

used if you know dir entry type (file or directory) Usualy when add split info.

Definition at line 50 of file fsc_nsDirectory.cpp.

References log_FUNC_m.

fsc_nsDirectory::fsc_nsDirectory ( ivd_RecordIDX_t  a_fileID,
fsc_nsElement_t a_elRec,
nse_Opentype_e  a_openType 
)

used in FSC dump, when record is read first and then checked if file or directory is read.

Definition at line 60 of file fsc_nsDirectory.cpp.

References log_FUNC_m.

fsc_nsDirectory::~fsc_nsDirectory ( void   ) 

Definition at line 72 of file fsc_nsDirectory.cpp.

References dbg_DETAIL, stx_CacheEl::GetCacheKey(), log_DBG_m, and log_FUNC_m.

                                      {
    log_FUNC_m(~fsc_nsDirectory);
    log_DBG_m(dbg_DETAIL, " remove EL p= " << this
                        << " key = " << GetCacheKey());
}

Here is the call graph for this function:


Member Function Documentation

void fsc_nsDirectory::AddEntry ( ivd_FileID_t  a_fileID  ) 

AddEntry is used by OwnerMgr to add directory members.

Definition at line 104 of file fsc_nsDirectory.cpp.

References fsc_nsDirEntryMgr::AddEntry(), dbg_DETAIL, fsc_nsElement::GetFileID(), log_DBG_m, log_FUNC_m, and m_dirEntryMgr.

Referenced by fsc_nsOwnerMgr::ChgOwner(), and fsc_nsOwnerMgr::SetMember().

                                                    {
    log_FUNC_m(AddEntry);
    log_DBG_m(dbg_DETAIL, "Add entry fileID = " << a_fileID
                       << " to dir fileID = " << GetFileID());
    m_dirEntryMgr.AddEntry(a_fileID);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void fsc_nsDirectory::Dump ( ostream &  os  )  [virtual]

Definition at line 122 of file fsc_nsDirectory.cpp.

References fsc_nsDirEntryMgr::Dump(), and m_dirEntryMgr.

                                      {    
    fsc_nsElement::Dump(os);
    os << "     Members : " <<  endl;
    m_dirEntryMgr.Dump(os);
}

Here is the call graph for this function:

virtual bool fsc_nsDirectory::IsDirectory (  )  [inline, virtual]

Definition at line 69 of file fsc_nsDirectory.h.

{ return true; };

void fsc_nsDirectory::RemoveEntry ( ivd_FileID_t  a_fileID  ) 

REmoveEntry is used by OwnerMgr to remove directory members.

Definition at line 113 of file fsc_nsDirectory.cpp.

References dbg_DETAIL, fsc_nsElement::GetFileID(), log_DBG_m, log_FUNC_m, m_dirEntryMgr, and fsc_nsDirEntryMgr::RemoveEntry().

Referenced by fsc_nsOwnerMgr::ChgOwner(), and fsc_nsOwnerMgr::RemoveMember().

                                                       {
    log_FUNC_m(RemoveEntry);
    log_DBG_m(dbg_DETAIL, "Remove entry fileID = " << a_fileID
                       << " from dir fileID = " << GetFileID());
    m_dirEntryMgr.RemoveEntry(a_fileID);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void fsc_nsDirectory::RemoveNotification (  )  [virtual]

call just before removed from cache

Reimplemented from stx_CacheEl.

Definition at line 97 of file fsc_nsDirectory.cpp.

References g_fsc_trans_p, log_FUNC_m, and Write2DB().

Here is the call graph for this function:

void fsc_nsDirectory::Write2DB ( fio_Transaction a_trans  )  [virtual]

Friends And Related Function Documentation

friend class ut_fsc_nsDirectory [friend]

Definition at line 48 of file fsc_nsDirectory.h.


Member Data Documentation

Reimplemented from stx_CacheEl.

Definition at line 83 of file fsc_nsDirectory.h.

Definition at line 86 of file fsc_nsDirectory.h.

Referenced by AddEntry(), Dump(), RemoveEntry(), and Write2DB().


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