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

#include <FileAction.h>

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 = eFileActionNone
int m_fd = -1
int m_arg = -1
FileSpec m_file_spec

Detailed Description

Definition at line 17 of file FileAction.h.

Member Enumeration Documentation

◆ Action


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 21 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

◆ GetActionArgument()

int lldb_private::FileAction::GetActionArgument ( ) const

Definition at line 40 of file FileAction.h.

References m_arg.

Referenced by AddPosixSpawnFileAction(), and HandleFileAction().

◆ GetFD()

int lldb_private::FileAction::GetFD ( ) const

Definition at line 36 of file FileAction.h.

References m_fd.

Referenced by AddPosixSpawnFileAction().

◆ 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 = eFileActionNone

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 = -1

Definition at line 51 of file FileAction.h.

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

◆ m_fd

int lldb_private::FileAction::m_fd = -1

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

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: