stub_analytics_plugin  1.6
Network Optix Video Analytics SDK
log_utils.h
1 #pragma once
2 
3 #include <map>
4 #include <string>
5 
6 namespace nx { namespace sdk { class IStringMap; } }
7 
8 namespace nx {
9 namespace sdk {
10 
24 struct LogUtils
25 {
26  const bool enableOutput;
27  std::string printPrefix;
28 
29  LogUtils(bool enableOutput, std::string printPrefix):
30  enableOutput(enableOutput), printPrefix(std::move(printPrefix))
31  {
32  }
33 
34  void setPrintPrefix(std::string newPrefix);
35 
43  std::map<std::string, std::string>* outMap,
44  const IStringMap* stringMap,
45  const std::string& caption,
46  int outputIndent = 0) const;
47 };
48 
49 } // namespace sdk
50 } // namespace nx
Definition: i_string_map.h:8
bool convertAndOutputStringMap(std::map< std::string, std::string > *outMap, const IStringMap *stringMap, const std::string &caption, int outputIndent=0) const
Definition: log_utils.cpp:17
Definition: debug.cpp:12
Definition: log_utils.h:24