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
8250da92
Commit
8250da92
authored
Feb 17, 2003
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
5aeed6e7
Changes
73
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
73 changed files
with
2004 additions
and
2964 deletions
+2004
-2964
nmps/wbl/nmps/src/nmps_c_convdef.wb_load
nmps/wbl/nmps/src/nmps_c_convdef.wb_load
+1
-1
nmps/wbl/nmps/src/nmps_c_nmpstransconfig.wb_load
nmps/wbl/nmps/src/nmps_c_nmpstransconfig.wb_load
+1
-1
src/exp/inc/src/pwr.h
src/exp/inc/src/pwr.h
+1
-1
src/lib/co/src/co_cdh.h
src/lib/co/src/co_cdh.h
+2
-1
src/wbl/nmps/src/nmps_c_convdef.wb_load
src/wbl/nmps/src/nmps_c_convdef.wb_load
+1
-1
src/wbl/nmps/src/nmps_c_nmpstransconfig.wb_load
src/wbl/nmps/src/nmps_c_nmpstransconfig.wb_load
+1
-1
src/wbl/pwrb/src/mps_v.wb_load
src/wbl/pwrb/src/mps_v.wb_load
+0
-12
src/wbl/pwrb/src/pwrb_c_and.wb_load
src/wbl/pwrb/src/pwrb_c_and.wb_load
+1
-1
src/wbl/pwrb/src/pwrb_c_asup.wb_load
src/wbl/pwrb/src/pwrb_c_asup.wb_load
+1
-1
src/wbl/pwrb/src/pwrb_c_atostr.wb_load
src/wbl/pwrb/src/pwrb_c_atostr.wb_load
+1
-1
src/wbl/pwrb/src/pwrb_c_count.wb_load
src/wbl/pwrb/src/pwrb_c_count.wb_load
+1
-1
src/wbl/pwrb/src/pwrb_c_csub.wb_load
src/wbl/pwrb/src/pwrb_c_csub.wb_load
+1
-1
src/wbl/pwrb/src/pwrb_c_dsup.wb_load
src/wbl/pwrb/src/pwrb_c_dsup.wb_load
+1
-1
src/wbl/pwrb/src/pwrb_c_dtostr.wb_load
src/wbl/pwrb/src/pwrb_c_dtostr.wb_load
+1
-1
src/wbl/pwrb/src/pwrb_c_edge.wb_load
src/wbl/pwrb/src/pwrb_c_edge.wb_load
+1
-1
src/wbl/pwrb/src/pwrb_c_inv.wb_load
src/wbl/pwrb/src/pwrb_c_inv.wb_load
+1
-1
src/wbl/pwrb/src/pwrb_c_itostr.wb_load
src/wbl/pwrb/src/pwrb_c_itostr.wb_load
+1
-1
src/wbl/pwrb/src/pwrb_c_mpsbackup.wb_load
src/wbl/pwrb/src/pwrb_c_mpsbackup.wb_load
+0
-40
src/wbl/pwrb/src/pwrb_c_mpsin.wb_load
src/wbl/pwrb/src/pwrb_c_mpsin.wb_load
+0
-172
src/wbl/pwrb/src/pwrb_c_mpsmodelbackup.wb_load
src/wbl/pwrb/src/pwrb_c_mpsmodelbackup.wb_load
+0
-34
src/wbl/pwrb/src/pwrb_c_mpsmtrlbackup.wb_load
src/wbl/pwrb/src/pwrb_c_mpsmtrlbackup.wb_load
+0
-45
src/wbl/pwrb/src/pwrb_c_mpsout.wb_load
src/wbl/pwrb/src/pwrb_c_mpsout.wb_load
+0
-216
src/wbl/pwrb/src/pwrb_c_mpsqueue.wb_load
src/wbl/pwrb/src/pwrb_c_mpsqueue.wb_load
+0
-181
src/wbl/pwrb/src/pwrb_c_mpsstack.wb_load
src/wbl/pwrb/src/pwrb_c_mpsstack.wb_load
+0
-175
src/wbl/pwrb/src/pwrb_c_mpstriggtrp.wb_load
src/wbl/pwrb/src/pwrb_c_mpstriggtrp.wb_load
+0
-60
src/wbl/pwrb/src/pwrb_c_mpstrp.wb_load
src/wbl/pwrb/src/pwrb_c_mpstrp.wb_load
+0
-169
src/wbl/pwrb/src/pwrb_c_mpstube.wb_load
src/wbl/pwrb/src/pwrb_c_mpstube.wb_load
+0
-199
src/wbl/pwrb/src/pwrb_c_mpsware.wb_load
src/wbl/pwrb/src/pwrb_c_mpsware.wb_load
+0
-176
src/wbl/pwrb/src/pwrb_c_or.wb_load
src/wbl/pwrb/src/pwrb_c_or.wb_load
+1
-1
src/wbl/pwrb/src/pwrb_c_pb_ai.wb_load
src/wbl/pwrb/src/pwrb_c_pb_ai.wb_load
+39
-39
src/wbl/pwrb/src/pwrb_c_pulse.wb_load
src/wbl/pwrb/src/pwrb_c_pulse.wb_load
+1
-1
src/wbl/pwrb/src/pwrb_c_sr_r.wb_load
src/wbl/pwrb/src/pwrb_c_sr_r.wb_load
+1
-1
src/wbl/pwrb/src/pwrb_c_sr_s.wb_load
src/wbl/pwrb/src/pwrb_c_sr_s.wb_load
+1
-1
src/wbl/pwrb/src/pwrb_c_strcat.wb_load
src/wbl/pwrb/src/pwrb_c_strcat.wb_load
+1
-1
src/wbl/pwrb/src/pwrb_c_substr.wb_load
src/wbl/pwrb/src/pwrb_c_substr.wb_load
+1
-1
src/wbl/pwrb/src/pwrb_c_timer.wb_load
src/wbl/pwrb/src/pwrb_c_timer.wb_load
+1
-1
src/wbl/pwrb/src/pwrb_c_wait.wb_load
src/wbl/pwrb/src/pwrb_c_wait.wb_load
+1
-1
src/wbl/pwrb/src/pwrb_c_waith.wb_load
src/wbl/pwrb/src/pwrb_c_waith.wb_load
+1
-1
src/wbl/pwrb/src/pwrb_c_xor.wb_load
src/wbl/pwrb/src/pwrb_c_xor.wb_load
+1
-1
src/wbl/pwrb/src/pwrb_ch_mpsclasses.wb_load
src/wbl/pwrb/src/pwrb_ch_mpsclasses.wb_load
+0
-12
src/wbl/pwrb/src/pwrb_l_mps.wb_load
src/wbl/pwrb/src/pwrb_l_mps.wb_load
+0
-33
src/wbl/pwrs/src/pwrs_c_menubutton.wb_load
src/wbl/pwrs/src/pwrs_c_menubutton.wb_load
+8
-1
src/wbl/pwrs/src/pwrs_c_menucascade.wb_load
src/wbl/pwrs/src/pwrs_c_menucascade.wb_load
+18
-1
src/wbl/pwrs/src/pwrs_c_menuseparator.wb_load
src/wbl/pwrs/src/pwrs_c_menuseparator.wb_load
+0
-1
src/wbl/pwrs/src/pwrs_td_graphname.wb_load
src/wbl/pwrs/src/pwrs_td_graphname.wb_load
+2
-2
src/wbl/ssab/src/ssab_c_loggconfig.wb_load
src/wbl/ssab/src/ssab_c_loggconfig.wb_load
+5
-5
wb/exp/wb/src/pwr_volumelist.dat
wb/exp/wb/src/pwr_volumelist.dat
+3
-0
wb/lib/wb/src/wb_adef.cpp
wb/lib/wb/src/wb_adef.cpp
+35
-0
wb/lib/wb/src/wb_adef.h
wb/lib/wb/src/wb_adef.h
+5
-4
wb/lib/wb/src/wb_adrep.cpp
wb/lib/wb/src/wb_adrep.cpp
+168
-6
wb/lib/wb/src/wb_adrep.h
wb/lib/wb/src/wb_adrep.h
+23
-10
wb/lib/wb/src/wb_bdrep.cpp
wb/lib/wb/src/wb_bdrep.cpp
+33
-0
wb/lib/wb/src/wb_bdrep.h
wb/lib/wb/src/wb_bdrep.h
+2
-2
wb/lib/wb/src/wb_erep.cpp
wb/lib/wb/src/wb_erep.cpp
+7
-4
wb/lib/wb/src/wb_ldh.cpp
wb/lib/wb/src/wb_ldh.cpp
+6
-7
wb/lib/wb/src/wb_merep.cpp
wb/lib/wb/src/wb_merep.cpp
+50
-0
wb/lib/wb/src/wb_merep.h
wb/lib/wb/src/wb_merep.h
+6
-0
wb/lib/wb/src/wb_nrep.cpp
wb/lib/wb/src/wb_nrep.cpp
+5
-3
wb/lib/wb/src/wb_tdrep.cpp
wb/lib/wb/src/wb_tdrep.cpp
+42
-1
wb/lib/wb/src/wb_tdrep.h
wb/lib/wb/src/wb_tdrep.h
+12
-3
wb/lib/wb/src/wb_vrep.h
wb/lib/wb/src/wb_vrep.h
+2
-0
wb/lib/wb/src/wb_vrepdbs.cpp
wb/lib/wb/src/wb_vrepdbs.cpp
+24
-5
wb/lib/wb/src/wb_vrepdbs.h
wb/lib/wb/src/wb_vrepdbs.h
+2
-0
wb/lib/wb/src/wb_vrepwbl.cpp
wb/lib/wb/src/wb_vrepwbl.cpp
+62
-36
wb/lib/wb/src/wb_vrepwbl.h
wb/lib/wb/src/wb_vrepwbl.h
+5
-3
wb/lib/wb/src/wb_wbllexer.cpp
wb/lib/wb/src/wb_wbllexer.cpp
+1206
-1179
wb/lib/wb/src/wb_wbllexer.g
wb/lib/wb/src/wb_wbllexer.g
+4
-3
wb/lib/wb/src/wb_wblnode.cpp
wb/lib/wb/src/wb_wblnode.cpp
+112
-37
wb/lib/wb/src/wb_wblnode.h
wb/lib/wb/src/wb_wblnode.h
+9
-0
wb/lib/wb/src/wb_wblparser.cpp
wb/lib/wb/src/wb_wblparser.cpp
+76
-60
wb/lib/wb/src/wb_wblparser.g
wb/lib/wb/src/wb_wblparser.g
+1
-1
wb/lib/wb/src/wb_wblparser.hpp
wb/lib/wb/src/wb_wblparser.hpp
+3
-1
wb/lib/wb/src/wb_wnav_command.cpp
wb/lib/wb/src/wb_wnav_command.cpp
+2
-0
No files found.
nmps/wbl/nmps/src/nmps_c_convdef.wb_load
View file @
8250da92
...
...
@@ -7,7 +7,7 @@
SObject NMps:Class
Object ConvDef $ClassDef 39
Body SysBody
Attr Editor = pwr_eEditor_
Standar
d
Attr Editor = pwr_eEditor_
AttrE
d
EndBody
!
! CONVDEF Runtime Body
...
...
nmps/wbl/nmps/src/nmps_c_nmpstransconfig.wb_load
View file @
8250da92
...
...
@@ -10,7 +10,7 @@ SObject NMps:Class
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_Standard
EndBody
Object RtBody $ObjBodyDef
Object RtBody $ObjBodyDef
1
Body SysBody
Attr StructName = "NMpsTransConfig"
EndBody
...
...
src/exp/inc/src/pwr.h
View file @
8250da92
...
...
@@ -68,7 +68,7 @@
#define pwr_cSizObjName 31
#define pwr_cSizPgmName 31
#define pwr_cSizStructName 31
#define pwr_cSizGraphName
7
#define pwr_cSizGraphName
15
#define pwr_cSizXRef 31
#define pwr_cSizAttrName 31
#define pwr_cSizPathName 63
...
...
src/lib/co/src/co_cdh.h
View file @
8250da92
...
...
@@ -53,8 +53,9 @@ typedef enum {
#define cdh_tixToTid( Vid, Tyg, Tix) (0 + (Vid << 16) + (1 << 15) + (Tyg << 11) + Tix)
#define cdh_cixToOix( Cix, Bix, Aix) (0 + (1 << 31) + (Cix << 18) + (Bix << 15) + Aix)
#define cdh_tixToOix( Tyg, Tix) (0 + (1 << 31) + (1 << 30) + (Tyg << 26) + (Tix << 15))
#define cdh_oixToBix( Oix) ((Oix >> 15) &
5
)
#define cdh_oixToBix( Oix) ((Oix >> 15) &
7
)
#define cdh_oixToCix( Oix) ((Oix >> 18) & 0xfff)
#define cdh_oixToAix( Oix) (Oix & 0xfff)
typedef
struct
{
unsigned
int
oix
:
32
;
...
...
src/wbl/nmps/src/nmps_c_convdef.wb_load
View file @
8250da92
...
...
@@ -7,7 +7,7 @@
SObject NMps:Class
Object ConvDef $ClassDef 39
Body SysBody
Attr Editor = pwr_eEditor_
Standar
d
Attr Editor = pwr_eEditor_
AttrE
d
EndBody
!
! CONVDEF Runtime Body
...
...
src/wbl/nmps/src/nmps_c_nmpstransconfig.wb_load
View file @
8250da92
...
...
@@ -10,7 +10,7 @@ SObject NMps:Class
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_Standard
EndBody
Object RtBody $ObjBodyDef
Object RtBody $ObjBodyDef
1
Body SysBody
Attr StructName = "NMpsTransConfig"
EndBody
...
...
src/wbl/pwrb/src/mps_v.wb_load
deleted
100644 → 0
View file @
5aeed6e7
! mps_v.wb_load -- Loads the mps volume
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! NOTE !
! This class is defined before class definitions are completed,
! and is thus loaded with DObject etc.
!
!
Volume mps pwr_eClass_ClassVolume 0.0.0.254
EndVolume
src/wbl/pwrb/src/pwrb_c_and.wb_load
View file @
8250da92
...
...
@@ -168,7 +168,7 @@ SObject pwrb:Class
Attr objname = "And"
Attr graphname = "And"
Attr debugpar = "Status"
End
b
ody
End
B
ody
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_asup.wb_load
View file @
8250da92
...
...
@@ -663,7 +663,7 @@ SObject pwrb:Class
Attr objname = "ASup"
Attr graphname = "ASup"
Attr debugpar = "Action"
End
b
ody
End
B
ody
EndObject
Object Template ASup
Body RtBody
...
...
src/wbl/pwrb/src/pwrb_c_atostr.wb_load
View file @
8250da92
...
...
@@ -92,7 +92,7 @@ SObject pwrb:Class
Attr executeordermethod = 2
Attr objname = "AtoStr"
Attr graphname = "AtoStr"
End
b
ody
End
B
ody
EndObject
Object Template AtoStr
Body RtBody
...
...
src/wbl/pwrb/src/pwrb_c_count.wb_load
View file @
8250da92
...
...
@@ -215,7 +215,7 @@ SObject pwrb:Class
Attr objname = "Count"
Attr graphname = "Count"
Attr debugpar = ""
End
b
ody
End
B
ody
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_csub.wb_load
View file @
8250da92
...
...
@@ -86,7 +86,7 @@ SObject pwrb:Class
Attr objname = "CSub"
Attr graphname = "CSub"
Attr debugpar = "in"
End
b
ody
End
B
ody
EndObject
Object Template CSub
Body RtBody
...
...
src/wbl/pwrb/src/pwrb_c_dsup.wb_load
View file @
8250da92
...
...
@@ -628,7 +628,7 @@ SObject pwrb:Class
Attr objname = "DSup"
Attr graphname = "DSup"
Attr debugpar = "Action"
End
b
ody
End
B
ody
EndObject
Object Template DSup
Body RtBody
...
...
src/wbl/pwrb/src/pwrb_c_dtostr.wb_load
View file @
8250da92
...
...
@@ -91,7 +91,7 @@ SObject pwrb:Class
Attr executeordermethod = 2
Attr objname = "DtoStr"
Attr graphname = "DtoStr"
End
b
ody
End
B
ody
EndObject
Object Template DtoStr
Body RtBody
...
...
src/wbl/pwrb/src/pwrb_c_edge.wb_load
View file @
8250da92
...
...
@@ -99,7 +99,7 @@ SObject pwrb:Class
Attr objname = "Edge"
Attr graphname = "Edge"
Attr debugpar = "Status"
End
b
ody
End
B
ody
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_inv.wb_load
View file @
8250da92
...
...
@@ -81,7 +81,7 @@ SObject pwrb:Class
Attr objname = "Inv"
Attr graphname = "Inv"
Attr debugpar = "Status"
End
b
ody
End
B
ody
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_itostr.wb_load
View file @
8250da92
...
...
@@ -91,7 +91,7 @@ SObject pwrb:Class
Attr executeordermethod = 2
Attr objname = "ItoStr"
Attr graphname = "ItoStr"
End
b
ody
End
B
ody
EndObject
Object Template ItoStr
Body RtBody
...
...
src/wbl/pwrb/src/pwrb_c_mpsbackup.wb_load
deleted
100644 → 0
View file @
5aeed6e7
! pwrb_c_mpsbackup.wb_load -- Defines the class MpsBackup.
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
! Range ldh_eDId_Base
!
SObject mps:Class
Object MpsBackup $ClassDef 148
Body SysBody
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_Standard
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "mpsBackup"
EndBody
Object BackupEnviroment $Attribute 1
Body SysBody
Attr PgmName = "BackupEnviroment"
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
Object EnableBackup $Attribute 2
Body SysBody
Attr PgmName = "EnableBackup"
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
Object LoadBackup $Attribute 3
Body SysBody
Attr PgmName = "LoadBackup"
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_mpsin.wb_load
deleted
100644 → 0
View file @
5aeed6e7
! pwrb_c_mpsin.wb_load -- Defines the class MpsIn.
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
! Range ldh_eDId_Base
!
SObject mps:Class
Object MpsIn $ClassDef 149
Body SysBody
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_Standard
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "mpsIn"
EndBody
Object Out $Output 1
Body SysBody
Attr PgmName = "Out"
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr TypeRef = "pwrs:Type-$Int32"
Attr GraphName = "remove"
Attr ConPointNr = 0
EndBody
EndObject
Object ExecuteOrder $Intern 2
Body SysBody
Attr PgmName = "ExecuteOrder"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object FilePointer $Intern 3
Body SysBody
Attr PgmName = "FilePointer"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object ObjPosition $Intern 4
Body SysBody
Attr PgmName = "ObjPosition"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object ActiveFlag $Intern 5
Body SysBody
Attr PgmName = "ActiveFlag"
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
Object UpdateCounter $Intern 6
Body SysBody
Attr PgmName = "UpdateCounter"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object TypeOfOperation $Intern 7
Body SysBody
Attr PgmName = "TypeOfOperation"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object TriggMode $Intern 8
Body SysBody
Attr PgmName = "TriggMode"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object Channel $Intern 9
Body SysBody
Attr PgmName = "Channel"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object InputPosition $Intern 10
Body SysBody
Attr PgmName = "InputPosition"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object MtrlObjname $Intern 11
Body SysBody
Attr PgmName = "MtrlObjname"
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
Object AcceptMtrlTypes $Intern 12
Body SysBody
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 6
Attr PgmName = "AcceptMtrlTypes"
Attr TypeRef = "pwrs:Type-$Int32"
EndBody
EndObject
Object MaxAcceptMtrlTypes $Intern 13
Body SysBody
Attr PgmName = "MaxAcceptMtrlTypes"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object StartCellRoutine $Intern 14
Body SysBody
Attr PgmName = "StartCellRoutine"
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
Object FrontIndex $Intern 15
Body SysBody
Attr PgmName = "FrontIndex"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object RearIndex $Intern 16
Body SysBody
Attr PgmName = "RearIndex"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object MaxIndexOfCircList $Intern 17
Body SysBody
Attr PgmName = "MaxIndexOfCircList"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object CircList $Intern 18
Body SysBody
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 15
Attr PgmName = "CircList"
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
EndObject
Object DevBody $ObjBodyDef 2
Object PlcNode $Buffer 1
Body SysBody
Attr Class = pwr_eClass_PlcNode
EndBody
EndObject
EndObject
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 220
Attr parameters[0] = 0
Attr parameters[1] = 0
Attr parameters[2] = 1
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 4
Attr graphindex = 25
Attr default_mask[0] = 0
Attr default_mask[1] = 1
Attr segname_annotation = 1
Attr compmethod = 2
Attr compindex = 1
Attr tracemethod = 0
Attr traceindex = 1
Attr objname = "IN"
Attr graphname = "INcell"
Attr debugpar = ""
EndBody
EndObject
Object Template MpsIn
Body RtBody
Attr UpdateCounter = 1
Attr MaxAcceptMtrlTypes = 6
EndBody
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_mpsmodelbackup.wb_load
deleted
100644 → 0
View file @
5aeed6e7
! pwrb_c_mpsmodelbackup.wb_load -- Defines the class MpsModelBackup.
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
! Range ldh_eDId_Base
!
SObject mps:Class
Object MpsModelBackup $ClassDef 150
Body SysBody
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_Standard
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "mpsModelBackup"
EndBody
Object FileName $Attribute 1
Body SysBody
Attr PgmName = "FileName"
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
Object ModelName $Attribute 2
Body SysBody
Attr PgmName = "ModelName"
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_mpsmtrlbackup.wb_load
deleted
100644 → 0
View file @
5aeed6e7
! pwrb_c_mpsmtrlbackup.wb_load -- Defines the class MpsMtrlBackup.
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
! Range ldh_eDId_Base
!
SObject mps:Class
Object MpsMtrlBackup $ClassDef 151
Body SysBody
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_Standard
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "mpsMtrlBackup"
EndBody
Object FileName $Attribute 1
Body SysBody
Attr PgmName = "FileName"
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
Object MtrlClass $Attribute 2
Body SysBody
Attr PgmName = "MtrlClass"
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object MaxNbOfRecords $Attribute 3
Body SysBody
Attr PgmName = "MaxNbOfRecords"
Attr TypeRef = "pwrs:Type-$Int32"
EndBody
EndObject
EndObject
Object Template MpsMtrlBackup
Body RtBody
Attr MaxNbOfRecords = 400
EndBody
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_mpsout.wb_load
deleted
100644 → 0
View file @
5aeed6e7
! pwrb_c_mpsout.wb_load -- Defines the class MpsOut.
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
! Range ldh_eDId_Base
!
SObject mps:Class
Object MpsOut $ClassDef 152
Body SysBody
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_Standard
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "mpsOut"
EndBody
Object In $Output 1
Body SysBody
Attr PgmName = "In"
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr TypeRef = "pwrs:Type-$Int32"
Attr GraphName = "load"
Attr ConPointNr = 0
EndBody
EndObject
Object ExecuteOrder $Intern 2
Body SysBody
Attr PgmName = "ExecuteOrder"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object FilePointer $Intern 3
Body SysBody
Attr PgmName = "FilePointer"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object ObjPosition $Intern 4
Body SysBody
Attr PgmName = "ObjPosition"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object ActiveFlag $Intern 5
Body SysBody
Attr PgmName = "ActiveFlag"
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
Object UpdateCounter $Intern 6
Body SysBody
Attr PgmName = "UpdateCounter"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object TypeOfOperation $Intern 7
Body SysBody
Attr PgmName = "TypeOfOperation"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object TriggMode $Intern 8
Body SysBody
Attr PgmName = "TriggMode"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object Channel $Intern 9
Body SysBody
Attr PgmName = "Channel"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object InputPosition $Intern 10
Body SysBody
Attr PgmName = "InputPosition"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object MtrlObjname $Intern 11
Body SysBody
Attr PgmName = "MtrlObjname"
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
Object AcceptMtrlTypes $Intern 12
Body SysBody
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 6
Attr PgmName = "AcceptMtrlTypes"
Attr TypeRef = "pwrs:Type-$Int32"
EndBody
EndObject
Object MaxAcceptMtrlTypes $Intern 13
Body SysBody
Attr PgmName = "MaxAcceptMtrlTypes"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object StartCellRoutine $Intern 14
Body SysBody
Attr PgmName = "StartCellRoutine"
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
Object TypeOfFinish $Intern 15
Body SysBody
Attr PgmName = "TypeOfFinish"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object TypeOfSubFinish $Intern 16
Body SysBody
Attr PgmName = "TypeOfSubFinish"
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
Object TargetPAMSGroup $Intern 17
Body SysBody
Attr PgmName = "TargetPAMSGroup"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object TargetPAMSProcess $Intern 18
Body SysBody
Attr PgmName = "TargetPAMSProcess"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object DeleteFlag $Intern 19
Body SysBody
Attr PgmName = "DeleteFlag"
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
Object ObjidOfReceivCell $Intern 20
Body SysBody
Attr PgmName = "ObjidOfReceivCell"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object ChannelOfReceivCell $Intern 21
Body SysBody
Attr PgmName = "ChannelOfReceivCell"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object FrontIndex $Intern 22
Body SysBody
Attr PgmName = "FrontIndex"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object RearIndex $Intern 23
Body SysBody
Attr PgmName = "RearIndex"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object MaxIndexOfCircList $Intern 24
Body SysBody
Attr PgmName = "MaxIndexOfCircList"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object CircList $Intern 25
Body SysBody
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 15
Attr PgmName = "CircList"
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
EndObject
Object DevBody $ObjBodyDef 2
Object PlcNode $Buffer 1
Body SysBody
Attr Class = pwr_eClass_PlcNode
EndBody
EndObject
EndObject
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 225
Attr parameters[0] = 0
Attr parameters[1] = 0
Attr parameters[2] = 1
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 4
Attr graphindex = 30
Attr default_mask[0] = 1
Attr default_mask[1] = 0
Attr segname_annotation = 1
Attr compmethod = 2
Attr compindex = 1
Attr tracemethod = 0
Attr traceindex = 1
Attr objname = "OUT"
Attr graphname = "OUTcell"
Attr debugpar = ""
EndBody
EndObject
Object Template MpsOut
Body RtBody
Attr UpdateCounter = 1
Attr MaxAcceptMtrlTypes = 6
Attr TypeOfFinish = 120
Attr DeleteFlag = 0
EndBody
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_mpsqueue.wb_load
deleted
100644 → 0
View file @
5aeed6e7
! pwrb_c_mpsqueue.wb_load -- Defines the class MpsQueue.
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
! Range ldh_eDId_Base
!
SObject mps:Class
Object MpsQueue $ClassDef 153
Body SysBody
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_Standard
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "mpsQueue"
EndBody
Object In $Output 1
Body SysBody
Attr PgmName = "In"
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr TypeRef = "pwrs:Type-$Int32"
Attr GraphName = "load"
Attr ConPointNr = 0
EndBody
EndObject
Object Out $Output 2
Body SysBody
Attr PgmName = "Out"
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr TypeRef = "pwrs:Type-$Int32"
Attr GraphName = "remove"
Attr ConPointNr = 1
EndBody
EndObject
Object ExecuteOrder $Intern 3
Body SysBody
Attr PgmName = "ExecuteOrder"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object FilePointer $Intern 4
Body SysBody
Attr PgmName = "FilePointer"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object ObjPosition $Intern 5
Body SysBody
Attr PgmName = "ObjPosition"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object ActiveFlag $Intern 6
Body SysBody
Attr PgmName = "ActiveFlag"
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
Object UpdateCounter $Intern 7
Body SysBody
Attr PgmName = "UpdateCounter"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object TypeOfOperation $Intern 8
Body SysBody
Attr PgmName = "TypeOfOperation"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object TriggMode $Intern 9
Body SysBody
Attr PgmName = "TriggMode"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object Channel $Intern 10
Body SysBody
Attr PgmName = "Channel"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object InputPosition $Intern 11
Body SysBody
Attr PgmName = "InputPosition"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object MtrlObjname $Intern 12
Body SysBody
Attr PgmName = "MtrlObjname"
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
Object AcceptMtrlTypes $Intern 13
Body SysBody
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 6
Attr PgmName = "AcceptMtrlTypes"
Attr TypeRef = "pwrs:Type-$Int32"
EndBody
EndObject
Object MaxAcceptMtrlTypes $Intern 14
Body SysBody
Attr PgmName = "MaxAcceptMtrlTypes"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object StartCellRoutine $Intern 15
Body SysBody
Attr PgmName = "StartCellRoutine"
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
Object FrontIndex $Intern 16
Body SysBody
Attr PgmName = "FrontIndex"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object RearIndex $Intern 17
Body SysBody
Attr PgmName = "RearIndex"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object MaxIndexOfCircList $Intern 18
Body SysBody
Attr PgmName = "MaxIndexOfCircList"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object CircList $Intern 19
Body SysBody
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 15
Attr PgmName = "CircList"
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
EndObject
Object DevBody $ObjBodyDef 2
Object PlcNode $Buffer 1
Body SysBody
Attr Class = pwr_eClass_PlcNode
EndBody
EndObject
EndObject
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 221
Attr parameters[0] = 0
Attr parameters[1] = 0
Attr parameters[2] = 2
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 4
Attr graphindex = 26
Attr default_mask[0] = 1
Attr default_mask[1] = 1
Attr segname_annotation = 1
Attr compmethod = 2
Attr compindex = 1
Attr tracemethod = 0
Attr traceindex = 1
Attr objname = "QUEUE"
Attr graphname = "QUEUEcell"
Attr debugpar = ""
EndBody
EndObject
Object Template MpsQueue
Body RtBody
Attr UpdateCounter = 1
Attr MaxAcceptMtrlTypes = 6
EndBody
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_mpsstack.wb_load
deleted
100644 → 0
View file @
5aeed6e7
! pwrb_c_mpsstack.wb_load -- Defines the class MpsStack.
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
! Range ldh_eDId_Base
!
SObject mps:Class
Object MpsStack $ClassDef 154
Body SysBody
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_Standard
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "mpsStack"
EndBody
Object In $Output 1
Body SysBody
Attr PgmName = "In"
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr TypeRef = "pwrs:Type-$Int32"
Attr GraphName = "load"
Attr ConPointNr = 0
EndBody
EndObject
Object Out $Output 2
Body SysBody
Attr PgmName = "Out"
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr TypeRef = "pwrs:Type-$Int32"
Attr GraphName = "remove"
Attr ConPointNr = 1
EndBody
EndObject
Object ExecuteOrder $Intern 3
Body SysBody
Attr PgmName = "ExecuteOrder"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object FilePointer $Intern 4
Body SysBody
Attr PgmName = "FilePointer"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object ObjPosition $Intern 5
Body SysBody
Attr PgmName = "ObjPosition"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object ActiveFlag $Intern 6
Body SysBody
Attr PgmName = "ActiveFlag"
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
Object UpdateCounter $Intern 7
Body SysBody
Attr PgmName = "UpdateCounter"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object TypeOfOperation $Intern 8
Body SysBody
Attr PgmName = "TypeOfOperation"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object TriggMode $Intern 9
Body SysBody
Attr PgmName = "TriggMode"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object Channel $Intern 10
Body SysBody
Attr PgmName = "Channel"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object InputPosition $Intern 11
Body SysBody
Attr PgmName = "InputPosition"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object MtrlObjname $Intern 12
Body SysBody
Attr PgmName = "MtrlObjname"
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
Object AcceptMtrlTypes $Intern 13
Body SysBody
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 6
Attr PgmName = "AcceptMtrlTypes"
Attr TypeRef = "pwrs:Type-$Int32"
EndBody
EndObject
Object MaxAcceptMtrlTypes $Intern 14
Body SysBody
Attr PgmName = "MaxAcceptMtrlTypes"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object StartCellRoutine $Intern 15
Body SysBody
Attr PgmName = "StartCellRoutine"
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
Object StackPointer $Intern 16
Body SysBody
Attr PgmName = "StackPointer"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object MaxStackPointer $Intern 17
Body SysBody
Attr PgmName = "MaxStackPointer"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object Stack $Intern 18
Body SysBody
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 15
Attr PgmName = "Stack"
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
EndObject
Object DevBody $ObjBodyDef 2
Object PlcNode $Buffer 1
Body SysBody
Attr Class = pwr_eClass_PlcNode
EndBody
EndObject
EndObject
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 223
Attr parameters[0] = 0
Attr parameters[1] = 0
Attr parameters[2] = 2
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 4
Attr graphindex = 27
Attr default_mask[0] = 1
Attr default_mask[1] = 1
Attr segname_annotation = 1
Attr compmethod = 2
Attr compindex = 1
Attr tracemethod = 0
Attr traceindex = 1
Attr objname = "STACK"
Attr graphname = "STACKcell"
Attr debugpar = ""
EndBody
EndObject
Object Template MpsStack
Body RtBody
Attr UpdateCounter = 1
Attr MaxAcceptMtrlTypes = 6
EndBody
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_mpstriggtrp.wb_load
deleted
100644 → 0
View file @
5aeed6e7
! pwrb_c_mpstriggtrp.wb_load -- Defines the class MpsTriggTrp.
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
! Range ldh_eDId_Base
!
SObject mps:Class
Object MpsTriggTrp $ClassDef 155
Body SysBody
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_DevBodyOnly
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "mpsTriggtrp"
EndBody
Object In $Input 1
Body SysBody
Attr PgmName = "In"
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr TypeRef = "pwrs:Type-$Boolean"
Attr GraphName = "in"
Attr ConPointNr = 0
EndBody
EndObject
EndObject
Object DevBody $ObjBodyDef 2
Object PlcNode $Buffer 1
Body SysBody
Attr Class = pwr_eClass_PlcNode
EndBody
EndObject
EndObject
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 227
Attr parameters[0] = 1
Attr parameters[1] = 0
Attr parameters[2] = 0
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 4
Attr graphindex = 32
Attr default_mask[0] = 1
Attr default_mask[1] = 0
Attr segname_annotation = 0
Attr compmethod = 34
Attr compindex = 0
Attr tracemethod = 5
Attr traceindex = 1
Attr objname = "TRIGGTRP"
Attr graphname = "TRIGGTRP"
Attr debugpar = "In"
EndBody
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_mpstrp.wb_load
deleted
100644 → 0
View file @
5aeed6e7
! pwrb_c_mpstrp.wb_load -- Defines the class MpsTrp.
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
! Range ldh_eDId_Base
!
SObject mps:Class
Object MpsTrp $ClassDef 156
Body SysBody
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_Standard
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "mpsTrp"
EndBody
Object In $Input 1
Body SysBody
Attr PgmName = "In"
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr TypeRef = "pwrs:Type-$Int32"
Attr GraphName = "remove"
Attr ConPointNr = 0
EndBody
EndObject
Object InTrigg $Input 2
Body SysBody
Attr PgmName = "InTriggFlag"
Attr TypeRef = "pwrs:Type-$Boolean"
Attr GraphName = "intrigg"
Attr ConPointNr = 1
EndBody
EndObject
Object Out $Input 3
Body SysBody
Attr PgmName = "Out"
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr TypeRef = "pwrs:Type-$Int32"
Attr GraphName = "load"
Attr ConPointNr = 2
EndBody
EndObject
Object ExecuteOrder $Intern 4
Body SysBody
Attr PgmName = "ExecuteOrder"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object TriggFlag $Intern 5
Body SysBody
Attr PgmName = "TriggFlag"
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
Object InTriggOld $Intern 6
Body SysBody
Attr PgmName = "InTriggOld"
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
Object LoggFlag $Intern 7
Body SysBody
Attr PgmName = "LoggFlag"
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
Object StartSenderFlag $Intern 8
Body SysBody
Attr PgmName = "StartFlag"
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
Object StartReceiverFlag $Intern 9
Body SysBody
Attr PgmName = "StartReceiverFlag"
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
Object TriggMode $Intern 10
Body SysBody
Attr PgmName = "TriggMode"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object NumberOfIdToMove $Intern 11
Body SysBody
Attr PgmName = "NumberOfIdToMove"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object NameOfSendCell $Intern 12
Body SysBody
Attr PgmName = "NameOfSendCell"
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
Object ChannelOfSendCell $Intern 13
Body SysBody
Attr PgmName = "ChannelOfSendCell"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object ObjidOfSendCell $Intern 14
Body SysBody
Attr PgmName = "ObjidOfSendCell"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object NameOfReceivCell $Intern 15
Body SysBody
Attr PgmName = "NameOfReceivCell"
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
Object ChannelOfReceivCell $Intern 16
Body SysBody
Attr PgmName = "ChannelOfReceivCell"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object ObjidOfReceivCell $Intern 17
Body SysBody
Attr PgmName = "ObjidOfReceivCell"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
EndObject
Object DevBody $ObjBodyDef 2
Object PlcNode $Buffer 1
Body SysBody
Attr Class = pwr_eClass_PlcNode
EndBody
EndObject
EndObject
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 226
Attr parameters[0] = 3
Attr parameters[1] = 0
Attr parameters[2] = 0
Attr parameters[3] = 0
Attr subwindows = 1
Attr subwindow_class[0] = "pwrb:Class-WindowPlc"
Attr graphmethod = 4
Attr graphindex = 31
Attr default_mask[0] = 1
Attr default_mask[1] = 1
Attr segname_annotation = 1
Attr compmethod = 33
Attr compindex = 1
Attr tracemethod = 0
Attr traceindex = 1
Attr objname = "TRP"
Attr graphname = "TRPcell"
Attr debugpar = ""
EndBody
EndObject
Object Template MpsTrp
Body RtBody
Attr NumberOfIdToMove = 1
Attr ChannelOfSendCell = 1
Attr ChannelOfReceivCell = 1
EndBody
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_mpstube.wb_load
deleted
100644 → 0
View file @
5aeed6e7
! pwrb_c_mpstube.wb_load -- Defines the class MpsTube.
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
! Range ldh_eDId_Base
!
SObject mps:Class
Object MpsTube $ClassDef 157
Body SysBody
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_Standard
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "mpsTube"
EndBody
Object InChannel_1 $Output 1
Body SysBody
Attr PgmName = "InChannel_1"
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr TypeRef = "pwrs:Type-$Int32"
Attr GraphName = "load"
Attr ConPointNr = 0
EndBody
EndObject
Object InChannel_2 $Output 2
Body SysBody
Attr PgmName = "InChannel_2"
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr TypeRef = "pwrs:Type-$Int32"
Attr GraphName = "load"
Attr ConPointNr = 1
EndBody
EndObject
Object OutChannel_1 $Output 3
Body SysBody
Attr PgmName = "OutChannel_1"
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr TypeRef = "pwrs:Type-$Int32"
Attr GraphName = "remove"
Attr ConPointNr = 2
EndBody
EndObject
Object OutChannel_2 $Output 4
Body SysBody
Attr PgmName = "OutChannel_2"
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr TypeRef = "pwrs:Type-$Int32"
Attr GraphName = "remove"
Attr ConPointNr = 3
EndBody
EndObject
Object ExecuteOrder $Intern 5
Body SysBody
Attr PgmName = "ExecuteOrder"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object FilePointer $Intern 6
Body SysBody
Attr PgmName = "FilePointer"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object ObjPosition $Intern 7
Body SysBody
Attr PgmName = "ObjPosition"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object ActiveFlag $Intern 8
Body SysBody
Attr PgmName = "ActiveFlag"
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
Object UpdateCounter $Intern 9
Body SysBody
Attr PgmName = "UpdateCounter"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object TypeOfOperation $Intern 10
Body SysBody
Attr PgmName = "TypeOfOperation"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object TriggMode $Intern 11
Body SysBody
Attr PgmName = "TriggMode"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object Channel $Intern 12
Body SysBody
Attr PgmName = "Channel"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object InputPosition $Intern 13
Body SysBody
Attr PgmName = "InputPosition"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object MtrlObjname $Intern 14
Body SysBody
Attr PgmName = "MtrlObjname"
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
Object AcceptMtrlTypes $Intern 15
Body SysBody
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 6
Attr PgmName = "AcceptMtrlTypes"
Attr TypeRef = "pwrs:Type-$Int32"
EndBody
EndObject
Object MaxAcceptMtrlTypes $Intern 16
Body SysBody
Attr PgmName = "MaxAcceptMtrlTypes"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object StartCellRoutine $Intern 17
Body SysBody
Attr PgmName = "StartCellRoutine"
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
Object FrontIndex $Intern 18
Body SysBody
Attr PgmName = "FrontIndex"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object RearIndex $Intern 19
Body SysBody
Attr PgmName = "RearIndex"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object MaxIndexOfCircList $Intern 20
Body SysBody
Attr PgmName = "MaxIndexOfCircList"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object CircList $Intern 21
Body SysBody
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 15
Attr PgmName = "CircList"
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
EndObject
Object DevBody $ObjBodyDef 2
Object PlcNode $Buffer 1
Body SysBody
Attr Class = pwr_eClass_PlcNode
EndBody
EndObject
EndObject
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 224
Attr parameters[0] = 0
Attr parameters[1] = 0
Attr parameters[2] = 4
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 4
Attr graphindex = 29
Attr default_mask[0] = 3
Attr default_mask[1] = 3
Attr segname_annotation = 1
Attr compmethod = 2
Attr compindex = 1
Attr tracemethod = 0
Attr traceindex = 1
Attr objname = "TUBE"
Attr graphname = "TUBEcell"
Attr debugpar = ""
EndBody
EndObject
Object Template MpsTube
Body RtBody
Attr UpdateCounter = 1
Attr MaxAcceptMtrlTypes = 6
EndBody
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_mpsware.wb_load
deleted
100644 → 0
View file @
5aeed6e7
! pwrb_c_mpsware.wb_load -- Defines the class MpsWare.
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
! Range ldh_eDId_Base
!
SObject mps:Class
Object MpsWare $ClassDef 158
Body SysBody
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_Standard
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "mpsWare"
EndBody
Object In $Output 1
Body SysBody
Attr PgmName = "In"
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr TypeRef = "pwrs:Type-$Int32"
Attr GraphName = "load"
Attr ConPointNr = 0
EndBody
EndObject
Object Out $Output 2
Body SysBody
Attr PgmName = "Out"
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr TypeRef = "pwrs:Type-$Int32"
Attr GraphName = "remove"
Attr ConPointNr = 1
EndBody
EndObject
Object ExecuteOrder $Intern 3
Body SysBody
Attr PgmName = "ExecuteOrder"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object FilePointer $Intern 4
Body SysBody
Attr PgmName = "FilePointer"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object ObjPosition $Intern 5
Body SysBody
Attr PgmName = "ObjPosition"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object ActiveFlag $Intern 6
Body SysBody
Attr PgmName = "ActiveFlag"
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
Object UpdateCounter $Intern 7
Body SysBody
Attr PgmName = "UpdateCounter"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object TypeOfOperation $Intern 8
Body SysBody
Attr PgmName = "TypeOfOperation"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object TriggMode $Intern 9
Body SysBody
Attr PgmName = "TriggMode"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object Channel $Intern 10
Body SysBody
Attr PgmName = "Channel"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object InputPosition $Intern 11
Body SysBody
Attr PgmName = "InputPosition"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object MtrlObjname $Intern 12
Body SysBody
Attr PgmName = "MtrlObjname"
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
Object AcceptMtrlTypes $Intern 13
Body SysBody
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 6
Attr PgmName = "AcceptMtrlTypes"
Attr TypeRef = "pwrs:Type-$Int32"
EndBody
EndObject
Object MaxAcceptMtrlTypes $Intern 14
Body SysBody
Attr PgmName = "MaxAcceptMtrlTypes"
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
Object StartCellRoutine $Intern 15
Body SysBody
Attr PgmName = "StartCellRoutine"
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
Object MaxWareContent $Intern 16
Body SysBody
Attr PgmName = "MaxWareContent"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object WareContent $Intern 17
Body SysBody
Attr PgmName = "WareContent"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object Ware $Intern 18
Body SysBody
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 15
Attr PgmName = "Ware"
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
EndObject
Object DevBody $ObjBodyDef 2
Object PlcNode $Buffer 1
Body SysBody
Attr Class = pwr_eClass_PlcNode
EndBody
EndObject
EndObject
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 222
Attr parameters[0] = 0
Attr parameters[1] = 0
Attr parameters[2] = 2
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 4
Attr graphindex = 28
Attr default_mask[0] = 1
Attr default_mask[1] = 1
Attr segname_annotation = 1
Attr compmethod = 2
Attr compindex = 1
Attr tracemethod = 0
Attr traceindex = 1
Attr objname = "WARE"
Attr graphname = "WAREcell"
Attr debugpar = ""
EndBody
EndObject
Object Template MpsWare
Body RtBody
Attr UpdateCounter = 1
Attr MaxAcceptMtrlTypes = 6
Attr WareContent = 0
EndBody
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_or.wb_load
View file @
8250da92
...
...
@@ -149,7 +149,7 @@ SObject pwrb:Class
Attr objname = "Or"
Attr graphname = "Or"
Attr debugpar = "Status"
End
b
ody
End
B
ody
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_pb_ai.wb_load
View file @
8250da92
SObject
pwrb:Class
SObject pwrb:Class
!
Object
Pb_Ai
$ClassDef 293
Object
Pb_Ai
$ClassDef 293
!
!
Body SysBody
...
...
@@ -15,73 +15,73 @@ SObject pwrb:Class
!
! Description of object
!
Object
Description
$Attribute 1
Object
Description
$Attribute 1
Body SysBody
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
!
Object
Process
$Attribute 2
Object
Process
$Attribute 2
Body SysBody
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
!
Object
ThreadObject
$Attribute 3
Object
ThreadObject
$Attribute 3
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
!
Object
NumberOfChannels $Attribute 4
Object NumberOfChannels $Attribute 4
Body SysBody
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
!
Object
BytesPerChannel $Attribute 5
Object BytesPerChannel $Attribute 5
Body SysBody
Attr TypeRef = "pwrs:Type-$UInt8"
EndBody
EndObject
!
Object
Status
$Attribute 6
Object
Status
$Attribute 6
Body SysBody
Attr
TypeRef
= "pwrs:Type-$UInt8"
Attr
Flags |= PWR_MASK_NOEDIT
Attr
Flags |= PWR_MASK_INVISIBLE
Attr
TypeRef
= "pwrs:Type-$UInt8"
Attr
Flags |= PWR_MASK_NOEDIT
Attr
Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
!
Object
BytesOfInput $Attribute 7
Body
SysBody
Attr
TypeRef
= "pwrs:Type-$UInt16"
Attr
Flags |= PWR_MASK_NOEDIT
Attr
Flags |= PWR_MASK_INVISIBLE
Object BytesOfInput $Attribute 7
Body
SysBody
Attr
TypeRef
= "pwrs:Type-$UInt16"
Attr
Flags |= PWR_MASK_NOEDIT
Attr
Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
!
Object
BytesOfOutput $Attribute 8
Body
SysBody
Attr
TypeRef
= "pwrs:Type-$UInt16"
Attr
Flags |= PWR_MASK_NOEDIT
Attr
Flags |= PWR_MASK_INVISIBLE
Object BytesOfOutput $Attribute 8
Body
SysBody
Attr
TypeRef
= "pwrs:Type-$UInt16"
Attr
Flags |= PWR_MASK_NOEDIT
Attr
Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
!
Object
OffsetInputs $Attribute 9
Body
SysBody
Attr
TypeRef = "pwrs:Type-$UInt16"
Attr
Flags |= PWR_MASK_NOEDIT
Attr
Flags |= PWR_MASK_INVISIBLE
Object OffsetInputs $Attribute 9
Body
SysBody
Attr
TypeRef = "pwrs:Type-$UInt16"
Attr
Flags |= PWR_MASK_NOEDIT
Attr
Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
!
Object
OffsetOutputs $Attribute 10
Body
SysBody
Attr
TypeRef = "pwrs:Type-$UInt16"
Attr
Flags |= PWR_MASK_NOEDIT
Attr
Flags |= PWR_MASK_INVISIBLE
Object OffsetOutputs $Attribute 10
Body
SysBody
Attr
TypeRef = "pwrs:Type-$UInt16"
Attr
Flags |= PWR_MASK_NOEDIT
Attr
Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
!
...
...
@@ -89,14 +89,14 @@ SObject pwrb:Class
!
Object Template Pb_Ai
Body RtBody
Attr NumberOfChannels = 8
Attr BytesPerChannel = 2
Attr Process = 1
Attr Status = 0
Attr BytesOfInput = 0
Attr BytesOfOutput = 0
Attr OffsetInputs = 0
Attr OffsetOutputs = 0
Attr NumberOfChannels = 8
Attr BytesPerChannel = 2
Attr Process = 1
Attr Status = 0
Attr BytesOfInput = 0
Attr BytesOfOutput = 0
Attr OffsetInputs = 0
Attr OffsetOutputs = 0
EndBody
EndObject ! Template
!
...
...
src/wbl/pwrb/src/pwrb_c_pulse.wb_load
View file @
8250da92
...
...
@@ -242,7 +242,7 @@ SObject pwrb:Class
Attr objname = "Pulse"
Attr graphname = "Pulse"
Attr debugpar = ""
End
b
ody
End
B
ody
EndObject
Object Template Pulse
Body DevBody
...
...
src/wbl/pwrb/src/pwrb_c_sr_r.wb_load
View file @
8250da92
...
...
@@ -117,7 +117,7 @@ SObject pwrb:Class
Attr objname = "SR_R"
Attr graphname = "SR_R"
Attr debugpar = "Status"
End
b
ody
End
B
ody
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_sr_s.wb_load
View file @
8250da92
...
...
@@ -117,7 +117,7 @@ SObject pwrb:Class
Attr objname = "SR_S"
Attr graphname = "SR_S"
Attr debugpar = "Status"
End
b
ody
End
B
ody
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_strcat.wb_load
View file @
8250da92
...
...
@@ -103,7 +103,7 @@ SObject pwrb:Class
Attr executeordermethod = 2
Attr objname = "Strcat"
Attr graphname = "Strcat"
End
b
ody
End
B
ody
EndObject
EndObject
EndSObject
...
...
src/wbl/pwrb/src/pwrb_c_substr.wb_load
View file @
8250da92
...
...
@@ -102,7 +102,7 @@ SObject pwrb:Class
Attr executeordermethod = 2
Attr objname = "SubStr"
Attr graphname = "SubStr"
End
b
ody
End
B
ody
EndObject
Object Template SubStr
Body RtBody
...
...
src/wbl/pwrb/src/pwrb_c_timer.wb_load
View file @
8250da92
...
...
@@ -236,7 +236,7 @@ SObject pwrb:Class
Attr objname = "Timer"
Attr graphname = "Timer"
Attr debugpar = ""
End
b
ody
End
B
ody
EndObject
Object Template Timer
Body DevBody
...
...
src/wbl/pwrb/src/pwrb_c_wait.wb_load
View file @
8250da92
...
...
@@ -234,7 +234,7 @@ SObject pwrb:Class
Attr objname = "Wait"
Attr graphname = "Wait"
Attr debugpar = ""
End
b
ody
End
B
ody
EndObject
Object Template Wait
Body DevBody
...
...
src/wbl/pwrb/src/pwrb_c_waith.wb_load
View file @
8250da92
...
...
@@ -256,7 +256,7 @@ SObject pwrb:Class
Attr objname = "Waith"
Attr graphname = "Waith"
Attr debugpar = "Status"
End
b
ody
End
B
ody
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_xor.wb_load
View file @
8250da92
...
...
@@ -91,7 +91,7 @@ SObject pwrb:Class
Attr objname = "XOr"
Attr graphname = "XOr"
Attr debugpar = "Status"
End
b
ody
End
B
ody
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_ch_mpsclasses.wb_load
deleted
100644 → 0
View file @
5aeed6e7
! pwrb_ch_mpsclasses.wb_load -- mps:Class hierarchy.
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
!
SObject mps:
Object Class $ClassHier
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_l_mps.wb_load
deleted
100644 → 0
View file @
5aeed6e7
! pwrb_l_mps.wb_load -- Defines layouts for MPS objects.
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
!
SObject wb:layout-Configurator-w1-AllClasses
Object mps $GroupRef
EndObject
EndSObject
!
SObject wb:layout-PlcEditor-w1
Object MPS $Group
Object MpsIn $Group
EndObject
Object MpsOut $Group
EndObject
Object MpsQueue $Group
EndObject
Object MpsStack $Group
EndObject
Object MpsTriggTrp $Group
EndObject
Object MpsTrp $Group
EndObject
Object MpsTube $Group
EndObject
Object MpsWare $Group
EndObject
EndObject
EndSObject
src/wbl/pwrs/src/pwrs_c_menubutton.wb_load
View file @
8250da92
...
...
@@ -12,7 +12,6 @@ SObject pwrs:Class
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_SysBody
Attr Flags |= pwr_mClassDef_System
Attr Flags |= pwr_mClassDef_DevOnly
EndBody
Object SysBody $ObjBodyDef 1
Body SysBody
...
...
@@ -72,3 +71,11 @@ SObject pwrs:Class
EndObject
EndObject
EndSObject
src/wbl/pwrs/src/pwrs_c_menucascade.wb_load
View file @
8250da92
...
...
@@ -12,7 +12,6 @@ SObject pwrs:Class
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_SysBody
Attr Flags |= pwr_mClassDef_System
Attr Flags |= pwr_mClassDef_DevOnly
EndBody
Object SysBody $ObjBodyDef 1
Body SysBody
...
...
@@ -23,6 +22,24 @@ SObject pwrs:Class
Attr TypeRef = "pwrs:Type-$String40"
EndBody
EndObject
Object FilterName $Attribute 2
Body SysBody
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
Object FilterArguments $Attribute 3
Body SysBody
Attr TypeRef = "pwrs:Type-$String40"
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 5
EndBody
EndObject
Object Filter $Attribute 4
Body SysBody
Attr TypeRef = "pwrs:Type-$UInt32"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
EndObject
Object Template $MenuCascade
Body SysBody
...
...
src/wbl/pwrs/src/pwrs_c_menuseparator.wb_load
View file @
8250da92
...
...
@@ -12,7 +12,6 @@ SObject pwrs:Class
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_SysBody
Attr Flags |= pwr_mClassDef_System
Attr Flags |= pwr_mClassDef_DevOnly
EndBody
EndObject
EndSObject
src/wbl/pwrs/src/pwrs_td_graphname.wb_load
View file @
8250da92
...
...
@@ -11,9 +11,9 @@ SObject pwrs:Type
Object $GraphName $TypeDef 1
Body SysBody
Attr Type = pwr_eType_String
Attr Size =
8
Attr Size =
16
Attr TypeRef = "pwrs:Type-$String"
Attr Elements =
8
Attr Elements =
16
EndBody
EndObject
...
...
src/wbl/ssab/src/ssab_c_loggconfig.wb_load
View file @
8250da92
...
...
@@ -20,31 +20,31 @@ SObject SSAB:Class
!
! Parameter Description
!
Object LoggFile $
Param
1
Object LoggFile $
Attribute
1
Body SysBody
Attr TypeRef = "pwrs:Type-$String40"
EndBody
EndObject
Object NewVersion $
Param
2
Object NewVersion $
Attribute
2
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
Attr Flags |= PWR_MASK_STATE
EndBody
EndObject
Object Identity $
Param
3
Object Identity $
Attribute
3
Body SysBody
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object LoggCount $
Param
4
Object LoggCount $
Attribute
4
Body SysBody
Attr TypeRef = "pwrs:Type-$UInt32"
Attr Flags |= PWR_MASK_INVISIBLE
Attr Flags |= PWR_MASK_STATE
EndBody
EndObject
Object FileOpenCount $
Param
5
Object FileOpenCount $
Attribute
5
Body SysBody
Attr TypeRef = "pwrs:Type-$UInt32"
Attr Flags |= PWR_MASK_INVISIBLE
...
...
wb/exp/wb/src/pwr_volumelist.dat
View file @
8250da92
pwrs 0.0.0.1
pwrb 0.0.0.2
nmps 0.0.1.1
tlog 0.0.1.2
ssab 0.0.1.3
wb/lib/wb/src/wb_adef.cpp
View file @
8250da92
...
...
@@ -41,6 +41,23 @@ void wb_adef::check()
if
(
evenSts
())
throw
wb_error
(
m_sts
);
}
wb_adef
wb_adef
::
next
()
{
pwr_tStatus
sts
;
check
();
return
wb_adef
(
m_adrep
->
next
(
&
sts
));
}
wb_adef
wb_adef
::
prev
()
{
pwr_tStatus
sts
;
check
();
return
wb_adef
(
m_adrep
->
prev
(
&
sts
));
}
// get objects runtime body size
size_t
wb_adef
::
size
()
{
...
...
@@ -101,3 +118,21 @@ pwr_tOid wb_adef::boid()
check
();
return
m_adrep
->
boid
();
}
char
*
wb_adef
::
name
()
{
check
();
return
m_adrep
->
name
();
}
wb_name
wb_adef
::
longName
()
{
check
();
return
m_adrep
->
longName
();
}
void
wb_adef
::
body
(
void
**
p
)
{
check
();
m_adrep
->
body
(
p
);
}
wb/lib/wb/src/wb_adef.h
View file @
8250da92
...
...
@@ -44,11 +44,12 @@ public:
pwr_tOix
bix
();
pwr_tOid
boid
();
wb_adef
next
()
{
return
*
this
;}
// Fix
wb_adef
prev
()
{
return
*
this
;}
// Fix
wb_adef
next
()
;
wb_adef
prev
()
;
wb_name
name
()
{
wb_name
n
;
return
n
;}
// Fix
wb_name
name
(
ldh_eName
type
)
{
wb_name
n
;
return
n
;}
// Fix
char
*
name
();
wb_name
longName
();
void
body
(
void
**
p
);
private:
void
check
();
...
...
wb/lib/wb/src/wb_adrep.cpp
View file @
8250da92
...
...
@@ -18,6 +18,104 @@ wb_adrep *wb_adrep::ref()
wb_adrep
::
wb_adrep
(
wb_orepdbs
&
o
)
:
m_nRef
(
0
),
m_orep
(
&
o
),
m_sts
(
LDH__SUCCESS
)
{
m_orep
->
ref
();
pwr_tStatus
sts
;
switch
(
m_orep
->
cid
())
{
case
pwr_eClass_Param
:
{
pwr_sParam
attr
;
m_orep
->
m_vrep
->
readBody
(
&
sts
,
m_orep
,
cdh_eBix_sys
,
(
void
*
)
&
attr
);
if
(
EVEN
(
sts
))
throw
wb_error
(
sts
);
strcpy
(
m_pgmname
,
attr
.
Info
.
PgmName
);
m_size
=
attr
.
Info
.
Size
;
m_type
=
attr
.
Info
.
Type
;
m_offset
=
attr
.
Info
.
Offset
;
m_elements
=
attr
.
Info
.
Elements
;
m_paramindex
=
attr
.
Info
.
ParamIndex
;
m_flags
=
attr
.
Info
.
Flags
;
m_tid
=
attr
.
TypeRef
;
break
;
}
case
pwr_eClass_Intern
:
case
pwr_eClass_Input
:
case
pwr_eClass_Output
:
{
pwr_sIntern
attr
;
m_orep
->
m_vrep
->
readBody
(
&
sts
,
m_orep
,
cdh_eBix_sys
,
(
void
*
)
&
attr
);
if
(
EVEN
(
sts
))
throw
wb_error
(
sts
);
strcpy
(
m_pgmname
,
attr
.
Info
.
PgmName
);
m_size
=
attr
.
Info
.
Size
;
m_type
=
attr
.
Info
.
Type
;
m_offset
=
attr
.
Info
.
Offset
;
m_elements
=
attr
.
Info
.
Elements
;
m_paramindex
=
attr
.
Info
.
ParamIndex
;
m_flags
=
attr
.
Info
.
Flags
;
m_tid
=
attr
.
TypeRef
;
break
;
}
case
pwr_eClass_ObjXRef
:
{
pwr_sObjXRef
attr
;
m_orep
->
m_vrep
->
readBody
(
&
sts
,
m_orep
,
cdh_eBix_sys
,
(
void
*
)
&
attr
);
if
(
EVEN
(
sts
))
throw
wb_error
(
sts
);
strcpy
(
m_pgmname
,
attr
.
Info
.
PgmName
);
m_size
=
attr
.
Info
.
Size
;
m_type
=
attr
.
Info
.
Type
;
m_offset
=
attr
.
Info
.
Offset
;
m_elements
=
attr
.
Info
.
Elements
;
m_paramindex
=
attr
.
Info
.
ParamIndex
;
m_flags
=
attr
.
Info
.
Flags
;
m_tid
=
0
;
break
;
}
case
pwr_eClass_AttrXRef
:
{
pwr_sAttrXRef
attr
;
m_orep
->
m_vrep
->
readBody
(
&
sts
,
m_orep
,
cdh_eBix_sys
,
(
void
*
)
&
attr
);
if
(
EVEN
(
sts
))
throw
wb_error
(
sts
);
strcpy
(
m_pgmname
,
attr
.
Info
.
PgmName
);
m_size
=
attr
.
Info
.
Size
;
m_type
=
attr
.
Info
.
Type
;
m_offset
=
attr
.
Info
.
Offset
;
m_elements
=
attr
.
Info
.
Elements
;
m_paramindex
=
attr
.
Info
.
ParamIndex
;
m_flags
=
attr
.
Info
.
Flags
;
m_tid
=
0
;
break
;
}
case
pwr_eClass_Buffer
:
{
pwr_sBuffer
attr
;
m_orep
->
m_vrep
->
readBody
(
&
sts
,
m_orep
,
cdh_eBix_sys
,
(
void
*
)
&
attr
);
if
(
EVEN
(
sts
))
throw
wb_error
(
sts
);
strcpy
(
m_pgmname
,
attr
.
Info
.
PgmName
);
m_size
=
attr
.
Info
.
Size
;
m_type
=
attr
.
Info
.
Type
;
m_offset
=
attr
.
Info
.
Offset
;
m_elements
=
attr
.
Info
.
Elements
;
m_paramindex
=
attr
.
Info
.
ParamIndex
;
m_flags
=
attr
.
Info
.
Flags
;
m_tid
=
0
;
break
;
}
default:
throw
wb_error
(
LDH__NYI
);
}
}
wb_adrep
::~
wb_adrep
()
...
...
@@ -25,6 +123,26 @@ wb_adrep::~wb_adrep()
m_orep
->
unref
();
}
wb_adrep
*
wb_adrep
::
next
(
pwr_tStatus
*
sts
)
{
wb_orep
*
orep
=
m_orep
->
after
(
sts
);
if
(
EVEN
(
*
sts
))
return
0
;
wb_adrep
*
adrep
=
new
wb_adrep
(
(
wb_orepdbs
&
)
*
orep
);
return
adrep
;
}
wb_adrep
*
wb_adrep
::
prev
(
pwr_tStatus
*
sts
)
{
wb_orep
*
orep
=
m_orep
->
before
(
sts
);
if
(
EVEN
(
*
sts
))
return
0
;
wb_adrep
*
adrep
=
new
wb_adrep
(
(
wb_orepdbs
&
)
*
orep
);
return
adrep
;
}
wb_cdrep
*
wb_adrep
::
cdrep
()
{
return
new
wb_cdrep
(
this
);
...
...
@@ -37,15 +155,17 @@ wb_bdrep *wb_adrep::bdrep()
pwr_tOid
wb_adrep
::
aoid
()
{
pwr_tOid
oid
;
//return m_a->oid;
return
oid
;
return
m_orep
->
oid
();
}
size_t
wb_adrep
::
size
()
int
wb_adrep
::
aix
()
{
return
0
;
return
cdh_oixToAix
(
m_orep
->
oid
().
oix
);
}
int
wb_adrep
::
bix
()
{
return
cdh_oixToBix
(
m_orep
->
oid
().
oix
);
}
pwr_sAttrRef
wb_adrep
::
aref
()
...
...
@@ -91,3 +211,45 @@ wb_vrep *wb_adrep::vrep() const
if
(
EVEN
(
m_sts
))
throw
wb_error
(
m_sts
);
return
m_orep
->
m_vrep
;
}
char
*
wb_adrep
::
name
()
{
return
m_orep
->
name
();
}
wb_name
wb_adrep
::
longName
()
{
return
m_orep
->
longName
();
}
void
wb_adrep
::
body
(
void
**
p
)
{
pwr_tStatus
sts
;
int
size
;
switch
(
m_orep
->
cid
())
{
case
pwr_eClass_Param
:
size
=
sizeof
(
pwr_sParam
);
break
;
case
pwr_eClass_Intern
:
case
pwr_eClass_Input
:
case
pwr_eClass_Output
:
size
=
sizeof
(
pwr_sIntern
);
break
;
case
pwr_eClass_ObjXRef
:
size
=
sizeof
(
pwr_sObjXRef
);
break
;
case
pwr_eClass_AttrXRef
:
size
=
sizeof
(
pwr_sAttrXRef
);
break
;
case
pwr_eClass_Buffer
:
size
=
sizeof
(
pwr_sBuffer
);
break
;
default:
throw
wb_error
(
LDH__NYI
);
}
*
p
=
calloc
(
1
,
size
);
m_orep
->
m_vrep
->
readBody
(
&
sts
,
m_orep
,
cdh_eBix_sys
,
*
p
);
if
(
EVEN
(
sts
))
throw
wb_error
(
sts
);
}
wb/lib/wb/src/wb_adrep.h
View file @
8250da92
...
...
@@ -14,6 +14,15 @@ class wb_adrep
wb_orepdbs
*
m_orep
;
pwr_tStatus
m_sts
;
size_t
m_size
;
pwr_eType
m_type
;
int
m_offset
;
int
m_elements
;
int
m_paramindex
;
int
m_flags
;
pwr_tTid
m_tid
;
pwr_tPgmName
m_pgmname
;
friend
class
wb_bdrep
;
friend
class
wb_cdrep
;
...
...
@@ -24,24 +33,28 @@ class wb_adrep
void
unref
();
wb_adrep
*
ref
();
wb_adrep
*
next
(
pwr_tStatus
*
sts
);
wb_adrep
*
prev
(
pwr_tStatus
*
sts
);
wb_bdrep
*
bdrep
();
wb_cdrep
*
cdrep
();
pwr_sAttrRef
aref
();
size_t
size
();
// get objects runtime body size
int
offset
()
{
return
0
;};
// Fix
int
type
()
const
{
return
0
;}
// Fix
int
nElement
()
{
return
0
;}
// Fix
int
index
()
{
return
0
;}
// Fix
size_t
size
()
{
return
m_size
;}
int
offset
()
{
return
m_offset
;}
pwr_eType
type
()
const
{
return
m_type
;}
pwr_tTid
tid
()
{
return
m_tid
;}
int
nElement
()
{
return
m_elements
;}
int
index
()
{
return
m_paramindex
;}
pwr_tOid
aoid
();
int
aix
()
{
return
0
;}
// Fix
int
aix
()
;
pwr_tCid
cid
();
int
bix
()
{
return
0
;}
// Fix
int
flags
()
{
return
0
;}
// Fix
int
bix
()
;
int
flags
()
{
return
m_flags
;}
pwr_tOid
boid
();
wb_name
name
()
{
wb_name
n
;
return
n
;}
// Fix // get attribute name
wb_name
name
(
ldh_eName
type
)
{
wb_name
n
;
return
n
;
}
// Fix
char
*
name
();
wb_name
longName
();
void
body
(
void
**
p
);
wb_vrep
*
vrep
()
const
;
};
...
...
wb/lib/wb/src/wb_bdrep.cpp
View file @
8250da92
...
...
@@ -65,3 +65,36 @@ size_t wb_bdrep::size()
return
body
.
Size
;
}
int
wb_bdrep
::
nAttribute
()
{
pwr_tStatus
sts
;
int
attr_count
=
0
;
wb_orepdbs
*
old
;
wb_orepdbs
*
orep
=
(
wb_orepdbs
*
)
m_orep
->
m_vrep
->
first
(
&
sts
,
m_orep
);
while
(
ODD
(
sts
))
{
switch
(
orep
->
cid
())
{
case
pwr_eClass_Param
:
case
pwr_eClass_Intern
:
case
pwr_eClass_Input
:
case
pwr_eClass_Output
:
case
pwr_eClass_ObjXRef
:
case
pwr_eClass_AttrXRef
:
attr_count
++
;
break
;
default:
;
}
old
=
orep
;
orep
=
(
wb_orepdbs
*
)
orep
->
after
(
&
sts
);
old
->
ref
();
old
->
unref
();
}
return
attr_count
;
}
pwr_tOid
wb_bdrep
::
boid
()
{
return
m_orep
->
oid
();
}
wb/lib/wb/src/wb_bdrep.h
View file @
8250da92
...
...
@@ -27,9 +27,9 @@ public:
pwr_sAttrRef
aref
()
{
pwr_sAttrRef
a
;
return
a
;}
// Fix
size_t
size
();
int
nAttribute
()
{
return
0
;}
// Fix
int
nAttribute
()
;
cdh_eBix
bix
();
pwr_tOid
boid
()
{
pwr_tOid
o
;
return
o
;}
// Fix
pwr_tOid
boid
()
;
wb_name
name
()
{
wb_name
n
;
return
n
;}
// Fix // get attribute name
...
...
wb/lib/wb/src/wb_erep.cpp
View file @
8250da92
...
...
@@ -78,12 +78,16 @@ wb_vrep *wb_erep::volume(pwr_tStatus *sts, char *name) // Fix
{
vrep_iterator
it
;
for
(
it
=
m_vrepdb
.
begin
();
it
!=
m_vrepdb
.
end
();
it
++
)
{
if
(
cdh_NoCaseStrcmp
(
it
->
second
->
name
(),
name
)
==
0
)
if
(
cdh_NoCaseStrcmp
(
it
->
second
->
name
(),
name
)
==
0
)
{
*
sts
=
LDH__SUCCESS
;
return
it
->
second
;
}
}
for
(
it
=
m_vrepdbs
.
begin
();
it
!=
m_vrepdbs
.
end
();
it
++
)
{
if
(
cdh_NoCaseStrcmp
(
it
->
second
->
name
(),
name
)
==
0
)
if
(
cdh_NoCaseStrcmp
(
it
->
second
->
name
(),
name
)
==
0
)
{
*
sts
=
LDH__SUCCESS
;
return
it
->
second
;
}
}
*
sts
=
LDH__NOSUCHVOL
;
return
0
;
...
...
@@ -297,10 +301,9 @@ void wb_erep::loadCommonMeta( pwr_tStatus *status)
cdh_StringToVolumeId
(
vol_array
[
1
],
&
vid
);
cout
<<
"Loading volume: "
<<
vname
<<
" "
<<
vid
<<
endl
;
wb_vrepdbs
*
vrep
=
new
wb_vrepdbs
(
this
,
vname
);
try
{
wb_vrepdbs
*
vrep
=
new
wb_vrepdbs
(
this
,
vname
);
vrep
->
load
();
// vrep->name( vol_array[0]);
addDbs
(
&
sts
,
vrep
);
}
catch
(
wb_error
&
e
)
{
...
...
wb/lib/wb/src/wb_ldh.cpp
View file @
8250da92
...
...
@@ -567,16 +567,15 @@ ldh_GetObjectBodyDef(ldh_tSession session, pwr_tCid cid, char *bname,
wb_bdef
b
=
c
.
bdef
(
bname
);
if
(
!
b
)
return
b
.
sts
();
*
bdef
=
(
ldh_sParDef
*
)
calloc
(
1
,
sizeof
(
ldh_sParDef
)
*
b
.
nAttribute
());
*
rows
=
b
.
nAttribute
();
*
bdef
=
(
ldh_sParDef
*
)
calloc
(
1
,
sizeof
(
ldh_sParDef
)
*
*
rows
);
if
(
*
bdef
==
NULL
)
return
LDH__INSVIRMEM
;
for
(
wb_adef
a
=
b
.
adef
();
a
;
a
=
a
.
next
())
{
//for (wb_adef a = b.adef(); a; a++) {
// do something a.size(); a.name();
strcpy
((
*
bdef
)[
a
.
index
()].
ParName
,
a
.
name
().
c_str
());
(
*
bdef
)[
a
.
index
()].
ParLevel
=
1
;
(
*
bdef
)[
a
.
index
()].
ParClass
=
(
pwr_eClass
)
a
.
cid
();
//(*bdef)[a.index()].Par = (void *) obp->body;
strcpy
((
*
bdef
)[
a
.
index
()].
ParName
,
a
.
name
());
(
*
bdef
)[
a
.
index
()].
ParLevel
=
1
;
(
*
bdef
)[
a
.
index
()].
ParClass
=
(
pwr_eClass
)
a
.
cid
();
a
.
body
(
(
void
**
)
&
(
*
bdef
)[
a
.
index
()].
Par
);
}
return
LDH__SUCCESS
;
...
...
wb/lib/wb/src/wb_merep.cpp
View file @
8250da92
#include "wb_merep.h"
#include "wb_erep.h"
#include "wb_attrname.h"
#include "wb_ldh_msg.h"
...
...
@@ -127,6 +128,7 @@ wb_tdrep *wb_merep::tdrep( pwr_tStatus *sts, pwr_tTid tid)
*
sts
=
LDH__NOSUCHVOL
;
return
0
;
}
*
sts
=
LDH__SUCCESS
;
return
it
->
second
->
tdrep
(
tid
);
}
...
...
@@ -150,3 +152,51 @@ wb_tdrep *wb_merep::tdrep( pwr_tStatus *sts, wb_name name)
return
0
;
}
int
wb_merep
::
getAttrInfoRec
(
wb_attrname
*
attr
,
int
bix
,
pwr_tCid
cid
,
int
*
size
,
int
*
offset
,
pwr_tTid
*
tid
,
int
*
elements
,
pwr_eType
*
type
,
int
level
)
{
pwr_tStatus
sts
;
wb_cdrep
*
cd
=
cdrep
(
&
sts
,
cid
);
if
(
EVEN
(
sts
))
return
0
;
wb_bdrep
*
bd
=
cd
->
bdrep
(
&
sts
,
bix
);
if
(
EVEN
(
sts
))
{
delete
cd
;
return
0
;
}
wb_adrep
*
adrep
=
bd
->
adrep
(
&
sts
,
attr
->
attribute
(
level
));
if
(
EVEN
(
sts
))
{
delete
cd
;
delete
bd
;
return
0
;
}
if
(
attr
->
hasAttrIndex
(
level
))
{
int
index
=
attr
->
attrIndex
(
level
);
if
(
index
>=
adrep
->
nElement
())
return
0
;
*
offset
+=
adrep
->
offset
()
+
index
*
adrep
->
size
()
/
adrep
->
nElement
();
*
size
=
adrep
->
size
()
/
adrep
->
nElement
();
}
else
{
*
offset
+=
adrep
->
offset
();
*
size
=
adrep
->
size
();
}
if
(
attr
->
hasAttribute
(
level
+
1
))
{
// Fix , Subclass: get cid from type of attr
if
(
!
getAttrInfoRec
(
attr
,
bix
,
cid
,
size
,
offset
,
tid
,
elements
,
type
,
level
+
1
))
return
0
;
}
*
tid
=
adrep
->
tid
();
*
type
=
adrep
->
type
();
*
elements
=
adrep
->
nElement
();
delete
cd
;
delete
bd
;
delete
adrep
;
return
1
;
}
wb/lib/wb/src/wb_merep.h
View file @
8250da92
...
...
@@ -2,6 +2,7 @@
#define wb_merep_h
#include "wb_mvrep.h"
#include "wb_attrname.h"
#include <map>
using
namespace
std
;
...
...
@@ -32,6 +33,11 @@ class wb_merep {
wb_tdrep
*
tdrep
(
pwr_tStatus
*
sts
,
const
wb_adrep
&
a
);
wb_tdrep
*
tdrep
(
pwr_tStatus
*
sts
,
pwr_tTid
tid
);
wb_tdrep
*
tdrep
(
pwr_tStatus
*
sts
,
wb_name
name
);
int
getAttrInfoRec
(
wb_attrname
*
attr
,
int
bix
,
pwr_tCid
cid
,
int
*
size
,
int
*
offset
,
pwr_tTid
*
tid
,
int
*
elements
,
pwr_eType
*
type
,
int
level
);
};
#endif
wb/lib/wb/src/wb_nrep.cpp
View file @
8250da92
...
...
@@ -100,9 +100,11 @@ wb_nrep::wb_nrep( char *n) throw (wb_error) : num_seg(0), num_attr(0), vol_len(0
}
if
(
seg_cnt
)
seg
=
(
wb_namesegments
*
)
calloc
(
seg_cnt
,
sizeof
(
wb_namesegments
));
if
(
attr_cnt
)
if
(
attr_cnt
)
{
attr
=
(
wb_nameattributes
*
)
calloc
(
attr_cnt
,
sizeof
(
wb_nameattributes
));
for
(
int
i
=
0
;
i
<
attr_cnt
;
i
++
)
attr
[
i
].
index
=
-
1
;
}
strcpy
(
oname
,
n
);
parse
();
}
...
...
@@ -231,7 +233,7 @@ void wb_nrep::parse () throw (wb_error)
throw
wb_error
(
LDH__BADNAME
);
}
else
{
attr
[
num_attr
].
len
=
nameDiff
(
s
,
oname
)
-
attr
[
num_attr
].
offs
;
attr
[
num_attr
].
index
=
0
;
attr
[
num_attr
].
index
=
-
1
;
state
=
4
;
}
break
;
...
...
wb/lib/wb/src/wb_tdrep.cpp
View file @
8250da92
...
...
@@ -31,6 +31,7 @@ wb_tdrep::wb_tdrep( wb_mvrep *mvrep, pwr_tTid tid) : m_nRef(0)
if
(
EVEN
(
m_sts
))
throw
wb_error
(
m_sts
);
m_orep
->
ref
();
init
();
m_sts
=
LDH__SUCCESS
;
}
...
...
@@ -43,6 +44,7 @@ wb_tdrep::wb_tdrep( wb_mvrep *mvrep, wb_name name) : m_nRef(0)
if
(
EVEN
(
m_sts
))
throw
wb_error
(
m_sts
);
m_orep
->
ref
();
init
();
m_sts
=
LDH__SUCCESS
;
}
...
...
@@ -53,6 +55,7 @@ wb_tdrep::wb_tdrep( wb_mvrep *mvrep, const wb_adrep& a) : m_nRef(0)
if
(
EVEN
(
m_sts
))
throw
wb_error
(
m_sts
);
m_orep
->
ref
();
init
();
m_sts
=
LDH__SUCCESS
;
}
...
...
@@ -64,10 +67,48 @@ wb_tdrep::wb_tdrep( const wb_adrep& a) : m_nRef(0)
m_sts
=
sts
;
m_orep
=
tdrep
->
m_orep
;
m_orep
->
ref
();
init
();
delete
tdrep
;
}
pwr_tTid
wb_tdrep
::
tid
()
pwr_tTid
wb_tdrep
::
tid
()
{
return
cdh_TypeObjidToId
(
m_orep
->
oid
());
}
void
wb_tdrep
::
init
()
{
pwr_tStatus
sts
;
switch
(
m_orep
->
cid
())
{
case
pwr_eClass_TypeDef
:
{
pwr_sTypeDef
body
;
m_orep
->
m_vrep
->
readBody
(
&
sts
,
m_orep
,
cdh_eBix_sys
,
(
void
*
)
&
body
);
if
(
EVEN
(
sts
))
throw
wb_error
(
sts
);
m_size
=
body
.
Size
;
m_type
=
body
.
Type
;
m_elements
=
body
.
Elements
;
m_typeref
=
body
.
TypeRef
;
break
;
}
case
pwr_eClass_Type
:
{
pwr_sTypeDef
body
;
m_orep
->
m_vrep
->
readBody
(
&
sts
,
m_orep
,
cdh_eBix_sys
,
(
void
*
)
&
body
);
if
(
EVEN
(
sts
))
throw
wb_error
(
sts
);
m_size
=
body
.
Size
;
m_type
=
body
.
Type
;
m_elements
=
1
;
m_typeref
=
(
pwr_tTid
)
body
.
Type
;
break
;
}
default:
throw
wb_error
(
LDH__NYI
);
}
}
wb/lib/wb/src/wb_tdrep.h
View file @
8250da92
...
...
@@ -16,6 +16,11 @@ class wb_tdrep
wb_orepdbs
*
m_orep
;
int
m_sts
;
pwr_eType
m_type
;
size_t
m_size
;
int
m_elements
;
pwr_tTid
m_typeref
;
public:
wb_tdrep
();
wb_tdrep
(
wb_mvrep
*
,
pwr_tTid
);
...
...
@@ -26,15 +31,19 @@ public:
void
unref
();
wb_tdrep
*
ref
();
size_t
size
()
{
return
0
;}
// Fix // get objects runtime body size
size_t
size
()
{
return
m_size
;}
pwr_tTid
tid
();
pwr_eType
type
()
{
return
(
pwr_eType
)
0
;}
// Fix
int
nElement
()
{
return
0
;}
// Fix
pwr_tTid
typeRef
()
{
return
m_typeref
;}
pwr_eType
type
()
{
return
m_type
;}
int
nElement
()
{
return
m_elements
;}
wb_name
name
()
{
wb_name
n
;
return
n
;}
// Fix // get type name
wb_name
name
(
ldh_eName
type
)
{
wb_name
n
;
return
n
;}
// Fix
pwr_tStatus
sts
()
{
return
m_sts
;}
private:
void
init
();
};
#endif
wb/lib/wb/src/wb_vrep.h
View file @
8250da92
...
...
@@ -96,6 +96,8 @@ public:
virtual
void
iterRbody
(
wb_dbs
*
)
=
0
;
virtual
void
iterDbody
(
wb_dbs
*
)
=
0
;
virtual
void
objectName
(
wb_orep
*
o
,
char
*
str
)
=
0
;
virtual
bool
isCommonMeta
()
const
{
return
false
;}
virtual
bool
isMeta
()
const
{
return
false
;}
};
#endif
wb/lib/wb/src/wb_vrepdbs.cpp
View file @
8250da92
...
...
@@ -17,9 +17,12 @@ wb_vrep *wb_vrepdbs::ref()
wb_vrepdbs
::
wb_vrepdbs
(
wb_erep
*
erep
,
const
char
*
fileName
)
:
m_erep
(
erep
)
{
m_merep
=
new
wb_merep
(
m_erep
,
(
wb_mvrep
*
)
this
);
strcpy
(
m_fileName
,
fileName
);
m_isDbsenvLoaded
=
false
;
if
(
isCommonMeta
())
m_merep
=
m_erep
->
merep
();
else
m_merep
=
new
wb_merep
(
m_erep
,
(
wb_mvrep
*
)
this
);
}
dbs_sEnv
*
...
...
@@ -49,7 +52,10 @@ wb_vrepdbs::load()
{
pwr_tStatus
sts
;
bool
rsts
=
(
dbsenv
()
!=
0
);
m_merep
->
addDbs
(
&
sts
,
(
wb_mvrep
*
)
this
);
// only if i am a class volume
if
(
isMeta
())
m_merep
->
addDbs
(
&
sts
,
(
wb_mvrep
*
)
this
);
return
rsts
;
}
...
...
@@ -178,7 +184,7 @@ wb_vrepdbs::abort(pwr_tStatus *sts)
bool
wb_vrepdbs
::
writeAttribute
(
pwr_tStatus
*
sts
,
wb_orep
*
o
,
cdh_eBix
bix
,
unsigned
int
offset
,
unsigned
int
size
,
void
*
p
)
{
//
*sts = LDH__NYI;
*
sts
=
LDH__NYI
;
return
false
;
}
...
...
@@ -186,8 +192,20 @@ wb_vrepdbs::writeAttribute(pwr_tStatus *sts, wb_orep *o, cdh_eBix bix, unsigned
void
*
wb_vrepdbs
::
readAttribute
(
pwr_tStatus
*
sts
,
wb_orep
*
o
,
cdh_eBix
bix
,
unsigned
int
offset
,
unsigned
int
size
,
void
*
p
)
{
//*sts = LDH__NYI;
return
0
;
*
sts
=
LDH__SUCCESS
;
dbs_sObject
*
op
=
((
wb_orepdbs
*
)
o
)
->
o
();
void
*
bp
=
dbs_Body
(
sts
,
dbsenv
(),
op
,
bix
);
if
(
bp
==
0
)
return
0
;
if
(
p
)
{
memcpy
(
p
,
bp
,
MIN
(
op
->
rbody
.
size
,
size
));
return
p
;
}
return
bp
;
}
...
...
@@ -457,3 +475,4 @@ wb_vrepdbs::objectName(wb_orep *o, char *str)
dbs_ObjectToName
(
&
sts
,
dbsenv
(),
((
wb_orepdbs
*
)
o
)
->
o
(),
str
);
}
wb/lib/wb/src/wb_vrepdbs.h
View file @
8250da92
...
...
@@ -101,6 +101,8 @@ public:
virtual
void
iterObject
(
wb_dbs
*
);
virtual
void
iterRbody
(
wb_dbs
*
);
virtual
void
iterDbody
(
wb_dbs
*
);
virtual
bool
isCommonMeta
()
const
{
return
true
;}
virtual
bool
isMeta
()
const
{
return
(
cid
()
==
pwr_eClass_ClassVolume
);}
};
...
...
wb/lib/wb/src/wb_vrepwbl.cpp
View file @
8250da92
...
...
@@ -136,7 +136,10 @@ int wb_vrepwbl::load( char *fname)
int
i
;
char
file_spec
[
200
];
if
(
1
)
{
if
(
strstr
(
fname
,
".wb_load"
)
!=
0
)
{
load_files
(
fname
);
}
else
{
// Load all wb_load files in directory
// Load volume
...
...
@@ -305,7 +308,7 @@ int wb_vrepwbl::getTypeInfo( char *name, pwr_tTid *tid, pwr_eType *type, int *si
ref_wblnode
n
=
findType
(
tname
);
if
(
n
)
{
*
tid
=
n
->
m_tid
;
*
type
=
(
pwr_eType
)
n
->
ty_t
id
;
*
type
=
(
pwr_eType
)
n
->
ty_t
ype
;
*
size
=
n
->
ty_size
;
*
elements
=
1
;
return
1
;
...
...
@@ -451,7 +454,7 @@ int wb_vrepwbl::getTypeInfo( pwr_tTid tid, pwr_eType *type, int *size,
if
(
n
)
{
if
(
!
n
->
is_built
)
n
->
build
(
0
);
*
type
=
(
pwr_eType
)
n
->
ty_t
id
;
*
type
=
(
pwr_eType
)
n
->
ty_t
ype
;
*
size
=
n
->
ty_size
;
*
elements
=
1
;
}
...
...
@@ -524,42 +527,41 @@ int wb_vrepwbl::getClassInfo( pwr_tCid cid, int *rsize, int *dsize)
}
#define IF_ATTR( attribute, type, elem, level) \
#define IF_ATTR( attribute,
e
type, elem, level) \
if ( attr->attributeIsEqual( #attribute, level)) { \
*size = sizeof( o.attribute); \
*offset = (unsigned long) &o.attribute - (unsigned long) &o; \
*tid = type; \
*tid =
*type = e
type; \
*elements = elem; }
int
wb_vrepwbl
::
getAttrInfo
(
char
*
attr
,
int
bix
,
pwr_tCid
cid
,
int
*
size
,
int
*
offset
,
pwr_tTid
*
tid
,
int
*
elements
)
int
*
offset
,
pwr_tTid
*
tid
,
int
*
elements
,
pwr_eType
*
type
)
{
char
attr_name
[
200
];
int
a_size
;
int
a_offset
=
0
;
pwr_tTid
a_tid
;
int
a_elements
;
pwr_eType
a_type
;
strcpy
(
attr_name
,
"."
);
strcat
(
attr_name
,
attr
);
wb_name
aname
(
attr_name
);
wb_attrname
aname
(
attr
);
if
(
aname
.
evenSts
())
return
0
;
if
(
getAttrInfoRec
(
&
aname
,
bix
,
cid
,
&
a_size
,
&
a_offset
,
&
a_tid
,
&
a_elements
,
0
))
{
&
a_tid
,
&
a_elements
,
&
a_type
,
0
))
{
*
size
=
a_size
;
*
offset
=
a_offset
;
*
tid
=
a_tid
;
*
elements
=
a_elements
;
*
type
=
a_type
;
return
1
;
}
return
0
;
}
int
wb_vrepwbl
::
getAttrInfoRec
(
wb_name
*
attr
,
int
bix
,
pwr_tCid
cid
,
int
*
size
,
int
*
offset
,
pwr_tTid
*
tid
,
int
*
elements
,
int
level
)
int
wb_vrepwbl
::
getAttrInfoRec
(
wb_attrname
*
attr
,
int
bix
,
pwr_tCid
cid
,
int
*
size
,
int
*
offset
,
pwr_tTid
*
tid
,
int
*
elements
,
pwr_eType
*
type
,
int
level
)
{
switch
(
cid
)
{
case
pwr_eClass_Type
:
...
...
@@ -571,13 +573,13 @@ int wb_vrepwbl::getAttrInfoRec( wb_name *attr, int bix, pwr_tCid cid, int *size,
if
(
attr
->
attributeIsEqual
(
"Type"
,
level
))
{
*
size
=
sizeof
(
o
.
Type
);
*
offset
=
(
unsigned
long
)
&
o
.
Type
-
(
unsigned
long
)
&
o
;
*
tid
=
pwr_eType_TypeId
;
*
tid
=
*
type
=
pwr_eType_TypeId
;
*
elements
=
1
;
}
else
if
(
attr
->
attributeIsEqual
(
"Size"
,
level
))
{
*
size
=
sizeof
(
o
.
Size
);
*
offset
=
(
unsigned
long
)
&
o
.
Size
-
(
unsigned
long
)
&
o
;
*
tid
=
pwr_eType_Int32
;
*
tid
=
*
type
=
pwr_eType_Int32
;
*
elements
=
1
;
}
return
1
;
...
...
@@ -648,43 +650,43 @@ int wb_vrepwbl::getAttrInfoRec( wb_name *attr, int bix, pwr_tCid cid, int *size,
if
(
attr
->
attributeIsEqual
(
"PgmName"
,
level
))
{
*
size
=
sizeof
(
o
.
Info
.
PgmName
);
*
offset
=
(
unsigned
long
)
&
o
.
Info
.
PgmName
-
(
unsigned
long
)
&
o
;
*
tid
=
pwr_eType_String
;
*
tid
=
*
type
=
pwr_eType_String
;
*
elements
=
1
;
}
if
(
attr
->
attributeIsEqual
(
"Type"
,
level
))
{
*
size
=
sizeof
(
o
.
Info
.
Type
);
*
offset
=
(
unsigned
long
)
&
o
.
Info
.
Type
-
(
unsigned
long
)
&
o
;
*
tid
=
pwr_eType_UInt32
;
*
tid
=
*
type
=
pwr_eType_UInt32
;
*
elements
=
1
;
}
if
(
attr
->
attributeIsEqual
(
"Offset"
,
level
))
{
*
size
=
sizeof
(
o
.
Info
.
Offset
);
*
offset
=
(
unsigned
long
)
&
o
.
Info
.
Offset
-
(
unsigned
long
)
&
o
;
*
tid
=
pwr_eType_UInt32
;
*
tid
=
*
type
=
pwr_eType_UInt32
;
*
elements
=
1
;
}
if
(
attr
->
attributeIsEqual
(
"Size"
,
level
))
{
*
size
=
sizeof
(
o
.
Info
.
Size
);
*
offset
=
(
unsigned
long
)
&
o
.
Info
.
Size
-
(
unsigned
long
)
&
o
;
*
tid
=
pwr_eType_UInt32
;
*
tid
=
*
type
=
pwr_eType_UInt32
;
*
elements
=
1
;
}
if
(
attr
->
attributeIsEqual
(
"Flags"
,
level
))
{
*
size
=
sizeof
(
o
.
Info
.
Flags
);
*
offset
=
(
unsigned
long
)
&
o
.
Info
.
Flags
-
(
unsigned
long
)
&
o
;
*
tid
=
pwr_eType_UInt32
;
*
tid
=
*
type
=
pwr_eType_UInt32
;
*
elements
=
1
;
}
if
(
attr
->
attributeIsEqual
(
"Elements"
,
level
))
{
*
size
=
sizeof
(
o
.
Info
.
Elements
);
*
offset
=
(
unsigned
long
)
&
o
.
Info
.
Elements
-
(
unsigned
long
)
&
o
;
*
tid
=
pwr_eType_UInt32
;
*
tid
=
*
type
=
pwr_eType_UInt32
;
*
elements
=
1
;
}
if
(
attr
->
attributeIsEqual
(
"ParamIndex"
,
level
))
{
*
size
=
sizeof
(
o
.
Info
.
ParamIndex
);
*
offset
=
(
unsigned
long
)
&
o
.
Info
.
ParamIndex
-
(
unsigned
long
)
&
o
;
*
tid
=
pwr_eType_UInt32
;
*
tid
=
*
type
=
pwr_eType_UInt32
;
*
elements
=
1
;
}
else
IF_ATTR
(
TypeRef
,
pwr_eType_TypeId
,
1
,
level
)
...
...
@@ -731,16 +733,20 @@ int wb_vrepwbl::getAttrInfoRec( wb_name *attr, int bix, pwr_tCid cid, int *size,
*
size
=
n_attr
->
a_size
;
}
if
(
attr
->
hasAttribute
(
level
+
1
))
{
if
(
!
getAttrInfoRec
(
attr
,
bix
,
cid
,
size
,
offset
,
tid
,
elements
,
level
+
1
))
// Fix , Subclass: get cid from type of attr
if
(
!
getAttrInfoRec
(
attr
,
bix
,
cid
,
size
,
offset
,
tid
,
elements
,
type
,
level
+
1
))
// Fix , search in other volumes
return
0
;
}
*
tid
=
n_attr
->
a_tid
;
*
elements
=
n_attr
->
a_elements
;
*
type
=
n_attr
->
a_type
;
return
1
;
}
else
{
// Search type in other volumes
TODO...
return
0
;
// Search type in other volumes
return
m_erep
->
merep
()
->
getAttrInfoRec
(
attr
,
bix
,
cid
,
size
,
offset
,
tid
,
elements
,
type
,
level
)
;
}
}
}
...
...
@@ -749,13 +755,31 @@ int wb_vrepwbl::getAttrInfoRec( wb_name *attr, int bix, pwr_tCid cid, int *size,
int
wb_vrepwbl
::
nameToOid
(
char
*
name
,
pwr_tOid
*
oid
)
{
if
(
strncmp
(
name
,
"_O"
,
2
)
==
0
)
{
cdh_StringToObjid
(
name
,
oid
);
return
1
;
}
ref_wblnode
n
=
find
(
name
);
if
(
n
)
{
*
oid
=
n
->
m_oid
;
return
1
;
}
// TODO global
return
0
;
// Search in other volume
pwr_tStatus
sts
;
wb_orep
*
orep
=
m_erep
->
object
(
&
sts
,
name
);
if
(
EVEN
(
sts
))
return
0
;
else
{
*
oid
=
orep
->
oid
();
// Delete
orep
->
ref
();
orep
->
unref
();
return
1
;
}
}
int
wb_vrepwbl
::
getTemplateBody
(
pwr_tCid
cid
,
int
bix
,
int
*
size
,
void
**
body
)
...
...
@@ -848,15 +872,17 @@ int wb_vrepwbl::getTemplateBody( pwr_tCid cid, int bix, int *size, void **body)
*
size
=
bdrep
->
size
();
delete
bdrep
;
*
body
=
calloc
(
1
,
*
size
);
cdrep
->
templateBody
(
&
sts
,
(
cdh_eBix
)
bix
,
body
);
delete
cdrep
;
if
(
EVEN
(
sts
))
{
free
(
body
);
return
0
;
if
(
*
size
)
{
*
body
=
calloc
(
1
,
*
size
);
cdrep
->
templateBody
(
&
sts
,
(
cdh_eBix
)
bix
,
*
body
);
if
(
EVEN
(
sts
))
{
free
(
body
);
delete
cdrep
;
return
0
;
}
}
delete
cdrep
;
return
1
;
}
}
...
...
@@ -989,7 +1015,7 @@ wb_orep *wb_vrepwbl::object(pwr_tStatus *sts)
{
wb_orepwbl
*
orep
=
0
;
if
(
volume_node
->
o_fch
)
{
if
(
volume_node
&&
volume_node
->
o_fch
)
{
orep
=
new
wb_orepwbl
(
(
wb_vrepwbl
*
)
this
,
volume_node
->
o_fch
);
*
sts
=
LDH__SUCCESS
;
}
...
...
wb/lib/wb/src/wb_vrepwbl.h
View file @
8250da92
...
...
@@ -11,6 +11,7 @@
#include "wb_wblnode.h"
#include "wb_wblfile.h"
#include "wb_erep.h"
#include "wb_attrname.h"
#define WBL_FILEMAX 500
#define wbl_eBix_SysBody 1
...
...
@@ -92,9 +93,10 @@ public:
int
*
elements
);
int
getClassInfo
(
pwr_tCid
cid
,
int
*
rsize
,
int
*
dsize
);
int
getAttrInfo
(
char
*
attr
,
int
bix
,
pwr_tCid
cid
,
int
*
size
,
int
*
offset
,
pwr_tTid
*
tid
,
int
*
elements
);
int
getAttrInfoRec
(
wb_name
*
attr
,
int
bix
,
pwr_tCid
cid
,
int
*
size
,
int
*
offset
,
pwr_tTid
*
tid
,
int
*
elements
,
int
level
);
int
*
offset
,
pwr_tTid
*
tid
,
int
*
elements
,
pwr_eType
*
type
);
int
getAttrInfoRec
(
wb_attrname
*
attr
,
int
bix
,
pwr_tCid
cid
,
int
*
size
,
int
*
offset
,
pwr_tTid
*
tid
,
int
*
elements
,
pwr_eType
*
type
,
int
level
);
ref_wblnode
findObject
(
pwr_tOix
oix
);
ref_wblnode
findClass
(
char
*
name
);
ref_wblnode
findType
(
char
*
name
);
...
...
wb/lib/wb/src/wb_wbllexer.cpp
View file @
8250da92
This diff is collapsed.
Click to expand it.
wb/lib/wb/src/wb_wbllexer.g
View file @
8250da92
...
...
@@ -46,11 +46,10 @@ OREQ
WS : (' '
| '\t'
| '\n' {newline();}
| '\r')
| '\r')
+
{ _ttype = antlr::Token::SKIP; }
;
COMMENT
: "!"
(~'\n')* '\n'
...
...
@@ -104,12 +103,14 @@ options {
{$setType(OID);}
| (DIGITS '.') => DIGITS '.' ('0'..'9')* (('e'|'E') ('+'|'-')? ('0'..'9')+)?
{$setType(NUM_FLOAT);}
| '-' DIGITS '.' ('0'..'9')* (('e'|'E') ('+'|'-')? ('0'..'9')+)?
|
('-' DIGITS '.') =>
'-' DIGITS '.' ('0'..'9')* (('e'|'E') ('+'|'-')? ('0'..'9')+)?
{$setType(NUM_FLOAT);}
| '.' ('0'..'9')+ (('e'|'E') ('+'|'-')? ('0'..'9')+)?
{$setType(NUM_FLOAT);}
| DIGITS
{$setType(INT);}
| '-' DIGITS
{$setType(INT);}
| ('a'..'z'|'A'..'Z'|'$'|'_'|SWEC) ('a'..'z'|'A'..'Z'|'0'..'9'|'$'|'_'|SWEC)*
;
...
...
wb/lib/wb/src/wb_wblnode.cpp
View file @
8250da92
This diff is collapsed.
Click to expand it.
wb/lib/wb/src/wb_wblnode.h
View file @
8250da92
...
...
@@ -83,6 +83,13 @@ public:
{
CommonAST
::
initialize
(
t
);
line_number
=
t
->
getLine
();
// Test
static
int
last
=
0
;
if
(
(
line_number
%
1000
)
==
0
&&
line_number
!=
last
)
{
printf
(
"Line: %d
\n
"
,
line_number
);
last
=
line_number
;
}
}
void
setText
(
const
std
::
string
&
txt
)
...
...
@@ -209,6 +216,7 @@ public:
// Type and Typedef stuff
pwr_tTid
ty_tid
;
pwr_eType
ty_type
;
int
ty_elements
;
int
ty_size
;
...
...
@@ -223,6 +231,7 @@ public:
int
a_elements
;
int
a_flags
;
int
a_index
;
pwr_eType
a_type
;
// Template object stuff
};
...
...
wb/lib/wb/src/wb_wblparser.cpp
View file @
8250da92
...
...
@@ -100,8 +100,8 @@ void wb_wblparser::volume() {
match
(
OID
);
{
for
(;;)
{
if
((
LA
(
1
)
==
OBJECT
))
{
object
();
if
((
LA
(
1
)
==
BODY
))
{
body
();
astFactory
.
addASTChild
(
currentAST
,
ANTLR_USE_NAMESPACE
(
antlr
)
RefAST
(
returnAST
));
}
else
{
...
...
@@ -111,6 +111,19 @@ void wb_wblparser::volume() {
}
_loop6:
;
}
{
for
(;;)
{
if
((
LA
(
1
)
==
OBJECT
))
{
object
();
astFactory
.
addASTChild
(
currentAST
,
ANTLR_USE_NAMESPACE
(
antlr
)
RefAST
(
returnAST
));
}
else
{
goto
_loop8
;
}
}
_loop8:
;
}
ref_wblnode
tmp3_AST
=
static_cast
<
ref_wblnode
>
(
ANTLR_USE_NAMESPACE
(
antlr
)
nullAST
);
tmp3_AST
=
astFactory
.
create
(
LT
(
1
));
astFactory
.
addASTChild
(
currentAST
,
ANTLR_USE_NAMESPACE
(
antlr
)
RefAST
(
tmp3_AST
));
...
...
@@ -142,11 +155,11 @@ void wb_wblparser::sobject() {
astFactory
.
addASTChild
(
currentAST
,
ANTLR_USE_NAMESPACE
(
antlr
)
RefAST
(
returnAST
));
}
else
{
goto
_loop
9
;
goto
_loop
11
;
}
}
_loop
9
:
;
_loop
11
:
;
}
ref_wblnode
tmp5_AST
=
static_cast
<
ref_wblnode
>
(
ANTLR_USE_NAMESPACE
(
antlr
)
nullAST
);
tmp5_AST
=
astFactory
.
create
(
LT
(
1
));
...
...
@@ -202,11 +215,11 @@ void wb_wblparser::object() {
astFactory
.
addASTChild
(
currentAST
,
ANTLR_USE_NAMESPACE
(
antlr
)
RefAST
(
returnAST
));
}
else
{
goto
_loop1
3
;
goto
_loop1
5
;
}
}
_loop1
3
:
;
_loop1
5
:
;
}
{
for
(;;)
{
...
...
@@ -215,11 +228,11 @@ void wb_wblparser::object() {
astFactory
.
addASTChild
(
currentAST
,
ANTLR_USE_NAMESPACE
(
antlr
)
RefAST
(
returnAST
));
}
else
{
goto
_loop1
5
;
goto
_loop1
7
;
}
}
_loop1
5
:
;
_loop1
7
:
;
}
ref_wblnode
tmp7_AST
=
static_cast
<
ref_wblnode
>
(
ANTLR_USE_NAMESPACE
(
antlr
)
nullAST
);
tmp7_AST
=
astFactory
.
create
(
LT
(
1
));
...
...
@@ -274,6 +287,43 @@ void wb_wblparser::cid() {
returnAST
=
cid_AST
;
}
void
wb_wblparser
::
body
()
{
returnAST
=
static_cast
<
ref_wblnode
>
(
ANTLR_USE_NAMESPACE
(
antlr
)
nullAST
);
ANTLR_USE_NAMESPACE
(
antlr
)
ASTPair
currentAST
;
ref_wblnode
body_AST
=
static_cast
<
ref_wblnode
>
(
ANTLR_USE_NAMESPACE
(
antlr
)
nullAST
);
try
{
// for error handling
ref_wblnode
tmp10_AST
=
static_cast
<
ref_wblnode
>
(
ANTLR_USE_NAMESPACE
(
antlr
)
nullAST
);
tmp10_AST
=
astFactory
.
create
(
LT
(
1
));
astFactory
.
makeASTRoot
(
currentAST
,
ANTLR_USE_NAMESPACE
(
antlr
)
RefAST
(
tmp10_AST
));
match
(
BODY
);
{
for
(;;)
{
if
((
LA
(
1
)
==
ATTRIBUTE
||
LA
(
1
)
==
BUFFER
))
{
attribute
();
astFactory
.
addASTChild
(
currentAST
,
ANTLR_USE_NAMESPACE
(
antlr
)
RefAST
(
returnAST
));
}
else
{
goto
_loop20
;
}
}
_loop20:
;
}
ref_wblnode
tmp11_AST
=
static_cast
<
ref_wblnode
>
(
ANTLR_USE_NAMESPACE
(
antlr
)
nullAST
);
tmp11_AST
=
astFactory
.
create
(
LT
(
1
));
astFactory
.
addASTChild
(
currentAST
,
ANTLR_USE_NAMESPACE
(
antlr
)
RefAST
(
tmp11_AST
));
match
(
ENDBODY
);
body_AST
=
ref_wblnode
(
currentAST
.
root
);
}
catch
(
ANTLR_USE_NAMESPACE
(
antlr
)
RecognitionException
&
ex
)
{
reportError
(
ex
);
consume
();
consumeUntil
(
_tokenSet_4
);
}
returnAST
=
body_AST
;
}
void
wb_wblparser
::
oix
()
{
returnAST
=
static_cast
<
ref_wblnode
>
(
ANTLR_USE_NAMESPACE
(
antlr
)
nullAST
);
ANTLR_USE_NAMESPACE
(
antlr
)
ASTPair
currentAST
;
...
...
@@ -283,18 +333,18 @@ void wb_wblparser::oix() {
switch
(
LA
(
1
))
{
case
VALUE
:
{
ref_wblnode
tmp1
0
_AST
=
static_cast
<
ref_wblnode
>
(
ANTLR_USE_NAMESPACE
(
antlr
)
nullAST
);
tmp1
0
_AST
=
astFactory
.
create
(
LT
(
1
));
astFactory
.
addASTChild
(
currentAST
,
ANTLR_USE_NAMESPACE
(
antlr
)
RefAST
(
tmp1
0
_AST
));
ref_wblnode
tmp1
2
_AST
=
static_cast
<
ref_wblnode
>
(
ANTLR_USE_NAMESPACE
(
antlr
)
nullAST
);
tmp1
2
_AST
=
astFactory
.
create
(
LT
(
1
));
astFactory
.
addASTChild
(
currentAST
,
ANTLR_USE_NAMESPACE
(
antlr
)
RefAST
(
tmp1
2
_AST
));
match
(
VALUE
);
oix_AST
=
ref_wblnode
(
currentAST
.
root
);
break
;
}
case
INT
:
{
ref_wblnode
tmp1
1
_AST
=
static_cast
<
ref_wblnode
>
(
ANTLR_USE_NAMESPACE
(
antlr
)
nullAST
);
tmp1
1
_AST
=
astFactory
.
create
(
LT
(
1
));
astFactory
.
addASTChild
(
currentAST
,
ANTLR_USE_NAMESPACE
(
antlr
)
RefAST
(
tmp1
1
_AST
));
ref_wblnode
tmp1
3
_AST
=
static_cast
<
ref_wblnode
>
(
ANTLR_USE_NAMESPACE
(
antlr
)
nullAST
);
tmp1
3
_AST
=
astFactory
.
create
(
LT
(
1
));
astFactory
.
addASTChild
(
currentAST
,
ANTLR_USE_NAMESPACE
(
antlr
)
RefAST
(
tmp1
3
_AST
));
match
(
INT
);
oix_AST
=
ref_wblnode
(
currentAST
.
root
);
break
;
...
...
@@ -308,48 +358,11 @@ void wb_wblparser::oix() {
catch
(
ANTLR_USE_NAMESPACE
(
antlr
)
RecognitionException
&
ex
)
{
reportError
(
ex
);
consume
();
consumeUntil
(
_tokenSet_
4
);
consumeUntil
(
_tokenSet_
5
);
}
returnAST
=
oix_AST
;
}
void
wb_wblparser
::
body
()
{
returnAST
=
static_cast
<
ref_wblnode
>
(
ANTLR_USE_NAMESPACE
(
antlr
)
nullAST
);
ANTLR_USE_NAMESPACE
(
antlr
)
ASTPair
currentAST
;
ref_wblnode
body_AST
=
static_cast
<
ref_wblnode
>
(
ANTLR_USE_NAMESPACE
(
antlr
)
nullAST
);
try
{
// for error handling
ref_wblnode
tmp12_AST
=
static_cast
<
ref_wblnode
>
(
ANTLR_USE_NAMESPACE
(
antlr
)
nullAST
);
tmp12_AST
=
astFactory
.
create
(
LT
(
1
));
astFactory
.
makeASTRoot
(
currentAST
,
ANTLR_USE_NAMESPACE
(
antlr
)
RefAST
(
tmp12_AST
));
match
(
BODY
);
{
for
(;;)
{
if
((
LA
(
1
)
==
ATTRIBUTE
||
LA
(
1
)
==
BUFFER
))
{
attribute
();
astFactory
.
addASTChild
(
currentAST
,
ANTLR_USE_NAMESPACE
(
antlr
)
RefAST
(
returnAST
));
}
else
{
goto
_loop18
;
}
}
_loop18:
;
}
ref_wblnode
tmp13_AST
=
static_cast
<
ref_wblnode
>
(
ANTLR_USE_NAMESPACE
(
antlr
)
nullAST
);
tmp13_AST
=
astFactory
.
create
(
LT
(
1
));
astFactory
.
addASTChild
(
currentAST
,
ANTLR_USE_NAMESPACE
(
antlr
)
RefAST
(
tmp13_AST
));
match
(
ENDBODY
);
body_AST
=
ref_wblnode
(
currentAST
.
root
);
}
catch
(
ANTLR_USE_NAMESPACE
(
antlr
)
RecognitionException
&
ex
)
{
reportError
(
ex
);
consume
();
consumeUntil
(
_tokenSet_4
);
}
returnAST
=
body_AST
;
}
void
wb_wblparser
::
attribute
()
{
returnAST
=
static_cast
<
ref_wblnode
>
(
ANTLR_USE_NAMESPACE
(
antlr
)
nullAST
);
ANTLR_USE_NAMESPACE
(
antlr
)
ASTPair
currentAST
;
...
...
@@ -427,11 +440,11 @@ void wb_wblparser::attribute() {
astFactory
.
addASTChild
(
currentAST
,
ANTLR_USE_NAMESPACE
(
antlr
)
RefAST
(
returnAST
));
}
else
{
goto
_loop2
3
;
goto
_loop2
5
;
}
}
_loop2
3
:
;
_loop2
5
:
;
}
ref_wblnode
tmp19_AST
=
static_cast
<
ref_wblnode
>
(
ANTLR_USE_NAMESPACE
(
antlr
)
nullAST
);
tmp19_AST
=
astFactory
.
create
(
LT
(
1
));
...
...
@@ -449,7 +462,7 @@ void wb_wblparser::attribute() {
catch
(
ANTLR_USE_NAMESPACE
(
antlr
)
RecognitionException
&
ex
)
{
reportError
(
ex
);
consume
();
consumeUntil
(
_tokenSet_
5
);
consumeUntil
(
_tokenSet_
6
);
}
returnAST
=
attribute_AST
;
}
...
...
@@ -506,7 +519,7 @@ void wb_wblparser::value() {
catch
(
ANTLR_USE_NAMESPACE
(
antlr
)
RecognitionException
&
ex
)
{
reportError
(
ex
);
consume
();
consumeUntil
(
_tokenSet_
5
);
consumeUntil
(
_tokenSet_
6
);
}
returnAST
=
value_AST
;
}
...
...
@@ -586,11 +599,14 @@ const ANTLR_USE_NAMESPACE(antlr)BitSet wb_wblparser::_tokenSet_2(_tokenSet_2_dat
const
unsigned
long
wb_wblparser
::
_tokenSet_3_data_
[]
=
{
274727984UL
,
0UL
,
0UL
,
0UL
};
// OBJECT ENDOBJECT BODY INT OID VALUE
const
ANTLR_USE_NAMESPACE
(
antlr
)
BitSet
wb_wblparser
::
_tokenSet_3
(
_tokenSet_3_data_
,
4
);
const
unsigned
long
wb_wblparser
::
_tokenSet_4_data_
[]
=
{
1
072
UL
,
0UL
,
0UL
,
0UL
};
// OBJECT ENDOBJECT BODY
const
unsigned
long
wb_wblparser
::
_tokenSet_4_data_
[]
=
{
1
200
UL
,
0UL
,
0UL
,
0UL
};
// OBJECT ENDOBJECT
ENDVOLUME
BODY
const
ANTLR_USE_NAMESPACE
(
antlr
)
BitSet
wb_wblparser
::
_tokenSet_4
(
_tokenSet_4_data_
,
4
);
const
unsigned
long
wb_wblparser
::
_tokenSet_5_data_
[]
=
{
30720
UL
,
0UL
,
0UL
,
0UL
};
//
ENDBODY ATTRIBUTE BUFFER ENDBUFFER
const
unsigned
long
wb_wblparser
::
_tokenSet_5_data_
[]
=
{
1072
UL
,
0UL
,
0UL
,
0UL
};
//
OBJECT ENDOBJECT BODY
const
ANTLR_USE_NAMESPACE
(
antlr
)
BitSet
wb_wblparser
::
_tokenSet_5
(
_tokenSet_5_data_
,
4
);
const
unsigned
long
wb_wblparser
::
_tokenSet_6_data_
[]
=
{
30720UL
,
0UL
,
0UL
,
0UL
};
// ENDBODY ATTRIBUTE BUFFER ENDBUFFER
const
ANTLR_USE_NAMESPACE
(
antlr
)
BitSet
wb_wblparser
::
_tokenSet_6
(
_tokenSet_6_data_
,
4
);
wb/lib/wb/src/wb_wblparser.g
View file @
8250da92
...
...
@@ -23,7 +23,7 @@ unit
;
volume
: VOLUME^ cid OID (object)* ENDVOLUME
: VOLUME^ cid OID (
body)* (
object)* ENDVOLUME
;
sobject
...
...
wb/lib/wb/src/wb_wblparser.hpp
View file @
8250da92
...
...
@@ -31,8 +31,8 @@ public:
public
:
void
sobject
();
public
:
void
object
();
public
:
void
cid
();
public
:
void
oix
();
public
:
void
body
();
public
:
void
oix
();
public
:
void
attribute
();
public
:
void
value
();
public
:
void
oname
();
...
...
@@ -56,6 +56,8 @@ private:
static
const
ANTLR_USE_NAMESPACE
(
antlr
)
BitSet
_tokenSet_4
;
static
const
unsigned
long
_tokenSet_5_data_
[];
static
const
ANTLR_USE_NAMESPACE
(
antlr
)
BitSet
_tokenSet_5
;
static
const
unsigned
long
_tokenSet_6_data_
[];
static
const
ANTLR_USE_NAMESPACE
(
antlr
)
BitSet
_tokenSet_6
;
}
;
#endif
/*INC_wb_wblparser_hpp_*/
wb/lib/wb/src/wb_wnav_command.cpp
View file @
8250da92
...
...
@@ -4225,6 +4225,8 @@ int WNav::get_rootlist()
menu_p
->
title
);
if
(
ODD
(
sts
))
class_cnt
++
;
else
printf
(
"** Unknown window root class: %s
\n
"
,
menu_p
->
title
);
}
if
(
!
class_cnt
)
return
sts
;
...
...
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