Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
JavaScriptXML Class Reference

Functions for manipulating XML structures. More...

#include <JavaScriptXML.h>

Public Member Functions

 DRAIN_XML_TREE (N) &jsFunctionScope
 
 if (jsFunctionScope.empty())
 
std::string id (url)
 
 for (auto &c :id)
 
mout note ("mapped id:", id)
 
 DRAIN_XML_TREE (N) &treeJS
 
treeJS setUrl (url)
 

Static Public Member Functions

template<class N >
static DRAIN_XML_TREE (N) &getOnLoadScript(DRAIN_XML_TREE(N) &root)
 
template<class N >
static DRAIN_XML_TREE (N) &ensureScript(DRAIN_XML_TREE(N) &root
 
template<typename N , typename ... TT>
static DRAIN_XML_TREE (N) &ensureJavaScriptFunction(DRAIN_XML_TREE(N) &root
 
template<typename N >
static DRAIN_XML_TREE (N) &ensureJavaScriptUrl(DRAIN_XML_TREE(N) &root
 

Public Attributes

static const std::string & label
 
static const std::string const std::string & code
 
 scriptElem = code
 
return scriptElem
 
static const std::string & name
 
static const std::string const TT & args
 
return jsFunctionScope
 
static const std::string & url
 
return treeJS
 

Detailed Description

Functions for manipulating XML structures.

Member Function Documentation

◆ DRAIN_XML_TREE()

template<typename N , typename ... TT>
static DRAIN_XML_TREE ( N  ) &
static

Creates a function in a shared /SCRIPT/ slot. Todo: rename

Template Parameters
N- Tree node type (T::node_data_t)
TT- function parameter names (strings). Creates...

Member Data Documentation

◆ args

const std::string const TT& args
Initial value:
{
DRAIN_XML_TREE(N) & jsFunction = UtilsXML::getHeaderObject(root, N::xml_tag_t::SCRIPT)

◆ code

const std::string const std::string& code
Initial value:
{
DRAIN_XML_TREE(N) & scriptElem = UtilsXML::getHeaderObject(root, N::xml_tag_t::SCRIPT, label)

◆ url

const std::string& url
Initial value:
{
drain::Logger mout(__FILE__, __FUNCTION__)
LogSourc e is the means for a function or any program segment to "connect" to a Log.
Definition Log.h:326

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