9 #ifndef __NODAMUSHI_SVD_SVD_PRINTER_HPP__ 10 #define __NODAMUSHI_SVD_SVD_PRINTER_HPP__ 13 # include <type_traits> 28 static std::ostream&
print(std::ostream& o,
const_string name,
const T& v,
int indent);
34 template<
typename T,
bool attribute,
bool required,
char... name>
38 int indent,
bool endline=
false)
42 if(endline)o << std::endl;
47 template<
size_t INDENT_BASE=2,
char INDENT=' '>
50 return std::string(s * INDENT_BASE,INDENT);
57 #endif // __NODAMUSHI_SVD_SVD_PRINTER_HPP__
std::string get_indent(int s)
const char * const_string
std::ostream & print_svd_value(std::ostream &o, const value< T, attribute, required, name... > &v, int indent, bool endline=false)
This class reperesents SVD(xml) element / attribute.
static std::ostream & print(std::ostream &o, const_string name, const T &v, int indent)
value class, empty_value_access_error class