Commit 54e0fbb7 authored by Claes Sjöfors's avatar Claes Sjöfors

Block object attributes classes added

parent 8c167739
!
! ProviewR Open Source Process Control.
! Copyright (C) 2005-2019 SSAB EMEA AB.
!
! This file is part of ProviewR.
!
! This program is free software; you can redistribute it and/or
! modify it under the terms of the GNU General Public License as
! published by the Free Software Foundation, either version 2 of
! the License, or (at your option) any later version.
!
! This program is distributed in the hope that it will be useful
! but WITHOUT ANY WARRANTY; without even the implied warranty of
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! GNU General Public License for more details.
!
! You should have received a copy of the GNU General Public License
! along with ProviewR. If not, see <http://www.gnu.org/licenses/>
!
! Linking ProviewR statically or dynamically with other modules is
! making a combined work based on ProviewR. Thus, the terms and
! conditions of the GNU General Public License cover the whole
! combination.
!
! In addition, as a special exception, the copyright holders of
! ProviewR give you permission to, from the build function in the
! ProviewR Configurator, combine ProviewR with modules generated by the
! ProviewR PLC Editor to a PLC program, regardless of the license
! terms of these modules. You may copy and distribute the resulting
! combined work under the terms of your choice, provided that every
! copy of the combined work is accompanied by a complete copy of
! the source code of ProviewR (the version used to produce the
! combined work), being distributed under the terms of the GNU
! General Public License plus this exception.
!
! pwrb_c_blockattrboolean.wb_load -- Defines the class BlockAttrBoolean.
!
SObject pwrb:Class
!/**
! @Version 1.0
! @Summary Boolean block attribute.
! Configuration of a block attribute of type boolean.
!
! @b See also
! @classlink BlockAttribute pwrs_blockattribute.html
!*/
Object BlockAttrBoolean $ClassDef 715
Body SysBody
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_Standard
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "BlockAttrBoolean"
EndBody
!/**
! Superclass
!*/
Object Super $Attribute 1
Body SysBody
Attr TypeRef = "pwrs:Class-$BlockAttribute"
Attr Flags |= PWR_MASK_CLASS
Attr Flags |= PWR_MASK_SUPERCLASS
EndBody
EndObject
!/**
! Attribute value.
!*/
Object Value $Attribute 2
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
EndObject
Object Template BlockAttrBoolean
EndObject
EndObject
EndSObject
!
! ProviewR Open Source Process Control.
! Copyright (C) 2005-2019 SSAB EMEA AB.
!
! This file is part of ProviewR.
!
! This program is free software; you can redistribute it and/or
! modify it under the terms of the GNU General Public License as
! published by the Free Software Foundation, either version 2 of
! the License, or (at your option) any later version.
!
! This program is distributed in the hope that it will be useful
! but WITHOUT ANY WARRANTY; without even the implied warranty of
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! GNU General Public License for more details.
!
! You should have received a copy of the GNU General Public License
! along with ProviewR. If not, see <http://www.gnu.org/licenses/>
!
! Linking ProviewR statically or dynamically with other modules is
! making a combined work based on ProviewR. Thus, the terms and
! conditions of the GNU General Public License cover the whole
! combination.
!
! In addition, as a special exception, the copyright holders of
! ProviewR give you permission to, from the build function in the
! ProviewR Configurator, combine ProviewR with modules generated by the
! ProviewR PLC Editor to a PLC program, regardless of the license
! terms of these modules. You may copy and distribute the resulting
! combined work under the terms of your choice, provided that every
! copy of the combined work is accompanied by a complete copy of
! the source code of ProviewR (the version used to produce the
! combined work), being distributed under the terms of the GNU
! General Public License plus this exception.
!
! pwrb_c_blockattrfloat32.wb_load -- Defines the class BlockAttrFloat32.
!
SObject pwrb:Class
!/**
! @Version 1.0
! @Summary Float32 block attribute.
! Configuration of a block attribute of type Float32.
!
! @b See also
! @classlink BlockAttribute pwrs_blockattribute.html
!*/
Object BlockAttrFloat32 $ClassDef 716
Body SysBody
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_Standard
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "BlockAttrFloat32"
EndBody
!/**
! Superclass
!*/
Object Super $Attribute 1
Body SysBody
Attr TypeRef = "pwrs:Class-$BlockAttribute"
Attr Flags |= PWR_MASK_CLASS
Attr Flags |= PWR_MASK_SUPERCLASS
EndBody
EndObject
!/**
! Attribute value.
!*/
Object Value $Attribute 2
Body SysBody
Attr TypeRef = "pwrs:Type-$Float32"
EndBody
EndObject
EndObject
Object Template BlockAttrFloat32
EndObject
EndObject
EndSObject
!
! ProviewR Open Source Process Control.
! Copyright (C) 2005-2019 SSAB EMEA AB.
!
! This file is part of ProviewR.
!
! This program is free software; you can redistribute it and/or
! modify it under the terms of the GNU General Public License as
! published by the Free Software Foundation, either version 2 of
! the License, or (at your option) any later version.
!
! This program is distributed in the hope that it will be useful
! but WITHOUT ANY WARRANTY; without even the implied warranty of
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! GNU General Public License for more details.
!
! You should have received a copy of the GNU General Public License
! along with ProviewR. If not, see <http://www.gnu.org/licenses/>
!
! Linking ProviewR statically or dynamically with other modules is
! making a combined work based on ProviewR. Thus, the terms and
! conditions of the GNU General Public License cover the whole
! combination.
!
! In addition, as a special exception, the copyright holders of
! ProviewR give you permission to, from the build function in the
! ProviewR Configurator, combine ProviewR with modules generated by the
! ProviewR PLC Editor to a PLC program, regardless of the license
! terms of these modules. You may copy and distribute the resulting
! combined work under the terms of your choice, provided that every
! copy of the combined work is accompanied by a complete copy of
! the source code of ProviewR (the version used to produce the
! combined work), being distributed under the terms of the GNU
! General Public License plus this exception.
!
! pwrb_c_blockattrint32.wb_load -- Defines the class BlockAttrInt32.
!
SObject pwrb:Class
!/**
! @Version 1.0
! @Summary Int32 block attribute.
! Configuration of a block attribute of type Int32.
!
! @b See also
! @classlink BlockAttribute pwrs_blockattribute.html
!*/
Object BlockAttrInt32 $ClassDef 717
Body SysBody
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_Standard
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "BlockAttrInt32"
EndBody
!/**
! Superclass
!*/
Object Super $Attribute 1
Body SysBody
Attr TypeRef = "pwrs:Class-$BlockAttribute"
Attr Flags |= PWR_MASK_CLASS
Attr Flags |= PWR_MASK_SUPERCLASS
EndBody
EndObject
!/**
! Attribute value.
!*/
Object Value $Attribute 2
Body SysBody
Attr TypeRef = "pwrs:Type-$Int32"
EndBody
EndObject
EndObject
Object Template BlockAttrInt32
EndObject
EndObject
EndSObject
!
! ProviewR Open Source Process Control.
! Copyright (C) 2005-2019 SSAB EMEA AB.
!
! This file is part of ProviewR.
!
! This program is free software; you can redistribute it and/or
! modify it under the terms of the GNU General Public License as
! published by the Free Software Foundation, either version 2 of
! the License, or (at your option) any later version.
!
! This program is distributed in the hope that it will be useful
! but WITHOUT ANY WARRANTY; without even the implied warranty of
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! GNU General Public License for more details.
!
! You should have received a copy of the GNU General Public License
! along with ProviewR. If not, see <http://www.gnu.org/licenses/>
!
! Linking ProviewR statically or dynamically with other modules is
! making a combined work based on ProviewR. Thus, the terms and
! conditions of the GNU General Public License cover the whole
! combination.
!
! In addition, as a special exception, the copyright holders of
! ProviewR give you permission to, from the build function in the
! ProviewR Configurator, combine ProviewR with modules generated by the
! ProviewR PLC Editor to a PLC program, regardless of the license
! terms of these modules. You may copy and distribute the resulting
! combined work under the terms of your choice, provided that every
! copy of the combined work is accompanied by a complete copy of
! the source code of ProviewR (the version used to produce the
! combined work), being distributed under the terms of the GNU
! General Public License plus this exception.
!
! pwrb_c_blockattrstring.wb_load -- Defines the class BlockAttrString.
!
SObject pwrb:Class
!/**
! @Version 1.0
! @Summary String block attribute.
! Configuration of a block attribute of type String80.
!
! @b See also
! @classlink BlockAttribute pwrs_blockattribute.html
!*/
Object BlockAttrString $ClassDef 718
Body SysBody
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_Standard
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "BlockAttrString"
EndBody
!/**
! Superclass
!*/
Object Super $Attribute 1
Body SysBody
Attr TypeRef = "pwrs:Class-$BlockAttribute"
Attr Flags |= PWR_MASK_CLASS
Attr Flags |= PWR_MASK_SUPERCLASS
EndBody
EndObject
!/**
! Attribute value.
!*/
Object Value $Attribute 2
Body SysBody
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
EndObject
Object Template BlockAttrString
EndObject
EndObject
EndSObject
......@@ -40,6 +40,15 @@ SObject pwrs:Class
! @Group ClassDefinition
! Definition a block.
!
! A block a kind of object without a class. It's built by a set of objects
! with $Block, $SubBlock and subclasses of $BlockAttribute, and presented
! at runtime in shape of an object.
!
! $Block is the root of a block object.
!
! @b See also
! @classlink $SubBlock pwrs_subblock.html
! @classlink $BlockAttribute pwrs_blockattribute.html
!*/
!
Object $Block $ClassDef pwr_eCix_Block
......
......@@ -39,6 +39,14 @@ SObject pwrs:Class
!/**
! @Group ClassDefinition
! Definition of a block attribute.
!
! $BlockAttribute is a superclass for objects that defines attributes
! in block objects. The subclass should contain a Value attribute
! that keeps the block attribute value.
!
! @b See also
! @classlink $Block pwrs_block.html
! @classlink $SubBlock pwrs_subblock.html
!*/
!
Object $BlockAttribute $ClassDef pwr_eCix_BlockAttribute
......
......@@ -40,6 +40,11 @@ SObject pwrs:Class
! @Group ClassDefinition
! Definition a subblock.
!
! $SubBlock is the root of a block element in a block object.
!
! @b See also
! @classlink $Block pwrs_block.html
! @classlink $BlockAttribute pwrs_blockattribute.html
!*/
!
Object $SubBlock $ClassDef pwr_eCix_SubBlock
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment