ddc
Public Member Functions | Public Attributes | List of all members
tar_header Struct Reference

Public Member Functions

void set_empty ()
 
 tar_header ()
 
bool IsDirectory () const
 
bool IsRegFile () const
 
bool IsLongName () const
 
bool IsLongLink () const
 
int GetSize () const
 
string th_get_pathname () const
 

Public Attributes

char name [100]
 
char mode [8]
 
char uid [8]
 
char gid [8]
 
char size [12]
 
char mtime [12]
 
char chksum [8]
 
char typeflag
 
char linkname [100]
 
char magic [6]
 
char version [2]
 
char uname [32]
 
char gname [32]
 
char devmajor [8]
 
char devminor [8]
 
char prefix [155]
 
char padding [12]
 
char * gnu_longname
 
char * gnu_longlink
 

Constructor & Destructor Documentation

◆ tar_header()

tar_header::tar_header ( )

References set_empty().

Here is the call graph for this function:

Member Function Documentation

◆ set_empty()

void tar_header::set_empty ( )

Referenced by tar_header().

Here is the caller graph for this function:

◆ IsDirectory()

bool tar_header::IsDirectory ( ) const

References AREGTYPE, DIRTYPE, name, and typeflag.

◆ IsRegFile()

bool tar_header::IsRegFile ( ) const

References AREGTYPE, CONTTYPE, REGTYPE, and typeflag.

Referenced by tar_get_next_file().

Here is the caller graph for this function:

◆ IsLongName()

bool tar_header::IsLongName ( ) const

References GNU_LONGNAME_TYPE, and typeflag.

◆ IsLongLink()

bool tar_header::IsLongLink ( ) const

References GNU_LONGLINK_TYPE, and typeflag.

◆ GetSize()

int tar_header::GetSize ( ) const

References size.

◆ th_get_pathname()

string tar_header::th_get_pathname ( ) const

References Format(), gnu_longname, name, and prefix.

Referenced by tar_get_next_file().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ name

char tar_header::name[100]

Referenced by IsDirectory(), and th_get_pathname().

◆ mode

char tar_header::mode[8]

◆ uid

char tar_header::uid[8]

◆ gid

char tar_header::gid[8]

◆ size

char tar_header::size[12]

◆ mtime

char tar_header::mtime[12]

◆ chksum

char tar_header::chksum[8]

◆ typeflag

char tar_header::typeflag

◆ linkname

char tar_header::linkname[100]

◆ magic

char tar_header::magic[6]

◆ version

char tar_header::version[2]

◆ uname

char tar_header::uname[32]

◆ gname

char tar_header::gname[32]

◆ devmajor

char tar_header::devmajor[8]

◆ devminor

char tar_header::devminor[8]

◆ prefix

char tar_header::prefix[155]

Referenced by th_get_pathname().

◆ padding

char tar_header::padding[12]

◆ gnu_longname

char* tar_header::gnu_longname

Referenced by th_get_pathname().

◆ gnu_longlink

char* tar_header::gnu_longlink

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