Android-cuttlefish cvd tool
Public Member Functions | Private Member Functions | Private Attributes | List of all members
BugreportStandardStreamsCallback Class Reference
Inheritance diagram for BugreportStandardStreamsCallback:
Inheritance graph
[legend]
Collaboration diagram for BugreportStandardStreamsCallback:
Collaboration graph
[legend]

Public Member Functions

 BugreportStandardStreamsCallback (const std::string &dest_dir, const std::string &dest_file, bool show_progress, Bugreport *br)
 
bool OnStdoutReceived (const char *buffer, size_t length) override
 
bool OnStderrReceived (const char *buffer, size_t length) override
 
int Done (int unused_)
 
- Public Member Functions inherited from StandardStreamsCallbackInterface
 StandardStreamsCallbackInterface ()
 
virtual bool OnStdoutReceived (const char *buffer, size_t length)=0
 
virtual bool OnStderrReceived (const char *buffer, size_t length)=0
 
virtual int Done (int status)=0
 

Private Member Functions

void SetLineMessage (const std::string &action)
 
void SetSrcFile (const std::string path)
 
void ProcessLine (const std::string &line)
 
 DISALLOW_COPY_AND_ASSIGN (BugreportStandardStreamsCallback)
 

Private Attributes

Bugreportbr_
 
std::string src_file_
 
std::string dest_dir_
 
std::string dest_file_
 
std::string line_message_
 
std::vector< std::string > invalid_lines_
 
bool show_progress_
 
int status_
 
std::string line_
 
int last_progress_percentage_
 

Additional Inherited Members

- Static Protected Member Functions inherited from StandardStreamsCallbackInterface
static bool SendTo (std::string *string, FILE *stream, const char *buffer, size_t length, bool returnErrors)
 

Constructor & Destructor Documentation

◆ BugreportStandardStreamsCallback()

BugreportStandardStreamsCallback::BugreportStandardStreamsCallback ( const std::string &  dest_dir,
const std::string &  dest_file,
bool  show_progress,
Bugreport br 
)
inline

Member Function Documentation

◆ DISALLOW_COPY_AND_ASSIGN()

BugreportStandardStreamsCallback::DISALLOW_COPY_AND_ASSIGN ( BugreportStandardStreamsCallback  )
private

◆ Done()

int BugreportStandardStreamsCallback::Done ( int  unused_)
inlinevirtual

◆ OnStderrReceived()

bool BugreportStandardStreamsCallback::OnStderrReceived ( const char *  buffer,
size_t  length 
)
inlineoverridevirtual

◆ OnStdoutReceived()

bool BugreportStandardStreamsCallback::OnStdoutReceived ( const char *  buffer,
size_t  length 
)
inlineoverridevirtual

◆ ProcessLine()

void BugreportStandardStreamsCallback::ProcessLine ( const std::string &  line)
inlineprivate

◆ SetLineMessage()

void BugreportStandardStreamsCallback::SetLineMessage ( const std::string &  action)
inlineprivate

◆ SetSrcFile()

void BugreportStandardStreamsCallback::SetSrcFile ( const std::string  path)
inlineprivate

Member Data Documentation

◆ br_

Bugreport* BugreportStandardStreamsCallback::br_
private

◆ dest_dir_

std::string BugreportStandardStreamsCallback::dest_dir_
private

◆ dest_file_

std::string BugreportStandardStreamsCallback::dest_file_
private

◆ invalid_lines_

std::vector<std::string> BugreportStandardStreamsCallback::invalid_lines_
private

◆ last_progress_percentage_

int BugreportStandardStreamsCallback::last_progress_percentage_
private

◆ line_

std::string BugreportStandardStreamsCallback::line_
private

◆ line_message_

std::string BugreportStandardStreamsCallback::line_message_
private

◆ show_progress_

bool BugreportStandardStreamsCallback::show_progress_
private

◆ src_file_

std::string BugreportStandardStreamsCallback::src_file_
private

◆ status_

int BugreportStandardStreamsCallback::status_
private

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