Public Member Functions | Protected Attributes | Private Attributes | List of all members
HTML::TAG Class Reference

#include <HtmlBuilder.h>

Inheritance diagram for HTML::TAG:
Inheritance graph
[legend]

Public Member Functions

 TAG (const std::string &tag, std::ostream &stream)
 
virtual ~TAG ()
 
TAGtext ()
 
TAGtext (const std::string &value)
 
TAGtext (int value)
 

Protected Attributes

std::ostream & m_stream
 

Private Attributes

std::string m_tag
 
std::stringstream m_value
 

Detailed Description

Definition at line 50 of file HtmlBuilder.h.

Constructor & Destructor Documentation

◆ TAG()

HTML::TAG::TAG ( const std::string &  tag,
std::ostream &  stream 
)
inline

Definition at line 70 of file HtmlBuilder.h.

72  : public TAG
73 {
74 public:

◆ ~TAG()

virtual HTML::TAG::~TAG ( )
inlinevirtual

Definition at line 76 of file HtmlBuilder.h.

76  : TAG( "A", stream ) {}
77 
78  A& href( const std::string& value )
79  { m_stream << " href='" << value << "'"; return *this; }
80 };

Member Function Documentation

◆ text() [1/3]

TAG& HTML::TAG::text ( )
inline

◆ text() [2/3]

TAG& HTML::TAG::text ( const std::string &  value)
inline

Definition at line 84 of file HtmlBuilder.h.

84  :
85  BODY( std::ostream& stream )

◆ text() [3/3]

TAG& HTML::TAG::text ( int  value)
inline

Definition at line 86 of file HtmlBuilder.h.

86  : TAG( "BODY", stream ) {}
87 };

Member Data Documentation

◆ m_stream

std::ostream& HTML::TAG::m_stream
protected

Definition at line 94 of file HtmlBuilder.h.

Referenced by HTML::HR::HR(), and HTML::TABLE::TABLE().

◆ m_tag

std::string HTML::TAG::m_tag
private

Definition at line 90 of file HtmlBuilder.h.

◆ m_value

std::stringstream HTML::TAG::m_value
private

Definition at line 91 of file HtmlBuilder.h.


The documentation for this class was generated from the following file:
HTML::TAG::m_stream
std::ostream & m_stream
Definition: HtmlBuilder.h:94
HTML::TAG::TAG
TAG(const std::string &tag, std::ostream &stream)
Definition: HtmlBuilder.h:70

Generated on Wed Apr 29 2020 19:41:30 for QuickFIX by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2001