#include <ssrc/wispers/renderer/service.h>
#include <ssrc/wispers/renderer/util.h>
#include <ssrc/wispers/utility/Properties.h>
#include <boost/filesystem/operations.hpp>
Go to the source code of this file.
Defines | |
#define | LTP_RENDER_FUNCTION_NAME "render" |
#define | LTP_LOAD_ENVIRONMENT_FUNCTION_NAME "load_environment" |
#define | LTP_UNCACHE_TEMPLATE_FUNCTION_NAME "uncache_template" |
#define | LTP_UNCACHE_ENVIRONMENT_FUNCTION_NAME "uncache_environment" |
#define | LTP_CLEAR_RENDERING_CACHE_FUNCTION_NAME "clear_rendering_cache" |
#define | LTP_INIT_GLOBAL_ENVIRONMENT_FUNCTION_NAME "init_global_environment" |
Functions | |
std::invalid_argument | super_service (caller) |
std::invalid_argument | _global_env_file (initializer.global_env) |
std::invalid_argument | _template_prefix () |
std::invalid_argument | _template_dir () |
std::invalid_argument | _get_path_pattern () |
std::invalid_argument | _lua_state (luaL_newstate()) |
std::invalid_argument | _lua_render_ref (LUA_NOREF) |
std::invalid_argument | _lua_load_environment_ref (LUA_NOREF) |
std::invalid_argument | _lua_uncache_template_ref (LUA_NOREF) |
std::invalid_argument | _lua_uncache_environment_ref (LUA_NOREF) |
std::invalid_argument | _lua_clear_rendering_cache_ref (LUA_NOREF) |
std::invalid_argument | _lua_init_global_environment_ref (LUA_NOREF) |
path LuaCallError path | ltp_file (template_path.string()+".lua") |
if (boost::filesystem::is_regular_file(ltp_file)) | |
Variables | |
std::invalid_argument | __pad0__ |
Define Documentation
#define LTP_CLEAR_RENDERING_CACHE_FUNCTION_NAME "clear_rendering_cache" |
Definition at line 131 of file renderer/service.cc.
#define LTP_INIT_GLOBAL_ENVIRONMENT_FUNCTION_NAME "init_global_environment" |
Definition at line 132 of file renderer/service.cc.
#define LTP_LOAD_ENVIRONMENT_FUNCTION_NAME "load_environment" |
Definition at line 128 of file renderer/service.cc.
#define LTP_RENDER_FUNCTION_NAME "render" |
Definition at line 127 of file renderer/service.cc.
#define LTP_UNCACHE_ENVIRONMENT_FUNCTION_NAME "uncache_environment" |
Definition at line 130 of file renderer/service.cc.
#define LTP_UNCACHE_TEMPLATE_FUNCTION_NAME "uncache_template" |
Definition at line 129 of file renderer/service.cc.
Function Documentation
std::invalid_argument _get_path_pattern | ( | ) |
Referenced by _lua_init_global_environment_ref(), and Renderer::render_and_cache().
std::invalid_argument _global_env_file | ( | initializer. | global_env | ) |
Referenced by _lua_init_global_environment_ref().
std::invalid_argument _lua_clear_rendering_cache_ref | ( | LUA_NOREF | ) |
Referenced by Renderer::clear_template_cache().
std::invalid_argument _lua_init_global_environment_ref | ( | LUA_NOREF | ) |
Definition at line 40 of file renderer/service.cc.
References _get_path_pattern(), _global_env_file(), _lua_state(), _template_dir(), _template_prefix(), init_path_pattern(), initializer, prepend_package_path(), and service_type().
Referenced by Relay::finish_post(), and Renderer::render_and_cache().
std::invalid_argument _lua_load_environment_ref | ( | LUA_NOREF | ) |
std::invalid_argument _lua_render_ref | ( | LUA_NOREF | ) |
Referenced by Relay::finish_post(), Renderer::render_and_cache(), and Renderer::send_error().
std::invalid_argument _lua_state | ( | luaL_newstate() | ) |
Referenced by _lua_init_global_environment_ref(), Renderer::clear_template_cache(), Relay::finish_post(), Renderer::get_status(), if(), ServletRunner::process_fcgi_request(), Renderer::render_and_cache(), Renderer::send_error(), ServletRunner::ServletRunner(), Renderer::~Renderer(), and ServletRunner::~ServletRunner().
std::invalid_argument _lua_uncache_environment_ref | ( | LUA_NOREF | ) |
std::invalid_argument _lua_uncache_template_ref | ( | LUA_NOREF | ) |
std::invalid_argument _template_dir | ( | ) |
std::invalid_argument _template_prefix | ( | ) |
Referenced by _lua_init_global_environment_ref(), Renderer::find_error_template(), Relay::finish_post(), and if().
if | ( | boost::filesystem:: | is_regular_fileltp_file | ) |
Definition at line 249 of file renderer/service.cc.
References _lua_state(), _template_dir(), _template_prefix(), and ltp_file().
path LuaCallError path ltp_file | ( | template_path.string()+".lua" | ) |
Referenced by Relay::finish_post(), if(), and Renderer::render_and_cache().
std::invalid_argument super_service | ( | caller | ) |
Variable Documentation
std::invalid_argument __pad0__ |
Definition at line 29 of file renderer/service.cc.