relpipe-data/specification.xml
author František Kučera <franta-hg@frantovo.cz>
Fri, 30 Nov 2018 16:43:11 +0100
branchv_0
changeset 156 2be00f14dc78
parent 154 aec6545b2350
child 157 65b71e6a0973
permissions -rw-r--r--
specification: libraries

<stránka
	xmlns="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana"
	xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro">
	
	<nadpis>Specification</nadpis>
	<perex>Specification of the Relational pipes data format</perex>
	<pořadí>20</pořadí>

	<text xmlns="http://www.w3.org/1999/xhtml">
		<p>
			Currently only fragments of the specification are published
			and the incompatible changes might (and will) come before the v1.0.0 release.
			Please stay tuned for this stable version which will deliver specification such complete and precise 
			that independent implementation of the format will be possible.
		</p>
		
		<h2>
			<m:name/> data format
		</h2>
			
		<h3>Stream structure structure</h3>
		
		
		<m:tabulka>
			id	name	description
			0x1D	start	start of the relation
			0x1E	record	start of the record
		</m:tabulka>
		
		
		<h3>Data types</h3>
		
		<p>Currently, there are only three data types.</p>
		
		<m:tabulka>
			typeId	code	description
			0x01	boolean	logical value, true/false
			0x02	integer	unsigned integer number of arbitrary length
			0x03	string	character string in UTF-8
		</m:tabulka>
		
		<h2>Libraries</h2>
		
		<h3>relpipe-lib-writer</h3>
		
		<p>Wraps an output stream (usually STDOUT), accepts method calls (relations, attributes) and generates <m:name/> data on the stream.</p>
		
		<h3>relpipe-lib-reader</h3>
		
		<p>
			Wraps an input stream (usually STDIN). The caller creates and sets handlers (zero or more) using <code>addHandler()</code> and then calls <code>process()</code> method.
			During this method call, the reader reads the input and calls the handlers.
			Handlers receive relations and attributes.
		</p>
		
		<h2>Tools</h2>
		
		<h3>relpipe-in-cli</h3>
		<h3>relpipe-in-fstab</h3>
		<h3>relpipe-out-tabular</h3>
		<h3>relpipe-out-xml</h3>
		<h3>relpipe-out-qui</h3>
		
	</text>

</stránka>