df_StandardAttr_t Struct Reference
[IVD Data format.]

#include <df_types.h>

List of all members.


Detailed Description

Definition at line 283 of file df_types.h.


Public Member Functions

 df_StandardAttr_t ()
 ~df_StandardAttr_t ()
void Dump (ostream &os)
void NetToHost ()

Public Attributes

UInt32_t numLinks
 number of hard links
UInt64_t idOnFS
 unique ID on FS (inode# + generation or file index)
UInt64_t type
 file type (ivd_FileType_e)
UInt64_t size
 file size (total)
UInt64_t attr
 mode+rdev (UX), attr (Win)
UInt32_t owner
 owner UID (UX only)
UInt32_t group
 group UID (UX only)
UInt32_t changeFlags
UInt32_t flags
ivd_Time_t timeCreate
ivd_Time_t timeAccess
ivd_Time_t timeModify
ivd_Time_t timeChange

Constructor & Destructor Documentation

df_StandardAttr_t::df_StandardAttr_t (  )  [inline]

Definition at line 284 of file df_types.h.

00284 {};

df_StandardAttr_t::~df_StandardAttr_t (  )  [inline]

Definition at line 285 of file df_types.h.

00285 {};


Member Function Documentation

void df_StandardAttr_t::Dump ( ostream &  os  ) 

Definition at line 59 of file df_StandardAttr_t.cpp.

References attr, changeFlags, cmn_ConvToTime_t(), flags, idOnFS, IVD_PRINT_ID_FS, numLinks, owner, size, cmn_Time::Time2YMDhms(), timeAccess, timeChange, timeCreate, timeModify, and type.

Referenced by fsc_nsAttrStream::Dump().

00059                                        {
00060     cmn_Time tcr(cmn_ConvToTime_t(timeCreate));
00061     cmn_Time tac(cmn_ConvToTime_t(timeAccess));
00062     cmn_Time tmo(cmn_ConvToTime_t(timeModify));
00063     cmn_Time tch(cmn_ConvToTime_t(timeChange));
00064     os  << "   standard attributes: "
00065         << "\n     numLinks    = " << numLinks 
00066         << "\n     idOnFS      = " << IVD_PRINT_ID_FS(idOnFS)
00067         << "\n     type        = " << type
00068         << "\n     size        = " << size
00069         << "\n     attr        = 0" << oct << attr << dec
00070         << "\n     owner       = " << owner
00071         << "\n     group       = " << group
00072 
00073         << "\n     changeFlags = " << changeFlags
00074         << "\n     flags       = " << flags
00075 
00076         << "\n     timeCreate  = " << tcr.Time2YMDhms()
00077         << "\n     timeAccess  = " << tac.Time2YMDhms()
00078         << "\n     timeModify  = " << tmo.Time2YMDhms()
00079         << "\n     timeChange  = " << tch.Time2YMDhms()
00080         << endl;
00081 }

Here is the call graph for this function:

Here is the caller graph for this function:

void df_StandardAttr_t::NetToHost (  ) 

Definition at line 38 of file df_StandardAttr_t.cpp.

References attr, changeFlags, flags, idOnFS, ntoh(), numLinks, owner, size, timeAccess, timeChange, timeCreate, timeModify, and type.

Referenced by fsc_RawScan::DirTreeWalk(), fsc_nsAttrStream::Dump(), and hsm_IVDFSRecoverer::ProcRecFileHdr().

00038                                   {
00039     numLinks    = ntoh(numLinks);
00040     idOnFS      = ntoh(idOnFS);
00041     type        = ntoh(static_cast<UInt64_t>(type));
00042     size        = ntoh(static_cast<UInt64_t>(size));
00043     attr        = ntoh(attr);
00044 
00045     owner       = ntoh(owner);
00046     group       = ntoh(group);
00047 
00048     changeFlags = ntoh(changeFlags);
00049     flags       = ntoh(flags);
00050 
00051     timeCreate  = ntoh(timeCreate);
00052     timeAccess  = ntoh(timeAccess);
00053     timeModify  = ntoh(timeModify);
00054     timeChange  = ntoh(timeChange);
00055 }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

unique ID on FS (inode# + generation or file index)

Definition at line 294 of file df_types.h.

Referenced by Dump(), DumpFile(), NetToHost(), ParseFile(), and df_Unpacker::ReadRecFile().

mode+rdev (UX), attr (Win)

Definition at line 300 of file df_types.h.

Referenced by Dump(), DumpFile(), NetToHost(), ParseFile(), hsm_IVDFSRecoverer::ProcRecFileHdr(), and df_Unpacker::ReadRecFile().

owner UID (UX only)

Definition at line 302 of file df_types.h.

Referenced by Dump(), DumpFile(), NetToHost(), ParseFile(), hsm_IVDFSRecoverer::ProcRecFileHdr(), and df_Unpacker::ReadRecFile().

group UID (UX only)

Definition at line 304 of file df_types.h.

Referenced by DumpFile(), ParseFile(), hsm_IVDFSRecoverer::ProcRecFileHdr(), and df_Unpacker::ReadRecFile().

Definition at line 306 of file df_types.h.

Referenced by Dump(), DumpFile(), NetToHost(), ParseFile(), and df_Unpacker::ReadRecFile().


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

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