trase
trase::AttributeFormatter Class Reference

Helper class for BackendSVG to format attributes as 'name="val" '. More...

#include <BackendSVG.hpp>

Public Member Functions

template<typename T >
std::string operator() (const std::string &name, const T val)
 Format as 'name="val" ' (inc quotes and space), and return a string. More...
 

Detailed Description

Helper class for BackendSVG to format attributes as 'name="val" '.

Member Function Documentation

◆ operator()()

template<typename T >
std::string trase::AttributeFormatter::operator() ( const std::string &  name,
const T  val 
)
inline

Format as 'name="val" ' (inc quotes and space), and return a string.

Template Parameters
Ttype of val
Parameters
namename of attribute
valvalue of attribute
Returns
string of 'name="val" '

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