Files
obitools3/doc/source/formats.rst

100 lines
2.1 KiB
ReStructuredText
Raw Normal View History

2015-05-07 16:10:03 +02:00
#######
Formats
#######
*********************************************
The OBItools3 Data Management System (OBIDMS)
2015-05-07 16:10:03 +02:00
*********************************************
An OBIDMS directory consists of :
* OBIDMS column files
* an OBIDMS history file
2015-05-07 16:10:03 +02:00
OBIDMS column files
2015-05-07 16:10:03 +02:00
===================
Each OBIDMS column file contains :
2015-05-07 16:10:03 +02:00
* a header of a size equal to a multiple of PAGESIZE (PAGESIZE being equal to 4096 bytes
on most systems) containing metadata
* one column of data of the same type
OBIDMS column files are read-only.
2015-05-07 16:10:03 +02:00
File name
---------
Each file is named with the attribute associated to the data it contains, and the number of
its version, separated by an ``@``, and with the extension ``.odc``.
2015-05-07 16:10:03 +02:00
Example : ``count@3.odc``
2015-05-07 16:10:03 +02:00
Header
------
The header of an OBIDMS column contains :
2015-05-07 16:10:03 +02:00
* Endian byte order
* PAGESIZE value / Size of the header
* Number of lines (total or without the header?)
* Data type (int, str...)
* Date of creation
* Version of the file
* Eventual comments
Data
----
A column of data of the same type.
Versioning
----------
Since OBIDMS column files are read-only, any modification leads to the creation of a new version
2015-05-07 16:10:03 +02:00
of the column file.
The first version of a column file is numbered 1, and each new version increments that
2015-05-07 16:10:03 +02:00
number by 1.
Mandatory columns
-----------------
Some columns must exist in an OBIDMS directory :
2015-05-07 16:10:03 +02:00
* sequence identifiers column
OBIDMS history file
2015-05-07 16:10:03 +02:00
===================
An OBIDMS history file consists of data that can be represented in the form of a directed acyclic
graph presenting the history of all the operations ever done in the OBIDMS directory.
2015-05-07 16:10:03 +02:00
OBIDMS views
2015-05-07 16:10:03 +02:00
============
An OBIDMS view corresponds to a list of OBIDMS columns and lines. A view includes one version
2015-05-07 16:10:03 +02:00
of each mandatory column. Only one version of each column is included. All the columns of
one view contain the same number of lines in the same order.
OBIDMS UML
2015-05-11 17:45:47 +02:00
==========
.. image:: ./images/OBIDMS_UML.png
:download:`html version of the OBIDMS UML file </ObiDMS_UML.class.violet.html>`
2015-05-11 17:45:47 +02:00
OBIIntColumn header file
========================
.. doxygenfile:: obiintcolumn.h