LLDB  mainline
Public Types | Public Member Functions | Protected Attributes | List of all members
lldb_private::FileAction Class Reference

#include <FileAction.h>

Collaboration diagram for lldb_private::FileAction:
Collaboration graph
[legend]

Public Types

enum  Action { eFileActionNone, eFileActionClose, eFileActionDuplicate, eFileActionOpen }
 

Public Member Functions

 FileAction ()
 
void Clear ()
 
bool Close (int fd)
 
bool Duplicate (int fd, int dup_fd)
 
bool Open (int fd, const FileSpec &file_spec, bool read, bool write)
 
int GetFD () const
 
Action GetAction () const
 
int GetActionArgument () const
 
llvm::StringRef GetPath () const
 
const FileSpecGetFileSpec () const
 
void Dump (Stream &stream) const
 

Protected Attributes

Action m_action
 
int m_fd
 
int m_arg
 
FileSpec m_file_spec
 

Detailed Description

Definition at line 17 of file FileAction.h.

Member Enumeration Documentation

◆ Action

Enumerator
eFileActionNone 
eFileActionClose 
eFileActionDuplicate 
eFileActionOpen 

Definition at line 19 of file FileAction.h.

Constructor & Destructor Documentation

◆ FileAction()

FileAction::FileAction ( )

Definition at line 19 of file FileAction.cpp.

Member Function Documentation

◆ Clear()

void FileAction::Clear ( )

Definition at line 22 of file FileAction.cpp.

References lldb_private::FileSpec::Clear(), eFileActionNone, m_action, m_arg, m_fd, and m_file_spec.

Referenced by Close(), Duplicate(), and Open().

◆ Close()

bool FileAction::Close ( int  fd)

◆ Dump()

void FileAction::Dump ( Stream stream) const

◆ Duplicate()

bool FileAction::Duplicate ( int  fd,
int  dup_fd 
)

◆ GetAction()

Action lldb_private::FileAction::GetAction ( ) const
inline

◆ GetActionArgument()

int lldb_private::FileAction::GetActionArgument ( ) const
inline

◆ GetFD()

int lldb_private::FileAction::GetFD ( ) const
inline

◆ GetFileSpec()

const FileSpec & FileAction::GetFileSpec ( ) const

◆ GetPath()

llvm::StringRef FileAction::GetPath ( ) const

◆ Open()

bool FileAction::Open ( int  fd,
const FileSpec file_spec,
bool  read,
bool  write 
)

Member Data Documentation

◆ m_action

Action lldb_private::FileAction::m_action
protected

Definition at line 49 of file FileAction.h.

Referenced by Clear(), Close(), Dump(), Duplicate(), GetAction(), and Open().

◆ m_arg

int lldb_private::FileAction::m_arg
protected

Definition at line 51 of file FileAction.h.

Referenced by Clear(), Dump(), Duplicate(), GetActionArgument(), and Open().

◆ m_fd

int lldb_private::FileAction::m_fd
protected

Definition at line 50 of file FileAction.h.

Referenced by Clear(), Close(), Dump(), Duplicate(), GetFD(), and Open().

◆ m_file_spec

FileSpec lldb_private::FileAction::m_file_spec
protected

Definition at line 53 of file FileAction.h.

Referenced by Clear(), Dump(), GetFileSpec(), GetPath(), and Open().


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