Samchon Framework for CPP
1.0.0
|
An interface supporting conversion to html. More...
#include <IHTMLEntity.hpp>
Public Member Functions | |
virtual auto | toHTML () const -> std::string=0 |
Get an html string represents the Entity. More... | |
Static Public Member Functions | |
template<typename T , typename... _Args> | |
static auto | toTH (const T &val, const _Args &...args) -> std::string |
Get a string represents a <th> tag. More... | |
template<typename T , typename... _Args> | |
static auto | toTR (const T &val, const _Args &...args) -> std::string |
Get a string represents a <tr> tag. More... | |
An interface supporting conversion to html.
IHTMEntity is an interface supporting conversion method to html tags. The IHTMLEntity is used to documentation or printing data of the entity to web-screen; In C++, documentation is main reason to implementing the IHTMLEntity and in JS, printing on web-screen is main reason.
IHTMLEntity provides abstract method toHTML() and varadic template methods for constituting a table. I'm planning to support lots of utility methods for html tags but I've not exprienced developing the homepage or html service. If you're familiar with the html, please contribute to the IHTMLEntity interface.
Definition at line 39 of file IHTMLEntity.hpp.
|
inlinestatic |
Get a string represents a <th> tag.
_Ty | Type of an argument to be contained with a <td> tag. |
_Args | Left varadic template arguments' type |
Returns a string represents a title columns with <th> tag by varadic template method.
Supported parameters: that can converted to string
val | An element to be contained with <td> a tag. |
args | Left argument to be contained with <td> tags. |
Definition at line 83 of file IHTMLEntity.hpp.
|
inlinestatic |
Get a string represents a <tr> tag.
_Ty | Type of an argument to be contained with a <tr> tag. |
_Args | Left varadic template arguments' type |
Returns a string represents a data columns of a row with <tr> tag by varadic template method.
Supported parameters: that can converted to string
val | An element to be contained with <tr> a tag. |
args | Left argument to be contained with <tr> tags. |
Definition at line 136 of file IHTMLEntity.hpp.
References toHTML().
|
pure virtual |