Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
8aa5803d
Commit
8aa5803d
authored
Sep 13, 2013
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cross references, MountObject.Object added (refs #137)
parent
4799be55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
wb/lib/wb/src/wb_crrgen.cpp
wb/lib/wb/src/wb_crrgen.cpp
+11
-3
No files found.
wb/lib/wb/src/wb_crrgen.cpp
View file @
8aa5803d
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
* General Public License plus this exception.
* General Public License plus this exception.
**/
**/
#include "pwr_systemclasses.h"
#include "pwr_baseclasses.h"
#include "pwr_baseclasses.h"
#include "wb_crrgen.h"
#include "wb_crrgen.h"
#include "flow_ctx.h"
#include "flow_ctx.h"
...
@@ -162,7 +163,8 @@ static crrgen_tRefList reflist[] = {
...
@@ -162,7 +163,8 @@ static crrgen_tRefList reflist[] = {
{
pwr_cClass_cstoai
,
"DevBody"
,
"AiObject"
,
crrgen_eType_Write
,
crrgen_eTable_SimSignal
,
0
},
{
pwr_cClass_cstoai
,
"DevBody"
,
"AiObject"
,
crrgen_eType_Write
,
crrgen_eTable_SimSignal
,
0
},
{
pwr_cClass_stoai
,
"DevBody"
,
"AiObject"
,
crrgen_eType_Write
,
crrgen_eTable_SimSignal
,
0
},
{
pwr_cClass_stoai
,
"DevBody"
,
"AiObject"
,
crrgen_eType_Write
,
crrgen_eTable_SimSignal
,
0
},
{
pwr_cClass_cstoii
,
"DevBody"
,
"IiObject"
,
crrgen_eType_Write
,
crrgen_eTable_SimSignal
,
0
},
{
pwr_cClass_cstoii
,
"DevBody"
,
"IiObject"
,
crrgen_eType_Write
,
crrgen_eTable_SimSignal
,
0
},
{
pwr_cClass_stoii
,
"DevBody"
,
"IiObject"
,
crrgen_eType_Write
,
crrgen_eTable_SimSignal
,
0
}};
{
pwr_cClass_stoii
,
"DevBody"
,
"IiObject"
,
crrgen_eType_Write
,
crrgen_eTable_SimSignal
,
0
},
{
pwr_cClass_MountObject
,
"SysBody"
,
"Object"
,
crrgen_eType_Ref
,
crrgen_eTable_Object
,
0
}};
static
crrgen_tRefList
codelist
[]
=
{
static
crrgen_tRefList
codelist
[]
=
{
{
pwr_cClass_dataarithm
,
"DevBody"
,
"Code"
,
crrgen_eType_
,
crrgen_eTable_
,
0
},
{
pwr_cClass_dataarithm
,
"DevBody"
,
"Code"
,
crrgen_eType_
,
crrgen_eTable_
,
0
},
...
@@ -546,7 +548,10 @@ void wb_crrgen::write( pwr_tStatus *rsts)
...
@@ -546,7 +548,10 @@ void wb_crrgen::write( pwr_tStatus *rsts)
wb_attribute
a_target
=
m_sp
->
attribute
(
&
crr
->
key
.
target
);
wb_attribute
a_target
=
m_sp
->
attribute
(
&
crr
->
key
.
target
);
wb_object
o
=
m_sp
->
object
(
crr
->
key
.
reference
.
Objid
);
wb_object
o
=
m_sp
->
object
(
crr
->
key
.
reference
.
Objid
);
if
(
!
a_target
)
{
if
(
!
a_target
)
{
printf
(
"** Undefined reference in: %s
\n
"
,
o
.
longName
().
name
(
cdh_mName_volume
|
cdh_mName_path
|
cdh_mName_attribute
));
if
(
crr
->
key
.
target
.
Objid
.
vid
==
crr
->
key
.
reference
.
Objid
.
vid
)
printf
(
"** Undefined reference in: %s
\n
"
,
o
.
longName
().
name
(
cdh_mName_volume
|
cdh_mName_path
|
cdh_mName_attribute
));
else
printf
(
"-- External reference in: %s
\n
"
,
o
.
longName
().
name
(
cdh_mName_volume
|
cdh_mName_path
|
cdh_mName_attribute
));
crr
=
(
sCrr
*
)
tree_Successor
(
&
sts
,
m_signal_th
,
crr
);
crr
=
(
sCrr
*
)
tree_Successor
(
&
sts
,
m_signal_th
,
crr
);
continue
;
continue
;
}
}
...
@@ -636,7 +641,10 @@ void wb_crrgen::write( pwr_tStatus *rsts)
...
@@ -636,7 +641,10 @@ void wb_crrgen::write( pwr_tStatus *rsts)
wb_attribute
a_target
=
m_sp
->
attribute
(
&
crr
->
key
.
target
);
wb_attribute
a_target
=
m_sp
->
attribute
(
&
crr
->
key
.
target
);
wb_object
o
=
m_sp
->
object
(
crr
->
key
.
reference
.
Objid
);
wb_object
o
=
m_sp
->
object
(
crr
->
key
.
reference
.
Objid
);
if
(
!
a_target
)
{
if
(
!
a_target
)
{
printf
(
"** Undefined reference in: %s
\n
"
,
o
.
longName
().
name
(
cdh_mName_volume
|
cdh_mName_path
|
cdh_mName_attribute
));
if
(
crr
->
key
.
target
.
Objid
.
vid
==
crr
->
key
.
reference
.
Objid
.
vid
)
printf
(
"** Undefined reference in: %s
\n
"
,
o
.
longName
().
name
(
cdh_mName_volume
|
cdh_mName_path
|
cdh_mName_attribute
));
else
printf
(
"-- External reference in: %s
\n
"
,
o
.
longName
().
name
(
cdh_mName_volume
|
cdh_mName_path
|
cdh_mName_attribute
));
crr
=
(
sCrr
*
)
tree_Successor
(
&
sts
,
m_object_th
,
crr
);
crr
=
(
sCrr
*
)
tree_Successor
(
&
sts
,
m_object_th
,
crr
);
continue
;
continue
;
}
}
...
...
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