Let me illustrate…
Copyright (C) 1998-2023 Gregory W. Chicares. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
Public Member Functions | Private Member Functions | Private Attributes | List of all members
html::attribute Class Reference

Represents a single attribute of an HTML element. More...

#include <html.hpp>

Public Member Functions

 attribute (char const *name)
 
attribute operator() (std::string value) const
 
std::string as_string () const
 

Private Member Functions

 attribute (char const *name, std::string &&value)
 

Private Attributes

char const *const name_
 
std::string const value_
 

Detailed Description

Represents a single attribute of an HTML element.

Constructor & Destructor Documentation

◆ attribute() [1/2]

html::attribute::attribute ( char const *  name)
inlineexplicit

◆ attribute() [2/2]

html::attribute::attribute ( char const *  name,
std::string &&  value 
)
inlineprivate

Member Function Documentation

◆ as_string()

std::string html::attribute::as_string ( ) const

◆ operator()()

attribute html::attribute::operator() ( std::string  value) const
inline

Member Data Documentation

◆ name_

char const* const html::attribute::name_
private

◆ value_

std::string const html::attribute::value_
private

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