CppCMS
Public Member Functions
cppcms::form_context Class Reference

This class represents the context required to generate the widgets' HTML. More...

#include <cppcms/form.h>

Inheritance diagram for cppcms::form_context:
cppcms::form_flags

List of all members.

Public Member Functions

 form_context ()
 form_context (form_context const &other)
form_context const & operator= (form_context const &other)
 form_context (std::ostream &output, html_type ht=form_flags::as_html, html_list_type hlt=form_flags::as_p)
 ~form_context ()
void html (html_type t)
void html_list (html_list_type t)
void widget_part (widget_part_type t)
void out (std::ostream &out)
html_type html () const
html_list_type html_list () const
widget_part_type widget_part () const
std::ostream & out () const

Detailed Description

This class represents the context required to generate the widgets' HTML.


Constructor & Destructor Documentation

Default constructor.

Copy-constructor.

Create a rendering context.

Parameters:
outputthe std::ostream output to write HTML to.
htflags represents the type of HTML that should be generated.
hltflag defines the style of widgets generation.

Destructor.


Member Function Documentation

Set the HTML/XHTML flag.

Set the HTML/XHTML flag. The default is as_html.

Set the widgets rendering style.

Get the widget rendering style. The default is as_p.

form_context const& cppcms::form_context::operator= ( form_context const &  other)

Assignment.

void cppcms::form_context::out ( std::ostream &  out)

Set the output stream.

Referenced by cppcms::widgets::numeric< T >::render_value().

std::ostream& cppcms::form_context::out ( ) const

Get the output stream.

Set the flag for the partial rendering of the widget.

Get the part of the widget that should be generated. See widget_part_type. The default is first_part.


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