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 33 of file HtmlBuilder.h.

Constructor & Destructor Documentation

◆ TAG()

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

Definition at line 36 of file HtmlBuilder.h.

37 : m_tag( tag ), m_stream( stream )
38 {
39 m_stream << "<" << m_tag;
40 }
std::string m_tag
Definition HtmlBuilder.h:56
std::ostream & m_stream
Definition HtmlBuilder.h:60

References m_stream, and m_tag.

◆ ~TAG()

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

Definition at line 42 of file HtmlBuilder.h.

43 {
44 m_stream << m_value.str();
45 m_stream << "</" << m_tag << ">";
46 }
std::stringstream m_value
Definition HtmlBuilder.h:57

References m_stream, m_tag, and m_value.

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 50 of file HtmlBuilder.h.

51 { m_value << value; text(); return *this; }
TAG & text()
Definition HtmlBuilder.h:48

References m_value, and text().

◆ text() [3/3]

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

Definition at line 52 of file HtmlBuilder.h.

53 { m_value << value; text(); return *this; }

References m_value, and text().

Member Data Documentation

◆ m_stream

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

◆ m_tag

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

Definition at line 56 of file HtmlBuilder.h.

Referenced by TAG(), and ~TAG().

◆ m_value

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

Definition at line 57 of file HtmlBuilder.h.

Referenced by text(), text(), and ~TAG().


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

Generated on Mon Oct 14 2024 06:04:44 for QuickFIX by doxygen 1.9.8 written by Dimitri van Heesch, © 1997-2001