Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Euclid::Table::ToStringVisitor Struct Reference

#include <AsciiWriterHelper.h>

Inheritance diagram for Euclid::Table::ToStringVisitor:
Inheritance graph
[legend]
Collaboration diagram for Euclid::Table::ToStringVisitor:
Collaboration graph
[legend]

Public Member Functions

std::string operator() (const std::string &from) const
 
std::string operator() (const double from) const
 
template<typename T >
std::string operator() (const std::vector< T > &v) const
 
template<typename T >
std::string operator() (const T &from) const
 

Detailed Description

This visitor will wrap strings between quotes so spaces (and quotes) can be used within strings. Other types will have their usual representation.

Definition at line 77 of file AsciiWriterHelper.h.

Member Function Documentation

◆ operator()() [1/4]

std::string Euclid::Table::ToStringVisitor::operator() ( const double  from) const
inline

Definition at line 84 of file AsciiWriterHelper.h.

References std::setprecision(), and std::stringstream::str().

Here is the call graph for this function:

◆ operator()() [2/4]

std::string Euclid::Table::ToStringVisitor::operator() ( const std::string from) const
inline

Definition at line 78 of file AsciiWriterHelper.h.

References Euclid::Table::quoted(), and std::stringstream::str().

Here is the call graph for this function:

◆ operator()() [3/4]

template<typename T >
std::string Euclid::Table::ToStringVisitor::operator() ( const std::vector< T > &  v) const
inline

Definition at line 91 of file AsciiWriterHelper.h.

References std::vector< T >::begin(), std::vector< T >::end(), and std::stringstream::str().

Here is the call graph for this function:

◆ operator()() [4/4]

template<typename T >
std::string Euclid::Table::ToStringVisitor::operator() ( const T &  from) const
inline

Definition at line 106 of file AsciiWriterHelper.h.

References std::stringstream::str().

Here is the call graph for this function:

The documentation for this struct was generated from the following file: