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

#include <base/string/HTML.h>

Inherits ReferenceCountedObject.

Public Member Functions

 HTMLAttribute () noexcept
 
 HTMLAttribute (const String &_name, const String &_value) noexcept
 
R< HTMLAttributecopy ()
 
void toCode (StringOutputStream &code)
 
- 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 name
 
String value
 

Detailed Description

HTML attribute.

Constructor & Destructor Documentation

◆ HTMLAttribute() [1/2]

HTMLAttribute::HTMLAttribute ( )
noexcept

Initializes attribute as unnamed.

◆ HTMLAttribute() [2/2]

HTMLAttribute::HTMLAttribute ( const String _name,
const String _value 
)
noexcept

Initializes attribute.

Member Function Documentation

◆ copy()

R<HTMLAttribute> HTMLAttribute::copy ( )

Copies attribute.

◆ toCode()

void HTMLAttribute::toCode ( StringOutputStream code)

Converts attribute to HTML code.

Member Data Documentation

◆ name

String HTMLAttribute::name

The name of the attribute.

◆ value

String HTMLAttribute::value

The value of the attribute.