describe.h
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 #ifndef __OPCUA_DESCRIPTIONS_H
00012 #define __OPCUA_DESCRIPTIONS_H
00013 
00014 #include <stream>
00015 #include <string>
00016 
00017 namespace OpcUa
00018 {
00019 
00020   struct Tabs
00021   {
00022     explicit Tabs(unsigned num = 0)
00023       : Num(num)
00024     { 
00025     }
00026 
00027     unsigned Num;
00028   };
00029 
00030   std::ostream& operator <<(std::ostream& os, const Tabs& tabs)
00031   {
00032     for (unsigned i = 0; i < tabs.Num; ++i)
00033     {
00034       os << " ";
00035     }
00036     return os;
00037   }
00038 
00039   template<typename T>
00040   std::string Describe(const T& object, const Tabs& tabs);
00041 
00042 }
00043 
00044 #endif // __OPCUA_DESCRIPTIONS_H
00045 


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Sat Jun 8 2019 18:24:40