OpenSCADAWiki: Home Page En/Doc/API/part13 ...

Home | Index | Changes | Comments | Users | Registration | Login  Password:  
 
This is an old revision of HomePageEn/Doc/API/part13 from 2009-10-27 16:54:50..

13. Data in the OpenSCADA system and their storage in the DB (TConfig)

Storing data in the system based on the objects TConfig and TElem. These objects store the structure and fields' values of the database, allowing for direct loading and saving the configuration via the "DB" subsystem. For the specialized different types data storage the TVariant object is provided.


TElem object contains the structure of database record. Structure of the record contains extensive information about the elements, their types, sizes and other parameters. Information in this structure is enough to create, control and manage the real structure of the database. Elementary unit of the record is the cell Tfld.


TSonfig object is the heir of TElem and contains the actual values of elements. TConfig is used as the parameter in the functions of the manipulating with the table's records in the "DB" subsystem. Elementary unit of the record is the cell TCfg.


To provide an opportunity to inform the data storehouse about the changes in the structure it is provides an object TValElem, from which it is inherited the storehouse TConfig and the list of which is contained in the TElem structure.

13.1. Data object (TConfig)

Inherits:TValElem
Inherited:TParamContr, TController, TMArchivator, TPrmTempl, TPrmTmplLib, TUser, TGroup, TTransportIn, TTransportOut, TBD, TVArchive, TVArchivator, а также модульные объекты хранящие свои данные в БД.

Public methods:


Protected methods:

13.2. Data cell (TCfg)

Data:
Additional flags to TFld (enum - TCfg::AttrFlg):


Requests flags (enum - ReqFlg):


Public methods:

13.3. Объект структуры данных (TElem)

Наследуется:TTipParam, TControllerS, TTipController, а также модульными объектами, совмещающими функции хранения структуры.

Публичные методы:

13.4. Ячейка структуры данных (TFld)

Данные:
Тип ячейки (enum – TFld::Type):


Флаги ячейки (enum - TFld::AttrFlg):


Публичные методы:

13.5. Объект упреждения про смену структуры (TValElem)

Наследуется:TValue, TConfig.

Защищённые методы:

13.6. Ячейка данных (TVariant)

Данные:
Значения ошибки для различных типов данных (define):


Типы данных (enum - TVariant::Type):


Публичные методы:

13.7. Пользовательский объект (TVarObj)

Наследуется:TAreaObj

Публичные методы:


 
There are no files on this page.[Display files/form]
There is no comment on this page. [Display comments/form]