proxygen
example::ExampleObject Class Reference

#include <lib.h>

Public Member Functions

 ExampleObject (folly::StringPiece str)
 
 ~ExampleObject ()
 
void doStuff ()
 

Private Attributes

std::string value_
 

Detailed Description

Definition at line 23 of file lib.h.

Constructor & Destructor Documentation

example::ExampleObject::ExampleObject ( folly::StringPiece  str)
inlineexplicit

Definition at line 25 of file lib.h.

References doStuff(), folly::Range< Iter >::str(), value_, XLOGF, and ~ExampleObject().

25  : value_{str.str()} {
26  // All XLOG() statements in this file will log to the category
27  // folly.experimental.logging.example.lib
28  XLOGF(DBG1, "ExampleObject({}) constructed at {}", value_, this);
29  }
std::string str() const
Definition: Range.h:591
std::string value_
Definition: lib.h:35
#define XLOGF(level, fmt, arg1,...)
Definition: xlog.h:77
example::ExampleObject::~ExampleObject ( )

Definition at line 19 of file lib.cpp.

References value_, and XLOGF.

Referenced by ExampleObject().

19  {
20  // All XLOG() statements in this file will log to the category
21  // folly.logging.example.lib
22  XLOGF(DBG1, "ExampleObject({}) at {} destroyed", value_, this);
23 }
std::string value_
Definition: lib.h:35
#define XLOGF(level, fmt, arg1,...)
Definition: xlog.h:77

Member Function Documentation

void example::ExampleObject::doStuff ( )

Referenced by ExampleObject().

Member Data Documentation

std::string example::ExampleObject::value_
private

Definition at line 35 of file lib.h.

Referenced by ExampleObject(), and ~ExampleObject().


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