libhtmlpp 1.0.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
libhtmlpp::CommentElement Class Reference

Leaf node representing an HTML comment (). More...

#include <html.h>

Inheritance diagram for libhtmlpp::CommentElement:
[legend]

Public Member Functions

 CommentElement ()
 
 CommentElement (const CommentElement &comel)
 
 ~CommentElement ()
 
CommentElement & operator= (const Element &hel)
 
CommentElement & operator= (const Element *hel)
 
const std::string getComment ()
 
void setComment (const std::string &txt)
 
int getType () const
 
- Public Member Functions inherited from libhtmlpp::Element
virtual ~Element ()
 
 Element (const Element &el)
 
void insertAfter (Element *el)
 
void insertBefore (Element *el)
 
Element & operator= (const Element &hel)
 
Element & operator= (const Element *hel)
 
Element * nextElement () const
 
Element * prevElement () const
 
virtual void remove (Element *el)
 

Static Public Member Functions

static size_t parseElement (const std::vector< char > &in, std::unique_ptr< libhtmlpp::Element > &el, size_t start, bool &termination)
 

Protected Attributes

std::vector< char > _Comment
 
- Protected Attributes inherited from libhtmlpp::Element
std::unique_ptr< Element > _nextElement
 
Element * _prevElement
 

Friends

class HtmlString
 
void print (const Element &element, HtmlString &output, bool formated)
 Serializes an element (and its subtree) into an HtmlString.
 
void _copy (libhtmlpp::Element *dest, const libhtmlpp::Element *src)
 

Additional Inherited Members

- Protected Member Functions inherited from libhtmlpp::Element
 Element ()
 

Detailed Description

Leaf node representing an HTML comment ().

Definition at line 216 of file html.h.

Constructor & Destructor Documentation

◆ CommentElement() [1/2]

libhtmlpp::CommentElement::CommentElement ( )

Definition at line 1443 of file html.cpp.

◆ CommentElement() [2/2]

libhtmlpp::CommentElement::CommentElement ( const CommentElement &  comel)

Definition at line 1446 of file html.cpp.

◆ ~CommentElement()

libhtmlpp::CommentElement::~CommentElement ( )

Definition at line 1450 of file html.cpp.

Member Function Documentation

◆ getComment()

const std::string libhtmlpp::CommentElement::getComment ( )

Definition at line 1469 of file html.cpp.

◆ getType()

int libhtmlpp::CommentElement::getType ( ) const
virtual

Implements libhtmlpp::Element.

Definition at line 1473 of file html.cpp.

◆ operator=() [1/2]

libhtmlpp::CommentElement & libhtmlpp::CommentElement::operator= ( const Element &  hel)

Definition at line 1454 of file html.cpp.

◆ operator=() [2/2]

libhtmlpp::CommentElement & libhtmlpp::CommentElement::operator= ( const Element *  hel)

Definition at line 1459 of file html.cpp.

◆ parseElement()

size_t libhtmlpp::CommentElement::parseElement ( const std::vector< char > &  in,
std::unique_ptr< libhtmlpp::Element > &  el,
size_t  start,
bool &  termination 
)
static

Definition at line 1477 of file html.cpp.

◆ setComment()

void libhtmlpp::CommentElement::setComment ( const std::string &  txt)

Definition at line 1464 of file html.cpp.

Friends And Related Symbol Documentation

◆ _copy

void _copy ( libhtmlpp::Element *  dest,
const libhtmlpp::Element *  src 
)
friend

Definition at line 1046 of file html.cpp.

◆ HtmlString

friend class HtmlString
friend

Definition at line 233 of file html.h.

◆ print

void print ( const Element &  element,
HtmlString &  output,
bool  formated 
)
friend

Serializes an element (and its subtree) into an HtmlString.

Parameters
elementRoot element to print.
outputOutput buffer to append serialized HTML to.
formatedIf true, pretty-prints the output with line breaks/indentation.

Member Data Documentation

◆ _Comment

std::vector<char> libhtmlpp::CommentElement::_Comment
protected

Definition at line 232 of file html.h.


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