Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
google::protobuf::ScopedMemoryLog Class Reference

#include <googletest.h>

Public Member Functions

const std::vector< string > & GetMessages (LogLevel error)
 
 ScopedMemoryLog ()
 
virtual ~ScopedMemoryLog ()
 

Private Member Functions

 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (ScopedMemoryLog)
 

Static Private Member Functions

static void HandleLog (LogLevel level, const char *filename, int line, const string &message)
 

Private Attributes

std::map< LogLevel, std::vector< string > > messages_
 
LogHandlerold_handler_
 

Static Private Attributes

static ScopedMemoryLogactive_log_ = NULL
 

Detailed Description

Definition at line 81 of file protobuf/src/google/protobuf/testing/googletest.h.

Constructor & Destructor Documentation

◆ ScopedMemoryLog()

google::protobuf::ScopedMemoryLog::ScopedMemoryLog ( )

Definition at line 262 of file googletest.cc.

◆ ~ScopedMemoryLog()

google::protobuf::ScopedMemoryLog::~ScopedMemoryLog ( )
virtual

Definition at line 268 of file googletest.cc.

Member Function Documentation

◆ GetMessages()

const std::vector< string > & google::protobuf::ScopedMemoryLog::GetMessages ( LogLevel  error)

Definition at line 273 of file googletest.cc.

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS()

google::protobuf::ScopedMemoryLog::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( ScopedMemoryLog  )
private

◆ HandleLog()

void google::protobuf::ScopedMemoryLog::HandleLog ( LogLevel  level,
const char *  filename,
int  line,
const string message 
)
staticprivate

Definition at line 279 of file googletest.cc.

Member Data Documentation

◆ active_log_

ScopedMemoryLog * google::protobuf::ScopedMemoryLog::active_log_ = NULL
staticprivate

◆ messages_

std::map<LogLevel, std::vector<string> > google::protobuf::ScopedMemoryLog::messages_
private

◆ old_handler_

LogHandler* google::protobuf::ScopedMemoryLog::old_handler_
private

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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:09