20 #ifndef _REMOTEPARSERS_HXX_
21 #define _REMOTEPARSERS_HXX_
31 template <
class T=YACS::ENGINE::InlineNode*>
39 DEBTRACE(
"remotetypeParser::onEnd: " << el )
40 std::string element(el);
42 else if(element ==
"function")this->
function(((
functypeParser*)child)->post());
52 DEBTRACE(
"remotenode_load: " <<
l._container);
58 DEBTRACE(
"remote_function: " <<
f._code )
85 if(currentProc->
containerMap.count(this->_container) != 0)
97 std::cerr <<
"WARNING: Unknown container and no DefaultContainer " << this->
_container <<
" will be ignored" << std::endl;
107 DEBTRACE(
"remotetypeParser::onStart: " << el )
108 std::string element(el);
110 this->maxcount(
"kind",1,element);
111 this->maxcount(
"function",1,element);
112 this->maxcount(
"script",1,element);
113 this->maxcount(
"load",1,element);
114 this->maxchoice(
t1,1,element);
124 this->SetUserDataAndPush(pp);
void setWeight(double elementaryWeight)
Class for calculation node (function) inlined (and executed) in the schema.
virtual void setFname(const std::string &fname)
Set the function name to use in node execution.
Class for calculation node (script) inlined (and executed) in the schema.
virtual void setScript(const std::string &script)
Set the script (as a string) to execute.
virtual void setContainer(Container *container)
virtual void setExecutionMode(const std::string &mode)
virtual void exDisabledState()
Notify this node that it has been disabled.
const std::string & getName() const
Base class for all schema objects.
std::map< std::string, Container * > containerMap
virtual InlineFuncNode * createFuncNode(const std::string &kind, const std::string &name)
virtual InlineNode * createScriptNode(const std::string &kind, const std::string &name)
YACS::ENGINE::Runtime * theRuntime
YACS::ENGINE::Proc * currentProc
Class for code parser in inline nodes.
static codetypeParser codeParser
Class for function parser in inline nodes.
static functypeParser funcParser
virtual void outport(const myoutport &p)
virtual void kind(const std::string &name)
virtual void inport(const myinport &p)
Class for loading parser.
static loadtypeParser loadParser
virtual void property(const myprop &prop)
YACS::ENGINE::InlineNode * _node
Class for Outport parser.
virtual void buildAttr(const XML_Char **attr)
static parser main_parser
Class for property parser.
static propertytypeParser propertyParser
static remotetypeParser< T > remoteParser
virtual void onStart(const XML_Char *el, const XML_Char **attr)
virtual void load(const loadon &l)
virtual void onEnd(const char *el, parser *child)
void script(const myfunc &f)
static stringtypeParser stringParser