2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5 <html xmlns="http://www.w3.org/1999/xhtml">
7 <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9 <title>Command generate — salomeTools 5.0.0dev documentation</title>
10 <link rel="stylesheet" href="../_static/alabaster.css" type="text/css" />
11 <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
12 <script type="text/javascript" src="../_static/documentation_options.js"></script>
13 <script type="text/javascript" src="../_static/jquery.js"></script>
14 <script type="text/javascript" src="../_static/underscore.js"></script>
15 <script type="text/javascript" src="../_static/doctools.js"></script>
16 <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
17 <link rel="index" title="Index" href="../genindex.html" />
18 <link rel="search" title="Search" href="../search.html" />
19 <link rel="next" title="Add a user custom command" href="../write_command.html" />
20 <link rel="prev" title="Command package" href="package.html" />
22 <link rel="stylesheet" href="../_static/custom.css" type="text/css" />
25 <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
30 <div class="document">
31 <div class="documentwrapper">
32 <div class="bodywrapper">
33 <div class="body" role="main">
35 <div class="section" id="command-generate">
36 <h1>Command generate<a class="headerlink" href="#command-generate" title="Permalink to this headline">¶</a></h1>
37 <div class="section" id="description">
38 <h2>Description<a class="headerlink" href="#description" title="Permalink to this headline">¶</a></h2>
39 <p>The <strong>generate</strong> command generates and compile SALOME modules from cpp modules using YACSGEN.</p>
40 <div class="admonition note">
41 <p class="first admonition-title">Note</p>
42 <p class="last">This command uses YACSGEN to generate the module. It needs to be specified with <em>–yacsgen</em> option, or defined in the product or by the environment variable <code class="docutils literal notranslate"><span class="pre">$YACSGEN_ROOT_DIR</span></code>.</p>
45 <div class="section" id="remarks">
46 <h2>Remarks<a class="headerlink" href="#remarks" title="Permalink to this headline">¶</a></h2>
48 <li><p class="first">This command will only apply on the CPP modules of the application, those who have both properties:</p>
49 <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">cpp</span> <span class="p">:</span> <span class="s2">"yes"</span>
50 <span class="n">generate</span> <span class="p">:</span> <span class="s2">"yes"</span>
54 <li><p class="first">The cpp module are usually computational components, and the generated module brings the CORBA layer which allows distributing the compononent on remore machines. cpp modules should conform to YACSGEN/hxx2salome requirements (please refer to YACSGEN documentation)</p>
58 <div class="section" id="usage">
59 <h2>Usage<a class="headerlink" href="#usage" title="Permalink to this headline">¶</a></h2>
61 <li><p class="first">Generate all the modules of a product:</p>
62 <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">sat</span> <span class="n">generate</span> <span class="o"><</span><span class="n">application</span><span class="o">></span>
66 <li><p class="first">Generate only specific modules:</p>
67 <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">sat</span> <span class="n">generate</span> <span class="o"><</span><span class="n">application</span><span class="o">></span> <span class="o">--</span><span class="n">products</span> <span class="o"><</span><span class="n">list_of_products</span><span class="o">></span>
70 <p>Remark: modules which don’t have the <em>generate</em> property are ignored.</p>
72 <li><p class="first">Use a specific version of YACSGEN:</p>
73 <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">sat</span> <span class="n">generate</span> <span class="o"><</span><span class="n">application</span><span class="o">></span> <span class="o">--</span><span class="n">yacsgen</span> <span class="o"><</span><span class="n">path_to_yacsgen</span><span class="o">></span>
85 <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
86 <div class="sphinxsidebarwrapper">
87 <p class="logo"><a href="../index.html">
88 <img class="logo" src="../_static/sat_v5.0.png" alt="Logo"/>
90 <h3><a href="../index.html">Table Of Contents</a></h3>
92 <li><a class="reference internal" href="#">Command generate</a><ul>
93 <li><a class="reference internal" href="#description">Description</a></li>
94 <li><a class="reference internal" href="#remarks">Remarks</a></li>
95 <li><a class="reference internal" href="#usage">Usage</a></li>
99 <div class="relations">
100 <h3>Related Topics</h3>
102 <li><a href="../index.html">Documentation overview</a><ul>
103 <li>Previous: <a href="package.html" title="previous chapter">Command package</a></li>
104 <li>Next: <a href="../write_command.html" title="next chapter">Add a user custom command</a></li>
108 <div role="note" aria-label="source link">
110 <ul class="this-page-menu">
111 <li><a href="../_sources/commands/generate.rst.txt"
112 rel="nofollow">Show Source</a></li>
115 <div id="searchbox" style="display: none" role="search">
116 <h3>Quick search</h3>
117 <div class="searchformwrapper">
118 <form class="search" action="../search.html" method="get">
119 <input type="text" name="q" />
120 <input type="submit" value="Go" />
121 <input type="hidden" name="check_keywords" value="yes" />
122 <input type="hidden" name="area" value="default" />
126 <script type="text/javascript">$('#searchbox').show(0);</script>
129 <div class="clearer"></div>
135 Powered by <a href="http://sphinx-doc.org/">Sphinx 1.7.3</a>
136 & <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.10</a>
139 <a href="../_sources/commands/generate.rst.txt"
140 rel="nofollow">Page source</a>