![]() |
neoGFX
Cross-platform C++ app/game engine
|
#include <html.hpp>
Classes | |
class | const_iterator |
class | iterator |
Public Types | |
enum | type_e { Doctype , Html , Head , Body , Heading1 , Heading2 , Heading3 , Heading4 , Heading5 , Heading6 , Paragraph } |
typedef html_node< CharT, Alloc > | node |
typedef node::allocator_type | allocator_type |
typedef node::string | string |
typedef std::pair< const string, string > | attribute |
typedef std::map< string, string, std::less< string >, typename allocator_type::template rebind< attribute >::other > | attribute_list |
![]() | |
enum | type_e { Document = 0x1 , Element = 0x2 , Text = 0x4 , Comment = 0x8 , All = 0xFF } |
typedef Alloc | allocator_type |
typedef neolib::basic_quick_string< CharT > | string |
typedef html_node< CharT, allocator_type > | node |
typedef node * | node_ptr |
Public Member Functions | |
html_element (type_e aType) | |
type_e | type () const |
node::iterator | insert (typename node::iterator aPosition, const CharT *aName) |
html_element & | append (const CharT *aName) |
const attribute_list & | attributes () const |
bool | has_attribute (const string &aAttributeName) const |
const string & | attribute_value (const string &aAttributeName) const |
const string & | attribute_value (const string &aNewAttributeName, const string &aOldAttributeName) const |
const_iterator | begin () const |
const_iterator | end () const |
iterator | begin () |
iterator | end () |
const string & | text () const |
bool | use_empty_element_tag () const |
type_e & | type () |
attribute_list & | attributes () |
void | set_attribute (const string &aAttributeName, const string &aAttributeValue) |
void | append_text (const string &aText) |
void | set_use_empty_element_tag (bool aUseEmptyElementTag) |
iterator | insert (iterator aIterator, node_ptr aNode) |
![]() | |
html_node (type_e aType=Document) | |
virtual | ~html_node () |
type_e | type () const |
bool | empty () const |
const node & | back () const |
node & | back () |
const_iterator | begin (type_e aFilter=All) const |
const_iterator | end (type_e aFilter=All) const |
iterator | begin (type_e aFilter=All) |
iterator | end (type_e aFilter=All) |
const_iterator | find (const string &aName) const |
template<typename Exception > | |
const_iterator | find_or_throw (const string &aName) const |
iterator | find (const string &aName) |
iterator | find_or_append (const string &aName) |
template<typename Exception > | |
iterator | find_or_throw (const string &aName) |
void | push_back (node_ptr aNode) |
iterator | insert (iterator aIterator, node_ptr aNode) |
void | erase (iterator aIterator) |
void | clear () |
Static Public Member Functions | |
static void * | operator new (std::size_t) |
static void | operator delete (void *ptr) |
typedef node::allocator_type neogfx::html_element< CharT, Alloc >::allocator_type |
typedef std::pair<const string, string> neogfx::html_element< CharT, Alloc >::attribute |
typedef std::map<string, string, std::less<string>, typename allocator_type::template rebind<attribute>::other> neogfx::html_element< CharT, Alloc >::attribute_list |
typedef html_node<CharT, Alloc> neogfx::html_element< CharT, Alloc >::node |
typedef node::string neogfx::html_element< CharT, Alloc >::string |
enum neogfx::html_element::type_e |
|
inline |
|
inline |
void neogfx::html_element< CharT, Alloc >::append_text | ( | const string & | aText | ) |
const string & neogfx::html_element< CharT, Alloc >::attribute_value | ( | const string & | aAttributeName | ) | const |
const string & neogfx::html_element< CharT, Alloc >::attribute_value | ( | const string & | aNewAttributeName, |
const string & | aOldAttributeName | ||
) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool neogfx::html_element< CharT, Alloc >::has_attribute | ( | const string & | aAttributeName | ) | const |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
void neogfx::html_element< CharT, Alloc >::set_attribute | ( | const string & | aAttributeName, |
const string & | aAttributeValue | ||
) |
|
inline |
const string & neogfx::html_element< CharT, Alloc >::text | ( | ) | const |
|
inline |
|
inline |
|
inline |