Base Framework
Public Member Functions | Public Attributes | List of all members
HTMLText Class Reference

#include <base/string/HTML.h>

Inherits HTMLItem.

Public Member Functions

 HTMLText () noexcept
 
 HTMLText (const String &_text) noexcept
 
const StringgetText () const noexcept
 
void setText (const String &text) noexcept
 
R< HTMLItemcopy () override
 
void toCode (StringOutputStream &code) override
 
- Public Member Functions inherited from ReferenceCountedObject
 ReferenceCountedObject () noexcept
 
 ReferenceCountedObject (const ReferenceCountedObject &copy) noexcept
 
 ReferenceCountedObject (ReferenceCountedObject &&move) noexcept
 
ReferenceCountedObjectoperator= (const ReferenceCountedObject &copy) noexcept
 
ReferenceCountedObjectoperator= (ReferenceCountedObject &&move) noexcept
 
MemorySize getNumberOfReferences_INTERNAL () const noexcept
 
virtual bool useGarbageCollector () const noexcept
 
- Public Member Functions inherited from DynamicObject
 DynamicObject () noexcept
 
bool isValidObject () const noexcept
 
virtual ~DynamicObject () noexcept(false)
 
 _COM_AZURE_DEV__BASE__OVERRIDE_ALLOC ()
 

Public Attributes

String text
 

Detailed Description

HTML text.

Constructor & Destructor Documentation

◆ HTMLText() [1/2]

HTMLText::HTMLText ( )
noexcept

Initialize the item as empty.

◆ HTMLText() [2/2]

HTMLText::HTMLText ( const String _text)
noexcept

Initializes the text item.

Member Function Documentation

◆ copy()

R<HTMLItem> HTMLText::copy ( )
overridevirtual

Copies the text item.

Implements HTMLItem.

◆ getText()

const String& HTMLText::getText ( ) const
inlinenoexcept

Returns the text.

◆ setText()

void HTMLText::setText ( const String text)
inlinenoexcept

Sets the text.

◆ toCode()

void HTMLText::toCode ( StringOutputStream code)
overridevirtual

Converts text to HTML code.

Implements HTMLItem.

Member Data Documentation

◆ text

String HTMLText::text

The text.