CppCMS
|
A class that allows to use the view withing the internal lock used inside pool class. More...
#include <cppcms/views_pool.h>
Public Member Functions | |
view_lock (std::string const &skin, std::string const &template_name, std::ostream &out, base_content &content) | |
~view_lock () | |
template<typename View > | |
View & | use_view () |
base_view & | view () |
A class that allows to use the view withing the internal lock used inside pool class.
It is similar in its operation in creating the view class similarly to pool::render() but not calling base_view::render member function.
It is used with <% using ... from ... %>
CppCMS template
cppcms::views::view_lock::view_lock | ( | std::string const & | skin, |
std::string const & | template_name, | ||
std::ostream & | out, | ||
base_content & | content | ||
) |
Create a view and lock pool's internal lock
cppcms::views::view_lock::~view_lock | ( | ) |
Delete the view and unlock the pool's lock
|
inline |
Shortcut to dynamic_cast<View &>(view())
base_view& cppcms::views::view_lock::view | ( | ) |
Get the underlying view object