9#ifndef LLDB_HOST_FILE_H
10#define LLDB_HOST_FILE_H
36 std::optional<Terminal::Parity>
Parity;
43 static llvm::Expected<Options>
OptionsFromURL(llvm::StringRef urlqs);
45 static llvm::Expected<std::unique_ptr<SerialPort>>
47 bool transfer_ownership);
56 bool isA(
const void *classID)
const override {
63 bool transfer_ownership);
An abstract base class for files.
virtual bool isA(const void *classID) const
LazyBool m_is_interactive
bool IsValid() const override
IsValid.
POSIX implementation of NativeFile.
bool isA(const void *classID) const override
Windows implementation of NativeFile.
A command line option parsing protocol class.
SerialPort(const SerialPort &)=delete
static llvm::Expected< std::unique_ptr< SerialPort > > Create(int fd, OpenOptions options, Options serial_options, bool transfer_ownership)
SerialPort(int fd, OpenOptions options, Options serial_options, bool transfer_ownership)
const SerialPort & operator=(const SerialPort &)=delete
Status Close() override
Flush any buffers and release any resources owned by the file.
bool IsValid() const override
IsValid.
static bool classof(const File *file)
bool isA(const void *classID) const override
static llvm::Expected< Options > OptionsFromURL(llvm::StringRef urlqs)
A RAII-friendly terminal state saving/restoring class.
A class that represents a running process on the host machine.
NativeFilePosix NativeFile
std::optional< Terminal::ParityCheck > ParityCheck
std::optional< unsigned int > StopBits
std::optional< Terminal::Parity > Parity
std::optional< unsigned int > BaudRate