source: CPL/oasis3-mct/branches/OASIS3-MCT_2.0_branch/util/oasisgui/opentea/create_metaTree.tcl @ 4775

Last change on this file since 4775 was 4775, checked in by aclsce, 5 years ago
  • Imported oasis3-mct from Cerfacs svn server (not suppotred anymore).

The version has been extracted from https://oasis3mct.cerfacs.fr/svn/branches/OASIS3-MCT_2.0_branch/oasis3-mct@1818

File size: 3.9 KB
Line 
1#  This program is under CECILL_B licence. See footer for details.
2
3proc fill_metaTree { } {
4    uplevel 1 {} {
5    global loadApplication relaunchCmd pluginsPath libraryPath configPath
6       
7       
8    dTree_init metaTree
9       
10    dTree_addNode metaTree "root" "meta"
11   
12    # SOLVER INFORMATION
13    dTree_addNode metaTree "root meta" "solver"
14    dTree_addNode metaTree "root meta solver" "name" 
15    dTree_setAttribute metaTree "root meta solver name" "value" "$loadApplication"
16   
17    #PROJECT INFORMATION (initialization)
18    dTree_addNode metaTree "root meta" "project"
19    dTree_addNode metaTree "root meta project" "name"   
20    dTree_setAttribute metaTree "root meta project name" "value" "undefined"       
21    dTree_addNode metaTree "root meta project" "address"   
22    dTree_setAttribute metaTree "root meta project address" "value" "undefined"
23
24    # USER INFORMATION
25    dTree_addNode metaTree "root meta project" "username"
26    set username [ getConfig "config id user name"]
27    dTree_setAttribute metaTree "root meta project username" "value" $username
28    dTree_addNode metaTree "root meta project" "company"
29    set company [ getConfig "config id user company"]
30    dTree_setAttribute metaTree "root meta project company" "value" $company
31
32    # INFORMATIONS FOR SCRIPT EXECUTION
33    dTree_addNode metaTree "root meta" "action"
34    dTree_addNode metaTree "root meta action" "callingAddress"
35    dTree_addNode metaTree "root meta" "temporary"
36    dTree_addNode metaTree "root meta" "scriptSuccess"   
37    dTree_addNode metaTree "root meta" "engine"
38    dTree_addNode metaTree "root meta engine" "name"
39    dTree_setAttribute metaTree "root meta engine name" "value" "OpenTEA"
40    dTree_addNode metaTree "root meta engine" "launchCommand"
41    dTree_setAttribute metaTree "root meta engine launchCommand" "value" "$relaunchCmd"
42    dTree_addNode metaTree "root meta engine" "pluginsPath"
43    dTree_setAttribute metaTree "root meta engine pluginsPath" "value" "$pluginsPath"
44    dTree_addNode metaTree "root meta engine" "libraryPath"
45    dTree_setAttribute metaTree "root meta engine libraryPath" "value" "$libraryPath"
46    dTree_addNode metaTree "root meta engine" "configPath"
47    dTree_setAttribute metaTree "root meta engine configPath" "value" "$configPath"
48   
49    }
50}
51
52
53#  Copyright CERFACS 2014
54#   
55#  antoine.dauptain@cerfacs.fr
56#   
57#  This software is a computer program whose purpose is to ensure technology
58#  transfer between academia and industry.
59#   
60#  This software is governed by the CeCILL-B license under French law and
61#  abiding by the rules of distribution of free software.  You can  use,
62#  modify and/ or redistribute the software under the terms of the CeCILL-B
63#  license as circulated by CEA, CNRS and INRIA at the following URL
64#  "http://www.cecill.info".
65#   
66#  As a counterpart to the access to the source code and  rights to copy,
67#  modify and redistribute granted by the license, users are provided only
68#  with a limited warranty  and the software's author,  the holder of the
69#  economic rights,  and the successive licensors  have only  limited
70#  liability.
71#   
72#  In this respect, the user's attention is drawn to the risks associated
73#  with loading,  using,  modifying and/or developing or reproducing the
74#  software by the user in light of its specific status of free software,
75#  that may mean  that it is complicated to manipulate,  and  that  also
76#  therefore means  that it is reserved for developers  and  experienced
77#  professionals having in-depth computer knowledge. Users are therefore
78#  encouraged to load and test the software's suitability as regards their
79#  requirements in conditions enabling the security of their systems and/or
80#  data to be ensured and,  more generally, to use and operate it in the
81#  same conditions as regards security.
82#   
83#  The fact that you are presently reading this means that you have had
84#  knowledge of the CeCILL-B license and that you accept its terms.
Note: See TracBrowser for help on using the repository browser.