stub_analytics_plugin  1.6
Network Optix Video Analytics SDK
string.h
1 #include <nx/sdk/i_string.h>
2 
3 #include <plugins/plugin_tools.h>
4 
5 namespace nx {
6 namespace sdk {
7 namespace common {
8 
9 class String: public nxpt::CommonRefCounter<IString>
10 {
11 public:
12  String() = default;
13  String(std::string s);
14 
16  String(const char* s);
17 
18  virtual void* queryInterface(const nxpl::NX_GUID& interfaceId) override;
19 
20  virtual const char* str() const override;
21 
22  void setString(std::string s);
23 
25  void setString(const char* s);
26 
27  int size() const;
28 
29  bool empty() const;
30 
31 private:
32  std::string m_string;
33 };
34 
35 } // namespace common
36 } // namespace sdk
37 } // namespace nx
Definition: string.h:9
GUID of plugin interface.
Definition: plugin_api.h:21
Definition: plugin_tools.h:221
Definition: debug.cpp:14