Ignore:
Timestamp:
Sep 14, 2009, 3:18:36 PM (15 years ago)
Author:
dkearney
Message:

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:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/objects/xmlparser/xmlparser.cc

    r1560 r1566  
    267267run.input.number(Ef).max 10eV\n\
    268268run.input.number(Ef).default 0eV\n\
    269 run.input.number(Ef).current 0eV\n";
     269run.input.number(Ef).current 0eV\n\
     270run.input.number(Ef).preset.value 300K\n\
     271run.input.number(Ef).preset.label 300K (room temperature)\n\
     272run.input.number(Ef).preset.value 77K\n\
     273run.input.number(Ef).preset.label 77K (liquid nitrogen)\n\
     274run.input.number(Ef).preset.value 4.2K\n\
     275run.input.number(Ef).preset.label 4.2K (liquid helium)\n\
     276";
    270277
    271278    const char *received = NULL;
     
    298305// FIXME: test get function
    299306// FIXME: test put function
     307// FIXME: test putf function
     308// FIXME: test appendf function
    300309// FIXME: look into why Rp_ParserXmlPathVal hits some nodes twice in gdb
    301310
Note: See TracChangeset for help on using the changeset viewer.