Go to the documentation of this file.
4 #ifndef tools_wroot_member_writer
5 #define tools_wroot_member_writer
7 #include "../store/iobj_const_visitor"
24 virtual bool visit(
const std::string&,
unsigned int a_v) {
return m_buf.
write(a_v);}
27 m_buf.
out() <<
"tools::wroot::member_writer::visit(int64) :"
28 <<
" dummy." << std::endl;
33 m_buf.
out() <<
"tools::wroot::member_writer::visit(uint64) :"
34 <<
" dummy." << std::endl;
41 virtual bool visit(
const std::string&,
const std::string& a_v) {
return m_buf.
write(a_v);}
47 virtual bool visit(
const std::string&,
const std::vector<bool>& a_v){
48 size_t number = a_v.size();
49 std::vector<unsigned char> data(number);
50 for(
size_t index=0;index<number;index++) {
51 data[index] = (
unsigned char)a_v[index];
62 virtual bool visit(
const std::string&,
const std::vector<int64>& ){
64 m_buf.
out() <<
"tools::wroot::member_writer::visit(vector<int64>) :"
65 <<
" dummy." << std::endl;
75 virtual bool visit(
const std::string&,
const std::vector<std::string>& a_v) {
return m_buf.
write(a_v);}
77 virtual bool visit(
const std::string&,
const std::vector< std::vector<double> >& a_v){
84 if(!a_v.
visit(*
this))
return false;