Android-cuttlefish cvd tool
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ProtoBinaryToText< T > Class Template Reference

#include <commandline.h>

Inheritance diagram for ProtoBinaryToText< T >:
Inheritance graph
[legend]
Collaboration diagram for ProtoBinaryToText< T >:
Collaboration graph
[legend]

Public Member Functions

 ProtoBinaryToText (const std::string &m, std::string *std_out=nullptr, std::string *std_err=nullptr)
 
bool OnStdoutReceived (const char *b, size_t l) override
 
- Public Member Functions inherited from DefaultStandardStreamsCallback
 DefaultStandardStreamsCallback (std::string *stdout_str, std::string *stderr_str)
 
 DefaultStandardStreamsCallback (std::string *stdout_str, std::string *stderr_str, bool returnErrors)
 
bool OnStdoutReceived (const char *buffer, size_t length) override
 
bool OnStderrReceived (const char *buffer, size_t length) override
 
bool SendToOut (const char *buffer, size_t length)
 
bool SendToErr (const char *buffer, size_t length)
 
int Done (int status)
 
void ReturnErrors (bool returnErrors)
 
- 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

 DISALLOW_COPY_AND_ASSIGN (ProtoBinaryToText)
 

Private Attributes

std::vector< char > buffer_
 
std::string message
 

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

◆ ProtoBinaryToText()

template<typename T >
ProtoBinaryToText< T >::ProtoBinaryToText ( const std::string &  m,
std::string *  std_out = nullptr,
std::string *  std_err = nullptr 
)
inlineexplicit

Member Function Documentation

◆ DISALLOW_COPY_AND_ASSIGN()

template<typename T >
ProtoBinaryToText< T >::DISALLOW_COPY_AND_ASSIGN ( ProtoBinaryToText< T >  )
private

◆ OnStdoutReceived()

template<typename T >
bool ProtoBinaryToText< T >::OnStdoutReceived ( const char *  b,
size_t  l 
)
inlineoverridevirtual

Reimplemented from DefaultStandardStreamsCallback.

Member Data Documentation

◆ buffer_

template<typename T >
std::vector<char> ProtoBinaryToText< T >::buffer_
private

◆ message

template<typename T >
std::string ProtoBinaryToText< T >::message
private

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