describe.h
Go to the documentation of this file.
1 
11 #ifndef __OPCUA_DESCRIPTIONS_H
12 #define __OPCUA_DESCRIPTIONS_H
13 
14 #include <stream>
15 #include <string>
16 
17 namespace OpcUa
18 {
19 
20 struct Tabs
21 {
22  explicit Tabs(unsigned num = 0)
23  : Num(num)
24  {
25  }
26 
27  unsigned Num;
28 };
29 
30 std::ostream & operator <<(std::ostream & os, const Tabs & tabs)
31 {
32  for (unsigned i = 0; i < tabs.Num; ++i)
33  {
34  os << " ";
35  }
36 
37  return os;
38 }
39 
40 template<typename T>
41 std::string Describe(const T & object, const Tabs & tabs);
42 
43 }
44 
45 #endif // __OPCUA_DESCRIPTIONS_H
46 
std::string Describe(const T &object, const Tabs &tabs)
Tabs(unsigned num=0)
Definition: describe.h:22
unsigned Num
Definition: describe.h:27
OPC UA Address space part. GNU LGPL.
std::ostream & operator<<(std::ostream &os, const Node &node)
Definition: node.cpp:566


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:06:04