Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
028001e5
Commit
028001e5
authored
May 24, 2011
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Добавил в uniset-codegen обработку параметра node, для каждой переменной.
parent
60c08802
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
26 deletions
+2
-26
testgen.src.xml
Utilities/codegen/tests/testgen.src.xml
+2
-26
No files found.
Utilities/codegen/tests/testgen.src.xml
View file @
028001e5
...
@@ -15,36 +15,12 @@
...
@@ -15,36 +15,12 @@
<set
name=
"class-name"
val=
"TestGen"
/>
<set
name=
"class-name"
val=
"TestGen"
/>
<set
name=
"msg-count"
val=
"20"
/>
<set
name=
"msg-count"
val=
"20"
/>
<set
name=
"sleep-msec"
val=
"150"
/>
<set
name=
"sleep-msec"
val=
"150"
/>
<set
name=
"arg-prefix"
val=
"test-"
/>
</settings>
</settings>
<variables>
<!-- type = [int,str,bool,float]
int: max,min,no_range_exception=[0,1]
str:
float: max,min,no_range_exception=[0,1]
bool:
min - минимальное значение (может быть не задано)
max - максимальное значение (может быть не задано)
default - значение по умолчанию (может быть не задано)
no_range_exception=1 - при выходе за границы min или max только писать unideb[WARN].
-->
<item
name=
"test_int"
type=
"int"
min=
"0"
comment=
"test int variable"
const=
"1"
public=
"1"
/>
<item
name=
"test_int2"
type=
"int"
max=
"100"
default=
"110"
no_range_exception=
"1"
/>
<item
name=
"test_long"
type=
"long"
max=
"100"
default=
"110"
no_range_exception=
"1"
/>
<item
name=
"test_float"
type=
"float"
max=
"100.0"
default=
"50.0"
/>
<item
name=
"test_double"
type=
"double"
max=
"100.340"
default=
"52.044"
/>
<item
name=
"test_bool"
type=
"bool"
private=
"1"
/>
<item
name=
"test_str"
type=
"str"
default=
"ddd"
/>
</variables>
<smap>
<smap>
<!-- name - название переменной в конф. файле -->
<!-- name - название переменной в конф. файле -->
<item
name=
"input1_s"
vartype=
"in"
iotype=
"DI"
comment=
"comment for input1"
smTestID=
"1"
/>
<item
name=
"input1_s"
vartype=
"in"
iotype=
"DI"
comment=
"comment for input1"
/>
<item
name=
"input2_s"
vartype=
"in"
iotype=
"DI"
comment=
"comment for input2"
/>
<item
name=
"input2_s"
vartype=
"in"
iotype=
"DI"
comment=
"comment for input2"
/>
<item
name=
"output1_c"
vartype=
"out"
iotype=
"DO"
omment=
"comment for output1"
no_check_id=
"1"
/>
<item
name=
"output1_c"
vartype=
"out"
iotype=
"DO"
omment=
"comment for output1"
/>
<item
name=
"output2_c"
vartype=
"out"
iotype=
"DO"
omment=
"comment for output2"
no_check_id=
"1"
force=
"1"
/>
<item
name=
"loglevel_s"
vartype=
"in"
iotype=
"AI"
omment=
"log level control"
loglevel=
"1"
/>
</smap>
</smap>
<msgmap>
<msgmap>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment