NCBI C++ ToolKit
|
Search Toolkit Book for ITreeMacroFunction
Base class for functions which can be called from the WHERE or DO clauses of macros/queries using the CQueryFuncPromote classes (phylogenetic tree, table query) More...
#include <gui/widgets/phylo_tree/phylo_tree_query_macro_fns.hpp>
Public Member Functions | |
ITreeMacroFunction (EScopeEnum func_scope, CPhyloTree *tree) | |
Ctor. More... | |
Protected Member Functions | |
virtual void | x_InitCall (CPhyloTreeNode &data) |
Functions make the action and collect statistics. More... | |
virtual void | x_SetUserObjects (CQueryParseTree::TNode &qnode) |
void | x_AssignReturnValue (const CObjectInfo &oi, const string &field_name) |
function useful mostly for functions in the WHERE clause More... | |
Static Protected Member Functions | |
static string | JSFilter (const string &str) |
Filter out java/javascript keywords that could possibly be used in xss attacks, particularly event handler names and < and > symbols. More... | |
Protected Attributes | |
CPhyloTreeNode * | m_Node |
CPhyloTree * | m_Tree |
vector< CRef< CQueryNodeValue > > | m_Args |
CRef< CQueryNodeValue > | m_Result |
Static Protected Attributes | |
static string | s_JSFilterdKeywords [] |
static pair< string, string > | s_JSSwapKeywords [] |
Base class for functions which can be called from the WHERE or DO clauses of macros/queries using the CQueryFuncPromote classes (phylogenetic tree, table query)
Definition at line 54 of file phylo_tree_query_macro_fns.hpp.
|
inline |
Ctor.
Definition at line 59 of file phylo_tree_query_macro_fns.hpp.
Filter out java/javascript keywords that could possibly be used in xss attacks, particularly event handler names and < and > symbols.
Definition at line 238 of file phylo_tree_query_macro_fns.cpp.
References NStr::eNocase, NStr::Find(), NPOS, NStr::ReplaceInPlace(), result, and str().
Referenced by CMacroFunction_SetProperty::TheFunction().
|
protected |
function useful mostly for functions in the WHERE clause
|
inlineprotectedvirtual |
Functions make the action and collect statistics.
Definition at line 68 of file phylo_tree_query_macro_fns.hpp.
|
inlineprotectedvirtual |
Definition at line 73 of file phylo_tree_query_macro_fns.hpp.
References m_Args, m_Result, NCBI_THROW, Ref(), CTreeNode< TValue, TKeyGetterP >::SubNodeBegin(), and CTreeNode< TValue, TKeyGetterP >::SubNodeEnd().
|
protected |
Definition at line 107 of file phylo_tree_query_macro_fns.hpp.
Referenced by x_SetUserObjects().
|
protected |
Definition at line 99 of file phylo_tree_query_macro_fns.hpp.
Referenced by x_InitCall().
|
protected |
Definition at line 108 of file phylo_tree_query_macro_fns.hpp.
Referenced by x_SetUserObjects().
|
protected |
Definition at line 100 of file phylo_tree_query_macro_fns.hpp.
|
staticprotected |
Definition at line 104 of file phylo_tree_query_macro_fns.hpp.
Definition at line 105 of file phylo_tree_query_macro_fns.hpp.