proxygen
folly::TestHandlerFactory::TestWriterFactory Class Reference
Inheritance diagram for folly::TestHandlerFactory::TestWriterFactory:
folly::StandardLogHandlerFactory::WriterFactory folly::StandardLogHandlerFactory::OptionProcessor

Public Member Functions

 TestWriterFactory (std::shared_ptr< TestLogWriter > writer)
 
bool processOption (StringPiece, StringPiece) override
 
std::shared_ptr< LogWritercreateWriter () override
 
- Public Member Functions inherited from folly::StandardLogHandlerFactory::OptionProcessor
virtual ~OptionProcessor ()
 

Private Attributes

std::shared_ptr< TestLogWriterwriter_
 

Detailed Description

Definition at line 68 of file SyncLevelTest.cpp.

Constructor & Destructor Documentation

folly::TestHandlerFactory::TestWriterFactory::TestWriterFactory ( std::shared_ptr< TestLogWriter writer)
inline

Definition at line 70 of file SyncLevelTest.cpp.

71  : writer_(writer) {}
std::shared_ptr< TestLogWriter > writer_

Member Function Documentation

std::shared_ptr<LogWriter> folly::TestHandlerFactory::TestWriterFactory::createWriter ( )
inlineoverridevirtual

Implements folly::StandardLogHandlerFactory::WriterFactory.

Definition at line 78 of file SyncLevelTest.cpp.

78  {
79  return writer_;
80  }
std::shared_ptr< TestLogWriter > writer_
bool folly::TestHandlerFactory::TestWriterFactory::processOption ( StringPiece  name,
StringPiece  value 
)
inlineoverridevirtual

Process an option.

This should return true if the option was processed successfully, or false if this is an unknown option name. It should throw an exception if the option name is known but there is a problem with the value.

Implements folly::StandardLogHandlerFactory::OptionProcessor.

Definition at line 73 of file SyncLevelTest.cpp.

74  {
75  return false;
76  }

Member Data Documentation

std::shared_ptr<TestLogWriter> folly::TestHandlerFactory::TestWriterFactory::writer_
private

Definition at line 83 of file SyncLevelTest.cpp.


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