Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
ATS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TST
ATS
Commits
c07a25e7
Commit
c07a25e7
authored
5 years ago
by
Miguel Angel Reina Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Set default value for parentIndex of local resource related functions
Signed-off-by:
reinaortega
<
miguelangel.reinaortega@etsi.org
>
parent
63517d4f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
LibOneM2M/OneM2M_Functions.ttcn
+3
-3
3 additions, 3 deletions
LibOneM2M/OneM2M_Functions.ttcn
with
3 additions
and
3 deletions
LibOneM2M/OneM2M_Functions.ttcn
+
3
−
3
View file @
c07a25e7
...
@@ -2829,7 +2829,7 @@ module OneM2M_Functions {
...
@@ -2829,7 +2829,7 @@ module OneM2M_Functions {
* @param p_resourceType Type of the resource to be created
* @param p_resourceType Type of the resource to be created
* @return Index of internal created resource
* @return Index of internal created resource
*/
*/
function
f_generateAndSetLocalResource
(
in
template
(
omit
)
PrimitiveContent
p_resource
:=
omit
,
in
integer
p_parentIndex
,
in
ResourceType
p_resourceType
)
runs
on
CseSimu
return
Integer
{
function
f_generateAndSetLocalResource
(
in
template
(
omit
)
PrimitiveContent
p_resource
:=
omit
,
in
integer
p_parentIndex
:=
vc_cSEBaseIndex
,
in
ResourceType
p_resourceType
)
runs
on
CseSimu
return
Integer
{
var
PrimitiveContent
v_localResource
;
var
PrimitiveContent
v_localResource
;
var
integer
v_localResourceIndex
;
var
integer
v_localResourceIndex
;
...
@@ -2849,7 +2849,7 @@ module OneM2M_Functions {
...
@@ -2849,7 +2849,7 @@ module OneM2M_Functions {
* @param p_resourceType Type of the resource to be created
* @param p_resourceType Type of the resource to be created
* @return Internal created resource
* @return Internal created resource
*/
*/
function
f_generateLocalResource
(
in
template
(
omit
)
PrimitiveContent
p_resource
:=
omit
,
in
integer
p_parentIndex
,
in
ResourceType
p_resourceType
)
runs
on
CseSimu
return
PrimitiveContent
{
function
f_generateLocalResource
(
in
template
(
omit
)
PrimitiveContent
p_resource
:=
omit
,
in
integer
p_parentIndex
:=
vc_cSEBaseIndex
,
in
ResourceType
p_resourceType
)
runs
on
CseSimu
return
PrimitiveContent
{
var
integer
v_resourceIndex
:=
lengthof
(
vc_localResourcesList
);
var
integer
v_resourceIndex
:=
lengthof
(
vc_localResourcesList
);
var
PrimitiveContent
v_myResource
;
var
PrimitiveContent
v_myResource
;
...
@@ -4851,7 +4851,7 @@ module OneM2M_Functions {
...
@@ -4851,7 +4851,7 @@ module OneM2M_Functions {
* @return Internal resource index of the saved resource
* @return Internal resource index of the saved resource
* @verdict
* @verdict
*/
*/
function
f_setLocalResource
(
PrimitiveContent
p_resource
,
ResourceType
p_resourceType
,
integer
p_parentIndex
)
runs
on
CseSimu
return
integer
{
function
f_setLocalResource
(
PrimitiveContent
p_resource
,
ResourceType
p_resourceType
,
integer
p_parentIndex
:=
vc_cSEBaseIndex
)
runs
on
CseSimu
return
integer
{
var
integer
v_newIndex
:=
-
1
;
var
integer
v_newIndex
:=
-
1
;
if
(
isbound
(
vc_localResourcesList
))
{
if
(
isbound
(
vc_localResourcesList
))
{
vc_localResourcesList
[
lengthof
(
vc_localResourcesList
)]
:=
{
p_parentIndex
,
p_resourceType
,
p_resource
};
vc_localResourcesList
[
lengthof
(
vc_localResourcesList
)]
:=
{
p_parentIndex
,
p_resourceType
,
p_resource
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment