<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.trainzsimulator.com/index.php?action=history&amp;feed=atom&amp;title=Incubator%2FDataBundleHelper</id>
	<title>Incubator/DataBundleHelper - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.trainzsimulator.com/index.php?action=history&amp;feed=atom&amp;title=Incubator%2FDataBundleHelper"/>
	<link rel="alternate" type="text/html" href="https://wiki.trainzsimulator.com/index.php?title=Incubator/DataBundleHelper&amp;action=history"/>
	<updated>2026-11-05T10:26:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.trainzsimulator.com/index.php?title=Incubator/DataBundleHelper&amp;diff=438&amp;oldid=prev</id>
		<title>Windwalkr: 1 revision</title>
		<link rel="alternate" type="text/html" href="https://wiki.trainzsimulator.com/index.php?title=Incubator/DataBundleHelper&amp;diff=438&amp;oldid=prev"/>
		<updated>2010-02-03T13:59:05Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:59, 3 February 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Windwalkr</name></author>
	</entry>
	<entry>
		<id>https://wiki.trainzsimulator.com/index.php?title=Incubator/DataBundleHelper&amp;diff=437&amp;oldid=prev</id>
		<title>Pguy at 21:27, 14 April 2009</title>
		<link rel="alternate" type="text/html" href="https://wiki.trainzsimulator.com/index.php?title=Incubator/DataBundleHelper&amp;diff=437&amp;oldid=prev"/>
		<updated>2009-04-14T21:27:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The [[Incubator/DataBundleHelper]] is an [[Incubator]] project to create a script helper library for managing abstract &amp;quot;data bundles&amp;quot; which can be passed around in a generic format, but which may be capable of performing specific operations in combination with other rules. An example of a useful data bundle is a Train Consist descriptor, which provides the data necessary to place a Train into the World.&lt;br /&gt;
&lt;br /&gt;
= Summary =&lt;br /&gt;
The [[Incubator/DataBundleHelper]] is a script library which allows &amp;quot;data bundles&amp;quot;, stored as soups, to be tagged with type information. Rules may register as &amp;quot;data handlers&amp;quot; for a given data type, which means that they will perform certain functions on behalf of the DataBundleHelper when dealing with that data type.&lt;br /&gt;
&lt;br /&gt;
Scripts may pass around data bundles without understanding the contents. The DataBundleHelper provides an abstract interface which allows scripts to query a human-readable name, a type token, and an icon for a given data bundle. The DataBundleHelper also allows the script to run an &amp;quot;action&amp;quot; against the data bundle, which is passed to the appropriate data handler.&lt;br /&gt;
&lt;br /&gt;
Some useful examples of a data bundle are a consist and a URL.&lt;br /&gt;
&lt;br /&gt;
Data bundles may be sent across the network, so should contain minimal overhead. In addition to the raw data, the DataBundleHelper should include a single &amp;quot;__type&amp;quot; tag which contains a string specifying the data type.&lt;br /&gt;
&lt;br /&gt;
Several priority levels are available when registering a &amp;quot;data handler&amp;quot;. Any requests for a given data type are sent to the appropriate handler with the lowest-numbered positive priority. Requests may be issued at a specific priority, in which case the lowest-numbered priority greater than the request priority is used (this allows helpers to be chained.)&lt;br /&gt;
&lt;br /&gt;
== Library interface specification ==&lt;br /&gt;
The DataBundleHelper library is called through standard LibraryCall(function,string[] sParm,GSObject[] oParm) interface.&lt;br /&gt;
Here are the [[Incubator/DataBundleHelper/Detailed specifications|detailed specifications]] for all the calls supported.&lt;br /&gt;
&lt;br /&gt;
== Data bundle reference ==&lt;br /&gt;
Data bundle operations are based on its &amp;quot;__type&amp;quot; tag which contains a user string specifying the data type.&amp;lt;br&amp;gt;&lt;br /&gt;
In order to guarantee the unicity of this &amp;quot;__type&amp;quot; tag, the section [[Incubator/DataBundleHelper type reference]] lists the current use of the &amp;quot;__type&amp;quot; tag. New databundle users should check this section before naming their type tag and should add a line in this wiki section to declare their type tag usage, so that everybody knows which type tag has been used and which one is available.&lt;/div&gt;</summary>
		<author><name>Pguy</name></author>
	</entry>
</feed>