source: trunk/examples/zoo/binary/tool.xml @ 684

Last change on this file since 684 was 684, checked in by mmc, 17 years ago

Fixed the Rappture::encoding Tcl bindings to handle binary data
properly. Fixed the tests to reflect the changes.

Added an example of using a <string> object for binary data.

File size: 863 bytes
Line 
1<?xml version="1.0"?>
2<run>
3<tool>
4  <title>string</title>
5  <about>Example of using a Rappture &lt;string&gt; object to handle binary data.
6
7Strings are bits of text--ASCII or binary.  When a binary file is loaded, the string object shows some description of the data.  If the string is set to the size of a line (e.g., 40x1), it shows only the file size.  If the string is set to a larger area, it shows a hex dump of the data.
8
9Upload a gzipped tar file.  When you click the Simulate button, the output will show a table of contents.
10  </about>
11  <command>
12    tclsh @tool/tardir.tcl @driver
13  </command>
14</tool>
15<input>
16  <string id="tarball">
17    <about>
18      <label>Tarball</label>
19      <description>Upload a gzipped tar file (Unix-style archive file).</description>
20    </about>
21    <size>60x10</size>
22    <default></default>
23  </string>
24</input>
25</run>
Note: See TracBrowser for help on using the repository browser.