SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
Context.h
1 #ifndef CBE__util__Context_h__
2 #define CBE__util__Context_h__
3 
4 #include <functional>
5 #include <iosfwd>
6 #include <string>
7 
8 namespace cbe {
9  namespace util {
10 
11 struct Context {
12  using ReportFn = std::function<void(std::ostream&)>;
13 
14  Context(ReportFn&& reportFn, const char fnName[]);
15  Context();
16 
17  std::string report() const;
18 
19  friend std::ostream& operator<<(std::ostream& os, const Context& context);
20 private:
21  ReportFn reportFn{};
22 public:
23  std::string fnName{};
24 };
25 
26  } // namespace util
27 } // namespace cbe
28 
29 
30 #endif // #ifndef CBE__util__Context_h__
Root namespace for the CloudBackend SDK API.
Definition: Account.h:22
Definition: Context.h:11