58 if (!
ref.empty())
_out <<
" ref=\"" <<
ref <<
"\"";
60 _out <<
" state=\"disabled\">" << endl;
65 _out <<
indent(depth) <<
"</datanode>" << endl;
77 if (!
ref.empty())
_out <<
" ref=\"" <<
ref <<
"\"";
79 _out <<
" state=\"disabled\">" << endl;
94 _out <<
indent(depth) <<
"<datanode name=\"" << node->
getName() <<
"\" kind=\"study\"";
96 if (!
ref.empty())
_out <<
" ref=\"" <<
ref <<
"\"";
98 _out <<
" state=\"disabled\">" << endl;
103 _out <<
indent(depth) <<
"</datanode>" << endl;
113 _out <<
indent(depth) <<
"<outnode name=\"" << node->
getName() <<
"\" kind=\"study\"";
115 if (!
ref.empty())
_out <<
" ref=\"" <<
ref <<
"\"";
117 _out <<
" state=\"disabled\">" << endl;
122 _out <<
indent(depth) <<
"</outnode>" << endl;
131 for (list<OutputPort*>::iterator it = listOfOutputPorts.begin(); it != listOfOutputPorts.end(); ++it)
133 _out <<
indent(depth) <<
"<parameter name=\"" << (*it)->getName() <<
"\" type=\""
134 << (*it)->edGetType()->name() <<
"\">" << endl;
138 _out <<
indent(depth) <<
"</parameter>" << endl;
146 for (list<OutputPort*>::iterator it = listOfOutputPorts.begin(); it != listOfOutputPorts.end(); ++it)
148 _out <<
indent(depth) <<
"<parameter name=\"" << (*it)->getName() <<
"\" type=\""
149 << (*it)->edGetType()->name() <<
"\" ref=\"";
160 for (list<InputPort*>::iterator it = listOfInputPorts.begin(); it != listOfInputPorts.end(); ++it)
162 _out <<
indent(depth) <<
"<parameter name=\"" << (*it)->getName() <<
"\" type=\""
163 << (*it)->edGetType()->name() <<
"\"/>" << endl;
171 for (list<InputPort*>::iterator it = listOfInputPorts.begin(); it != listOfInputPorts.end(); ++it)
173 _out <<
indent(depth) <<
"<parameter name=\"" << (*it)->getName() <<
"\" type=\""
174 << (*it)->edGetType()->name() <<
"\" ref=\"";
#define YASSERT(val)
YASSERT macro is always defined, used like assert, but throw a YACS::Exception instead of abort.
Base class for all composed nodes.
std::string getChildName(const Node *node) const
void accept(Visitor *visitor)
Class for data parameters specification.
virtual std::string getRef()
std::list< OutputPort * > getSetOfOutputPort() const
std::list< InputPort * > getSetOfInputPort() const
YACS::StatesForNode getState() const
const std::string & getName() const
Class for PRESET output Ports.
Class for Study output Ports.
virtual void writeDataNodeParameters(DataNode *node)
virtual ~VisitorSaveSalomeSchema()
VisitorSaveSalomeSchema(ComposedNode *root)
virtual void visitOutNode(DataNode *node)
virtual void visitStudyOutNode(DataNode *node)
virtual void writeOutNodeParameters(DataNode *node)
virtual void visitStudyInNode(DataNode *node)
virtual void writeStudyInNodeParameters(DataNode *node)
virtual void writeStudyOutNodeParameters(DataNode *node)
virtual void visitPresetNode(DataNode *node)
Base class for all visitors that save a schema.
int depthNode(Node *node)
std::string indent(int val)
virtual void endCase(Node *node)
virtual void writeProperties(Node *node)
virtual void beginCase(Node *node)
void openFileSchema(std::string xmlDump)
YACSRUNTIMESALOME_EXPORT void VisitorSaveSalomeSchemaUnsafe(ComposedNode *proc, const std::string &xmlSchema)
def ref(target, callback=None)