1 #ifndef GUI_WIDGETS_PHYLO_TREE___PHYLO_TREE_QUERY_MACRO_FNS__HPP
2 #define GUI_WIDGETS_PHYLO_TREE___PHYLO_TREE_QUERY_MACRO_FNS__HPP
77 NCBI_THROW(macro::CMacroExecException, eInternalError,
"Error - non-initialized pointer");
83 for (; it != it_end; ++it) {
86 NCBI_THROW(macro::CMacroExecException, eInternalError,
"Error - non-initialized pointer");
123 virtual void TheFunction();
138 virtual void TheFunction();
154 virtual void TheFunction();
171 virtual void TheFunction();
187 virtual void TheFunction();
201 virtual void TheFunction();
215 virtual void TheFunction();
229 virtual void TheFunction();
243 virtual void TheFunction();
264 virtual void TheFunction();
280 virtual void TheFunction();
294 virtual void TheFunction();
308 virtual void TheFunction();
323 virtual void TheFunction();
340 virtual void TheFunction();
363 virtual void TheFunction();
CMacroFunction_AddToSelectionSet.
int m_SelectionSetClusterID
Base cluster id for selection sets.
CMacroFunction_AddToSelectionSet(EScopeEnum func_scope, CPhyloTree *tree)
CMacroFunction_BranchDepth Returns the number of branches between the current node and the root node.
CMacroFunction_BranchDepth(EScopeEnum func_scope, CPhyloTree *tree)
CMacroFunction_CollapseNode Collapses the current node.
CMacroFunction_CollapseNode(EScopeEnum func_scope, CPhyloTree *tree)
CMacroFunction_Date Takes a date/time string as a parameter and returns it as an integer number of se...
CMacroFunction_Date(EScopeEnum func_scope, CPhyloTree *tree)
CMacroFunction_DeleteNode Deletes the current node.
CMacroFunction_DeleteNode(EScopeEnum func_scope, CPhyloTree *tree)
CMacroFunction_ExpandNode Expands the current node.
CMacroFunction_ExpandNode(EScopeEnum func_scope, CPhyloTree *tree)
CMacroFunction_IsLeaf Returns true if child is a leaf, so you can do queries that exclude non-leaf no...
CMacroFunction_IsLeaf(EScopeEnum func_scope, CPhyloTree *tree)
CMacroFunction_IsNull Returns true of the passed in property is not set at all for the current node.
CMacroFunction_IsNull(EScopeEnum func_scope, CPhyloTree *tree)
CMacroFunction_MaxChildBranchDepth Returns the number of branches between the current node and its mo...
CMacroFunction_MaxChildBranchDepth(EScopeEnum func_scope, CPhyloTree *tree)
CMacroFunction_NumChildren Returns the number of children of the current node so that you can search ...
CMacroFunction_NumChildren(EScopeEnum func_scope, CPhyloTree *tree)
CMacroFunction_SetBounding Takes one parameter (string) and sets that as the $NODE_BOUNDED property f...
CMacroFunction_SetBounding(EScopeEnum func_scope, CPhyloTree *tree)
CMacroFunction_SetColor Takes one string parameter and uses it to sets the color for the node to that...
CMacroFunction_SetColor(EScopeEnum func_scope, CPhyloTree *tree)
virtual ~CMacroFunction_SetColor()
CMacroFunction_SetMarker Takes one parameter (string) and sets that as the marker property for the no...
CMacroFunction_SetMarker(EScopeEnum func_scope, CPhyloTree *tree)
CMacroFunction_SetProperty Takes a property name (string) and property value (string) and sets or upd...
CMacroFunction_SetProperty(EScopeEnum func_scope, CPhyloTree *tree)
CMacroFunction_SetSize Takes one integer parameter and uses it to sets the radius for the node to tha...
CMacroFunction_SetSize(EScopeEnum func_scope, CPhyloTree *tree)
CMacroFunction_SubtreeSum Calculates the sum of node property (single parameter) of all the nodes tha...
CMacroFunction_SubtreeSum(EScopeEnum func_scope, CPhyloTree *tree)
Tree subclass also has functions and data needed for rendering and selection.
definition of a Culling tree
Abstract base class for any user function which can be called from either the WHERE or DO clauses.
Base class for functions which can be called from the WHERE or DO clauses of macros/queries using the...
ITreeMacroFunction(EScopeEnum func_scope, CPhyloTree *tree)
Ctor.
void x_AssignReturnValue(const CObjectInfo &oi, const string &field_name)
function useful mostly for functions in the WHERE clause
CRef< CQueryNodeValue > m_Result
static string JSFilter(const string &str)
Filter out java/javascript keywords that could possibly be used in xss attacks, particularly event ha...
static pair< string, string > s_JSSwapKeywords[]
static string s_JSFilterdKeywords[]
vector< CRef< CQueryNodeValue > > m_Args
virtual void x_InitCall(CPhyloTreeNode &data)
Functions make the action and collect statistics.
virtual void x_SetUserObjects(CQueryParseTree::TNode &qnode)
static const char * str(char *buf, int n)
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
CRef< C > Ref(C *object)
Helper functions to get CRef<> and CConstRef<> objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
TNodeList::iterator TNodeList_I
TNodeList_CI SubNodeBegin(void) const
Return first const iterator on subnode list.
TNodeList_CI SubNodeEnd(void) const
Return last const iterator on subnode list.
#define NCBI_GUIWIDGETS_PHYLO_TREE_EXPORT
Interface class for macro function implementation.
Query parser execution implementations.