source: trunk/examples/objects/library/library_0_0_in.xml @ 1566

Last change on this file since 1566 was 1566, checked in by dkearney, 15 years ago

updates to Rappture::Library and Rappture::Number objects to demo how the library should store objects and generate the xml for those objects upon request. opting for configure() and dump() functions for objects. the object should know how to configure it self from a string of xml, tree object or (in the future) blob of hdf5. added some rudimentary examples of using the library object.

File size: 817 bytes
Line 
1<?xml version="1.0"?>
2<run>
3    <input>
4        <number id="Ef">
5            <about>
6                <label>Fermi Level</label>
7                <description>Energy at center of distribution.</description>
8            </about>
9            <units>eV</units>
10            <min>-10eV</min>
11            <max>10eV</max>
12            <default>0eV</default>
13            <current>5eV</current>
14            <preset>
15                <value>300K</value>
16                <label>300K (room temperature)</label>
17            </preset>
18            <preset>
19                <value>77K</value>
20                <label>77K (liquid nitrogen)</label>
21            </preset>
22            <preset>
23                <value>4.2K</value>
24                <label>4.2K (liquid helium)</label>
25            </preset>
26        </number>
27    </input>
28</run>
Note: See TracBrowser for help on using the repository browser.