LLDB  mainline
Public Member Functions | Static Public Member Functions | List of all members
lldb_private::repro::DataRecorder Class Reference

Recorder that records its data as text to a file. More...

#include <ReproducerProvider.h>

Inheritance diagram for lldb_private::repro::DataRecorder:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::repro::DataRecorder:
Collaboration graph
[legend]

Public Member Functions

 DataRecorder (const FileSpec &filename, std::error_code &ec)
 
template<typename T >
void Record (const T &t, bool newline=false)
 
- Public Member Functions inherited from lldb_private::repro::AbstractRecorder
const FileSpecGetFilename ()
 
void Stop ()
 

Static Public Member Functions

static llvm::Expected< std::unique_ptr< DataRecorder > > Create (const FileSpec &filename)
 

Additional Inherited Members

- Protected Member Functions inherited from lldb_private::repro::AbstractRecorder
 AbstractRecorder (const FileSpec &filename, std::error_code &ec)
 
- Protected Attributes inherited from lldb_private::repro::AbstractRecorder
llvm::raw_fd_ostream m_os
 
bool m_record
 

Detailed Description

Recorder that records its data as text to a file.

Definition at line 55 of file ReproducerProvider.h.

Constructor & Destructor Documentation

◆ DataRecorder()

lldb_private::repro::DataRecorder::DataRecorder ( const FileSpec filename,
std::error_code &  ec 
)
inline

Definition at line 57 of file ReproducerProvider.h.

Member Function Documentation

◆ Create()

llvm::Expected< std::unique_ptr< DataRecorder > > DataRecorder::Create ( const FileSpec filename)
static

Definition at line 22 of file ReproducerProvider.cpp.

◆ Record()

template<typename T >
void lldb_private::repro::DataRecorder::Record ( const T &  t,
bool  newline = false 
)
inline

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