LLVM 20.0.0git
Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
llvm::object::AbstractArchiveMemberHeader Class Referenceabstract

#include "llvm/Object/Archive.h"

Inheritance diagram for llvm::object::AbstractArchiveMemberHeader:
Inheritance graph
[legend]

Public Member Functions

virtual std::unique_ptr< AbstractArchiveMemberHeaderclone () const =0
 
virtual ~AbstractArchiveMemberHeader ()=default
 
virtual Expected< StringRefgetRawName () const =0
 Get the name without looking up long names.
 
virtual StringRef getRawAccessMode () const =0
 
virtual StringRef getRawLastModified () const =0
 
virtual StringRef getRawUID () const =0
 
virtual StringRef getRawGID () const =0
 
virtual Expected< StringRefgetName (uint64_t Size) const =0
 Get the name looking up long names.
 
virtual Expected< uint64_tgetSize () const =0
 
virtual uint64_t getOffset () const =0
 
virtual Expected< const char * > getNextChildLoc () const =0
 Get next file member location.
 
virtual Expected< boolisThin () const =0
 
Expected< sys::fs::permsgetAccessMode () const
 
Expected< sys::TimePoint< std::chrono::seconds > > getLastModified () const
 
Expected< unsignedgetUID () const
 
Expected< unsignedgetGID () const
 
virtual uint64_t getSizeOf () const =0
 Returns the size in bytes of the format-defined member header of the concrete archive type.
 

Public Attributes

const ArchiveParent
 

Protected Member Functions

 AbstractArchiveMemberHeader (const Archive *Parent)
 

Friends

class Archive
 

Detailed Description

Definition at line 39 of file Archive.h.

Constructor & Destructor Documentation

◆ AbstractArchiveMemberHeader()

llvm::object::AbstractArchiveMemberHeader::AbstractArchiveMemberHeader ( const Archive Parent)
inlineprotected

Definition at line 41 of file Archive.h.

◆ ~AbstractArchiveMemberHeader()

virtual llvm::object::AbstractArchiveMemberHeader::~AbstractArchiveMemberHeader ( )
virtualdefault

Member Function Documentation

◆ clone()

virtual std::unique_ptr< AbstractArchiveMemberHeader > llvm::object::AbstractArchiveMemberHeader::clone ( ) const
pure virtual

◆ getAccessMode()

Expected< sys::fs::perms > AbstractArchiveMemberHeader::getAccessMode ( ) const

◆ getGID()

Expected< unsigned > AbstractArchiveMemberHeader::getGID ( ) const

Definition at line 411 of file Archive.cpp.

References llvm::StringRef::empty(), getArchiveMemberDecField(), getRawGID(), and Parent.

◆ getLastModified()

Expected< sys::TimePoint< std::chrono::seconds > > AbstractArchiveMemberHeader::getLastModified ( ) const

◆ getName()

virtual Expected< StringRef > llvm::object::AbstractArchiveMemberHeader::getName ( uint64_t  Size) const
pure virtual

Get the name looking up long names.

Implemented in llvm::object::ArchiveMemberHeader, and llvm::object::BigArchiveMemberHeader.

Referenced by createMemberHeaderParseError().

◆ getNextChildLoc()

virtual Expected< const char * > llvm::object::AbstractArchiveMemberHeader::getNextChildLoc ( ) const
pure virtual

Get next file member location.

Implemented in llvm::object::ArchiveMemberHeader, and llvm::object::BigArchiveMemberHeader.

◆ getOffset()

virtual uint64_t llvm::object::AbstractArchiveMemberHeader::getOffset ( ) const
pure virtual

◆ getRawAccessMode()

virtual StringRef llvm::object::AbstractArchiveMemberHeader::getRawAccessMode ( ) const
pure virtual

◆ getRawGID()

virtual StringRef llvm::object::AbstractArchiveMemberHeader::getRawGID ( ) const
pure virtual

◆ getRawLastModified()

virtual StringRef llvm::object::AbstractArchiveMemberHeader::getRawLastModified ( ) const
pure virtual

◆ getRawName()

virtual Expected< StringRef > llvm::object::AbstractArchiveMemberHeader::getRawName ( ) const
pure virtual

Get the name without looking up long names.

Implemented in llvm::object::ArchiveMemberHeader, and llvm::object::BigArchiveMemberHeader.

◆ getRawUID()

virtual StringRef llvm::object::AbstractArchiveMemberHeader::getRawUID ( ) const
pure virtual

◆ getSize()

virtual Expected< uint64_t > llvm::object::AbstractArchiveMemberHeader::getSize ( ) const
pure virtual

◆ getSizeOf()

virtual uint64_t llvm::object::AbstractArchiveMemberHeader::getSizeOf ( ) const
pure virtual

Returns the size in bytes of the format-defined member header of the concrete archive type.

Implemented in llvm::object::CommonArchiveMemberHeader< T >, llvm::object::CommonArchiveMemberHeader< UnixArMemHdrType >, and llvm::object::CommonArchiveMemberHeader< BigArMemHdrType >.

◆ getUID()

Expected< unsigned > AbstractArchiveMemberHeader::getUID ( ) const

Definition at line 404 of file Archive.cpp.

References getArchiveMemberDecField(), getRawUID(), and Parent.

◆ isThin()

virtual Expected< bool > llvm::object::AbstractArchiveMemberHeader::isThin ( ) const
pure virtual

Friends And Related Function Documentation

◆ Archive

friend class Archive
friend

Definition at line 44 of file Archive.h.

Member Data Documentation

◆ Parent

const Archive* llvm::object::AbstractArchiveMemberHeader::Parent

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