diff --git a/InstallerBits/Licences/AUTHORS.txt b/InstallerBits/Licences/AUTHORS.txt new file mode 100644 index 00000000..c4de0e01 --- /dev/null +++ b/InstallerBits/Licences/AUTHORS.txt @@ -0,0 +1,14 @@ +The following people have been involved with the development of the NeXus source code + +Uwe Filges (CVS/ChangeLog username: uf) +Przemek Klosowski (CVS/ChangeLog username: pk) +Mark Koennecke (CVS/ChangeLog username: mk) +Nick Maliszewskyj (CVS/ChangeLog username: ncm) +Chris Moreton-Smith (CVS/ChangeLog username: cmm) +Ray Osborn (CVS/ChangeLog username: rio) +Jon Tischler (CVS/ChangeLog username: jzt) +Freddie Akeroyd (CVS/ChangeLog username: faa59) +Jens Krueger (CVS/ChangeLog username: jk) +Joern Beckmann (CVS/ChangeLog username: jb) +Peter Peterson (CVS/ChangeLog username: pfp) +Hartmut Gilde (CVS/ChangeLog username: hg) diff --git a/InstallerBits/Licences/COPYING.rtf b/InstallerBits/Licences/COPYING.rtf new file mode 100644 index 00000000..92702ee4 --- /dev/null +++ b/InstallerBits/Licences/COPYING.rtf @@ -0,0 +1,131 @@ +{\rtf1\adeflang1025\ansi\ansicpg1252\uc1\adeff0\deff0\stshfdbch0\stshfloch0\stshfhich0\stshfbi0\deflang1033\deflangfe1033{\fonttbl{\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f1\fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial;} +{\f2\fmodern\fcharset0\fprq1{\*\panose 02070309020205020404}Courier New;}{\f37\froman\fcharset238\fprq2 Times New Roman CE;}{\f38\froman\fcharset204\fprq2 Times New Roman Cyr;}{\f40\froman\fcharset161\fprq2 Times New Roman Greek;} +{\f41\froman\fcharset162\fprq2 Times New Roman Tur;}{\f42\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\f43\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\f44\froman\fcharset186\fprq2 Times New Roman Baltic;} +{\f45\froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\f47\fswiss\fcharset238\fprq2 Arial CE;}{\f48\fswiss\fcharset204\fprq2 Arial Cyr;}{\f50\fswiss\fcharset161\fprq2 Arial Greek;}{\f51\fswiss\fcharset162\fprq2 Arial Tur;} +{\f52\fbidi \fswiss\fcharset177\fprq2 Arial (Hebrew);}{\f53\fbidi \fswiss\fcharset178\fprq2 Arial (Arabic);}{\f54\fswiss\fcharset186\fprq2 Arial Baltic;}{\f55\fswiss\fcharset163\fprq2 Arial (Vietnamese);}{\f57\fmodern\fcharset238\fprq1 Courier New CE;} +{\f58\fmodern\fcharset204\fprq1 Courier New Cyr;}{\f60\fmodern\fcharset161\fprq1 Courier New Greek;}{\f61\fmodern\fcharset162\fprq1 Courier New Tur;}{\f62\fbidi \fmodern\fcharset177\fprq1 Courier New (Hebrew);} +{\f63\fbidi \fmodern\fcharset178\fprq1 Courier New (Arabic);}{\f64\fmodern\fcharset186\fprq1 Courier New Baltic;}{\f65\fmodern\fcharset163\fprq1 Courier New (Vietnamese);}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255; +\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0; +\red128\green128\blue128;\red192\green192\blue192;}{\stylesheet{\ql \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \rtlch\fcs1 \af0\afs24\alang1025 \ltrch\fcs0 \fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 +\snext0 Normal;}{\s2\ql \li0\ri0\sb240\sa60\keepn\widctlpar\wrapdefault\aspalpha\aspnum\faauto\outlinelevel1\adjustright\rin0\lin0\itap0 \rtlch\fcs1 \ab\ai\af1\afs28\alang1025 \ltrch\fcs0 \b\i\f1\fs28\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 +\sbasedon0 \snext0 \styrsid2637830 heading 2;}{\*\cs10 \additive \ssemihidden Default Paragraph Font;}{\* +\ts11\tsrowd\trftsWidthB3\trpaddl108\trpaddr108\trpaddfl3\trpaddft3\trpaddfb3\trpaddfr3\tblind0\tblindtype3\tscellwidthfts0\tsvertalt\tsbrdrt\tsbrdrl\tsbrdrb\tsbrdrr\tsbrdrdgl\tsbrdrdgr\tsbrdrh\tsbrdrv +\ql \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \fs20\lang1024\langfe1024\cgrid\langnp1024\langfenp1024 \snext11 \ssemihidden Normal Table;}{\*\cs15 \additive \rtlch\fcs1 \af0 +\ltrch\fcs0 \ul\cf2 \sbasedon10 \styrsid12933061 Hyperlink;}{\*\ts16\tsrowd\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 +\trftsWidthB3\trpaddl108\trpaddr108\trpaddfl3\trpaddft3\trpaddfb3\trpaddfr3\tblind0\tblindtype0\tscellwidthfts0\tsvertalt\tsbrdrt\tsbrdrl\tsbrdrb\tsbrdrr\tsbrdrdgl\tsbrdrdgr\tsbrdrh\tsbrdrv +\ql \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \rtlch\fcs1 \af0\afs20\alang1025 \ltrch\fcs0 \fs20\lang1024\langfe1024\cgrid\langnp1024\langfenp1024 \sbasedon11 \snext16 \styrsid12933061 Table Grid;}{\*\cs17 +\additive \rtlch\fcs1 \af0 \ltrch\fcs0 \ul\cf12 \sbasedon10 \styrsid616184 FollowedHyperlink;}{\s18\ql \li0\ri0\widctlpar +\tx916\tx1832\tx2748\tx3664\tx4580\tx5496\tx6412\tx7328\tx8244\tx9160\tx10076\tx10992\tx11908\tx12824\tx13740\tx14656\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \rtlch\fcs1 \af2\afs20\alang1025 \ltrch\fcs0 +\f2\fs20\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 \sbasedon0 \snext18 \styrsid616184 HTML Preformatted;}}{\*\latentstyles\lsdstimax156\lsdlockeddef0}{\*\pgptbl {\pgp\ipgp0\itap0\li0\ri0\sb0\sa0}}{\*\rsidtbl \rsid96589\rsid423131\rsid471429 +\rsid600082\rsid616184\rsid725387\rsid806464\rsid818576\rsid1051552\rsid1312291\rsid1377015\rsid1517460\rsid1539703\rsid1977259\rsid2119668\rsid2370198\rsid2637830\rsid3304577\rsid3497533\rsid4550405\rsid4590962\rsid4606058\rsid4654447\rsid4916698 +\rsid5663267\rsid6244934\rsid6696468\rsid6829057\rsid6881317\rsid7147049\rsid7426348\rsid7555177\rsid7560631\rsid7562219\rsid7616615\rsid7934244\rsid8079013\rsid8276379\rsid8421298\rsid8601157\rsid8720034\rsid8979643\rsid9006469\rsid9131608\rsid9922756 +\rsid9975124\rsid11012224\rsid11084197\rsid11279011\rsid11614071\rsid11667494\rsid12389127\rsid12675268\rsid12792798\rsid12933061\rsid13727994\rsid13911058\rsid13979980\rsid14041793\rsid14288417\rsid14752071\rsid15020551\rsid15159816\rsid15888689 +\rsid15949818\rsid15954248\rsid16194217}{\*\generator Microsoft Word 11.0.8026;}{\info{\title To be filled in later}{\author Freddie Akeroyd}{\operator }{\creatim\yr2006\mo1\dy10\hr9\min49}{\revtim\yr2006\mo9\dy25\hr12\min20}{\version18}{\edmins91} +{\nofpages1}{\nofwords471}{\nofchars2689}{\*\company CCLRC}{\nofcharsws3154}{\vern24609}{\*\password 00000000}}{\*\xmlnstbl {\xmlns1 urn:schemas-microsoft-com:office:smarttags}} +\paperw12240\paperh15840\margl1800\margr1800\margt1440\margb1440\gutter0\ltrsect \widowctrl\ftnbj\aenddoc\noxlattoyen\expshrtn\noultrlspc\dntblnsbdb\nospaceforul\hyphcaps0\formshade\horzdoc\dgmargin\dghspace180\dgvspace180\dghorigin1800\dgvorigin1440 +\dghshow1\dgvshow1\jexpand\viewkind1\viewscale100\pgbrdrhead\pgbrdrfoot\splytwnine\ftnlytwnine\htmautsp\nolnhtadjtbl\useltbaln\alntblind\lytcalctblwd\lyttblrtgr\lnbrkrule\nobrkwrptbl\snaptogridincell\allowfieldendsel\wrppunct\asianbrkrule\rsidroot6696468 +\fet0{\*\wgrffmtfilter 013f}\ilfomacatclnup0\ltrpar \sectd \ltrsect\linex0\headery708\footery708\colsx708\endnhere\sectlinegrid360\sectdefaultcl\sftnbj {\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl2 +\pnucltr\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang {\pntxta )}}{\*\pnseclvl5\pndec\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl6 +\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang +{\pntxtb (}{\pntxta )}}\pard\plain \ltrpar\ql \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid9131608 \rtlch\fcs1 \af0\afs24\alang1025 \ltrch\fcs0 \fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 { +\rtlch\fcs1 \af0\afs44 \ltrch\fcs0 \fs44\insrsid12675268 Licens}{\rtlch\fcs1 \af0\afs44 \ltrch\fcs0 \fs44\insrsid14752071\charrsid14752071 e}{\rtlch\fcs1 \af0\afs44 \ltrch\fcs0 \fs44\insrsid13979980 Information}{\rtlch\fcs1 \af0\afs44 \ltrch\fcs0 +\fs44\insrsid14752071\charrsid14752071 +\par }{\rtlch\fcs1 \af0\afs36 \ltrch\fcs0 \fs36\insrsid14752071 +\par }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid12933061\charrsid9131608 The NeXus library and utilities are distributed under the terms on the }{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid12933061\charrsid9131608 GNU Lesser }{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 +\b\insrsid14041793\charrsid9131608 General }{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid12675268 Public Licens}{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid12933061\charrsid9131608 e (LGPL)}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid12933061\charrsid9131608 +\endash see the enclosed }{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid7147049\charrsid7147049 COPYING_NeXus}{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid12933061\charrsid7147049 .txt}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid12933061\charrsid9131608 file }{ +\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid14041793\charrsid9131608 or }{\field\flddirty{\*\fldinst {\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid14041793\charrsid9131608 HYPERLINK "http://www.opensource.org/licenses/lgpl-license.php" }{\rtlch\fcs1 \af0 \ltrch\fcs0 +\insrsid1312291\charrsid9131608 {\*\datafield +00d0c9ea79f9bace118c8200aa004ba90b02000000170000003400000068007400740070003a002f002f007700770077002e006f00700065006e0073006f0075007200630065002e006f00720067002f006c006900630065006e007300650073002f006c00670070006c002d006c006900630065006e00730065002e007000 +680070000000e0c9ea79f9bace118c8200aa004ba90b6800000068007400740070003a002f002f007700770077002e006f00700065006e0073006f0075007200630065002e006f00720067002f006c006900630065006e007300650073002f006c00670070006c002d006c006900630065006e00730065002e007000680070 +00000000000000000000c5}}}{\fldrslt {\rtlch\fcs1 \af0 \ltrch\fcs0 \cs15\ul\cf2\insrsid14041793\charrsid9131608 http://www.opensource.org/licenses/lgpl-license.php}}}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid14041793\charrsid9131608 }{\rtlch\fcs1 \af0 +\ltrch\fcs0 \insrsid12933061\charrsid9131608 for further details.}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid14041793\charrsid9131608 The NeXus library }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid8979643\charrsid9131608 is linked statically against Michael Sweet +\rquote s}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid14041793\charrsid9131608 Mini-XML parsing library (}{\field\flddirty{\*\fldinst {\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid14041793\charrsid9131608 HYPERLINK "http://www.easysw.com/~mike/mxml/" }{\rtlch\fcs1 +\af0 \ltrch\fcs0 \insrsid1312291\charrsid9131608 {\*\datafield +00d0c9ea79f9bace118c8200aa004ba90b02000000170000002200000068007400740070003a002f002f007700770077002e006500610073007900730077002e0063006f006d002f007e006d0069006b0065002f006d0078006d006c002f000000e0c9ea79f9bace118c8200aa004ba90b4400000068007400740070003a00 +2f002f007700770077002e006500610073007900730077002e0063006f006d002f007e006d0069006b0065002f006d0078006d006c002f00000000000000000000ff}}}{\fldrslt {\rtlch\fcs1 \af0 \ltrch\fcs0 \cs15\ul\cf2\insrsid14041793\charrsid9131608 http://www.easysw.com/~mike/mxml/} +}}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid14041793\charrsid9131608 ) which is also governed by the }{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid14041793\charrsid7147049 LGPL}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid14041793\charrsid9131608 . +\par }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid12933061\charrsid9131608 +\par In addition to the NeXus libraries, this kit }{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid12933061\charrsid9131608 will also install DLLs from other packages}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid12933061\charrsid9131608 + that have been linked into the NeXus library. These package}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid12675268 s and their licens}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid12933061\charrsid9131608 es are as follows: +\par +\par }{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid8979643\charrsid9131608 libxml2.dll}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid8979643\charrsid9131608 is from the XML C Parser for GNOME (}{\field\flddirty{\*\fldinst {\rtlch\fcs1 \af0 \ltrch\fcs0 +\insrsid8979643\charrsid9131608 HYPERLINK "http://xmlsoft.org/" }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid1312291\charrsid9131608 {\*\datafield +00d0c9ea79f9bace118c8200aa004ba90b02000000170000001400000068007400740070003a002f002f0078006d006c0073006f00660074002e006f00720067002f000000e0c9ea79f9bace118c8200aa004ba90b2800000068007400740070003a002f002f0078006d006c0073006f00660074002e006f00720067002f00 +000000000000000000c5}}}{\fldrslt {\rtlch\fcs1 \af0 \ltrch\fcs0 \cs15\ul\cf2\insrsid8979643\charrsid9131608 http://xmlsoft.org/}}}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid8979643\charrsid9131608 )}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7555177\charrsid9131608 +.}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid8979643\charrsid9131608 Its distribut}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid12675268 ion is covered by the MIT Licens}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid8979643\charrsid9131608 e }{\rtlch\fcs1 \af0 \ltrch\fcs0 +\insrsid7555177\charrsid9131608 which is }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid8979643\charrsid9131608 detailed in the enclosed }{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid8979643\charrsid9131608 COPYING_libxml2.txt}{\rtlch\fcs1 \af0 \ltrch\fcs0 +\insrsid8979643\charrsid9131608 file and }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7555177\charrsid9131608 also }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid8979643\charrsid9131608 at }{\field\flddirty{\*\fldinst {\rtlch\fcs1 \af0 \ltrch\fcs0 +\insrsid8979643\charrsid9131608 HYPERLINK "http://www.opensource.org/licenses/mit-license.html" }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid1312291\charrsid9131608 {\*\datafield +00d0c9ea79f9bace118c8200aa004ba90b02000000170000003400000068007400740070003a002f002f007700770077002e006f00700065006e0073006f0075007200630065002e006f00720067002f006c006900630065006e007300650073002f006d00690074002d006c006900630065006e00730065002e0068007400 +6d006c000000e0c9ea79f9bace118c8200aa004ba90b6800000068007400740070003a002f002f007700770077002e006f00700065006e0073006f0075007200630065002e006f00720067002f006c006900630065006e007300650073002f006d00690074002d006c006900630065006e00730065002e00680074006d006c +0000000000000000000000}}}{\fldrslt {\rtlch\fcs1 \af0 \ltrch\fcs0 \cs15\ul\cf2\insrsid8979643\charrsid9131608 http://www.opensource.org/licenses/mit-license.html}}}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid8979643\charrsid9131608 +\par +\par }{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid7555177\charrsid9131608 hd*.dll }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7555177\charrsid9131608 and}{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid7555177\charrsid9131608 hm*.dll files }{\rtlch\fcs1 \af0 +\ltrch\fcs0 \insrsid7555177\charrsid9131608 are the HDF4 libraries developed at the +\par {\*\xmlopen\xmlns1{\factoidname PlaceName}}{\*\xmlopen\xmlns1{\factoidname place}}{\*\xmlopen\xmlns1{\factoidname PlaceName}}National{\*\xmlclose} {\*\xmlopen\xmlns1{\factoidname PlaceType}}Center{\*\xmlclose}{\*\xmlclose}{\*\xmlclose} + for Supercomputing Applications (NCSA) at the +\par {\*\xmlopen\xmlns1{\factoidname PlaceType}}{\*\xmlopen\xmlns1{\factoidname place}}{\*\xmlopen\xmlns1{\factoidname PlaceType}}University{\*\xmlclose} of {\*\xmlopen\xmlns1{\factoidname PlaceName}}Illinois{\*\xmlclose}{\*\xmlclose}{\*\xmlclose} + at Urbana-Champaign (}{\field\flddirty{\*\fldinst {\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7555177\charrsid9131608 HYPERLINK "http://hdf.ncsa.uiuc.edu/" }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid1312291\charrsid9131608 {\*\datafield +00d0c9ea79f9bace118c8200aa004ba90b02000000170000001a00000068007400740070003a002f002f006800640066002e006e006300730061002e0075006900750063002e006500640075002f000000e0c9ea79f9bace118c8200aa004ba90b3400000068007400740070003a002f002f006800640066002e006e006300 +730061002e0075006900750063002e006500640075002f0000000000000000000000}}}{\fldrslt {\rtlch\fcs1 \af0 \ltrch\fcs0 \cs15\ul\cf2\insrsid7555177\charrsid9131608 http://hdf.ncsa.uiuc.edu/}}}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7555177\charrsid9131608 +). Their distr}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid12675268 ibution is covered by the licens}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7555177\charrsid9131608 e detailed in the enclosed }{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid7555177\charrsid9131608 C +OPYING_hdf4.txt }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7555177\charrsid9131608 file and at }{\field\flddirty{\*\fldinst {\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7555177\charrsid9131608 + HYPERLINK "ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF_Current/src/unpacked/COPYING" }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid1312291\charrsid9131608 {\*\datafield +00d0c9ea79f9bace118c8200aa004ba90b0200000017000000410000006600740070003a002f002f006600740070002e006e006300730061002e0075006900750063002e006500640075002f004800440046002f004800440046002f004800440046005f00430075007200720065006e0074002f007300720063002f007500 +6e007000610063006b00650064002f0043004f005000590049004e0047000000e0c9ea79f9bace118c8200aa004ba90b820000006600740070003a002f002f006600740070002e006e006300730061002e0075006900750063002e006500640075002f004800440046002f004800440046002f004800440046005f00430075 +007200720065006e0074002f007300720063002f0075006e007000610063006b00650064002f0043004f005000590049004e0047000000000000000000}}}{\fldrslt {\rtlch\fcs1 \af0 \ltrch\fcs0 \cs15\ul\cf2\insrsid7555177\charrsid9131608 +ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF_Current/src/unpacked/COPYING}}}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7555177\charrsid9131608 +\par +\par }{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid1539703 h}{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid7555177\charrsid9131608 df5dll.dll }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7555177\charrsid9131608 is the HDF5 library developed at the +\par {\*\xmlopen\xmlns1{\factoidname PlaceName}}{\*\xmlopen\xmlns1{\factoidname place}}{\*\xmlopen\xmlns1{\factoidname PlaceName}}National{\*\xmlclose} {\*\xmlopen\xmlns1{\factoidname PlaceType}}Center{\*\xmlclose}{\*\xmlclose}{\*\xmlclose} + for Supercomputing Applications (NCSA) at the +\par {\*\xmlopen\xmlns1{\factoidname place}}{\*\xmlopen\xmlns1{\factoidname place}}{\*\xmlopen\xmlns1{\factoidname PlaceType}}University{\*\xmlclose} of {\*\xmlopen\xmlns1{\factoidname place}}Illinois{\*\xmlclose}{\*\xmlclose}{\*\xmlclose} + at Urbana-Champaign (}{\field\flddirty{\*\fldinst {\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7555177\charrsid9131608 HYPERLINK "http://hdf.ncsa.uiuc.edu/" }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid1312291\charrsid9131608 {\*\datafield +00d0c9ea79f9bace118c8200aa004ba90b02000000170000001a00000068007400740070003a002f002f006800640066002e006e006300730061002e0075006900750063002e006500640075002f000000e0c9ea79f9bace118c8200aa004ba90b3400000068007400740070003a002f002f006800640066002e006e006300 +730061002e0075006900750063002e006500640075002f0000000000000000000000}}}{\fldrslt {\rtlch\fcs1 \af0 \ltrch\fcs0 \cs15\ul\cf2\insrsid7555177\charrsid9131608 http://hdf.ncsa.uiuc.edu/}}}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7555177\charrsid9131608 ). Distr}{ +\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid12675268 ibution is covered by the licens}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7555177\charrsid9131608 e detailed in the enclosed }{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid7555177\charrsid9131608 COPYING_hdf5.txt }{ +\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7555177\charrsid9131608 file and at }{\field\flddirty{\*\fldinst {\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7555177\charrsid9131608 HYPERLINK "ftp://ftp.ncsa.uiuc.edu/HDF/HDF5/current/src/unpacked/COPYING" }{\rtlch\fcs1 +\af0 \ltrch\fcs0 \insrsid1312291\charrsid9131608 {\*\datafield +00d0c9ea79f9bace118c8200aa004ba90b02000000170000003e0000006600740070003a002f002f006600740070002e006e006300730061002e0075006900750063002e006500640075002f004800440046002f0048004400460035002f00630075007200720065006e0074002f007300720063002f0075006e0070006100 +63006b00650064002f0043004f005000590049004e0047000000e0c9ea79f9bace118c8200aa004ba90b7c0000006600740070003a002f002f006600740070002e006e006300730061002e0075006900750063002e006500640075002f004800440046002f0048004400460035002f00630075007200720065006e0074002f +007300720063002f0075006e007000610063006b00650064002f0043004f005000590049004e0047000000000000000000}}}{\fldrslt {\rtlch\fcs1 \af0 \ltrch\fcs0 \cs15\ul\cf2\insrsid7555177\charrsid9131608 ftp://ftp.ncsa.uiuc.edu/HDF/HDF5/current/src/unpacked/COPYING}}}{ +\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7555177\charrsid9131608 +\par +\par }{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid1539703 s}{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid7555177\charrsid9131608 zlibdll.dll }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7555177\charrsid9131608 is the }{\rtlch\fcs1 \af0 \ltrch\fcs0 +\insrsid15888689\charrsid9131608 decoder-only version of the SZIP compression library \endash it }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid1539703 is licensed for use}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid15888689\charrsid9131608 + only in conjunction with the enclosed HDF software. For further information see }{\field\flddirty{\*\fldinst {\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid15888689\charrsid9131608 HYPERLINK "http://hdf.ncsa.uiuc.edu/doc_resource/SZIP/" }{\rtlch\fcs1 \af0 +\ltrch\fcs0 \insrsid1312291\charrsid9131608 {\*\datafield +00d0c9ea79f9bace118c8200aa004ba90b02000000170000002c00000068007400740070003a002f002f006800640066002e006e006300730061002e0075006900750063002e006500640075002f0064006f0063005f007200650073006f0075007200630065002f0053005a00490050002f000000e0c9ea79f9bace118c82 +00aa004ba90b5800000068007400740070003a002f002f006800640066002e006e006300730061002e0075006900750063002e006500640075002f0064006f0063005f007200650073006f0075007200630065002f0053005a00490050002f000000000000000000}}}{\fldrslt {\rtlch\fcs1 \af0 \ltrch\fcs0 +\cs15\ul\cf2\insrsid15888689\charrsid9131608 http://hdf.ncsa.uiuc.edu/doc_resource/SZIP/}}}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid15888689\charrsid9131608 and }{\field\flddirty{\*\fldinst {\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid15888689\charrsid9131608 + HYPERLINK "http://hdf.ncsa.uiuc.edu/doc_resource/SZIP/Commercial_szip.html" }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid1312291\charrsid9131608 {\*\datafield +00d0c9ea79f9bace118c8200aa004ba90b02000000170000004000000068007400740070003a002f002f006800640066002e006e006300730061002e0075006900750063002e006500640075002f0064006f0063005f007200650073006f0075007200630065002f0053005a00490050002f0043006f006d006d0065007200 +6300690061006c005f0073007a00690070002e00680074006d006c000000e0c9ea79f9bace118c8200aa004ba90b8000000068007400740070003a002f002f006800640066002e006e006300730061002e0075006900750063002e006500640075002f0064006f0063005f007200650073006f0075007200630065002f0053 +005a00490050002f0043006f006d006d00650072006300690061006c005f0073007a00690070002e00680074006d006c000000000000000000}}}{\fldrslt {\rtlch\fcs1 \af0 \ltrch\fcs0 \cs15\ul\cf2\insrsid15888689\charrsid9131608 +http://hdf.ncsa.uiuc.edu/doc_resource/SZIP/Commercial_szip.html}}}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7555177\charrsid9131608 +\par }{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid7555177\charrsid9131608 +\par }{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid725387\charrsid9131608 z}{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid7555177\charrsid9131608 lib1.dll }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7555177\charrsid9131608 is }{\rtlch\fcs1 \af0 \ltrch\fcs0 +\insrsid725387\charrsid9131608 from the the ZLIB compression library }{\field{\*\fldinst {\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid11279011 HYPERLINK "}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid11279011\charrsid11279011 http://www.gzip.org/}{\rtlch\fcs1 \af0 +\ltrch\fcs0 \insrsid11279011 zlib/" }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid1312291 {\*\datafield +00d0c9ea79f9bace118c8200aa004ba90b02000000170000001a00000068007400740070003a002f002f007700770077002e0067007a00690070002e006f00720067002f007a006c00690062002f000000e0c9ea79f9bace118c8200aa004ba90b3400000068007400740070003a002f002f007700770077002e0067007a00 +690070002e006f00720067002f007a006c00690062002f0000000000000000}}}{\fldrslt {\rtlch\fcs1 \af0 \ltrch\fcs0 \cs15\ul\cf2\insrsid11279011\charrsid7934244 http://www.gzip.org/zlib/}}}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid11279011 }{\rtlch\fcs1 \af0 +\ltrch\fcs0 \insrsid725387\charrsid9131608 . Its distribution is covered by the lic}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid12675268 ens}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid725387\charrsid9131608 e detailed in the enclosed COPYING_zlib.txt and also at } +{\field\flddirty{\*\fldinst {\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid725387\charrsid9131608 HYPERLINK "http://www.zlib.net/zlib_license.html" }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid1312291\charrsid9131608 {\*\datafield +00d0c9ea79f9bace118c8200aa004ba90b02000000170000002600000068007400740070003a002f002f007700770077002e007a006c00690062002e006e00650074002f007a006c00690062005f006c006900630065006e00730065002e00680074006d006c000000e0c9ea79f9bace118c8200aa004ba90b4c0000006800 +7400740070003a002f002f007700770077002e007a006c00690062002e006e00650074002f007a006c00690062005f006c006900630065006e00730065002e00680074006d006c000000000000000000}}}{\fldrslt {\rtlch\fcs1 \af0 \ltrch\fcs0 \cs15\ul\cf2\insrsid725387\charrsid9131608 +http://www.zlib.net/zlib_license.html}}}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7555177\charrsid9131608 +\par }{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid725387\charrsid9131608 +\par iconv.dll }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid1539703\charrsid1539703 is from the GNU ICONV library (}{\field\flddirty{\*\fldinst {\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid1539703\charrsid1539703 HYPERLINK "http://www.gnu.org/software/libiconv/" }{ +\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid1312291\charrsid1539703 {\*\datafield +00d0c9ea79f9bace118c8200aa004ba90b02000000170000002600000068007400740070003a002f002f007700770077002e0067006e0075002e006f00720067002f0073006f006600740077006100720065002f006c0069006200690063006f006e0076002f000000e0c9ea79f9bace118c8200aa004ba90b4c0000006800 +7400740070003a002f002f007700770077002e0067006e0075002e006f00720067002f0073006f006600740077006100720065002f006c0069006200690063006f006e0076002f000000000000000000}}}{\fldrslt {\rtlch\fcs1 \af0 \ltrch\fcs0 \cs15\ul\cf2\insrsid1539703\charrsid1539703 +http://www.gnu.org/software/libiconv/}}}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid1539703\charrsid1539703 ). It is distributed under the terms of the }{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid12675268 GNU Lesser General Public Licens}{\rtlch\fcs1 \ab\af0 +\ltrch\fcs0 \b\insrsid11667494\charrsid9131608 e (LGPL)}{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid7147049 }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7147049\charrsid7147049 as detailed in the enclosed COPYING_iconv.txt}{\rtlch\fcs1 \af0 \ltrch\fcs0 +\insrsid7147049 and at }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid1539703\charrsid1539703 .}{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7147049\charrsid7147049 }{\field\flddirty{\*\fldinst {\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid7147049\charrsid9131608 + HYPERLINK "http://www.opensource.org/licenses/lgpl-license.php" }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid1312291\charrsid9131608 {\*\datafield +00d0c9ea79f9bace118c8200aa004ba90b02000000170000003400000068007400740070003a002f002f007700770077002e006f00700065006e0073006f0075007200630065002e006f00720067002f006c006900630065006e007300650073002f006c00670070006c002d006c006900630065006e00730065002e007000 +680070000000e0c9ea79f9bace118c8200aa004ba90b6800000068007400740070003a002f002f007700770077002e006f00700065006e0073006f0075007200630065002e006f00720067002f006c006900630065006e007300650073002f006c00670070006c002d006c006900630065006e00730065002e007000680070 +0000000000000000000000}}}{\fldrslt {\rtlch\fcs1 \af0 \ltrch\fcs0 \cs15\ul\cf2\insrsid7147049\charrsid9131608 http://www.opensource.org/licenses/lgpl-license.php}}}{\rtlch\fcs1 \ab\af0 \ltrch\fcs0 \b\insrsid725387\charrsid1539703 +\par }{\rtlch\fcs1 \af0 \ltrch\fcs0 \insrsid1051552\charrsid9131608 +\par }} \ No newline at end of file diff --git a/InstallerBits/Licences/COPYING.txt b/InstallerBits/Licences/COPYING.txt new file mode 100644 index 00000000..16adb434 --- /dev/null +++ b/InstallerBits/Licences/COPYING.txt @@ -0,0 +1,34 @@ +License Information + +The NeXus library and utilities are distributed under the terms on the GNU Lesser General Public License (LGPL) – +see the enclosed COPYING_NeXus.txt file or http://www.opensource.org/licenses/lgpl-license.php for further details. +The NeXus library is linked statically against Michael Sweet’s Mini-XML parsing library (http://www.easysw.com/~mike/mxml/) +which is also governed by the LGPL. + +In addition to the NeXus libraries, this kit will also install DLLs from other packages that have been linked into +the NeXus library. These packages and their licenses are as follows: + +libxml2.dll is from the XML C Parser for GNOME (http://xmlsoft.org/). Its distribution is covered by the MIT License +which is detailed in the enclosed COPYING_libxml2.txt file and also at http://www.opensource.org/licenses/mit-license.html + +hd*.dll and hm*.dll files are the HDF4 libraries developed at the +National Center for Supercomputing Applications (NCSA) at the +University of Illinois at Urbana-Champaign (http://hdf.ncsa.uiuc.edu/). Their distribution is covered by the license detailed +in the enclosed COPYING_hdf4.txt file and at ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF_Current/src/unpacked/COPYING + +hdf5dll.dll is the HDF5 library developed at the +National Center for Supercomputing Applications (NCSA) at the +University of Illinois at Urbana-Champaign (http://hdf.ncsa.uiuc.edu/). Distribution is covered by the license detailed in +the enclosed COPYING_hdf5.txt file and at ftp://ftp.ncsa.uiuc.edu/HDF/HDF5/current/src/unpacked/COPYING + +szlibdll.dll is the decoder-only version of the SZIP compression library – it is licensed for use only in conjunction with +the enclosed HDF software. For further information see http://hdf.ncsa.uiuc.edu/doc_resource/SZIP/ and +http://hdf.ncsa.uiuc.edu/doc_resource/SZIP/Commercial_szip.html + +zlib1.dll is from the the ZLIB compression library http://www.gzip.org/zlib/ . Its distribution is covered by the +license detailed in the enclosed COPYING_zlib.txt and also at http://www.zlib.net/zlib_license.html + +iconv.dll is from the GNU ICONV library (http://www.gnu.org/software/libiconv/). It is distributed under the terms +of the GNU Lesser General Public License (LGPL) as detailed in the enclosed COPYING_iconv.txt and at . +http://www.opensource.org/licenses/lgpl-license.php + diff --git a/InstallerBits/Licences/COPYING_hdf4.txt b/InstallerBits/Licences/COPYING_hdf4.txt new file mode 100644 index 00000000..e4e197a9 --- /dev/null +++ b/InstallerBits/Licences/COPYING_hdf4.txt @@ -0,0 +1,51 @@ +------------------------------------------------------------------ + +Copyright Notice and Statement for NCSA Hierarchical Data Format (HDF) +Software Library and Utilities + +Copyright 1988-2005 The Board of Trustees of the University of Illinois + +All rights reserved. + +Contributors: National Center for Supercomputing Applications +(NCSA) at the University of Illinois, Fortner Software, Unidata +Program Center (netCDF), The Independent JPEG Group (JPEG), +Jean-loup Gailly and Mark Adler (gzip), and Digital Equipment +Corporation (DEC). + +Redistribution and use in source and binary forms, with or without +modification, are permitted for any purpose (including commercial +purposes) provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright +notice, this list of conditions, and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions, and the following disclaimer in the +documentation and/or materials provided with the distribution. + +3. In addition, redistributions of modified forms of the source or +binary code must carry prominent notices stating that the original +code was changed and the date of the change. + +4. All publications or advertising materials mentioning features or use +of this software are asked, but not required, to acknowledge that it was +developed by the National Center for Supercomputing Applications at the +University of Illinois at Urbana-Champaign and credit the contributors. + +5. Neither the name of the University nor the names of the Contributors +may be used to endorse or promote products derived from this software +without specific prior written permission from the University or the +Contributors. + +DISCLAIMER + +THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY AND THE CONTRIBUTORS "AS IS" +WITH NO WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED. In no event +shall the University or the Contributors be liable for any damages +suffered by the users arising out of the use of this software, even if +advised of the possibility of such damage. + + + + diff --git a/InstallerBits/Licences/COPYING_hdf5.txt b/InstallerBits/Licences/COPYING_hdf5.txt new file mode 100644 index 00000000..7f0f5cb2 --- /dev/null +++ b/InstallerBits/Licences/COPYING_hdf5.txt @@ -0,0 +1,74 @@ +Copyright Notice and Statement for NCSA Hierarchical Data Format (HDF) +Software Library and Utilities + +NCSA HDF5 (Hierarchical Data Format 5) Software Library and Utilities +Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the Board of +Trustees of the University of Illinois. All rights reserved. + +Contributors: National Center for Supercomputing Applications (NCSA) at the +University of Illinois at Urbana-Champaign (UIUC), Lawrence Livermore +National Laboratory (LLNL), Sandia National Laboratories (SNL), Los Alamos +National Laboratory (LANL), Jean-loup Gailly and Mark Adler (gzip library). + +Redistribution and use in source and binary forms, with or without +modification, are permitted for any purpose (including commercial purposes) +provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, + this list of conditions, and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions, and the following disclaimer in the documentation + and/or materials provided with the distribution. + +3. In addition, redistributions of modified forms of the source or binary + code must carry prominent notices stating that the original code was + changed and the date of the change. + +4. All publications or advertising materials mentioning features or use of + this software are asked, but not required, to acknowledge that it was + developed by the National Center for Supercomputing Applications at the + University of Illinois at Urbana-Champaign and to credit the contributors. + +5. Neither the name of the University nor the names of the Contributors may + be used to endorse or promote products derived from this software without + specific prior written permission from the University or the Contributors, + as appropriate for the name(s) to be used. + +6. THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY AND THE CONTRIBUTORS "AS IS" + WITH NO WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED. In no event + shall the University or the Contributors be liable for any damages + suffered by the users arising out of the use of this software, even if + advised of the possibility of such damage. + +-------------------------------------------------------------------------- +Portions of HDF5 were developed with support from the University of +California, Lawrence Livermore National Laboratory (UC LLNL). +The following statement applies to those portions of the product +and must be retained in any redistribution of source code, binaries, +documentation, and/or accompanying materials: + + This work was partially produced at the University of California, + Lawrence Livermore National Laboratory (UC LLNL) under contract no. + W-7405-ENG-48 (Contract 48) between the U.S. Department of Energy + (DOE) and The Regents of the University of California (University) + for the operation of UC LLNL. + + DISCLAIMER: + This work was prepared as an account of work sponsored by an agency + of the United States Government. Neither the United States + Government nor the University of California nor any of their + employees, makes any warranty, express or implied, or assumes any + liability or responsibility for the accuracy, completeness, or + usefulness of any information, apparatus, product, or process + disclosed, or represents that its use would not infringe privately- + owned rights. Reference herein to any specific commercial products, + process, or service by trade name, trademark, manufacturer, or + otherwise, does not necessarily constitute or imply its endorsement, + recommendation, or favoring by the United States Government or the + University of California. The views and opinions of authors + expressed herein do not necessarily state or reflect those of the + United States Government or the University of California, and shall + not be used for advertising or product endorsement purposes. +-------------------------------------------------------------------------- + diff --git a/InstallerBits/Licences/COPYING_iconv.txt b/InstallerBits/Licences/COPYING_iconv.txt new file mode 100644 index 00000000..9dfe9622 --- /dev/null +++ b/InstallerBits/Licences/COPYING_iconv.txt @@ -0,0 +1,482 @@ + GNU LIBRARY GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1991 Free Software Foundation, Inc. + 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the library GPL. It is + numbered 2 because it goes with version 2 of the ordinary GPL.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Library General Public License, applies to some +specially designated Free Software Foundation software, and to any +other libraries whose authors decide to use it. You can use it for +your libraries, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if +you distribute copies of the library, or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link a program with the library, you must provide +complete object files to the recipients so that they can relink them +with the library, after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + Our method of protecting your rights has two steps: (1) copyright +the library, and (2) offer you this license which gives you legal +permission to copy, distribute and/or modify the library. + + Also, for each distributor's protection, we want to make certain +that everyone understands that there is no warranty for this free +library. If the library is modified by someone else and passed on, we +want its recipients to know that what they have is not the original +version, so that any problems introduced by others will not reflect on +the original authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that companies distributing free +software will individually obtain patent licenses, thus in effect +transforming the program into proprietary software. To prevent this, +we have made it clear that any patent must be licensed for everyone's +free use or not licensed at all. + + Most GNU software, including some libraries, is covered by the ordinary +GNU General Public License, which was designed for utility programs. This +license, the GNU Library General Public License, applies to certain +designated libraries. This license is quite different from the ordinary +one; be sure to read it in full, and don't assume that anything in it is +the same as in the ordinary license. + + The reason we have a separate public license for some libraries is that +they blur the distinction we usually make between modifying or adding to a +program and simply using it. Linking a program with a library, without +changing the library, is in some sense simply using the library, and is +analogous to running a utility program or application program. However, in +a textual and legal sense, the linked executable is a combined work, a +derivative of the original library, and the ordinary General Public License +treats it as such. + + Because of this blurred distinction, using the ordinary General +Public License for libraries did not effectively promote software +sharing, because most developers did not use the libraries. We +concluded that weaker conditions might promote sharing better. + + However, unrestricted linking of non-free programs would deprive the +users of those programs of all benefit from the free status of the +libraries themselves. This Library General Public License is intended to +permit developers of non-free programs to use free libraries, while +preserving your freedom as a user of such programs to change the free +libraries that are incorporated in them. (We have not seen how to achieve +this as regards changes in header files, but we have achieved it as regards +changes in the actual functions of the Library.) The hope is that this +will lead to faster development of free libraries. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, while the latter only +works together with the library. + + Note that it is possible for a library to be covered by the ordinary +General Public License rather than by this special one. + + GNU LIBRARY GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library which +contains a notice placed by the copyright holder or other authorized +party saying it may be distributed under the terms of this Library +General Public License (also called "this License"). Each licensee is +addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also compile or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + c) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + d) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the source code distributed need not include anything that is normally +distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Library General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + Appendix: How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + MA 02111-1307, USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! \ No newline at end of file diff --git a/InstallerBits/Licences/COPYING_libxml2.txt b/InstallerBits/Licences/COPYING_libxml2.txt new file mode 100644 index 00000000..3fa58551 --- /dev/null +++ b/InstallerBits/Licences/COPYING_libxml2.txt @@ -0,0 +1,8 @@ +The MIT License +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/InstallerBits/Licences/COPYING_nexus.txt b/InstallerBits/Licences/COPYING_nexus.txt new file mode 100644 index 00000000..4bc8bf8e --- /dev/null +++ b/InstallerBits/Licences/COPYING_nexus.txt @@ -0,0 +1,515 @@ + + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! + + + diff --git a/InstallerBits/Licences/COPYING_zlib.txt b/InstallerBits/Licences/COPYING_zlib.txt new file mode 100644 index 00000000..d4cea67b --- /dev/null +++ b/InstallerBits/Licences/COPYING_zlib.txt @@ -0,0 +1,38 @@ +zlib License +License +/* zlib.h -- interface of the 'zlib' general purpose compression library + version 1.2.2, October 3rd, 2004 + + Copyright (C) 1995-2004 Jean-loup Gailly and Mark Adler + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + + Jean-loup Gailly jloup@gzip.org + Mark Adler madler@alumni.caltech.edu + +*/ + + +Click here to return to the zlib Home Page. + +Last modified 3 October 2004 +Send all questions about zlib or its license to zlib@gzip.org + + Web page copyright © 1996-2004 Greg Roelofs and Jean-loup Gailly. + zlib software copyright © 1995-2004 Jean-loup Gailly and Mark Adler. + Primary site hosted by France Teaser. + zlib.org domain name donated by Andrew Green. diff --git a/Makefile.am b/Makefile.am index 11931bd7..7f14b203 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,8 +1,6 @@ #==================================================================== # NeXus - Neutron & X-ray Common Data Format # -# $Id$ -# # Top level Makefile for coordinating NeXus build # # Copyright (C) 2004 Freddie Akeroyd @@ -22,7 +20,7 @@ # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # -# For further information, see +# For further information, see # # @configure_input@ # @@ -34,12 +32,23 @@ test: check if BUILD_CONTRIB CONTRIB=contrib endif -SUBDIRS=include src bindings applications test scripts examples doc $(CONTRIB) +SUBDIRS=include src bindings applications test scripts examples doc macosx_install_kit $(CONTRIB) EXTRA_DIST=build_rules.am nexus_spec.in nexus.spec autoversion.sh \ build_rpm.in README.cygwin README.WIN32 README.macosx \ - README.MinGW make_mingw_links SConstruct nexus_scons_utils.py + README.MinGW make_mingw_links SConstruct nexus_scons_utils.py \ + configure_mingw_kit # Add any flags here that you want passed to configure when you do # a "make distcheck" # DISTCHECK_CONFIGURE_FLAGS=--without-java +MAINTAINERCLEANFILES = \ + ChangeLog \ + INSTALL \ + aclocal.m4 \ + config \ + configure \ + doc/tech_ref/NeXus_definitions.pdf \ + doc/tech_ref/NeXus_definitions.txt \ + include/nxconfig_h.in \ + `find "$(srcdir)" -type f -name Makefile.in -print` diff --git a/NEWS b/NEWS index bd251444..d9ad7931 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,85 @@ + +For the latest information see + + http://www.nexusformat.org/Nexus_42_Release_Notes + +Version 4.2.1 +============= + +The following new featues have been added: + +* NXbrowse now has readline support (i.e. previous command line recall and + TAB completion of entry names) +* new API functions NXgetpath() and NXgetversion() added +* NXgetnextentry() now uses less stack space + +Version 4.2.0 +============= + +==System Requirements== +'''MXML XML Parsing Library''' + +Version 2.2.2 or higher of mxml is required. Earlier versions have a bug and the XML API will not work. This package can be downloded in [http://www.easysw.com/~mike/mxml/software.php both source and binary rpm form] and is also available as part of [http://fedoraproject.org/wiki/Extras/UsingExtras Fedora Extras]. IMPORTANT NOTE: Debian also provides the mxml package, but it based on 2.0 and will not work properly. + +'''Python Interface''' +You will need both the numpy and ctypes modules to be available. These are provided in both the Fedora and EPEL repositories. + +==Building Notes== +===NAG F90/F95 Compiler=== +The NAG compiler needs the '''-mismatch''' flag to be specified or else it will not compile NXmodule.f90 This is achieve by running configure with the '''FCFLAGS''' environment variable set to contain the flag e.g. +
+env FCFLAGS="-mismatch" ./configure --with-f90=f95
+
+===HDF4 on Intel Macs=== +There is a problem with the include file, hdfi.h (normally in /usr/local/include). See http://coastwatch.noaa.gov/helparc/software/msg00069.html for details of the modifications necessary to fix it. + +==New Features== +===C++ Interface=== +See the [http://download.nexusformat.org/doxygen/html/classNeXus_1_1File.html doxygen documentation] and +[http://svn.nexusformat.org/code/branches/4.2/test/napi_test_cpp.cxx NeXus API test program] + +===C++ Stream Like interface=== +The idea is to provide an IOSteam like interface and allow you to type +
+    // create an entry and a data item
+    File nf(fname, NXACC_CREATE);
+    nf << Group("entry1", "NXentry") << Data("dat1", w, "int_attr", 3);
+    nf.close();
+
+    File nf1(fname, NXACC_RDWR);
+    // add a double_attr to an existing setup
+    nf1 >> Group("entry1", "NXentry") >> Data("dat1") << Attr("double_attr", 6.0);
+    nf1.close();
+
+    // read back data items
+    File nf2(fname, NXACC_READ);
+    nf2 >> Group("entry1", "NXentry") >> Data("dat1", w1, "int_attr", i, "double_attr", d);
+    // alternative way to read d1
+    nf2 >> Data("dat1") >> Attr("double_attr", d1);
+
+See also the [http://svn.nexusformat.org/code/branches/4.2/test/napi_test_cpp.cxx NeXus API test program] + +===IDL Interface=== +There is a new interface to RSI's Interactive Data Language, IDL for NeXus. This +interface has to be considered beta. Nevertheless it is working most of the time. +Known issues include: +* Compressed reading and writing do not work for HDF-4 files, probably because of a library version conflict on libz. +* There is an issue using NXgetslab on 64 bit operating systems; expect a fix for this pretty soon. + +===Python Interface=== +There is now, thanks to David Kienzle, a supported interface for the python scripting language. Arrays are stored in numpy arrays and thus allow for efficient data manipulations. + +==Changed Features== + +==Known Issues== +See the comments on the IDL interface. + +==Miscellaneous bug fixes== +The following items are bugs reported in previous releases and resolved in +the 4.2 release. + +==Upcoming Features== + Version 4.1.0 ============= diff --git a/Windows_extra/libNeXus-0.def b/Windows_extra/libNeXus-0.def index 689d229d..f21bfb1e 100644 --- a/Windows_extra/libNeXus-0.def +++ b/Windows_extra/libNeXus-0.def @@ -21,6 +21,7 @@ _NXIGETDATAID@8 _NXIGETGROUPID@8 _NXIGETGROUPINFO@16 _NXIGETINFO@16 +_NXIGETRAWINFO@16 _NXIGETNEXTATTR@16 _NXIGETNEXTENTRY@16 _NXIGETSLAB@16 @@ -80,6 +81,7 @@ nxigetdata_ nxigetdataid_ nxigetgroupid_ nxigetgroupinfo_ +nxigetrawinfo_ nxigetinfo_ nxigetnextattr_ nxigetnextentry_ diff --git a/acinclude.m4 b/acinclude.m4 index e38eabfe..6af4339e 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -155,3 +155,20 @@ AC_DEFUN( fi fi ]) + +AC_DEFUN([AC_CHECK_PYTHON_MODULE], +[ + if test -z "$PYTHON"; then PYTHON="python"; fi + AC_MSG_CHECKING(for python module $1) + $PYTHON -c "import $1" 2>/dev/null + if test $? -eq 0; then + eval PYTHON_$1=1 + eval PYTHON_$1_found="yes" + AC_MSG_RESULT(found) + else + eval PYTHON_$1=0 + eval PYTHON_$1_found="no" + AC_MSG_RESULT(not found) + fi + AC_SUBST(PYTHON_$1) +]) diff --git a/applications/Makefile.am b/applications/Makefile.am index e1817d4c..b2b3a75d 100644 --- a/applications/Makefile.am +++ b/applications/Makefile.am @@ -57,15 +57,15 @@ bin_PROGRAMS = nxbrowse nx2dtd nxconvert nxvalidate $(F90_TARGETS) nxconvert_SOURCES = nxconvert.c nxconvert_common.c nxconvert_common.h nxconvert_LDADD = $(LIBNEXUS) -nxconvert_LDFLAGS = -static $(LDFLAGS) +nxconvert_LDFLAGS = -static @HDF4_LDFLAGS@ @HDF5_LDFLAGS@ @XML_LDFLAGS@ $(LDFLAGS) nxvalidate_SOURCES = nxvalidate.c nxconvert_common.c nxconvert_common.h nxvalidate_LDADD = $(LIBNEXUS) -nxvalidate_LDFLAGS = -static $(LDFLAGS) +nxvalidate_LDFLAGS = -static @HDF4_LDFLAGS@ @HDF5_LDFLAGS@ @XML_LDFLAGS@ $(LDFLAGS) nxbrowse_SOURCES = NXbrowse.c nxbrowse_LDADD = $(LIBNEXUS) -nxbrowse_LDFLAGS = -static $(LDFLAGS) +nxbrowse_LDFLAGS = -static @HDF4_LDFLAGS@ @HDF5_LDFLAGS@ @XML_LDFLAGS@ $(LDFLAGS) #NXtoXML_SOURCES = NXtoXML.c #NXtoXML_LDADD = $(LIBNEXUS) @@ -73,7 +73,7 @@ nxbrowse_LDFLAGS = -static $(LDFLAGS) nx2dtd_SOURCES = NXtoDTD.c nx2dtd_LDADD = $(LIBNEXUS) -nx2dtd_LDFLAGS = -static $(LDFLAGS) +nx2dtd_LDFLAGS = -static @HDF4_LDFLAGS@ @HDF5_LDFLAGS@ @XML_LDFLAGS@ $(LDFLAGS) #NXtoNX4_SOURCES = NXtoNX4.c #NXtoNX4_LDADD = $(LIBNEXUS) @@ -84,11 +84,11 @@ nx2dtd_LDFLAGS = -static $(LDFLAGS) NXdump_SOURCES = NXdump.f90 NXdump_LDADD = $(LIBNEXUS90) NXdump_LINK = $(FCLINK) -NXdump_LDFLAGS = -static $(LDFLAGS) +NXdump_LDFLAGS = -static @HDF4_LDFLAGS@ @HDF5_LDFLAGS@ @XML_LDFLAGS@ $(LDFLAGS) NXbrowse90_SOURCES = NXbrowse90.f90 NXbrowse90_LDADD = $(LIBNEXUS90) NXbrowse90_LINK = $(FCLINK) -NXbrowse90_LDFLAGS = -static $(LDFLAGS) +NXbrowse90_LDFLAGS = -static @HDF4_LDFLAGS@ @HDF5_LDFLAGS@ @XML_LDFLAGS@ $(LDFLAGS) include $(top_srcdir)/build_rules.am diff --git a/applications/NXbrowse.c b/applications/NXbrowse.c index c1fa818a..94ebc614 100755 --- a/applications/NXbrowse.c +++ b/applications/NXbrowse.c @@ -25,15 +25,42 @@ Argonne, IL 60439-4845 USA - For further information, see + For further information, see $Id$ !----------------------------------------------------------------------------*/ #include #include +#include #include "napi.h" #include "napiconfig.h" +static char* my_readline(const char* prompt) +{ + char inputText[256]; + char* stringPtr; + fprintf(stdout, "%s", prompt); + if (fgets(inputText, sizeof(inputText), stdin) == NULL) + { + return NULL; + } + if ((stringPtr = strchr(inputText, '\n')) != NULL) + { + *stringPtr = '\0'; + } + return strdup(inputText); +} +#if HAVE_LIBREADLINE +#include +#include +#ifndef HAVE_RL_COMPLETION_MATCHES +#define rl_completion_matches(a,b) completion_matches(a,b) +#endif /* ifndef HAVE_RL_COMPLETION_MATCHES */ +#else +#define rl_completion_matches(a,b) NULL +#define rl_outstream stdout +#define readline my_readline +#endif #define StrEq(s1, s2) (strcmp((s1), (s2)) == 0) @@ -56,14 +83,179 @@ static int nxTypeSize(int dataType); static int iByteAsChar = 1; /* Assume global attributes are all characters */ static char nxFile[256]; +static NXhandle the_fileId; + +/* + * Freddie Akeroyd 18/10/2009 + * + * Add in support for readline and completion (nxbrowse_complete) of commands + * (command_generator) and on data/group names (field_generator) + * a / character is appended to group names for display, but stripped off + * by the cd command (we may want to remove this and use openpath() later) + * + */ +typedef struct { + const char* name; + const char* doc; +} COMMAND; + +COMMAND commands[] = { + { "cd", "Move into to a group" }, + { "close", "Move out of a group" }, + { "dir", "" }, + { "read", "" }, + { "open", "" }, + { "help", "" }, + { "info", "" }, + { "exit", "" }, + { "dump", "" }, + { "bytesaschar", "" }, + { NULL, NULL } +}; + +static char* command_generator(const char* text, int state) +{ + static int len, list_index; + const char* name; + if (!state) + { + list_index = 0; + len = strlen(text); + } + while( (name = commands[list_index].name) != NULL ) + { + ++list_index; + if (strncasecmp(name, text, len) == 0) + { + return strdup(name); + } + } + return NULL; +} + +struct name_item; + +struct name_item +{ + char* name; + struct name_item* next; +}; + +static char* field_generator(const char* text, int state) +{ + static int len; + struct name_item *item, *t_item; + static struct name_item *names = NULL, *last_item = NULL; + char* res; + int status, dataType; + NXname name, nxclass; + if (!state) + { + item = names; + while(item != NULL) + { + if (item->name != NULL) + { + free(item->name); + item->name = NULL; + } + t_item = item; + item = item->next; + t_item->next = NULL; + free(t_item); + } + last_item = names = NULL; + len = strlen(text); + if (NXinitgroupdir (the_fileId) != NX_OK) + { + return NULL; + } + do + { + status = NXgetnextentry (the_fileId, name, nxclass, &dataType); + if (status == NX_ERROR) break; + if (status == NX_OK) + { + if (strncmp(nxclass,"CDF",3) == 0){ + ; + } + else if (strncmp(name, text, len) == 0) + { + item = (struct name_item*)malloc(sizeof(struct name_item)); + item->name = strdup(name); + if (strcmp(nxclass,"SDS") != 0){ + strcat(item->name, "/"); + } + item->next = NULL; + if (last_item == NULL) + { + names = item; + } + else + { + last_item->next = item; + } + last_item = item; + } + } + } while (status == NX_OK); + last_item = names; + } + if (last_item != NULL) + { + res = strdup(last_item->name); + last_item = last_item->next; + } + else + { + res = NULL; + } + return res; +} + +static char** nxbrowse_complete(const char* text, int start, int end) +{ + char** matches = NULL; + static char line[512]; + strncpy(line, text+start, end-start); + line[end-start] = '\0'; + if (start == 0) + { + matches = rl_completion_matches(text, command_generator); + } + else + { + matches = rl_completion_matches(text, field_generator); + } + return matches; +} + + int main(int argc, char *argv[]) { - NXhandle fileId; - char fileName[80], inputText[255], path[80], *command, *dimensions, *stringPtr; + char fileName[800], path[800], *command, *dimensions, *stringPtr; + char prompt[512]; + char *inputText; NXname groupName, dataName; int status, groupLevel = 0, i; - printf ("NXBrowse %s Copyright (C) 2000 R. Osborn, M. Koennecke, P. Klosowski\n", NEXUS_VERSION); +#if HAVE_LIBREADLINE + rl_readline_name = "NXbrowse"; + rl_attempted_completion_function = nxbrowse_complete; +#if READLINE_VERSION >= 0x500 + rl_catch_signals = 0; +#else +#define rl_crlf() fprintf(rl_outstream, "\r\n"); +#define rl_on_new_line() 1 +#endif + using_history(); +#else +#define rl_crlf() +#define rl_on_new_line() +#define add_history(a) +#endif + + printf ("NXBrowse %s Copyright (C) 2009 NeXus Data Format\n", NEXUS_VERSION); /* if there is a filename given on the command line use that, else ask for a filename */ @@ -79,23 +271,32 @@ int main(int argc, char *argv[]) strcpy (nxFile, fileName); /* Open input file and output global attributes */ - if (NXopen (fileName, NXACC_READ, &fileId) != NX_OK) { + if (NXopen (fileName, NXACC_READ, &the_fileId) != NX_OK) { printf ("NX_ERROR: Can't open %s\n", fileName); return NX_ERROR; } - PrintAttributes (fileId); + PrintAttributes (the_fileId); iByteAsChar = 0; /* Display remaining NX_INT8 and NX_UINT8 variables as integers by default */ /* Input commands until the EXIT command is given */ strcpy (path, "NX"); do { - printf ("%s> ", path); - if (fgets(inputText, sizeof(inputText), stdin) == NULL) + sprintf (prompt, "%s> ", path); + if (getenv("NO_READLINE") != NULL) { - return NX_OK; + inputText = my_readline(prompt); + } + else + { + inputText = readline(prompt); + } + if (inputText == NULL) + { + inputText = strdup("EXIT"); + } + if (*inputText) + { + add_history(inputText); } - - if ((stringPtr = strchr(inputText, '\n')) != NULL) - *stringPtr = '\0'; command = strtok(inputText," "); /* Check if a command has been given */ if (command == NULL) command = " "; @@ -103,23 +304,27 @@ int main(int argc, char *argv[]) ConvertUpperCase (command); /* Command is to print a directory of the current group */ if (StrEq(command, "DIR") || StrEq(command, "LS")) { - status = NXBdir (fileId); + status = NXBdir (the_fileId); } /* Command is to open the specified group */ if (StrEq(command, "OPEN") || StrEq(command, "CD")) { - stringPtr = strtok(NULL, " "); + stringPtr = strtok(NULL, " /"); if (stringPtr != NULL) { strcpy (groupName, stringPtr); - status = NXBopen (fileId, groupName); - /* Add the group to the prompt string */ - if (status == NX_OK) { - strcat (path, "/"); - strcat (path, groupName); - groupLevel++; - } + if (StrEq(groupName, "..")) { + strcpy(command, "CLOSE"); + } else { + status = NXBopen (the_fileId, groupName); + /* Add the group to the prompt string */ + if (status == NX_OK) { + strcat (path, "/"); + strcat (path, groupName); + groupLevel++; + } + } } else { - printf ("NX_ERROR: Specify a group\n"); + fprintf (rl_outstream, "NX_ERROR: Specify a group\n"); } } /* Command is to dump data values to a file */ @@ -130,14 +335,14 @@ int main(int argc, char *argv[]) stringPtr = strtok(NULL," "); if (stringPtr != NULL) { strcpy (fileName, stringPtr); - status = NXBdump (fileId, dataName, fileName); + status = NXBdump (the_fileId, dataName, fileName); } else { - printf ("NX_ERROR: Specify a dump file name \n"); + fprintf (rl_outstream, "NX_ERROR: Specify a dump file name \n"); } } else { - printf ("NX_ERROR: Specify a data item\n"); + fprintf (rl_outstream, "NX_ERROR: Specify a data item\n"); } } /* Command is to print the values of the data */ @@ -146,16 +351,16 @@ int main(int argc, char *argv[]) if (stringPtr != NULL) { strcpy (dataName, stringPtr); dimensions = strtok(NULL, "[]"); - status = NXBread (fileId, dataName, dimensions); + status = NXBread (the_fileId, dataName, dimensions); } else { - printf ("NX_ERROR: Specify a data item\n"); + fprintf (rl_outstream, "NX_ERROR: Specify a data item\n"); } } /* Command is to close the current group */ if (StrEq(command, "CLOSE")) { if (groupLevel > 0) { - if (NXclosegroup (fileId) == NX_OK) { + if (NXclosegroup (the_fileId) == NX_OK) { /* Remove the group from the prompt string */ stringPtr = strrchr (path, '/'); /* position of last group delimiter */ if (stringPtr != NULL) @@ -164,7 +369,7 @@ int main(int argc, char *argv[]) } } else { - printf ("NX_WARNING: Already at root level of file\n"); + fprintf (rl_outstream, "NX_WARNING: Already at root level of file\n"); } } /* Command is to print help information */ @@ -188,11 +393,12 @@ int main(int argc, char *argv[]) } /* Command is to exit the program */ if (StrEq(command, "EXIT") || StrEq(command, "QUIT")) { - for (i = groupLevel; i > 0; i--) NXclosegroup (fileId); - NXclose (&fileId); + for (i = groupLevel; i > 0; i--) NXclosegroup (the_fileId); + NXclose (&the_fileId); return NX_OK; } status = NX_OK; + free(inputText); } while (status == NX_OK); return NX_OK; } diff --git a/applications/NXdir/Makefile.am b/applications/NXdir/Makefile.am index 96b9f900..7fc43173 100644 --- a/applications/NXdir/Makefile.am +++ b/applications/NXdir/Makefile.am @@ -35,7 +35,7 @@ bin_PROGRAMS = nxdir nxdir_SOURCES = main.cpp string_util.cpp tree.cpp data.cpp data_writer.cpp \ nxdir.h nxdir_help.h nxdir_LDADD = $(LIBNEXUS) -nxdir_LDFLAGS = -static $(LDFLAGS) +nxdir_LDFLAGS = -static @HDF4_LDFLAGS@ @HDF5_LDFLAGS@ @XML_LDFLAGS@ $(LDFLAGS) EXTRA_DIST = CHANGES LICENSE README TODO ## extra dependencies (don;t thing needed now) diff --git a/applications/NXdir/data_writer.cpp b/applications/NXdir/data_writer.cpp index 14484ba5..d6414f1f 100644 --- a/applications/NXdir/data_writer.cpp +++ b/applications/NXdir/data_writer.cpp @@ -33,7 +33,6 @@ //#include // REMOVE #define NXDATA "NXdata" -#define ATTR "ATTR" using std::string; using std::cout; diff --git a/applications/NXdir/string_util.cpp b/applications/NXdir/string_util.cpp index 060cec05..5a5326c2 100644 --- a/applications/NXdir/string_util.cpp +++ b/applications/NXdir/string_util.cpp @@ -281,8 +281,8 @@ extern string path_to_str(const Path path, const PathMode print_mode){ * Converts a float (any precision) to a string. */ static string float_to_str(double value){ - char temp[20]; - sprintf(temp,"%f",value); + char temp[40]; + snprintf(temp,40,"%f",value); return string(temp); } @@ -291,8 +291,8 @@ static string float_to_str(double value){ * Converts an integer (any precision) to a string. */ extern string int_to_str(const long value){ - char temp[20]; - sprintf(temp,"%d",value); + char temp[40]; + snprintf(temp,40,"%d",value); return string(temp); } diff --git a/applications/NXsummary/Makefile.am b/applications/NXsummary/Makefile.am index 2ca2423e..3fcf1c1c 100644 --- a/applications/NXsummary/Makefile.am +++ b/applications/NXsummary/Makefile.am @@ -36,6 +36,6 @@ noinst_HEADERS = data_util.hpp nxsummary.hpp string_util.hpp preferences.hpp con tclap/ArgException.h tclap/Arg.h tclap/CmdLine.h tclap/CmdLineInterface.h tclap/CmdLineOutput.h tclap/DocBookOutput.h tclap/HelpVisitor.h tclap/IgnoreRestVisitor.h tclap/MultiArg.h tclap/StdOutput.h tclap/SwitchArg.h tclap/UnlabeledMultiArg.h tclap/UnlabeledValueArg.h tclap/ValueArg.h tclap/VersionVisitor.h tclap/Visitor.h tclap/XorHandler.h nxsummary_SOURCES = data_util.cpp main.cpp string_util.cpp preferences.cpp output.cpp nxsummary_LDADD = $(LIBNEXUS) -nxsummary_LDFLAGS = -static $(LDFLAGS) +nxsummary_LDFLAGS = -static @HDF4_LDFLAGS@ @HDF5_LDFLAGS@ @XML_LDFLAGS@ $(LDFLAGS) EXTRA_DIST = LICENSE tclap/AUTHORS tclap/COPYING tclap/README include $(top_srcdir)/build_rules.am diff --git a/applications/NXsummary/main.cpp b/applications/NXsummary/main.cpp index 42902c5b..65c08b3b 100644 --- a/applications/NXsummary/main.cpp +++ b/applications/NXsummary/main.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include "data_util.hpp" #include "nxsummary.hpp" diff --git a/applications/NXsummary/tclap/MultiArg.h b/applications/NXsummary/tclap/MultiArg.h index 045dda3f..6c9676c2 100644 --- a/applications/NXsummary/tclap/MultiArg.h +++ b/applications/NXsummary/tclap/MultiArg.h @@ -25,6 +25,7 @@ #include #include +#include #include diff --git a/applications/NXsummary/tclap/ValueArg.h b/applications/NXsummary/tclap/ValueArg.h index e1f8835e..1ddae4fd 100644 --- a/applications/NXsummary/tclap/ValueArg.h +++ b/applications/NXsummary/tclap/ValueArg.h @@ -25,6 +25,7 @@ #include #include +#include #include diff --git a/applications/NXtranslate/Makefile.am b/applications/NXtranslate/Makefile.am index 138a69ad..aa2fe347 100644 --- a/applications/NXtranslate/Makefile.am +++ b/applications/NXtranslate/Makefile.am @@ -65,9 +65,9 @@ nxtranslate_LDADD = $(LIBNEXUS) -lxml2 \ spec/libSpec.la \ esrf_edf/libEdf.la -nxtranslate_LDFLAGS = -static $(LDFLAGS) +nxtranslate_LDFLAGS = -static @HDF4_LDFLAGS@ @HDF5_LDFLAGS@ @XML_LDFLAGS@ $(LDFLAGS) -#EXTRA_DIST = CHANGES LICENSE README TODO +EXTRA_DIST = $(srcdir)/*.xml $(srcdir)/*.nxt $(srcdir)/*.dat $(srcdir)/*.run include $(top_srcdir)/build_rules.am diff --git a/applications/NXtranslate/binary/BinaryRetriever.cpp b/applications/NXtranslate/binary/BinaryRetriever.cpp index ce7216c6..c902afbe 100644 --- a/applications/NXtranslate/binary/BinaryRetriever.cpp +++ b/applications/NXtranslate/binary/BinaryRetriever.cpp @@ -25,7 +25,7 @@ static const string myFLOAT32("FLOAT32"); static const string myFLOAT64("FLOAT64"); static const string myBYTE("BYTE"); -static const int DEFAULT_TYPE=NX_UINT32; +static const int NX_DEFAULT_TYPE=NX_UINT32; /** * \file NXtranslate/binary/BinaryRetriever.cpp @@ -95,7 +95,7 @@ static bool increment_position(const vector &offset, */ static int getDataType(const string &str_type){ if(str_type.empty()){ - return DEFAULT_TYPE; + return NX_DEFAULT_TYPE; }else if(str_type==myINT8){ return NX_INT8; }else if(str_type==myINT16){ diff --git a/applications/NXtranslate/opengenie/Makefile.am b/applications/NXtranslate/opengenie/Makefile.am index be58dc01..b94c7d81 100644 --- a/applications/NXtranslate/opengenie/Makefile.am +++ b/applications/NXtranslate/opengenie/Makefile.am @@ -38,6 +38,6 @@ libnxgenie_la_SOURCES = \ libnxgenie_la_LIBADD = -lgenie libnxgenie_la_LDFLAGS = -no-undefined -export-dynamic -module $(LDFLAGS) -EXTRA_DIST = README +EXTRA_DIST = README nxgenie.gcl include $(top_srcdir)/build_rules.am diff --git a/applications/NXtranslate/tree.hh b/applications/NXtranslate/tree.hh index 128e6fef..c9b569c6 100644 --- a/applications/NXtranslate/tree.hh +++ b/applications/NXtranslate/tree.hh @@ -50,6 +50,7 @@ #include #include #include +#include // HP-style construct/destroy have gone from the standard, // so here is a copy. diff --git a/applications/nxconvert_common.c b/applications/nxconvert_common.c index b7749589..5530f98f 100644 --- a/applications/nxconvert_common.c +++ b/applications/nxconvert_common.c @@ -93,7 +93,7 @@ int convert_file(int nx_format, const char* inFile, int nx_read_access, const ch printf ("NX_ERROR: Can't open %s\n", outFile); return NX_ERROR; } - + /* Output global attributes */ if (WriteAttributes (nx_is_definition) != NX_OK) { @@ -104,7 +104,7 @@ int convert_file(int nx_format, const char* inFile, int nx_read_access, const ch { return NX_ERROR; } -/* clos einput */ +/* close input */ if (NXclose (&inId) != NX_OK) { return NX_ERROR; diff --git a/applications/nxdiff b/applications/nxdiff new file mode 100755 index 00000000..a71316c6 --- /dev/null +++ b/applications/nxdiff @@ -0,0 +1,559 @@ +#!/usr/bin/env python +VERSION = "1.4.0" + +import nxs +import numpy +import math +import os +import sys + +NAN = float("nan") + +class NXSdata: + def __init__(self, nxs, path, **kwargs): + nxs.openpath(path) + (self.dims, self.type) = nxs.getinfo() + if len(self.dims) == 1: + self.dims=self.dims[0] + self.attrs = nxs.getattrs() + self.data = nxs.getdata() + +def getDiffSym(diffType, format): + sumMap = {Diff.SAME:Diff.SAME, Diff.NEWLEFT:'-', Diff.NEWRIGHT:'+', + Diff.DIFF:Diff.DIFF, Diff.UNKNOWN:Diff.UNKNOWN} + if format == "unified": + return sumMap[diffType] + else: + return diffType + +def getPercentDiff(left, right, nandiff=float("nan")): + # find the difference (absolute) + diffs = left-right + combine = numpy.fabs(left) + numpy.fabs(right) + + # fix the denominator so there are not nans + try: + indices = (combine == 0) + left[indices] = 1. + except IndexError: + if combine == 0: + left = 1. + + # do the percent part + diffs = 100. * numpy.fabs(diffs/left) + try: + diffs[0] + return diffs + except IndexError: + return [diffs] + +class Diff: + SAME = " " + NEWLEFT = "<" + NEWRIGHT = ">" + DIFF = "|" + UNKNOWN = "?" + def __init__(self, path, **kwargs): + self.path = path + try: + left = kwargs["left"] + except KeyError: + left = None + try: + right = kwargs["right"] + except KeyError: + right = None + temp = self.path.split(" ") + if len(temp) == 2: + (self.summary, self.path) = temp + try: + self.summary = kwargs["diff"] + if self.summary == "<" or self.summary == "-": + self.summary = Diff.NEWLEFT + elif self.summary == ">" or self.summary == "+": + self.summary = Diff.NEWRIGHT + else: + raise "Do not understand diff \"%s\"" % self.summary + except KeyError: + self.summary = Diff.UNKNOWN + try: + self.setFormat(kwargs["format"]) + except KeyError: + self.setFormat("standard") + self.details = [] + if self.summary != Diff.UNKNOWN: + return + self.__cmpData(left, right) + if len(self.details) > 0: + self.summary = Diff.DIFF + else: + self.summary = Diff.SAME + + def __shortPath(self): + mypath= self.path.split("/") + mypath = [item.split(":")[0] for item in mypath] + return '/'.join(mypath) + + def __str__(self): + result = "%s %s" % (getDiffSym(self.summary, self.__format), \ + self.__shortPath()) + if self.summary == Diff.DIFF: + result += " " + " ".join(self.details) + return result + + def __cmpData(self, left, right): + left = left.getData(self.path) + right = right.getData(self.path) + if left.type != right.type: + self.details.append("TYPE MISMATCH: %s != %s" \ + % (left.type, right.type)) + if left.attrs != right.attrs: + self.details.append("ATTRIBUTES MISMATCH: %s != %s" % \ + (left.attrs, right.attrs)) + if left.type == "CHAR" or left.type == "char": + if left.data != right.data: + self.details.append("DATA MISMATCH: %s != %s" % \ + (left.data, right.data)) + return + if not numpy.alltrue(left.dims == right.dims): + self.details.append("DIMENSION MISMATCH: %s != %s" \ + % (left.dims, right.dims)) + return + else: + try: + if left.data.dtype != right.data.dtype: + self.details.append("DATA MISMATCH: %s != %s" \ + % (left.data.dtype.name, \ + right.data.dtype.name)) + return + except TypeError: + pass + except AttributeError: + pass + if numpy.alltrue(left.data == right.data): + return + else: + diffs = getPercentDiff(left.data, right.data) + if numpy.nanmax(diffs) <= 0.: + return + stats = getStats(diffs) + self.details.append("MISMATCH [min%s,max%s,med%s,avg%s,dev%s]" \ + % (stats[0], stats[1], stats[2], stats[3], + stats[4])) + def setFormat(self, format): + if format == "unified": + self.__format = "unified" + else: + self.__format = "standard" + +class NXSfile: + def __init__(self, name, **kwargs): + try: + self.__ignorelinks = kwargs["ignorelinks"] + except KeyError: + self.__ignorelinks = False + try: + self.__ignorenotes = kwargs["ignorenotes"] + except KeyError: + self.__ignorenotes = False + try: + self.__ignorets = kwargs["ignorets"] + except KeyError: + self.__ignorets = False + self.name = os.path.abspath(name) + self.__initPaths() + + def __initPaths(self, **kwargs): + self.__paths = [] + self.__nxs = nxs.open(self.name) + self.__paths = self.__getPaths() + self.__paths.sort() + while '/' in self.__paths: + del self.__paths[self.__paths.index('/')] + + def __getPaths(self, **kwargs): + result = [] + #result.append(self.__nxs.longpath) # add the groups to the tree + parent = self.__nxs.longpath.split('/')[-1] + listing = self.__nxs.getentries() + for name in listing.keys(): + nxclass = listing[name] + if nxclass == "SDS": + if self.__ignorenotes and parent.endswith("NXnote"): + if name == "author" or name == "date": + continue + elif self.__ignorets and name == "SNStranslation_service": + continue + self.__nxs.opendata(name) + attrs = self.__nxs.getattrs() + longpath = self.__nxs.longpath + shortpath = self.__nxs.path + self.__nxs.closedata() + if self.__ignorelinks and attrs.has_key("target"): + target = attrs["target"] + if target != shortpath: + continue + result.append(longpath) + else: + self.__nxs.opengroup(name,nxclass) + result.extend(self.__getPaths()) + self.__nxs.closegroup() + return result + + def __str__(self): + return self.name + + def __eq__(self, other): + """This provides only the simplest of cases for comparing equality""" + return self.name == other.name + + def __getMissing(self, left, right): + result = filter(lambda a, right=right:not a in right, left) + return result + + def __removeDuplicate(self, item, array): + if item not in array: + return + index = array.index(item) + try: + while True: + index = array.index(item, index+1) + del array[index] + except ValueError: + pass + + def cmpPaths(self, other, **kwargs): + if self.__paths == other.__paths: + diffPaths = self.__paths[:] + else: + # find what one has that the other is missing + missingOther = self.__getMissing(self.__paths, other.__paths) + missingSelf = self.__getMissing(other.__paths, self.__paths) + + # merge the results + diffPaths = self.__paths[:] + diffPaths.extend(other.__paths) + diffPaths.sort() + for path in diffPaths: + self.__removeDuplicate(path, diffPaths) + for path in missingSelf: + index = diffPaths.index(path) + diffPaths[index] = "> %s" % diffPaths[index] + for path in missingOther: + index = diffPaths.index(path) + diffPaths[index] = "< %s" % diffPaths[index] + + result = [] + for path in diffPaths: + if path.startswith("<") or path.startswith(">"): + result.append(Diff(path, diff=path[0])) + else: + result.append(Diff(path, left=self, right=other)) + + return result + + def getData(self, path, **kwargs): + return NXSdata(self.__nxs, path) + +def isNaN(x): + if x * 1.0 < x: + return True + return (x == 1.0) and (x == 2.0) + +def removeNaN(array): + hasnans = numpy.isnan(array) + indices = numpy.where(hasnans == True)[0] + if len(indices) <= 0: + return array + return numpy.delete(array, indices.tolist()) + try: + len(myarray) + return myarray + except TypeError: + return [myarray] + +def getStats(array, **kwargs): + myarray = numpy.copy(array) + myarray = myarray.ravel() + origLength = myarray.size + myarray = removeNaN(myarray) + myarray.sort() + length = myarray.size + avg = numpy.average(myarray) + minimum = numpy.nanmin(myarray) + maximum = numpy.nanmax(myarray) + median = myarray[(length/2)-1] + stddev = myarray.std() + result = map(lambda x: "%.2f%%" % x, + (minimum, maximum, median, avg, stddev)) + result.append(origLength) # add the number of elements + result.append(origLength - length) # number of NaNs found + return result + +def cmpData(left, right, path, **kwargs): + left = left.getData(path) + right = right.getData(path) + if left.type != right.type: + return "TYPE MISMATCH: %s != %s" % (left.type, right.type) + if left.dims != right.dims: + return "DIMENSION MISMATCH: %s != %s" % (left.dims, right.dims) + if left.attrs != right.attrs: + return "ATTRIBUTES MISMATCH: %s != %s" % (left.attrs, right.attrs) + if left.type == "CHAR": + if left.data == right.data: + return "" + else: + return "DATA MISMATCH: %s != %s" % (left.data, right.data) + if utils.vector_is_equals(left.data, right.data): + return "" + else: + diffs = [] + import math + for i in range(len(left.data)): + diffs.append(math.fabs((left.data[i]-right.data[i])/left.data[i])) + stats = getStats(diffs) + return "MISMATCH [min%s,max%s,med%s,avg%s,dev%s]" \ + % (stats[0], stats[1], stats[2], stats[3], stats[4]) + +def delinearIndex(linear, dims): + length = len(dims) + if length == 1: + return linear + elif length == 2: + index = [0,0] + index[1] = linear % dims[1] + index[0] = (linear - index[1])/dims[1] + return tuple(index) + else: + raise "Do not know how to deal with dimension " + length + +def printDataDiff(left, right, diff, **kwargs): + # determine the symbols for right and left + try: + format = kwargs["format"] + except KeyError: + format = "standard" + leftSym = getDiffSym(Diff.NEWLEFT, format) + rightSym = getDiffSym(Diff.NEWRIGHT, format) + + # get the data + left = left.getData(diff.path) + right = right.getData(diff.path) + + # the dimensions of the data + leftLength = 1 + try: + for dim in left.dims: + leftLength *= dim + except TypeError: + leftLength *= left.dims + rightLength = 1 + try: + for dim in right.dims: + rightLength *= dim + except TypeError: + rightLength *= right.dims + + # the threshold for printing values + try: + threshold = kwargs["threshold"] + except KeyError: + threshold = None + + try: + shownandiffs = kwargs["shownandiffs"] + except KeyError: + shownandiffs = False + + # how many items to show + if not threshold: + try: + numItems = kwargs["numitems"] + except KeyError: + numItems = 0 + if numItems < 0: + pass + elif numItems == 0: + leftLength = 10 + rightLength = 10 + else: + leftLength = numItems + rightLength = numItems + + + # print out type and dims + if (left.type == right.type) and (left.dims == right.dims): + print left.type, left.dims + else: + print leftSym, left.type, left.dims + print rightSym, right.type, right.dims + + if left.attrs == right.attrs: + print left.attrs + else: + print leftSym, left.attrs + print rightSym, right.attrs + + if threshold is None: + try: + print leftSym, left.data.__str__(last=leftLength) + except TypeError: + print str(left.data) + try: + print rightSym, right.data.__str__(last=rightLength) + except TypeError: + print str(right.data) + else: + nanIndices = [] + changeInfo = [] + length = min(leftLength, rightLength) + myDiff = getPercentDiff(left.data, right.data) + myDiff.ravel() + for i in xrange(myDiff.size): + index = delinearIndex(i, left.dims) + if isNaN(myDiff): + nanIndices.append(index) + elif myDiff > threshold: + changeInfo.append((index, myDiff, left.data[i], right.data[i])) + print "%d values changed between number and NaN" % len(nanIndices) + print "%d values changed more than %.2f%%" % (len(changeInfo), + threshold) + if shownandiffs and len(nanIndices) > 0: + print "Indices changed between number and NaN:", nanIndices + if len(changeInfo) > 0: + print "%10s %5s %10s %10s" % ("index", "%diff", "left", "right") + for item in changeInfo: + print "%10s %5.2f %10f %10f" % item + +if __name__ == "__main__": + import optparse + + info = [] + info.append("This utility compares two files that are readable by the ") + info.append("NeXus API.") + + info.append("In the difference the '<' or '-' symbol means that the ") + info.append("field exists in the left file but not the right.") + info.append("'>' or '+' symbol means that the field exists in the right ") + info.append("file but not the left.") + info.append("'|' symbol means that the field has changed between the ") + info.append("two files.") + + parser = optparse.OptionParser("usage %prog [options] ", + None, optparse.Option, VERSION, 'error', + " ".join(info)) + parser.add_option("-v", "--verbose", action="count", dest="verbose", + help="Enable verbose print statements", default=0) + parser.add_option("-q", "--brief", action="store_true", dest="quiet", + help="Disable verbose print statements") + parser.add_option("-u", "", action="store_true", dest="unifieddiff", + help="Use the unified output format.") + parser.add_option("-s", "--report-identical-files", action="store_true", + dest="reportidenticalfiles", + help="Report when two files are the same.") + parser.add_option("-S", "--suppress-common-lines", action="store_true", + dest="suppresscommon", help="Do not output common lines") + parser.add_option("", "--show-values", action="store_true", + dest="showvalues", + help="Show the values of arrays that do not match") + parser.add_option("", "--num-values", dest="numvalues", + help="Set the number of values to show in " + + "\"--show-values\" mode. If not specified the default " + + "is ten (10). To show all values specify minus one " + + "(-1).") + parser.add_option("", "--show-percent", dest="threshold", + help="Set a threshold for the minimum percentage " + + "difference shown in values. This turns on " + + "\"--show-values\" mode and overrides " + + "\"--num-values\".") + parser.add_option("", "--show-nan-diffs", dest="shownandiffs", + action="store_true", + help="Whether or not to show the indices that changed " + + "to nan when using \"--show-percent\" mode.") + parser.add_option("-L", "--ignore-links", dest="ignorelinks", + action="store_true", + help="Only compare the original copy of links") + parser.add_option("", "--ignore-note-meta", dest="ignorenotes", + action="store_true", + help="Ignore the author and date fields in notes") + parser.add_option("", "--ignore-ts", dest="ignorets", action="store_true", + help="Ignore differences in the version of ts used") + + parser.set_defaults(verbose=False) + parser.set_defaults(ignorelinks=False) + parser.set_defaults(numvalues=None) + parser.set_defaults(threshold=None) + parser.set_defaults(shownandiffs=False) + parser.set_defaults(ignorenotes=False) + parser.set_defaults(ignorets=False) + + # parse and fix values + (options, args) = parser.parse_args() + if options.quiet: + options.verbose = -1 + if options.unifieddiff: + format = "unified" + else: + format = "standard" + if options.numvalues is not None: + options.showvalues = True + options.numvalues = int(options.numvalues) + else: + options.numvalues = 0 + if options.threshold is not None: + options.showvalues = True + options.threshold = float(options.threshold) + if len(args) != 2: + parser.error("Must compare two files") + else: + left = NXSfile(args[0], ignorelinks=options.ignorelinks, + ignorenotes=options.ignorenotes, + ignorets=options.ignorets) + right = NXSfile(args[1], ignorelinks=options.ignorelinks, + ignorenotes=options.ignorenotes, + ignorets=options.ignorets) + + # direct comparison of the two files + if left == right: + if options.reportidenticalfiles: + print "Files %s and %s are identical" % (left, right) + sys.exit() + + # create the full diff + diffs = left.cmpPaths(right) + + # determine if there were differences + different = False + for diff in diffs: + if len(diff.summary) > 0: + different = True + + # take the easy way out if quiet or identical + if not different: + if options.reportidenticalfiles: + print "Files %s and %s are identical" % (left, right) + sys.exit() + elif options.verbose == -1: + print "Files %s and %s differ" % (left, right) + sys.exit() + + # remove common lines if requestsed + if options.suppresscommon: + indices = range(len(diffs)) + indices.reverse() + for i in indices: + if diffs[i].summary == Diff.SAME: + del diffs[i] + + # reformat the diff + for diff in diffs: + diff.setFormat(format) + + # print out the result + for diff in diffs: + print diff + if options.showvalues and diff.summary == Diff.DIFF: + printDataDiff(left, right, diff, format=format, + numitems=options.numvalues, + threshold=options.threshold, + shownandiffs=options.shownandiffs) diff --git a/applications/nxingest/Makefile.am b/applications/nxingest/Makefile.am index 05233087..d77253e8 100644 --- a/applications/nxingest/Makefile.am +++ b/applications/nxingest/Makefile.am @@ -11,7 +11,7 @@ nxingest_SOURCES = nxingest_main.cpp nxingest_utils.cpp \ nxingest_debug.h nxingest.h nxingest_main.h nxingest_nexus.h \ nxingest_parse.h nxingest_time.h nxingest_utils.h nxingest_LDADD = $(LIBNEXUS) -nxingest_LDFLAGS = -static $(XML_LDFLAGS) $(LDFLAGS) +nxingest_LDFLAGS = -static $(HDF4_LDFLAGS) $(HDF5_LDFLAGS) $(XML_LDFLAGS) $(LDFLAGS) EXTRA_DIST=nxingest.txt gpl.txt diff --git a/applications/nxvalidate.c b/applications/nxvalidate.c index c860349c..ecc49f75 100644 --- a/applications/nxvalidate.c +++ b/applications/nxvalidate.c @@ -66,14 +66,18 @@ static int mkstemp(char* template) #define TMP_DIR P_tmpdir #endif /* _WIN32 */ +static const char* definition_name = "BASE"; +static const char* definition_version = "3.0"; + static void print_usage() { printf("Usage: nxvalidate [-w] [ -d definition ] [ infile ]\n\n"); printf("-w Send file to NeXus web site (using wget) for validation\n"); printf(" (default: try to run \"xmllint\" program locally\n"); - printf("-d Use specified definiton (default: BASE)\n"); + printf("-d Use specified definiton (default: %s)\n", definition_name); printf("-k keep temporary files\n"); printf("-q quiet (only report errors)\n"); + printf("-v specify schema version (default: %s)\n", definition_version); } static int url_encode(char c, FILE* f) @@ -104,18 +108,18 @@ static int url_encode(char c, FILE* f) #define NXVALIDATE_ERROR_EXIT exit(1) -static const char* definition_name = "BASE"; static int quiet = 0; int main(int argc, char *argv[]) { char inFile[256], outFile[256], command[512], outFile2[256], *strPtr; + const char* cStrPtr; int ret, opt, c, i, fd, use_web = 0; FILE *fIn, *fOut2; int keep_temps = 0; - while( (opt = getopt(argc, argv, "wqkhd:")) != -1 ) + while( (opt = getopt(argc, argv, "wqkhd:v:")) != -1 ) { /* use with "-:" in getopt if (opt == '-') @@ -129,7 +133,6 @@ int main(int argc, char *argv[]) case 'd': if (optarg != NULL && *optarg != '\0') { - printf("Warning: -d option is not implemented yet\n"); definition_name = optarg; } break; @@ -150,6 +153,13 @@ int main(int argc, char *argv[]) keep_temps = 1; break; + case 'v': + if (optarg != NULL && *optarg != '\0') + { + definition_version = optarg; + } + break; + default: /* printf("Invalid option -%c\n", opt); */ print_usage(); @@ -189,7 +199,7 @@ int main(int argc, char *argv[]) if (!quiet) { printf("* Validating using locally installed \"xmllint\" program\n"); } - sprintf(command, "xmllint --noout --schema http://definition.nexusformat.org/schema/3.0/%s.xsd \"%s\" %s", definition_name, outFile, (quiet ? "> " NULL_DEVICE " 2>&1" : "")); + sprintf(command, "xmllint --noout --schema http://definition.nexusformat.org/schema/%s/%s.xsd \"%s\" %s", definition_version, definition_name, outFile, (quiet ? "> " NULL_DEVICE " 2>&1" : "")); ret = system(command); if (ret != -1 && WIFEXITED(ret)) { @@ -224,9 +234,19 @@ int main(int argc, char *argv[]) fOut2 = fopen(outFile2, "wt"); fIn = fopen(outFile, "rt"); fprintf(fOut2, "file_name="); - for(strPtr = inFile; *strPtr != '\0'; ++strPtr) + for(cStrPtr = inFile; *cStrPtr != '\0'; ++cStrPtr) + { + url_encode(*cStrPtr, fOut2); + } + fprintf(fOut2, "&definition_name="); + for(cStrPtr = definition_name; *cStrPtr != '\0'; ++cStrPtr) + { + url_encode(*cStrPtr, fOut2); + } + fprintf(fOut2, "&definition_version="); + for(cStrPtr = definition_version; *cStrPtr != '\0'; ++cStrPtr) { - url_encode(*strPtr, fOut2); + url_encode(*cStrPtr, fOut2); } fprintf(fOut2, "&file_data="); while( (c = fgetc(fIn)) != EOF ) diff --git a/autoversion.sh b/autoversion.sh index a612bbf8..0fddf2b3 100755 --- a/autoversion.sh +++ b/autoversion.sh @@ -1,6 +1,6 @@ #!/bin/sh -for automake in automake-1.10 automake-1.9 automake-1.8 automake-1.7 automake-1.6 automake-1.5 automake-1.4 automake ; do +for automake in automake-1.12 automake-1.11 automake-1.10 automake-1.9 automake-1.8 automake-1.7 automake-1.6 automake-1.5 automake-1.4 automake ; do AUTOMAKE=`which $automake 2>/dev/null | grep -v '^no'` if test "$AUTOMAKE" ; then break; diff --git a/bindings/cpp/Makefile.am b/bindings/cpp/Makefile.am index 189a3f05..ce86af26 100644 --- a/bindings/cpp/Makefile.am +++ b/bindings/cpp/Makefile.am @@ -34,6 +34,11 @@ ############################################################################ LIBNEXUS=$(top_builddir)/src/libNeXus.la lib_LTLIBRARIES=libNeXusCPP.la +AM_LDFLAGS=-version-info $(NXLTVERSINFO) + +# nxincludedir=$(includedir)/nexus +nxincludedir=$(pkgincludedir) +nxinclude_HEADERS=NeXusFile.hpp NeXusException.hpp NeXusStream.hpp libNeXusCPP_la_SOURCES=NeXusFile.hpp NeXusFile.cpp NeXusException.hpp NeXusException.cpp NeXusStream.hpp NeXusStream.cpp libNeXusCPP_la_LIBADD=$(LIBNEXUS) @@ -58,5 +63,6 @@ endif endif AM_CXXFLAGS=-prefer-pic $(MINGW_CXXFLAGS) +CLEANFILES=libNeXusCPP.def libNeXusCPP.dll.lib libNeXusCPP.dll.exp include $(top_srcdir)/build_rules.am diff --git a/bindings/cpp/NeXusFile.cpp b/bindings/cpp/NeXusFile.cpp index 6df88555..b7064cbb 100644 --- a/bindings/cpp/NeXusFile.cpp +++ b/bindings/cpp/NeXusFile.cpp @@ -40,6 +40,13 @@ namespace NeXus { throw Exception(msg.str()); } + template<> + NXDLL_EXPORT NXnumtype getType(char number) { + stringstream msg; + msg << "NeXus::getType() does not know type of \"char\" " << number; + throw Exception(msg.str()); + } + // template specialisations for types we know template<> NXDLL_EXPORT NXnumtype getType(float number) { @@ -91,6 +98,7 @@ namespace NeXus { return UINT64; } + } // check type sizes - uses a trick that you cannot allocate an @@ -226,6 +234,19 @@ void File::openGroupPath(const string& path) { } } +std::string File::getPath(){ + char cPath[1024]; + + memset(cPath,0,1024*sizeof(char)); + NXstatus status = NXgetpath(this->m_file_id,cPath, 1024); + if (status != NX_OK) { + stringstream msg; + msg << "NXgetpath() failed"; + throw Exception(msg.str(), status); + } + return std::string(cPath); +} + void File::closeGroup() { NXstatus status = NXclosegroup(this->m_file_id); if (status != NX_OK) { diff --git a/bindings/cpp/NeXusFile.hpp b/bindings/cpp/NeXusFile.hpp index 601194dc..57f86922 100644 --- a/bindings/cpp/NeXusFile.hpp +++ b/bindings/cpp/NeXusFile.hpp @@ -21,6 +21,10 @@ * \file * Documentation for the NeXus C++ API. * 2000-2008 the NeXus group. + * \defgroup cpp_types C++ Types + * \ingroup cpp_main + * \defgroup cpp_core C++ Core + * \ingroup cpp_main */ namespace NeXus { @@ -36,6 +40,7 @@ namespace NeXus { * \li UINT32 uint32_t * \li INT64 int8_t if available on the machine * \li UINT64 uint8_t if available on the machine + * \ingroup cpp_types */ enum NXnumtype { FLOAT32 = NX_FLOAT32, @@ -59,6 +64,7 @@ namespace NeXus { * \li LZW Lossless Lempel Ziv Welch compression (recommended) * \li RLE Run length encoding (only HDF-4) * \li HUF Huffmann encoding (only HDF-4) + * \ingroup cpp_types */ enum NXcompression { NONE = NX_COMP_NONE, @@ -89,6 +95,7 @@ namespace NeXus { /** * The Object that allows access to the information in the file. + * \ingroup cpp_core */ class NXDLL_EXPORT File { @@ -173,6 +180,12 @@ namespace NeXus { * '/' (i.e. "/entry/sample/name"). */ void openGroupPath(const std::string& path); + /** + * Get the path into the current file + * \return A unix like path string pointing to the current + * position in the file + */ + std::string getPath(); /** * Close the currently open group. diff --git a/bindings/cpp/NeXusStream.cpp b/bindings/cpp/NeXusStream.cpp index 41da5c50..e0f9784b 100644 --- a/bindings/cpp/NeXusStream.cpp +++ b/bindings/cpp/NeXusStream.cpp @@ -29,12 +29,13 @@ // Repository Location $HeadURL$ // Revision of last commit $LastChangedRevision$ // Date of last commit $LastChangedDate$ -// Author of last commit $LastChangedBy$ +// Last changed by $LastChangedBy$ ////////////////////////////////////////////////////////////////////////// /** * \file NeXusStream.cpp * Implementation of IOStream like interface to NeXus files + * \author Freddie Akeroyd, STFC ISIS Facility, GB * \version $LastChangedRevision$ * \date $LastChangedDate$ */ diff --git a/bindings/cpp/NeXusStream.hpp b/bindings/cpp/NeXusStream.hpp index 6b408390..7525f584 100644 --- a/bindings/cpp/NeXusStream.hpp +++ b/bindings/cpp/NeXusStream.hpp @@ -30,14 +30,17 @@ // Repository Location $HeadURL$ // Revision of last commit $LastChangedRevision$ // Date of last commit $LastChangedDate$ -// Author of last commit $LastChangedBy$ +// Last changed by $LastChangedBy$ ////////////////////////////////////////////////////////////////////////// /** * \file NeXusStream.hpp * Header for IOStream like interface to NeXus files + * \author Freddie Akeroyd, STFC ISIS Facility, GB * \version $LastChangedRevision$ * \date $LastChangedDate$ + * \defgroup cpp_stream IOstream like interface + * \ingroup cpp_main */ #include @@ -56,6 +59,7 @@ namespace Stream virtual void writeToFile(File& nf) const = 0; }; + /// \ingroup cpp_stream enum StreamModifier { Close=0 }; class NXDLL_EXPORT HolderBase : public ISerialisable @@ -94,6 +98,7 @@ namespace Stream virtual ~AttrHolder() { m_value = NULL; m_c_value = NULL; } }; + /// \ingroup cpp_stream class NXDLL_EXPORT Attr : public ISerialisable { protected: @@ -163,6 +168,7 @@ namespace Stream virtual ~ObjectWithAttr() { } }; + /// \ingroup cpp_stream class NXDLL_EXPORT Group : public ObjectWithAttr { protected: @@ -213,6 +219,7 @@ namespace Stream virtual ~DataHolder() {} }; + /// \ingroup cpp_stream class NXDLL_EXPORT Data : public ObjectWithAttr { HolderBase* m_holder; @@ -244,10 +251,16 @@ namespace Stream virtual ~Data() { delete m_holder; } }; + /// \ingroup cpp_stream NXDLL_EXPORT File& operator<<(File& nf, const ISerialisable& obj); + + /// \ingroup cpp_stream NXDLL_EXPORT File& operator>>(File& nf, const ISerialisable& obj); + /// \ingroup cpp_stream NXDLL_EXPORT File& operator<<(File& nf, const StreamModifier sm); + + /// \ingroup cpp_stream NXDLL_EXPORT File& operator>>(File& nf, const StreamModifier sm); } // Stream diff --git a/bindings/f77/Makefile.am b/bindings/f77/Makefile.am index 5200224b..4e5f19da 100644 --- a/bindings/f77/Makefile.am +++ b/bindings/f77/Makefile.am @@ -28,6 +28,7 @@ # #==================================================================== lib_LTLIBRARIES=libNeXus77.la +AM_LDFLAGS=-version-info $(NXLTVERSINFO) libNeXus77_la_SOURCES=napif.f libNeXus77_la_LIBADD=$(top_builddir)/src/libNeXus.la # @FLIBS@ diff --git a/bindings/f77/napif.f b/bindings/f77/napif.f index eeb6e20d..deeb0da5 100644 --- a/bindings/f77/napif.f +++ b/bindings/f77/napif.f @@ -122,6 +122,17 @@ INTEGER FUNCTION NXOPENPATH(FILEID, PATH) NXOPENPATH = NXIOPENPATH(FILEID, IPATH) END + INTEGER FUNCTION NXGETPATH(FILEID, PATH) + INTEGER FILEID(*),NXIGETPATH, NXIFGETPATH + CHARACTER*(*) PATH + INTEGER*1 IPATH(1024) + INTEGER PLEN + EXTERNAL NXIFGETPATH + PLEN = 1024 + NXGETPATH = NXIFGETPATH(FILEID,IPATH,PLEN) + CALL REPLACE_STRING(PATH,IPATH) + END + INTEGER FUNCTION NXOPENGROUPPATH(FILEID, PATH) INTEGER FILEID(*),NXIOPENGROUPPATH CHARACTER*(*) PATH diff --git a/bindings/f77/napif.inc b/bindings/f77/napif.inc index 81a64433..38f79331 100644 --- a/bindings/f77/napif.inc +++ b/bindings/f77/napif.inc @@ -35,7 +35,8 @@ C *** NXaccess enum - access modes for NXopen C *** NXHANDLESIZE should be the size of an INTEGER*4 array that is (at least) C *** large enough to hold an NXhandle structure INTEGER NXHANDLESIZE - PARAMETER(NXHANDLESIZE=5120) +C PARAMETER(NXHANDLESIZE=5120) + PARAMETER(NXHANDLESIZE=9058) C *** NXLINKSIZE is (at least) the size of an INTEGER*4 array that can hold C *** an NXlink structure: we'll assume 64bit alignment of structure members for safety INTEGER NXLINKSIZE @@ -78,7 +79,7 @@ C**** NeXus Unlimited Dimension + NXGETGROUPINFO, NXINITGROUPDIR, NXGETATTRINFO, + NXINITATTRDIR, NXFLUSH, NXCOMPMAKEDATA, NXOPENPATH, + NXSETNUMBERFORMAT, NXOPENGROUPPATH, NXOPENSOURCEGROUP, - + NXMAKENAMEDLINK + + NXMAKENAMEDLINK, NXGETPATH LOGICAL NXSAMEID EXTERNAL NXOPEN, NXCLOSE, NXMAKEGROUP, NXOPENGROUP, NXCLOSEGROUP, + NXMAKEDATA, NXOPENDATA, NXCLOSEDATA, NXGETDATA, @@ -90,4 +91,4 @@ C**** NeXus Unlimited Dimension + NXINITATTRDIR, NXFLUSH, NXCOMPMAKEDATA, NXSAMEID, + NXOPENPATH,NXSETNUMBERFORMAT, NXOPENGROUPPATH, + NXOPENSOURCEGROUP, NXINQUIREFILE, NXISEXTERNALGROUP, - + NXLINKEXTERNAL, NXMAKENAMEDLINK + + NXLINKEXTERNAL, NXMAKENAMEDLINK, NXGETPATH diff --git a/bindings/f90/Makefile.am b/bindings/f90/Makefile.am index 8d7d8b4a..b5dc4a75 100644 --- a/bindings/f90/Makefile.am +++ b/bindings/f90/Makefile.am @@ -28,6 +28,7 @@ # #==================================================================== lib_LTLIBRARIES = libNeXus90.la +AM_LDFLAGS=-version-info $(NXLTVERSINFO) libNeXus90_la_SOURCES = NXmodule.f90 NXUmodule.f90 libNeXus90_la_LIBADD = $(top_builddir)/src/libNeXus.la diff --git a/bindings/idl/Makefile.am b/bindings/idl/Makefile.am index 43368d46..49033c9c 100755 --- a/bindings/idl/Makefile.am +++ b/bindings/idl/Makefile.am @@ -2,7 +2,7 @@ #==================================================================== # NeXus - Neutron & X-ray Common Data Format # -# $Id: Makefile.am 715 2005-12-16 18:11:19Z faa59 $ +# $Id$ # # Makefile for NeXus FORTRAN 90 bindings # @@ -34,14 +34,28 @@ # It works by determining what platform you are on and then # recursively invoking make with the proper options to do the build. # -lib_LTLIBRARIES = libNeXusIDL-API.la +idldlmdir = @IDLDLM@ +idldlm_LTLIBRARIES = libNeXusIDL-API.la +idldlm_DATA = NeXusIDL-API.dlm libNeXusIDL_API_la_SOURCES = NeXusIDL-API.c handle.c handle.h libNeXusIDL_API_la_LIBADD = $(top_builddir)/src/libNeXus.la -libNeXusIDL_API_la_LDFLAGS = @SHARED_LDFLAGS@ -Wl,--no-undefined -L$(IDLROOT)/bin/bin.linux.x86 -lidl $(LDFLAGS) +libNeXusIDL_API_la_LDFLAGS = @SHARED_LDFLAGS@ -L$(IDLROOT)/bin/$(IDL_HOST) -lidl $(LDFLAGS) AM_CPPFLAGS = -I$(IDLROOT)/external/include +all : all-am NeXusIDL-API.so + +install-exec-hook : + ( cd $(DESTDIR)$(idldlmdir); ln -s libNeXusIDL-API.so NeXusIDL-API.so ) + + +NeXusIDL-API.so : libNeXusIDL-API.la + ln -sf .libs/libNeXusIDL-API.so $@ + if test ! -r NeXusIDL-API.dlm; then ln -s $(srcdir)/NeXusIDL-API.dlm .; fi + +CLEANFILES = NeXusIDL-API.so + EXTRA_DIST = \ build_testmodule.pro \ build_win.bat \ @@ -60,7 +74,8 @@ EXTRA_DIST = \ recursiveread.pro \ recursivesearch.pro \ testfocus.pro \ - write_test.pro + write_test.pro \ + testidlnapi dist-hook : find $(distdir)/data -depth -type d -name '.svn' -exec rm -fr {} \; diff --git a/bindings/idl/NXtest.h5 b/bindings/idl/NXtest.h5 index e69de29b..20e8e010 100644 Binary files a/bindings/idl/NXtest.h5 and b/bindings/idl/NXtest.h5 differ diff --git a/bindings/idl/NXtest.hdf b/bindings/idl/NXtest.hdf index 59ea3909..f2d0cf86 100644 Binary files a/bindings/idl/NXtest.hdf and b/bindings/idl/NXtest.hdf differ diff --git a/bindings/idl/NXtest.xml b/bindings/idl/NXtest.xml index 8d236212..603b4c08 100644 --- a/bindings/idl/NXtest.xml +++ b/bindings/idl/NXtest.xml @@ -1,11 +1,14 @@ - + - NeXus Data + NeXus Data - 0 1 2 4 4 5 6 7 8 9 - 10 11 12 13 14 15 + 0 1 2 4 4 5 6 7 8 9 10 11 + 12 13 14 15 0 1 2 3 4 @@ -22,524 +25,422 @@ file_time="2007-07-25 15:01:46+0100"> - 0.00000 0.00000 0.00000 - 0.00000 0.00000 0.00000 - 0.00000 0.00000 0.01111 - 0.02122 0.23333 0.34444 - 0.00000 0.00000 0.00000 - 0.00000 + 0.00000 0.00000 0.01111 0.00000 + 0.00000 0.00000 0.02122 0.00000 + 0.00000 0.00000 0.23333 0.00000 + 0.00000 0.00000 0.34444 0.00000 - - 0 1 2 3 - 4 5 6 7 - 8 9 10 11 - 12 13 14 15 - 16 17 18 19 - 20 21 22 23 - 24 25 26 27 - 28 29 30 31 - 32 33 34 35 - 36 37 38 39 - 40 41 42 43 - 44 45 46 47 - 48 49 50 51 - 52 53 54 55 - 56 57 58 59 - 60 61 62 63 - 64 65 66 67 - 68 69 70 71 - 72 73 74 75 - 76 77 78 79 - 80 81 82 83 - 84 85 86 87 - 88 89 90 91 - 92 93 94 95 - 96 97 98 99 - 100 101 102 103 - 104 105 106 107 - 108 109 110 111 - 112 113 114 115 - 116 117 118 119 - 120 121 122 123 - 124 125 126 127 - 128 129 130 131 - 132 133 134 135 - 136 137 138 139 - 140 141 142 143 - 144 145 146 147 - 148 149 150 151 - 152 153 154 155 - 156 157 158 159 - 160 161 162 163 - 164 165 166 167 - 168 169 170 171 - 172 173 174 175 - 176 177 178 179 - 180 181 182 183 - 184 185 186 187 - 188 189 190 191 - 192 193 194 195 - 196 197 198 199 - 200 201 202 203 - 204 205 206 207 - 208 209 210 211 - 212 213 214 215 - 216 217 218 219 - 220 221 222 223 - 224 225 226 227 - 228 229 230 231 - 232 233 234 235 - 236 237 238 239 - 240 241 242 243 - 244 245 246 247 - 248 249 250 251 - 252 253 254 255 - 256 257 258 259 - 260 261 262 263 - 264 265 266 267 - 268 269 270 271 - 272 273 274 275 - 276 277 278 279 - 280 281 282 283 - 284 285 286 287 - 288 289 290 291 - 292 293 294 295 - 296 297 298 299 - 300 301 302 303 - 304 305 306 307 - 308 309 310 311 - 312 313 314 315 - 316 317 318 319 - 320 321 322 323 - 324 325 326 327 - 328 329 330 331 - 332 333 334 335 - 336 337 338 339 - 340 341 342 343 - 344 345 346 347 - 348 349 350 351 - 352 353 354 355 - 356 357 358 359 - 360 361 362 363 - 364 365 366 367 - 368 369 370 371 - 372 373 374 375 - 376 377 378 379 - 380 381 382 383 - 384 385 386 387 - 388 389 390 391 - 392 393 394 395 - 396 397 398 399 - 400 401 402 403 - 404 405 406 407 - 408 409 410 411 - 412 413 414 415 - 416 417 418 419 - 420 421 422 423 - 424 425 426 427 - 428 429 430 431 - 432 433 434 435 - 436 437 438 439 - 440 441 442 443 - 444 445 446 447 - 448 449 450 451 - 452 453 454 455 - 456 457 458 459 - 460 461 462 463 - 464 465 466 467 - 468 469 470 471 - 472 473 474 475 - 476 477 478 479 - 480 481 482 483 - 484 485 486 487 - 488 489 490 491 - 492 493 494 495 - 496 497 498 499 - 500 501 502 503 - 504 505 506 507 - 508 509 510 511 - 512 513 514 515 - 516 517 518 519 - 520 521 522 523 - 524 525 526 527 - 528 529 530 531 - 532 533 534 535 - 536 537 538 539 - 540 541 542 543 - 544 545 546 547 - 548 549 550 551 - 552 553 554 555 - 556 557 558 559 - 560 561 562 563 - 564 565 566 567 - 568 569 570 571 - 572 573 574 575 - 576 577 578 579 - 580 581 582 583 - 584 585 586 587 - 588 589 590 591 - 592 593 594 595 - 596 597 598 599 - 600 601 602 603 - 604 605 606 607 - 608 609 610 611 - 612 613 614 615 - 616 617 618 619 - 620 621 622 623 - 624 625 626 627 - 628 629 630 631 - 632 633 634 635 - 636 637 638 639 - 640 641 642 643 - 644 645 646 647 - 648 649 650 651 - 652 653 654 655 - 656 657 658 659 - 660 661 662 663 - 664 665 666 667 - 668 669 670 671 - 672 673 674 675 - 676 677 678 679 - 680 681 682 683 - 684 685 686 687 - 688 689 690 691 - 692 693 694 695 - 696 697 698 699 - 700 701 702 703 - 704 705 706 707 - 708 709 710 711 - 712 713 714 715 - 716 717 718 719 - 720 721 722 723 - 724 725 726 727 - 728 729 730 731 - 732 733 734 735 - 736 737 738 739 - 740 741 742 743 - 744 745 746 747 - 748 749 750 751 - 752 753 754 755 - 756 757 758 759 - 760 761 762 763 - 764 765 766 767 - 768 769 770 771 - 772 773 774 775 - 776 777 778 779 - 780 781 782 783 - 784 785 786 787 - 788 789 790 791 - 792 793 794 795 - 796 797 798 799 - 800 801 802 803 - 804 805 806 807 - 808 809 810 811 - 812 813 814 815 - 816 817 818 819 - 820 821 822 823 - 824 825 826 827 - 828 829 830 831 - 832 833 834 835 - 836 837 838 839 - 840 841 842 843 - 844 845 846 847 - 848 849 850 851 - 852 853 854 855 - 856 857 858 859 - 860 861 862 863 - 864 865 866 867 - 868 869 870 871 - 872 873 874 875 - 876 877 878 879 - 880 881 882 883 - 884 885 886 887 - 888 889 890 891 - 892 893 894 895 - 896 897 898 899 - 900 901 902 903 - 904 905 906 907 - 908 909 910 911 - 912 913 914 915 - 916 917 918 919 - 920 921 922 923 - 924 925 926 927 - 928 929 930 931 - 932 933 934 935 - 936 937 938 939 - 940 941 942 943 - 944 945 946 947 - 948 949 950 951 - 952 953 954 955 - 956 957 958 959 - 960 961 962 963 - 964 965 966 967 - 968 969 970 971 - 972 973 974 975 - 976 977 978 979 - 980 981 982 983 - 984 985 986 987 - 988 989 990 991 - 992 993 994 995 - 996 997 998 999 - 1000 1001 1002 1003 - 1004 1005 1006 1007 - 1008 1009 1010 1011 - 1012 1013 1014 1015 - 1016 1017 1018 1019 - 1020 1021 1022 1023 - 1024 1025 1026 1027 - 1028 1029 1030 1031 - 1032 1033 1034 1035 - 1036 1037 1038 1039 - 1040 1041 1042 1043 - 1044 1045 1046 1047 - 1048 1049 1050 1051 - 1052 1053 1054 1055 - 1056 1057 1058 1059 - 1060 1061 1062 1063 - 1064 1065 1066 1067 - 1068 1069 1070 1071 - 1072 1073 1074 1075 - 1076 1077 1078 1079 - 1080 1081 1082 1083 - 1084 1085 1086 1087 - 1088 1089 1090 1091 - 1092 1093 1094 1095 - 1096 1097 1098 1099 - 1100 1101 1102 1103 - 1104 1105 1106 1107 - 1108 1109 1110 1111 - 1112 1113 1114 1115 - 1116 1117 1118 1119 - 1120 1121 1122 1123 - 1124 1125 1126 1127 - 1128 1129 1130 1131 - 1132 1133 1134 1135 - 1136 1137 1138 1139 - 1140 1141 1142 1143 - 1144 1145 1146 1147 - 1148 1149 1150 1151 - 1152 1153 1154 1155 - 1156 1157 1158 1159 - 1160 1161 1162 1163 - 1164 1165 1166 1167 - 1168 1169 1170 1171 - 1172 1173 1174 1175 - 1176 1177 1178 1179 - 1180 1181 1182 1183 - 1184 1185 1186 1187 - 1188 1189 1190 1191 - 1192 1193 1194 1195 - 1196 1197 1198 1199 - 1200 1201 1202 1203 - 1204 1205 1206 1207 - 1208 1209 1210 1211 - 1212 1213 1214 1215 - 1216 1217 1218 1219 - 1220 1221 1222 1223 - 1224 1225 1226 1227 - 1228 1229 1230 1231 - 1232 1233 1234 1235 - 1236 1237 1238 1239 - 1240 1241 1242 1243 - 1244 1245 1246 1247 - 1248 1249 1250 1251 - 1252 1253 1254 1255 - 1256 1257 1258 1259 - 1260 1261 1262 1263 - 1264 1265 1266 1267 - 1268 1269 1270 1271 - 1272 1273 1274 1275 - 1276 1277 1278 1279 - 1280 1281 1282 1283 - 1284 1285 1286 1287 - 1288 1289 1290 1291 - 1292 1293 1294 1295 - 1296 1297 1298 1299 - 1300 1301 1302 1303 - 1304 1305 1306 1307 - 1308 1309 1310 1311 - 1312 1313 1314 1315 - 1316 1317 1318 1319 - 1320 1321 1322 1323 - 1324 1325 1326 1327 - 1328 1329 1330 1331 - 1332 1333 1334 1335 - 1336 1337 1338 1339 - 1340 1341 1342 1343 - 1344 1345 1346 1347 - 1348 1349 1350 1351 - 1352 1353 1354 1355 - 1356 1357 1358 1359 - 1360 1361 1362 1363 - 1364 1365 1366 1367 - 1368 1369 1370 1371 - 1372 1373 1374 1375 - 1376 1377 1378 1379 - 1380 1381 1382 1383 - 1384 1385 1386 1387 - 1388 1389 1390 1391 - 1392 1393 1394 1395 - 1396 1397 1398 1399 - 1400 1401 1402 1403 - 1404 1405 1406 1407 - 1408 1409 1410 1411 - 1412 1413 1414 1415 - 1416 1417 1418 1419 - 1420 1421 1422 1423 - 1424 1425 1426 1427 - 1428 1429 1430 1431 - 1432 1433 1434 1435 - 1436 1437 1438 1439 - 1440 1441 1442 1443 - 1444 1445 1446 1447 - 1448 1449 1450 1451 - 1452 1453 1454 1455 - 1456 1457 1458 1459 - 1460 1461 1462 1463 - 1464 1465 1466 1467 - 1468 1469 1470 1471 - 1472 1473 1474 1475 - 1476 1477 1478 1479 - 1480 1481 1482 1483 - 1484 1485 1486 1487 - 1488 1489 1490 1491 - 1492 1493 1494 1495 - 1496 1497 1498 1499 - 1500 1501 1502 1503 - 1504 1505 1506 1507 - 1508 1509 1510 1511 - 1512 1513 1514 1515 - 1516 1517 1518 1519 - 1520 1521 1522 1523 - 1524 1525 1526 1527 - 1528 1529 1530 1531 - 1532 1533 1534 1535 - 1536 1537 1538 1539 - 1540 1541 1542 1543 - 1544 1545 1546 1547 - 1548 1549 1550 1551 - 1552 1553 1554 1555 - 1556 1557 1558 1559 - 1560 1561 1562 1563 - 1564 1565 1566 1567 - 1568 1569 1570 1571 - 1572 1573 1574 1575 - 1576 1577 1578 1579 - 1580 1581 1582 1583 - 1584 1585 1586 1587 - 1588 1589 1590 1591 - 1592 1593 1594 1595 - 1596 1597 1598 1599 - 1600 1601 1602 1603 - 1604 1605 1606 1607 - 1608 1609 1610 1611 - 1612 1613 1614 1615 - 1616 1617 1618 1619 - 1620 1621 1622 1623 - 1624 1625 1626 1627 - 1628 1629 1630 1631 - 1632 1633 1634 1635 - 1636 1637 1638 1639 - 1640 1641 1642 1643 - 1644 1645 1646 1647 - 1648 1649 1650 1651 - 1652 1653 1654 1655 - 1656 1657 1658 1659 - 1660 1661 1662 1663 - 1664 1665 1666 1667 - 1668 1669 1670 1671 - 1672 1673 1674 1675 - 1676 1677 1678 1679 - 1680 1681 1682 1683 - 1684 1685 1686 1687 - 1688 1689 1690 1691 - 1692 1693 1694 1695 - 1696 1697 1698 1699 - 1700 1701 1702 1703 - 1704 1705 1706 1707 - 1708 1709 1710 1711 - 1712 1713 1714 1715 - 1716 1717 1718 1719 - 1720 1721 1722 1723 - 1724 1725 1726 1727 - 1728 1729 1730 1731 - 1732 1733 1734 1735 - 1736 1737 1738 1739 - 1740 1741 1742 1743 - 1744 1745 1746 1747 - 1748 1749 1750 1751 - 1752 1753 1754 1755 - 1756 1757 1758 1759 - 1760 1761 1762 1763 - 1764 1765 1766 1767 - 1768 1769 1770 1771 - 1772 1773 1774 1775 - 1776 1777 1778 1779 - 1780 1781 1782 1783 - 1784 1785 1786 1787 - 1788 1789 1790 1791 - 1792 1793 1794 1795 - 1796 1797 1798 1799 - 1800 1801 1802 1803 - 1804 1805 1806 1807 - 1808 1809 1810 1811 - 1812 1813 1814 1815 - 1816 1817 1818 1819 - 1820 1821 1822 1823 - 1824 1825 1826 1827 - 1828 1829 1830 1831 - 1832 1833 1834 1835 - 1836 1837 1838 1839 - 1840 1841 1842 1843 - 1844 1845 1846 1847 - 1848 1849 1850 1851 - 1852 1853 1854 1855 - 1856 1857 1858 1859 - 1860 1861 1862 1863 - 1864 1865 1866 1867 - 1868 1869 1870 1871 - 1872 1873 1874 1875 - 1876 1877 1878 1879 - 1880 1881 1882 1883 - 1884 1885 1886 1887 - 1888 1889 1890 1891 - 1892 1893 1894 1895 - 1896 1897 1898 1899 - 1900 1901 1902 1903 - 1904 1905 1906 1907 - 1908 1909 1910 1911 - 1912 1913 1914 1915 - 1916 1917 1918 1919 - 1920 1921 1922 1923 - 1924 1925 1926 1927 - 1928 1929 1930 1931 - 1932 1933 1934 1935 - 1936 1937 1938 1939 - 1940 1941 1942 1943 - 1944 1945 1946 1947 - 1948 1949 1950 1951 - 1952 1953 1954 1955 - 1956 1957 1958 1959 - 1960 1961 1962 1963 - 1964 1965 1966 1967 - 1968 1969 1970 1971 - 1972 1973 1974 1975 - 1976 1977 1978 1979 - 1980 1981 1982 1983 - 1984 1985 1986 1987 - 1988 1989 1990 1991 - 1992 1993 1994 1995 - 1996 1997 1998 1999 + + 0 1 2 3 4 + 5 6 7 8 9 + 10 11 12 13 14 + 15 16 17 18 19 + 20 21 22 23 24 + 25 26 27 28 29 + 30 31 32 33 34 + 35 36 37 38 39 + 40 41 42 43 44 + 45 46 47 48 49 + 50 51 52 53 54 + 55 56 57 58 59 + 60 61 62 63 64 + 65 66 67 68 69 + 70 71 72 73 74 + 75 76 77 78 79 + 80 81 82 83 84 + 85 86 87 88 89 + 90 91 92 93 94 + 95 96 97 98 99 + 100 101 102 103 104 + 105 106 107 108 109 + 110 111 112 113 114 + 115 116 117 118 119 + 120 121 122 123 124 + 125 126 127 128 129 + 130 131 132 133 134 + 135 136 137 138 139 + 140 141 142 143 144 + 145 146 147 148 149 + 150 151 152 153 154 + 155 156 157 158 159 + 160 161 162 163 164 + 165 166 167 168 169 + 170 171 172 173 174 + 175 176 177 178 179 + 180 181 182 183 184 + 185 186 187 188 189 + 190 191 192 193 194 + 195 196 197 198 199 + 200 201 202 203 204 + 205 206 207 208 209 + 210 211 212 213 214 + 215 216 217 218 219 + 220 221 222 223 224 + 225 226 227 228 229 + 230 231 232 233 234 + 235 236 237 238 239 + 240 241 242 243 244 + 245 246 247 248 249 + 250 251 252 253 254 + 255 256 257 258 259 + 260 261 262 263 264 + 265 266 267 268 269 + 270 271 272 273 274 + 275 276 277 278 279 + 280 281 282 283 284 + 285 286 287 288 289 + 290 291 292 293 294 + 295 296 297 298 299 + 300 301 302 303 304 + 305 306 307 308 309 + 310 311 312 313 314 + 315 316 317 318 319 + 320 321 322 323 324 + 325 326 327 328 329 + 330 331 332 333 334 + 335 336 337 338 339 + 340 341 342 343 344 + 345 346 347 348 349 + 350 351 352 353 354 + 355 356 357 358 359 + 360 361 362 363 364 + 365 366 367 368 369 + 370 371 372 373 374 + 375 376 377 378 379 + 380 381 382 383 384 + 385 386 387 388 389 + 390 391 392 393 394 + 395 396 397 398 399 + 400 401 402 403 404 + 405 406 407 408 409 + 410 411 412 413 414 + 415 416 417 418 419 + 420 421 422 423 424 + 425 426 427 428 429 + 430 431 432 433 434 + 435 436 437 438 439 + 440 441 442 443 444 + 445 446 447 448 449 + 450 451 452 453 454 + 455 456 457 458 459 + 460 461 462 463 464 + 465 466 467 468 469 + 470 471 472 473 474 + 475 476 477 478 479 + 480 481 482 483 484 + 485 486 487 488 489 + 490 491 492 493 494 + 495 496 497 498 499 + 500 501 502 503 504 + 505 506 507 508 509 + 510 511 512 513 514 + 515 516 517 518 519 + 520 521 522 523 524 + 525 526 527 528 529 + 530 531 532 533 534 + 535 536 537 538 539 + 540 541 542 543 544 + 545 546 547 548 549 + 550 551 552 553 554 + 555 556 557 558 559 + 560 561 562 563 564 + 565 566 567 568 569 + 570 571 572 573 574 + 575 576 577 578 579 + 580 581 582 583 584 + 585 586 587 588 589 + 590 591 592 593 594 + 595 596 597 598 599 + 600 601 602 603 604 + 605 606 607 608 609 + 610 611 612 613 614 + 615 616 617 618 619 + 620 621 622 623 624 + 625 626 627 628 629 + 630 631 632 633 634 + 635 636 637 638 639 + 640 641 642 643 644 + 645 646 647 648 649 + 650 651 652 653 654 + 655 656 657 658 659 + 660 661 662 663 664 + 665 666 667 668 669 + 670 671 672 673 674 + 675 676 677 678 679 + 680 681 682 683 684 + 685 686 687 688 689 + 690 691 692 693 694 + 695 696 697 698 699 + 700 701 702 703 704 + 705 706 707 708 709 + 710 711 712 713 714 + 715 716 717 718 719 + 720 721 722 723 724 + 725 726 727 728 729 + 730 731 732 733 734 + 735 736 737 738 739 + 740 741 742 743 744 + 745 746 747 748 749 + 750 751 752 753 754 + 755 756 757 758 759 + 760 761 762 763 764 + 765 766 767 768 769 + 770 771 772 773 774 + 775 776 777 778 779 + 780 781 782 783 784 + 785 786 787 788 789 + 790 791 792 793 794 + 795 796 797 798 799 + 800 801 802 803 804 + 805 806 807 808 809 + 810 811 812 813 814 + 815 816 817 818 819 + 820 821 822 823 824 + 825 826 827 828 829 + 830 831 832 833 834 + 835 836 837 838 839 + 840 841 842 843 844 + 845 846 847 848 849 + 850 851 852 853 854 + 855 856 857 858 859 + 860 861 862 863 864 + 865 866 867 868 869 + 870 871 872 873 874 + 875 876 877 878 879 + 880 881 882 883 884 + 885 886 887 888 889 + 890 891 892 893 894 + 895 896 897 898 899 + 900 901 902 903 904 + 905 906 907 908 909 + 910 911 912 913 914 + 915 916 917 918 919 + 920 921 922 923 924 + 925 926 927 928 929 + 930 931 932 933 934 + 935 936 937 938 939 + 940 941 942 943 944 + 945 946 947 948 949 + 950 951 952 953 954 + 955 956 957 958 959 + 960 961 962 963 964 + 965 966 967 968 969 + 970 971 972 973 974 + 975 976 977 978 979 + 980 981 982 983 984 + 985 986 987 988 989 + 990 991 992 993 994 + 995 996 997 998 999 + 1000 1001 1002 1003 1004 + 1005 1006 1007 1008 1009 + 1010 1011 1012 1013 1014 + 1015 1016 1017 1018 1019 + 1020 1021 1022 1023 1024 + 1025 1026 1027 1028 1029 + 1030 1031 1032 1033 1034 + 1035 1036 1037 1038 1039 + 1040 1041 1042 1043 1044 + 1045 1046 1047 1048 1049 + 1050 1051 1052 1053 1054 + 1055 1056 1057 1058 1059 + 1060 1061 1062 1063 1064 + 1065 1066 1067 1068 1069 + 1070 1071 1072 1073 1074 + 1075 1076 1077 1078 1079 + 1080 1081 1082 1083 1084 + 1085 1086 1087 1088 1089 + 1090 1091 1092 1093 1094 + 1095 1096 1097 1098 1099 + 1100 1101 1102 1103 1104 + 1105 1106 1107 1108 1109 + 1110 1111 1112 1113 1114 + 1115 1116 1117 1118 1119 + 1120 1121 1122 1123 1124 + 1125 1126 1127 1128 1129 + 1130 1131 1132 1133 1134 + 1135 1136 1137 1138 1139 + 1140 1141 1142 1143 1144 + 1145 1146 1147 1148 1149 + 1150 1151 1152 1153 1154 + 1155 1156 1157 1158 1159 + 1160 1161 1162 1163 1164 + 1165 1166 1167 1168 1169 + 1170 1171 1172 1173 1174 + 1175 1176 1177 1178 1179 + 1180 1181 1182 1183 1184 + 1185 1186 1187 1188 1189 + 1190 1191 1192 1193 1194 + 1195 1196 1197 1198 1199 + 1200 1201 1202 1203 1204 + 1205 1206 1207 1208 1209 + 1210 1211 1212 1213 1214 + 1215 1216 1217 1218 1219 + 1220 1221 1222 1223 1224 + 1225 1226 1227 1228 1229 + 1230 1231 1232 1233 1234 + 1235 1236 1237 1238 1239 + 1240 1241 1242 1243 1244 + 1245 1246 1247 1248 1249 + 1250 1251 1252 1253 1254 + 1255 1256 1257 1258 1259 + 1260 1261 1262 1263 1264 + 1265 1266 1267 1268 1269 + 1270 1271 1272 1273 1274 + 1275 1276 1277 1278 1279 + 1280 1281 1282 1283 1284 + 1285 1286 1287 1288 1289 + 1290 1291 1292 1293 1294 + 1295 1296 1297 1298 1299 + 1300 1301 1302 1303 1304 + 1305 1306 1307 1308 1309 + 1310 1311 1312 1313 1314 + 1315 1316 1317 1318 1319 + 1320 1321 1322 1323 1324 + 1325 1326 1327 1328 1329 + 1330 1331 1332 1333 1334 + 1335 1336 1337 1338 1339 + 1340 1341 1342 1343 1344 + 1345 1346 1347 1348 1349 + 1350 1351 1352 1353 1354 + 1355 1356 1357 1358 1359 + 1360 1361 1362 1363 1364 + 1365 1366 1367 1368 1369 + 1370 1371 1372 1373 1374 + 1375 1376 1377 1378 1379 + 1380 1381 1382 1383 1384 + 1385 1386 1387 1388 1389 + 1390 1391 1392 1393 1394 + 1395 1396 1397 1398 1399 + 1400 1401 1402 1403 1404 + 1405 1406 1407 1408 1409 + 1410 1411 1412 1413 1414 + 1415 1416 1417 1418 1419 + 1420 1421 1422 1423 1424 + 1425 1426 1427 1428 1429 + 1430 1431 1432 1433 1434 + 1435 1436 1437 1438 1439 + 1440 1441 1442 1443 1444 + 1445 1446 1447 1448 1449 + 1450 1451 1452 1453 1454 + 1455 1456 1457 1458 1459 + 1460 1461 1462 1463 1464 + 1465 1466 1467 1468 1469 + 1470 1471 1472 1473 1474 + 1475 1476 1477 1478 1479 + 1480 1481 1482 1483 1484 + 1485 1486 1487 1488 1489 + 1490 1491 1492 1493 1494 + 1495 1496 1497 1498 1499 + 1500 1501 1502 1503 1504 + 1505 1506 1507 1508 1509 + 1510 1511 1512 1513 1514 + 1515 1516 1517 1518 1519 + 1520 1521 1522 1523 1524 + 1525 1526 1527 1528 1529 + 1530 1531 1532 1533 1534 + 1535 1536 1537 1538 1539 + 1540 1541 1542 1543 1544 + 1545 1546 1547 1548 1549 + 1550 1551 1552 1553 1554 + 1555 1556 1557 1558 1559 + 1560 1561 1562 1563 1564 + 1565 1566 1567 1568 1569 + 1570 1571 1572 1573 1574 + 1575 1576 1577 1578 1579 + 1580 1581 1582 1583 1584 + 1585 1586 1587 1588 1589 + 1590 1591 1592 1593 1594 + 1595 1596 1597 1598 1599 + 1600 1601 1602 1603 1604 + 1605 1606 1607 1608 1609 + 1610 1611 1612 1613 1614 + 1615 1616 1617 1618 1619 + 1620 1621 1622 1623 1624 + 1625 1626 1627 1628 1629 + 1630 1631 1632 1633 1634 + 1635 1636 1637 1638 1639 + 1640 1641 1642 1643 1644 + 1645 1646 1647 1648 1649 + 1650 1651 1652 1653 1654 + 1655 1656 1657 1658 1659 + 1660 1661 1662 1663 1664 + 1665 1666 1667 1668 1669 + 1670 1671 1672 1673 1674 + 1675 1676 1677 1678 1679 + 1680 1681 1682 1683 1684 + 1685 1686 1687 1688 1689 + 1690 1691 1692 1693 1694 + 1695 1696 1697 1698 1699 + 1700 1701 1702 1703 1704 + 1705 1706 1707 1708 1709 + 1710 1711 1712 1713 1714 + 1715 1716 1717 1718 1719 + 1720 1721 1722 1723 1724 + 1725 1726 1727 1728 1729 + 1730 1731 1732 1733 1734 + 1735 1736 1737 1738 1739 + 1740 1741 1742 1743 1744 + 1745 1746 1747 1748 1749 + 1750 1751 1752 1753 1754 + 1755 1756 1757 1758 1759 + 1760 1761 1762 1763 1764 + 1765 1766 1767 1768 1769 + 1770 1771 1772 1773 1774 + 1775 1776 1777 1778 1779 + 1780 1781 1782 1783 1784 + 1785 1786 1787 1788 1789 + 1790 1791 1792 1793 1794 + 1795 1796 1797 1798 1799 + 1800 1801 1802 1803 1804 + 1805 1806 1807 1808 1809 + 1810 1811 1812 1813 1814 + 1815 1816 1817 1818 1819 + 1820 1821 1822 1823 1824 + 1825 1826 1827 1828 1829 + 1830 1831 1832 1833 1834 + 1835 1836 1837 1838 1839 + 1840 1841 1842 1843 1844 + 1845 1846 1847 1848 1849 + 1850 1851 1852 1853 1854 + 1855 1856 1857 1858 1859 + 1860 1861 1862 1863 1864 + 1865 1866 1867 1868 1869 + 1870 1871 1872 1873 1874 + 1875 1876 1877 1878 1879 + 1880 1881 1882 1883 1884 + 1885 1886 1887 1888 1889 + 1890 1891 1892 1893 1894 + 1895 1896 1897 1898 1899 + 1900 1901 1902 1903 1904 + 1905 1906 1907 1908 1909 + 1910 1911 1912 1913 1914 + 1915 1916 1917 1918 1919 + 1920 1921 1922 1923 1924 + 1925 1926 1927 1928 1929 + 1930 1931 1932 1933 1934 + 1935 1936 1937 1938 1939 + 1940 1941 1942 1943 1944 + 1945 1946 1947 1948 1949 + 1950 1951 1952 1953 1954 + 1955 1956 1957 1958 1959 + 1960 1961 1962 1963 1964 + 1965 1966 1967 1968 1969 + 1970 1971 1972 1973 1974 + 1975 1976 1977 1978 1979 + 1980 1981 1982 1983 1984 + 1985 1986 1987 1988 1989 + 1990 1991 1992 1993 1994 + 1995 1996 1997 1998 1999 - 0 1 2 3 - 4 5 6 7 + 0 1 2 3 4 + 5 6 7 - NeXus sample + NeXus sample diff --git a/bindings/idl/NeXusIDL-API.c b/bindings/idl/NeXusIDL-API.c index 0eb141e9..c7a97dbb 100644 --- a/bindings/idl/NeXusIDL-API.c +++ b/bindings/idl/NeXusIDL-API.c @@ -22,9 +22,10 @@ For further information, see */ #include - +#include #include "idl_export.h" #include "../../include/napi.h" +#include "handle.h" /* Windows path: */ /* #include "C:\Program Files\NeXus Data Format\include\napi.h" */ @@ -139,7 +140,7 @@ static IDL_VPTR NXopen_this(int argc, IDL_VPTR *argv) static IDL_VPTR NXopenpath_this(int argc, IDL_VPTR *argv) { - int *fileid; + int fileid; NXhandle hHandle; int iHandle, status; char* path; @@ -152,7 +153,7 @@ static IDL_VPTR NXopenpath_this(int argc, IDL_VPTR *argv) IDL_ENSURE_SCALAR(argv[0]); IDL_ENSURE_STRING(argv[1]); - fileid = (int *)IDL_LongScalar(argv[0]); + fileid = (int)IDL_LongScalar(argv[0]); path = IDL_VarGetString(argv[1]); @@ -161,7 +162,7 @@ static IDL_VPTR NXopenpath_this(int argc, IDL_VPTR *argv) return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); NXMSetError(NULL,idlError); status = NXopenpath (hHandle, path); @@ -182,7 +183,7 @@ static IDL_VPTR NXopenpath_this(int argc, IDL_VPTR *argv) static IDL_VPTR NXopengrouppath_this(int argc, IDL_VPTR *argv) { - int *fileid; + int fileid; NXhandle hHandle; int iHandle, status; char* path; @@ -195,7 +196,7 @@ static IDL_VPTR NXopengrouppath_this(int argc, IDL_VPTR *argv) IDL_ENSURE_SCALAR(argv[0]); IDL_ENSURE_STRING(argv[1]); - fileid = (int *)IDL_LongScalar(argv[0]); + fileid = (int)IDL_LongScalar(argv[0]); path = IDL_VarGetString(argv[1]); @@ -204,7 +205,7 @@ static IDL_VPTR NXopengrouppath_this(int argc, IDL_VPTR *argv) return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); NXMSetError(NULL,idlError); status = NXopengrouppath (hHandle, path); @@ -216,6 +217,41 @@ static IDL_VPTR NXopengrouppath_this(int argc, IDL_VPTR *argv) return IDL_GettmpInt(status); } +/*====================================================================== + * NXgetpath + * string = NXgetpath(file_id) + *======================================================================*/ +static IDL_VPTR NXgetpath_this(int argc, IDL_VPTR *argv) +{ + int fileid; + NXhandle hHandle; + int iHandle, status; + char path[1024]; + + if (argc != 1) { + IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "One argument expected"); + return IDL_StrToSTRING("One argument expected"); + } + + IDL_ENSURE_SCALAR(argv[0]); + + fileid = (int)IDL_LongScalar(argv[0]); + + if(HHCheckIfHandleExists(fileid) == -1) { + IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); + return IDL_StrToSTRING("ERROR: Unknown file ID"); + } + + hHandle = HHGetPointer(fileid); + NXMSetError(NULL,idlError); + + status = NXgetpath(hHandle,path,1024); + if(status == NX_ERROR){ + IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, nexusError); + return IDL_StrToSTRING(nexusError); + } + return IDL_StrToSTRING(path); +} /*====================================================================== * Nxclose @@ -223,7 +259,7 @@ static IDL_VPTR NXopengrouppath_this(int argc, IDL_VPTR *argv) *=======================================================================*/ static IDL_VPTR NXclose_this(int argc, IDL_VPTR *argv) { - int *fileid; + int fileid; NXhandle hHandle; int iHandle, status; @@ -235,7 +271,7 @@ static IDL_VPTR NXclose_this(int argc, IDL_VPTR *argv) IDL_ENSURE_SCALAR(argv[0]); /* Convert IDL variables from arguments to C-land */ - fileid = (int *) IDL_LongScalar(argv[0]); + fileid = (int) IDL_LongScalar(argv[0]); if( HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); @@ -324,7 +360,7 @@ else { static IDL_VPTR NXsetnumberformat_this(int argc, IDL_VPTR *argv) { - int *fileid; + int fileid; NXhandle hHandle; int iHandle, status; int data_type; @@ -388,7 +424,7 @@ else { } }*/ - fileid = (int *) IDL_LongScalar(argv[0]); + fileid = (int ) IDL_LongScalar(argv[0]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); @@ -413,7 +449,7 @@ else { static IDL_VPTR NXmakegroup_this(int argc, IDL_VPTR *argv) { - int *fileid; + int fileid; NXhandle hHandle; int iHandle, status; char* group_name; @@ -427,7 +463,7 @@ static IDL_VPTR NXmakegroup_this(int argc, IDL_VPTR *argv) IDL_ENSURE_STRING(argv[1]); IDL_ENSURE_STRING(argv[2]); - fileid = (int *)IDL_LongScalar(argv[0]); + fileid = (int)IDL_LongScalar(argv[0]); group_name = IDL_VarGetString(argv[1]); group_class = IDL_VarGetString(argv[2]); @@ -436,7 +472,7 @@ static IDL_VPTR NXmakegroup_this(int argc, IDL_VPTR *argv) return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); NXMSetError(NULL,idlError); @@ -456,7 +492,7 @@ static IDL_VPTR NXmakegroup_this(int argc, IDL_VPTR *argv) static IDL_VPTR NXopengroup_this(int argc, IDL_VPTR *argv) { - int *fileid; + int fileid; NXhandle hHandle; int iHandle, status; char* group_name; @@ -471,7 +507,7 @@ static IDL_VPTR NXopengroup_this(int argc, IDL_VPTR *argv) IDL_ENSURE_STRING(argv[1]); IDL_ENSURE_STRING(argv[2]); - fileid = (int *)IDL_LongScalar(argv[0]); + fileid = (int)IDL_LongScalar(argv[0]); group_name = IDL_VarGetString(argv[1]); group_class = IDL_VarGetString(argv[2]); @@ -481,7 +517,7 @@ static IDL_VPTR NXopengroup_this(int argc, IDL_VPTR *argv) return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); NXMSetError(NULL,idlError); @@ -503,7 +539,7 @@ static IDL_VPTR NXopengroup_this(int argc, IDL_VPTR *argv) static IDL_VPTR NXclosegroup_this(int argc, IDL_VPTR *argv) { - int *fileid; + int fileid; NXhandle hHandle; int iHandle, status; @@ -514,14 +550,14 @@ static IDL_VPTR NXclosegroup_this(int argc, IDL_VPTR *argv) IDL_ENSURE_SCALAR(argv[0]); - fileid = (int *)IDL_LongScalar(argv[0]); + fileid = (int )IDL_LongScalar(argv[0]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); NXMSetError(NULL,idlError); @@ -543,7 +579,7 @@ static IDL_VPTR NXclosegroup_this(int argc, IDL_VPTR *argv) static IDL_VPTR NXopendata_this(int argc, IDL_VPTR *argv) { - int *fileid; + int fileid; NXhandle hHandle; int iHandle, status; char* data_name; @@ -556,7 +592,7 @@ static IDL_VPTR NXopendata_this(int argc, IDL_VPTR *argv) IDL_ENSURE_SCALAR(argv[0]); IDL_ENSURE_STRING(argv[1]); - fileid = (int *)IDL_LongScalar(argv[0]); + fileid = (int )IDL_LongScalar(argv[0]); data_name = IDL_VarGetString(argv[1]); if(HHCheckIfHandleExists(fileid) == -1) { @@ -564,7 +600,7 @@ static IDL_VPTR NXopendata_this(int argc, IDL_VPTR *argv) return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); NXMSetError(NULL,idlError); @@ -586,7 +622,7 @@ static IDL_VPTR NXopendata_this(int argc, IDL_VPTR *argv) static IDL_VPTR NXclosedata_this(int argc, IDL_VPTR *argv) { - int *fileid; + int fileid; NXhandle hHandle; int iHandle, status; NXlink data_id; @@ -600,14 +636,14 @@ static IDL_VPTR NXclosedata_this(int argc, IDL_VPTR *argv) IDL_ENSURE_SCALAR(argv[0]); - fileid = (int *) IDL_LongScalar(argv[0]); + fileid = (int ) IDL_LongScalar(argv[0]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); /* status = NXgetdataID (hHandle, &data_id); if(status == NX_ERROR) { @@ -634,7 +670,7 @@ static IDL_VPTR NXclosedata_this(int argc, IDL_VPTR *argv) static IDL_VPTR NXcompress_this(int argc, IDL_VPTR *argv) { - int *fileid; + int fileid; NXhandle hHandle; int iHandle, status; int compresstype; @@ -647,7 +683,7 @@ static IDL_VPTR NXcompress_this(int argc, IDL_VPTR *argv) IDL_ENSURE_SCALAR(argv[0]); IDL_ENSURE_STRING(argv[1]); - fileid = (int *)IDL_LongScalar(argv[0]); + fileid = (int )IDL_LongScalar(argv[0]); compress_type = IDL_VarGetString(argv[1]); if (strcmp(compress_type,"NX_COMP_LZW") == 0) {; @@ -665,7 +701,7 @@ static IDL_VPTR NXcompress_this(int argc, IDL_VPTR *argv) return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); NXMSetError(NULL,idlError); status = NXcompress (hHandle, (int) &compresstype); @@ -686,11 +722,12 @@ static IDL_VPTR NXcompress_this(int argc, IDL_VPTR *argv) static IDL_VPTR NXmakedata_this(int argc, IDL_VPTR *argv) { - int *fileid; + int fileid; NXhandle hHandle; int iHandle, status; - int *ipRank, dimension[NX_MAXRANK], trueDimension[NX_MAXRANK], n, datatype; + int dimension[NX_MAXRANK], trueDimension[NX_MAXRANK], n, datatype; int rank; + IDL_LONG *dim; char* data_name; char* data_type; //IDL_LONG dims[IDL_MAX_ARRAY_DIM]; @@ -712,9 +749,8 @@ static IDL_VPTR NXmakedata_this(int argc, IDL_VPTR *argv) datatype = datatypecheck(argv[2]); if(datatype == -1) return IDL_GettmpInt(NX_ERROR); - fileid = (int *) IDL_LongScalar(argv[0]); - ipRank = (int *) IDL_LongScalar(argv[3]); - rank = *ipRank; + fileid = (int) IDL_LongScalar(argv[0]); + rank = (int ) IDL_LongScalar(argv[3]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); return IDL_GettmpInt(NX_ERROR); @@ -737,8 +773,9 @@ static IDL_VPTR NXmakedata_this(int argc, IDL_VPTR *argv) else if(argv[4]->type == IDL_TYP_LONG) { IDL_ENSURE_ARRAY(argv[4]); /* dimensions have to be swapped for Fortran C storage order */ + dim = (IDL_LONG *)argv[4]->value.arr->data; for(n = 0; n < rank; n++){ - trueDimension[n] = argv[4]->value.arr->data[rank - 1 -n]; + trueDimension[n] = dim[rank - 1 -n]; } status = NXmakedata(hHandle, data_name, datatype, rank, trueDimension); @@ -763,11 +800,12 @@ static IDL_VPTR NXmakedata_this(int argc, IDL_VPTR *argv) static IDL_VPTR NXcompmakedata_this(int argc, IDL_VPTR *argv) { - int *fileid; + int fileid; NXhandle hHandle; int iHandle, status; - int *rank, dimension[NX_MAXRANK], trueDimension[NX_MAXRANK], n, datatype; - /*IDL_LONG dims[IDL_MAX_ARRAY_DIM]; */ + int rank, dimension[NX_MAXRANK], trueDimension[NX_MAXRANK], + trueChunk[NX_MAXRANK], n, datatype; + IDL_LONG *dim; int comptype; char* data_type; char* data_name; @@ -832,24 +870,35 @@ else { return IDL_GettmpInt(NX_ERROR); } - fileid = (int *) IDL_LongScalar(argv[0]); - rank = (int *) IDL_LongScalar(argv[3]); + fileid = (int ) IDL_LongScalar(argv[0]); + rank = (int ) IDL_LongScalar(argv[3]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); NXMSetError(NULL,idlError); /* dimensions have to be swapped for Fortran C storage order */ - for(n = 0; n < *rank; n++){ - trueDimension[n] = argv[4]->value.arr->data[*rank - 1 -n]; + dim = (IDL_LONG *)argv[4]->value.arr->data; + for(n = 0; n < rank; n++){ + trueDimension[n] = dim[rank - 1 -n]; + } + dim = (IDL_LONG *)argv[6]->value.arr->data; + if(dim != NULL){ + for(n = 0; n < rank; n++){ + trueChunk[n] = dim[rank - 1 -n]; + } + } else { + for(n = 0; n < rank; n++){ + trueChunk[n] = trueDimension[n]; + } } status = NXcompmakedata(hHandle, data_name, datatype, (int)rank, trueDimension, comptype, - (void *) argv[6]->value.arr->data); + trueChunk); if(status == NX_ERROR){ IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, nexusError); @@ -866,14 +915,14 @@ else { static IDL_VPTR NXputdata_this(int argc, IDL_VPTR *argv) { - int *fileid; + int fileid; NXhandle hHandle; int iHandle, status; int rank, datatype; int dimension[IDL_MAX_ARRAY_DIM]; NXlink data_id; - fileid = (int *)IDL_LongScalar(argv[0]); + fileid = (int)IDL_LongScalar(argv[0]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); @@ -881,7 +930,7 @@ static IDL_VPTR NXputdata_this(int argc, IDL_VPTR *argv) } IDL_ENSURE_SCALAR(argv[0]); - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); if (argc != 2) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Two arguments expected"); @@ -954,11 +1003,12 @@ static IDL_VPTR NXputdata_this(int argc, IDL_VPTR *argv) static IDL_VPTR NXputslab_this(int argc, IDL_VPTR *argv) { - int *fileid; + int fileid; NXhandle hHandle; int iHandle, status; int rank, datatype, n; int start[NX_MAXRANK], size[NX_MAXRANK]; + IDL_LONG *stDim, *szDim; int dimension[IDL_MAX_ARRAY_DIM]; NXlink data_id; @@ -968,7 +1018,7 @@ static IDL_VPTR NXputslab_this(int argc, IDL_VPTR *argv) } - fileid = (int *)IDL_LongScalar(argv[0]); + fileid = (int)IDL_LongScalar(argv[0]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); @@ -989,7 +1039,7 @@ static IDL_VPTR NXputslab_this(int argc, IDL_VPTR *argv) return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); status = NXgetdataID (hHandle, &data_id); /* if(status == NX_ERROR) { @@ -1020,7 +1070,8 @@ static IDL_VPTR NXputslab_this(int argc, IDL_VPTR *argv) } else { char statusBuffer[100]; /* Maybe print more information to the user about which datatypes match OR do conversions */ - sprintf(statusBuffer,"IDL and NeXus types don't match!: %i & ", datatype, argv[1]->type); + sprintf(statusBuffer,"IDL and NeXus types don't match!: %i & %i ", + datatype, argv[1]->type); IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, statusBuffer); return IDL_GettmpInt(NX_ERROR); } @@ -1037,9 +1088,11 @@ static IDL_VPTR NXputslab_this(int argc, IDL_VPTR *argv) } else { + stDim = (IDL_LONG *) argv[2]->value.arr->data; + szDim = (IDL_LONG *) argv[3]->value.arr->data; for(n = 0; n < rank; n++){ - start[n] = argv[2]->value.arr->data[rank -n -1]; - size[n] = argv[3]->value.arr->data[rank -n -1]; + start[n] = stDim[rank -n -1]; + size[n] = szDim[rank -n -1]; } status = NXputslab (hHandle, argv[1]->value.arr->data, start, size); @@ -1060,7 +1113,7 @@ static IDL_VPTR NXputslab_this(int argc, IDL_VPTR *argv) static IDL_VPTR NXputattr_this(int argc, IDL_VPTR *argv) { - int *fileid; + int fileid; NXhandle hHandle; int iHandle, status; int length, attr_type; @@ -1082,14 +1135,14 @@ static IDL_VPTR NXputattr_this(int argc, IDL_VPTR *argv) attr_name = IDL_VarGetString(argv[1]); length = IDL_LongScalar(argv[3]); - fileid = (int *) IDL_LongScalar(argv[0]); + fileid = (int) IDL_LongScalar(argv[0]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); attr_type = datatypecheck(argv[4]); @@ -1183,12 +1236,12 @@ static IDL_VPTR NXputattr_this(int argc, IDL_VPTR *argv) static IDL_VPTR NXgetattr_this(int argc, IDL_VPTR *argv) { - int *fileid; + int fileid; NXhandle hHandle; - int iHandle, status; + int iHandle, status = 1; int length, attr_type; IDL_LONG dims[IDL_MAX_ARRAY_DIM]; - IDL_VPTR r_value, r_lenght; + IDL_VPTR r_value = 0, r_lenght; char* attr_name; char* attrtype; char* value_str; @@ -1219,7 +1272,7 @@ static IDL_VPTR NXgetattr_this(int argc, IDL_VPTR *argv) if(attr_type == -1) return IDL_GettmpInt(NX_ERROR); - fileid = (int *) IDL_LongScalar(argv[0]); + fileid = (int) IDL_LongScalar(argv[0]); length = (int ) IDL_LongScalar(argv[3]); @@ -1227,7 +1280,7 @@ static IDL_VPTR NXgetattr_this(int argc, IDL_VPTR *argv) IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); NXMSetError(NULL,idlError); @@ -1351,7 +1404,7 @@ void releaseMemory( UCHAR * memPtr) static IDL_VPTR NXgetinfo_this(int argc, IDL_VPTR *argv) { IDL_VPTR r_rank, r_datatype, array; - IDL_INT *fileid; + IDL_INT fileid; NXhandle hHandle; int iHandle, status, n; int rank, datatype; @@ -1368,13 +1421,13 @@ static IDL_VPTR NXgetinfo_this(int argc, IDL_VPTR *argv) IDL_ENSURE_SCALAR(argv[0]); - fileid = (IDL_INT *) IDL_LongScalar(argv[0]); + fileid = (int) IDL_LongScalar(argv[0]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); /* status = NXgetdataID (hHandle, &data_id); if(status == NX_ERROR) { @@ -1426,7 +1479,7 @@ static IDL_VPTR NXgetinfo_this(int argc, IDL_VPTR *argv) static IDL_VPTR NXgetgroupinfo_this(int argc, IDL_VPTR *argv) { IDL_VPTR IDL_group_name, IDL_group_class, IDL_item_number; - IDL_INT *fileid; + IDL_INT fileid; NXhandle hHandle; int iHandle, status; int item_number; @@ -1442,12 +1495,12 @@ static IDL_VPTR NXgetgroupinfo_this(int argc, IDL_VPTR *argv) IDL_ENSURE_SCALAR(argv[0]); - fileid = (IDL_INT *) IDL_LongScalar(argv[0]); + fileid = (int) IDL_LongScalar(argv[0]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); NXMSetError(NULL,idlError); @@ -1477,7 +1530,7 @@ static IDL_VPTR NXgetgroupinfo_this(int argc, IDL_VPTR *argv) static IDL_VPTR NXinitgroupdir_this(int argc, IDL_VPTR *argv) { - IDL_INT *fileid; + IDL_INT fileid; NXhandle hHandle; int iHandle, status; @@ -1488,12 +1541,12 @@ static IDL_VPTR NXinitgroupdir_this(int argc, IDL_VPTR *argv) IDL_ENSURE_SCALAR(argv[0]); - fileid = (IDL_INT *) IDL_LongScalar(argv[0]); + fileid = (int) IDL_LongScalar(argv[0]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); NXMSetError(NULL,idlError); @@ -1515,7 +1568,7 @@ static IDL_VPTR NXinitgroupdir_this(int argc, IDL_VPTR *argv) static IDL_VPTR NXgetnextentry_this(int argc, IDL_VPTR *argv) { IDL_VPTR IDL_group_name, IDL_group_class, IDL_data_type; - IDL_INT *fileid; + IDL_INT fileid; NXhandle hHandle; int iHandle, status; @@ -1531,12 +1584,12 @@ static IDL_VPTR NXgetnextentry_this(int argc, IDL_VPTR *argv) IDL_ENSURE_SCALAR(argv[0]); - fileid = (IDL_INT *) IDL_LongScalar(argv[0]); + fileid = (int) IDL_LongScalar(argv[0]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); NXMSetError(NULL,idlError); @@ -1568,7 +1621,7 @@ static IDL_VPTR NXgetnextentry_this(int argc, IDL_VPTR *argv) static IDL_VPTR NXgetattrinfo_this(int argc, IDL_VPTR *argv) { IDL_VPTR IDL_attr_number; - IDL_INT *fileid; + IDL_INT fileid; NXhandle hHandle; int iHandle, status; int attr_number = 0; @@ -1580,12 +1633,12 @@ static IDL_VPTR NXgetattrinfo_this(int argc, IDL_VPTR *argv) IDL_ENSURE_SCALAR(argv[0]); - fileid = (IDL_INT *) IDL_LongScalar(argv[0]); + fileid = (int) IDL_LongScalar(argv[0]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); NXMSetError(NULL,idlError); @@ -1609,7 +1662,7 @@ static IDL_VPTR NXgetattrinfo_this(int argc, IDL_VPTR *argv) static IDL_VPTR NXinitattrdir_this(int argc, IDL_VPTR *argv) { - IDL_INT *fileid; + IDL_INT fileid; NXhandle hHandle; int iHandle, status; @@ -1620,12 +1673,12 @@ static IDL_VPTR NXinitattrdir_this(int argc, IDL_VPTR *argv) IDL_ENSURE_SCALAR(argv[0]); - fileid = (IDL_INT *) IDL_LongScalar(argv[0]); + fileid = (int) IDL_LongScalar(argv[0]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); NXMSetError(NULL,idlError); @@ -1647,8 +1700,8 @@ static IDL_VPTR NXinitattrdir_this(int argc, IDL_VPTR *argv) static IDL_VPTR NXgetnextattr_this(int argc, IDL_VPTR *argv) { - IDL_VPTR IDL_attr_name, IDL_length, IDL_attr_type; - IDL_INT *fileid; + IDL_VPTR IDL_attr_name = NULL, IDL_length= NULL, IDL_attr_type = NULL; + IDL_INT fileid; NXhandle hHandle; int iHandle, status; @@ -1664,12 +1717,12 @@ static IDL_VPTR NXgetnextattr_this(int argc, IDL_VPTR *argv) IDL_ENSURE_SCALAR(argv[0]); - fileid = (IDL_INT *) IDL_LongScalar(argv[0]); + fileid = (int) IDL_LongScalar(argv[0]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); NXMSetError(NULL,idlError); @@ -1709,7 +1762,7 @@ static IDL_VPTR NXgetgroupID_this(int argc, IDL_VPTR *argv) IDL_VPTR result; int status, iHandle, iLink; NXaccess am; - int *fileid; + int fileid; NXhandle hHandle; NXlink *group_id = NULL; @@ -1721,13 +1774,13 @@ static IDL_VPTR NXgetgroupID_this(int argc, IDL_VPTR *argv) IDL_ENSURE_SCALAR(argv[0]); - fileid = (int *) IDL_LongScalar(argv[0]); + fileid = (int) IDL_LongScalar(argv[0]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); group_id = (NXlink *)malloc(sizeof(NXlink)); if(group_id == NULL){ @@ -1768,7 +1821,7 @@ static IDL_VPTR NXgetdataID_this(int argc, IDL_VPTR *argv) IDL_VPTR result; int status, iHandle, iLink; NXaccess am; - int *fileid; + int fileid; NXhandle hHandle; NXlink *data_id = NULL; @@ -1780,13 +1833,13 @@ static IDL_VPTR NXgetdataID_this(int argc, IDL_VPTR *argv) IDL_ENSURE_SCALAR(argv[0]); - fileid = (int *) IDL_LongScalar(argv[0]); + fileid = (int) IDL_LongScalar(argv[0]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); data_id = (NXlink *)malloc(sizeof(NXlink)); if(data_id == NULL){ @@ -1826,7 +1879,7 @@ static IDL_VPTR NXgetdataID_this(int argc, IDL_VPTR *argv) static IDL_VPTR NXgetdata_this(int argc, IDL_VPTR *argv) { IDL_VPTR data_array; - int *fileid; + int fileid; NXhandle hHandle; int iHandle, status; int rank, datatype, n; @@ -1834,7 +1887,7 @@ static IDL_VPTR NXgetdata_this(int argc, IDL_VPTR *argv) /* int dimension[8]; */ IDL_ARRAY_DIM dimension; int data_area_pointer[NX_MAXRANK]; - void *data_buffer; + void *data_buffer = NULL; char *char_buffer; NXlink data_id; @@ -1846,14 +1899,14 @@ static IDL_VPTR NXgetdata_this(int argc, IDL_VPTR *argv) IDL_ENSURE_SCALAR(argv[0]); - fileid = (int *) IDL_LongScalar(argv[0]); + fileid = (int ) IDL_LongScalar(argv[0]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); /* status = NXgetdataID (hHandle, &data_id); if(status == NX_ERROR) { @@ -1871,7 +1924,7 @@ static IDL_VPTR NXgetdata_this(int argc, IDL_VPTR *argv) } /* Dimensions are reversed to switch from C's Column major order to IDL row major order */ for(n = 0; n < rank; n++) { - dimension[n] = data_area_pointer[(rank-1)-n]; + dimension[n] = data_area_pointer[rank - 1 -n]; } /* Check data type and prepare a Array or a String for NeXuS API nxgetdata function*/ @@ -1923,7 +1976,8 @@ static IDL_VPTR NXgetdata_this(int argc, IDL_VPTR *argv) NXMSetError(NULL,idlError); if(datatype == NX_CHAR) { - status = NXmalloc ((void **) &char_buffer, rank, dimension, datatype); + status = NXmalloc ((void **) &char_buffer, rank, data_area_pointer, + datatype); if(status == NX_ERROR){ IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, nexusError); return IDL_GettmpInt(NX_ERROR); @@ -1973,13 +2027,15 @@ else { static IDL_VPTR NXgetslab_this(int argc, IDL_VPTR *argv) { IDL_VPTR data_array; - int *fileid; + int fileid; NXhandle hHandle; int iHandle, status; int rank, datatype, n; - int start[NX_MAXRANK], size[NX_MAXRANK]; + IDL_MEMINT start[NX_MAXRANK], size[NX_MAXRANK], dim[NX_MAXRANK]; + int istart[NX_MAXRANK], isize[NX_MAXRANK]; + IDL_LONG *stDim, *szDim; IDL_ARRAY_DIM dimension; - void *data_buffer; + void *data_buffer = NULL; if (argc != 4) { @@ -2003,27 +2059,37 @@ static IDL_VPTR NXgetslab_this(int argc, IDL_VPTR *argv) return IDL_GettmpInt(NX_ERROR); } - fileid = (int *) IDL_LongScalar(argv[0]); + fileid = (int) IDL_LongScalar(argv[0]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); /* status = NXgetdataID (hHandle, &data_id); if(status == NX_ERROR) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Dataset must be opened before nxputdata"); return IDL_GettmpInt(NX_ERROR); - } */ + } */ /* First get the rank, dimension and datatype */ - status = NXgetinfo (hHandle, &rank, dimension, &datatype); + status = NXgetinfo (hHandle, &rank, dim, &datatype); if(status == NX_ERROR) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, nexusError); return IDL_GettmpInt(NX_ERROR); } + /* swap dimensions again */ + stDim = (IDL_LONG *)argv[2]->value.arr->data; + szDim = (IDL_LONG *)argv[3]->value.arr->data; + for(n = 0; n < rank; n++){ + start[n] = stDim[rank -n -1]; + istart[n] = stDim[rank -n -1]; + size[n] = szDim[rank -n -1]; + isize[n] = szDim[rank -n -1]; + } + /* Check data type and prepare a Array or a String for NeXuS API nxgetdata function*/ switch (datatype) { @@ -2033,36 +2099,36 @@ static IDL_VPTR NXgetslab_this(int argc, IDL_VPTR *argv) break; case NX_FLOAT32: /* IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "NXFLOAT32"); */ - data_buffer = (void *)IDL_MakeTempArray(IDL_TYP_FLOAT, rank, (void *)argv[3]->value.arr->data, IDL_ARR_INI_ZERO, &data_array); + data_buffer = (void *)IDL_MakeTempArray(IDL_TYP_FLOAT, rank, (void *)size, IDL_ARR_INI_ZERO, &data_array); break; case NX_FLOAT64: /* IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "NXFLOAT64"); */ - data_buffer = (void *)IDL_MakeTempArray(IDL_TYP_DOUBLE, rank, (void *) argv[3]->value.arr->data, IDL_ARR_INI_ZERO, &data_array); + data_buffer = (void *)IDL_MakeTempArray(IDL_TYP_DOUBLE, rank, (void *) size, IDL_ARR_INI_ZERO, &data_array); break; case NX_INT8: /* This data type is not supported in IDL, A dangerous conversion to IDL_TYP_INT? */ - data_buffer = (void *)IDL_MakeTempArray(IDL_TYP_BYTE, rank, (void *)argv[3]->value.arr->data, IDL_ARR_INI_ZERO, &data_array); + data_buffer = (void *)IDL_MakeTempArray(IDL_TYP_BYTE, rank, (void *)size, IDL_ARR_INI_ZERO, &data_array); break; case NX_UINT8: /* IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "NXUINT8"); */ - data_buffer = (void *)IDL_MakeTempArray(IDL_TYP_BYTE, rank, (void *)argv[3]->value.arr->data, IDL_ARR_INI_ZERO, &data_array); + data_buffer = (void *)IDL_MakeTempArray(IDL_TYP_BYTE, rank, (void *)size, IDL_ARR_INI_ZERO, &data_array); break; case NX_INT16: /* IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "NXINT16"); */ - data_buffer = (void *)IDL_MakeTempArray(IDL_TYP_INT, rank, (void *)argv[3]->value.arr->data, IDL_ARR_INI_ZERO, &data_array); + data_buffer = (void *)IDL_MakeTempArray(IDL_TYP_INT, rank, (void *)size, IDL_ARR_INI_ZERO, &data_array); break; case NX_UINT16: /* IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "NXUINT16"); */ - data_buffer = (void *)IDL_MakeTempArray(IDL_TYP_UINT, rank, (void *)argv[3]->value.arr->data, IDL_ARR_INI_ZERO, &data_array); + data_buffer = (void *)IDL_MakeTempArray(IDL_TYP_UINT, rank, (void *)size, IDL_ARR_INI_ZERO, &data_array); break; case NX_INT32: /* IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "NXINT32"); */ - data_buffer = (void *)IDL_MakeTempArray(IDL_TYP_LONG, rank, (void *)argv[3]->value.arr->data, IDL_ARR_INI_ZERO, &data_array); + data_buffer = (void *)IDL_MakeTempArray(IDL_TYP_LONG, rank, (void *)size, IDL_ARR_INI_ZERO, &data_array); break; case NX_UINT32: /* IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "NXUINT32"); */ - data_buffer = (void *)IDL_MakeTempArray(IDL_TYP_ULONG, rank, (void *)argv[3]->value.arr->data, IDL_ARR_INI_ZERO, &data_array); + data_buffer = (void *)IDL_MakeTempArray(IDL_TYP_ULONG, rank, (void *)size, IDL_ARR_INI_ZERO, &data_array); break; default: IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Data in the NeXus file is of an unknown datatype"); @@ -2108,12 +2174,7 @@ static IDL_VPTR NXgetslab_this(int argc, IDL_VPTR *argv) } else { - /* swap dimensions again */ - for(n = 0; n < rank; n++){ - start[n] = argv[2]->value.arr->data[n - rank -1]; - size[n] = argv[3]->value.arr->data[n - rank -1]; - } - status = NXgetslab (hHandle, data_buffer, start,size); + status = NXgetslab (hHandle, data_buffer, istart, isize); if(status == NX_ERROR) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, nexusError); @@ -2134,7 +2195,7 @@ static IDL_VPTR NXflush_this(int argc, IDL_VPTR *argv) IDL_VPTR result; int status, iHandle; NXaccess am; - int *fileid; + int fileid; NXhandle hHandle; /* If number of arguments is not 1 return status NX_ERROR */ @@ -2145,13 +2206,13 @@ static IDL_VPTR NXflush_this(int argc, IDL_VPTR *argv) IDL_ENSURE_SCALAR(argv[0]); - fileid = (int *) IDL_LongScalar(argv[0]); + fileid = (int) IDL_LongScalar(argv[0]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); NXMSetError(NULL,idlError); @@ -2182,7 +2243,7 @@ static IDL_VPTR NXflush_this(int argc, IDL_VPTR *argv) static IDL_VPTR NXinquirefile_this(int argc, IDL_VPTR *argv) { IDL_VPTR IDL_filename; - IDL_INT *fileid; + IDL_INT fileid; NXhandle hHandle; int iHandle, status; @@ -2198,14 +2259,14 @@ static IDL_VPTR NXinquirefile_this(int argc, IDL_VPTR *argv) IDL_ENSURE_SCALAR(argv[0]); IDL_ENSURE_SCALAR(argv[2]); - fileid = (IDL_INT *) IDL_LongScalar(argv[0]); + fileid = (int) IDL_LongScalar(argv[0]); filenameLength = IDL_LongScalar(argv[2]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); NXMSetError(NULL,idlError); @@ -2232,7 +2293,7 @@ static IDL_VPTR NXmakelink_this(int argc, IDL_VPTR *argv) { int status, iHandle, iLink; NXaccess am; - int *fileid, *linkid; + int fileid, linkid; NXhandle hHandle; NXlink *link; @@ -2244,15 +2305,15 @@ static IDL_VPTR NXmakelink_this(int argc, IDL_VPTR *argv) IDL_ENSURE_SCALAR(argv[0]); - fileid = (int *) IDL_LongScalar(argv[0]); + fileid = (int) IDL_LongScalar(argv[0]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); - linkid = (int *) IDL_LongScalar(argv[1]); + linkid = (int) IDL_LongScalar(argv[1]); if(HHCheckIfHandleExists(linkid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown link id"); @@ -2290,7 +2351,7 @@ static IDL_VPTR NXmakenamedlink_this(int argc, IDL_VPTR *argv) int status, iHandle, iLink; NXaccess am; - int *fileid, *linkid; + int fileid, linkid; NXhandle hHandle; NXlink *link; char* nameoflink; @@ -2304,15 +2365,15 @@ static IDL_VPTR NXmakenamedlink_this(int argc, IDL_VPTR *argv) IDL_ENSURE_SCALAR(argv[0]); IDL_ENSURE_STRING(argv[1]); IDL_ENSURE_SCALAR(argv[2]); - fileid = (int *) IDL_LongScalar(argv[0]); + fileid = (int) IDL_LongScalar(argv[0]); nameoflink = IDL_VarGetString(argv[1]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); - linkid = (int *) IDL_LongScalar(argv[2]); + linkid = (int) IDL_LongScalar(argv[2]); if(HHCheckIfHandleExists(linkid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown link id"); @@ -2338,7 +2399,7 @@ static IDL_VPTR NXmakenamedlink_this(int argc, IDL_VPTR *argv) static IDL_VPTR NXlinkexternal_this(int argc, IDL_VPTR *argv) { - int *fileid; + int fileid; NXhandle hHandle; int iHandle, status; char* name; @@ -2355,7 +2416,7 @@ static IDL_VPTR NXlinkexternal_this(int argc, IDL_VPTR *argv) IDL_ENSURE_STRING(argv[2]); IDL_ENSURE_STRING(argv[3]); - fileid = (int *)IDL_LongScalar(argv[0]); + fileid = (int)IDL_LongScalar(argv[0]); name = IDL_VarGetString(argv[1]); nxclass = IDL_VarGetString(argv[2]); nxurl = IDL_VarGetString(argv[3]); @@ -2366,7 +2427,7 @@ static IDL_VPTR NXlinkexternal_this(int argc, IDL_VPTR *argv) return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); NXMSetError(NULL,idlError); @@ -2389,7 +2450,7 @@ static IDL_VPTR NXlinkexternal_this(int argc, IDL_VPTR *argv) static IDL_VPTR NXisexternalgroup_this(int argc, IDL_VPTR *argv) { IDL_VPTR IDL_NXurl; - int *fileid; + int fileid; NXhandle hHandle; int iHandle, status; int nxurllen; @@ -2406,7 +2467,7 @@ static IDL_VPTR NXisexternalgroup_this(int argc, IDL_VPTR *argv) IDL_ENSURE_STRING(argv[2]); IDL_ENSURE_SCALAR(argv[4]); - fileid = (int *)IDL_LongScalar(argv[0]); + fileid = (int )IDL_LongScalar(argv[0]); name = IDL_VarGetString(argv[1]); nxclass = IDL_VarGetString(argv[2]); nxurllen = IDL_LongScalar(argv[4]); @@ -2426,7 +2487,7 @@ static IDL_VPTR NXisexternalgroup_this(int argc, IDL_VPTR *argv) return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); NXMSetError(NULL,idlError); @@ -2459,7 +2520,7 @@ static IDL_VPTR NXsameID_this(int argc, IDL_VPTR *argv) int status, iHandle, iLink; NXaccess am; - int *fileid, *linkid_one, *linkid_two; + int fileid, linkid_one, linkid_two; NXhandle hHandle; NXlink *link_one, *link_two; @@ -2472,15 +2533,15 @@ static IDL_VPTR NXsameID_this(int argc, IDL_VPTR *argv) IDL_ENSURE_SCALAR(argv[1]); IDL_ENSURE_SCALAR(argv[2]); - fileid = (int *) IDL_LongScalar(argv[0]); - linkid_one = (int *) IDL_LongScalar(argv[1]); - linkid_two = (int *) IDL_LongScalar(argv[2]); + fileid = (int ) IDL_LongScalar(argv[0]); + linkid_one = (int ) IDL_LongScalar(argv[1]); + linkid_two = (int ) IDL_LongScalar(argv[2]); if(HHCheckIfHandleExists(fileid) == -1) { IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_INFO, "Unknown file id"); return IDL_GettmpInt(NX_ERROR); } - hHandle = (int *)HHGetPointer(fileid); + hHandle = HHGetPointer(fileid); if(HHCheckIfHandleExists(linkid_one) == -1) { @@ -2522,7 +2583,8 @@ int IDL_Load(void) { NXclose_this, "NXCLOSE", 0, IDL_MAXPARAMS, 0, 0}, { NXsetnumberformat_this, "NXSETNUMBERFORMAT", 0, IDL_MAXPARAMS, 0, 0}, { NXopenpath_this, "NXOPENPATH", 0, IDL_MAXPARAMS, 0, 0}, - { NXopengrouppath_this, "NXOPENGROUPPATH", 0, IDL_MAXPARAMS, 0, 0}, + { NXopengrouppath_this, "NXOPENGROUPPATH", 0, IDL_MAXPARAMS, 0, 0}, + { NXgetpath_this, "NXGETPATH", 0, IDL_MAXPARAMS, 0, 0}, { NXmakegroup_this, "NXMAKEGROUP", 0, IDL_MAXPARAMS, 0, 0}, { NXopengroup_this, "NXOPENGROUP", 0, IDL_MAXPARAMS, 0, 0}, { NXcompress_this, "NXCOMPRESS", 0, IDL_MAXPARAMS, 0, 0}, @@ -2552,10 +2614,10 @@ int IDL_Load(void) { NXmakenamedlink_this, "NXMAKENAMEDLINK", 0, IDL_MAXPARAMS, 0, 0}, { NXlinkexternal_this, "NXLINKEXTERNAL", 0, IDL_MAXPARAMS, 0, 0}, { NXisexternalgroup_this, "NXISEXTERNALGROUP", 0, IDL_MAXPARAMS, 0, 0}, - { NXsameID_this, "NXSAMEID", 0, IDL_MAXPARAMS, 0, 0}, + { NXsameID_this, "NXSAMEID", 0, IDL_MAXPARAMS, 0, 0} }; - /* + /* * Create a message block to hold our messages. Save its handle where * the other routines can access it. */ diff --git a/bindings/idl/NeXusIDL-API.dlm b/bindings/idl/NeXusIDL-API.dlm index c926f7a1..a0e21bd2 100644 --- a/bindings/idl/NeXusIDL-API.dlm +++ b/bindings/idl/NeXusIDL-API.dlm @@ -7,8 +7,10 @@ FUNCTION NXCLOSE 0 IDL_MAXPARAMS FUNCTION NXSETNUMBERFORMAT 0 IDL_MAXPARAMS FUNCTION NXOPENPATH 0 IDL_MAXPARAMS FUNCTION NXOPENGROUPPATH 0 IDL_MAXPARAMS +FUNCTION NXGETPATH 0 IDL_MAXPARAMS FUNCTION NXMAKEGROUP 0 IDL_MAXPARAMS FUNCTION NXCLOSEGROUP 0 IDL_MAXPARAMS +FUNCTION NXMAKEDATA 0 IDL_MAXPARAMS FUNCTION NXCOMPMAKEDATA 0 IDL_MAXPARAMS FUNCTION NXPUTDATA 0 IDL_MAXPARAMS FUNCTION NXPUTSLAB 0 IDL_MAXPARAMS diff --git a/bindings/idl/data/dmc01.h5 b/bindings/idl/data/dmc01.h5 index af53208b..1127b1ac 100644 Binary files a/bindings/idl/data/dmc01.h5 and b/bindings/idl/data/dmc01.h5 differ diff --git a/bindings/idl/data/dmc01.hdf b/bindings/idl/data/dmc01.hdf index 8937f67b..46b41df3 100644 Binary files a/bindings/idl/data/dmc01.hdf and b/bindings/idl/data/dmc01.hdf differ diff --git a/bindings/idl/handle.c b/bindings/idl/handle.c index c3a8b1c4..630cc1b7 100644 --- a/bindings/idl/handle.c +++ b/bindings/idl/handle.c @@ -8,6 +8,7 @@ Mark Koennecke, October 2000 */ #include +#include #include #include "handle.h" diff --git a/bindings/idl/nxext.h5 b/bindings/idl/nxext.h5 index 41b0fd8f..5d765bd5 100644 Binary files a/bindings/idl/nxext.h5 and b/bindings/idl/nxext.h5 differ diff --git a/bindings/idl/nxext.hdf b/bindings/idl/nxext.hdf index c4ea4ce6..939eb126 100644 Binary files a/bindings/idl/nxext.hdf and b/bindings/idl/nxext.hdf differ diff --git a/bindings/idl/nxext.xml b/bindings/idl/nxext.xml index f381e2dc..f70f71bb 100644 Binary files a/bindings/idl/nxext.xml and b/bindings/idl/nxext.xml differ diff --git a/bindings/idl/read_test.pro b/bindings/idl/read_test.pro index e625622a..aba06c5b 100644 --- a/bindings/idl/read_test.pro +++ b/bindings/idl/read_test.pro @@ -66,7 +66,7 @@ pro read_test, argument print, 'attribute name: ', attrname ;print, 'attrubute lenght: ', lenght ;print, 'attribute type: ', attr_type - print, 'attribute value: ', value + print, format='("attribute value: ",A)', value endif endrep until (attr_status NE 1) @@ -125,7 +125,7 @@ pro read_test, argument if(datatype EQ nx_char) then begin S = nxgetdata(fileid, data) print, 'nxget data status: ', S - print, 'data : ' + print, 'data :' print, data; print, '' endif else begin; @@ -318,7 +318,7 @@ pro read_test, argument S = nxopenpath(fileid, '/entry/data/comp_data') if(S EQ 1) then begin - print, 'Openpath succesfull (/entry/data/comp_data) ' + print, 'Openpath succesfull (/entry/data/comp_data)' endif else begin print, 'Openpath FAILED (/entry/data/comp_data)' endelse @@ -328,7 +328,7 @@ pro read_test, argument print, 'Openpath on a relative path (../r8_data) succesfull' endif else begin print, 'Openpath on a relative path FAILED (../r8_data)' - end else + endelse S = nxclose(fileid) print, 'nxclose status: ',S diff --git a/bindings/idl/recursiveread.pro b/bindings/idl/recursiveread.pro index 056f7e1d..b17d6312 100644 --- a/bindings/idl/recursiveread.pro +++ b/bindings/idl/recursiveread.pro @@ -68,7 +68,7 @@ pro opendata, fileid print, '' S = nxgetdata(fileid, data) print, 'nxgetdata status: ', S - print, 'data : ' + print, 'data :' print, data print, '' S = nxgetattrinfo(fileid, numberofattr) diff --git a/bindings/idl/recursivesearch.pro b/bindings/idl/recursivesearch.pro index dac561b9..7b2856a2 100644 --- a/bindings/idl/recursivesearch.pro +++ b/bindings/idl/recursivesearch.pro @@ -142,7 +142,7 @@ function opendata, fileid S = nxgetdata(fileid, data) ;print, 'nxgetdata status: ', S - ;print, 'data : ' + ;print, 'data :' ;print, data ;print, '' S = nxgetattrinfo(fileid, numberofattr) diff --git a/bindings/idl/testidlnapi b/bindings/idl/testidlnapi new file mode 100755 index 00000000..f4697c90 --- /dev/null +++ b/bindings/idl/testidlnapi @@ -0,0 +1,14 @@ +#!/bin/bash +IDLTMP=/tmp/nxidl.$$ +test=$1 +echo $test +idl << EOF > $IDLTMP 2>&1 +print, 'starting napi test' +write_test, $test +read_test, $test +print, 'finished napi test' +EOF +# need to remove IDL startup infomation as this is different on each machine +# also remove file_time as it will be different every time +sed -n -e '/^NeXus IDL Api Write test/,/^finished napi test/ p' < $IDLTMP | sed -e '/file_time/,/attribute value/ d' +rm -f $IDLTMP diff --git a/bindings/idl/write_test.pro b/bindings/idl/write_test.pro index 4c8f4e3a..fe5600ef 100644 --- a/bindings/idl/write_test.pro +++ b/bindings/idl/write_test.pro @@ -1,6 +1,6 @@ pro write_test, argument - new_dlm_file = '/home/scratch/lns/kauppila/temp/IDLNeXus-API/NeXusIDL-API.dlm' + new_dlm_file = 'NeXusIDL-API.dlm' DLM_REGISTER, new_dlm_file print, 'NeXus IDL Api Write test' @@ -341,7 +341,7 @@ pro write_test, argument S = nxgetdata(fileid, data) print, 'nxget data status: ', S - print, 'First file time : ' + print, 'First file time :' print, data print, '' @@ -353,7 +353,7 @@ pro write_test, argument print, 'nxopenpath status', S S = nxgetdata(fileid, data) print, 'nxget data status: ', S - print, 'Second file sample : ' + print, 'Second file sample :' print, data print, '' @@ -365,14 +365,14 @@ pro write_test, argument print, 'nxopenpath status', S S = nxgetdata(fileid, data) print, 'nxget data status: ', S - print, 'Second file time : ' + print, 'Second file time :' print, data print, '' S = nxopenpath(fileid, '/') S = nxisexternalgroup(fileid, 'entry1', 'NXentry', filename, 255) print, 'nxisexternalgroup status', S - print, 'entry1 external URL = ', filename + print, 'entry1 external URL =', filename S = nxclose(fileid) print, 'nxclose status: ', S diff --git a/bindings/java/Makefile.am b/bindings/java/Makefile.am index 3e8349b3..045dfe92 100644 --- a/bindings/java/Makefile.am +++ b/bindings/java/Makefile.am @@ -57,6 +57,7 @@ jnexus_jar_CLASS = ncsa/hdf/hdflib/HDFException.class \ # jni definitions lib_LTLIBRARIES = libjnexus.la +AM_LDFLAGS=-version-info $(NXLTVERSINFO) libjnexus_la_SOURCES = native/hdfnativeImp.c \ native/hdfexceptionImp.c \ native/handle.c \ diff --git a/bindings/java/native/NexusFile.c b/bindings/java/native/NexusFile.c index a025d0f7..d643224a 100644 --- a/bindings/java/native/NexusFile.c +++ b/bindings/java/native/NexusFile.c @@ -21,6 +21,10 @@ Updated for 64 bit types, Mark Koennecke, August 2007 + Added NXinitattrdir and NXinitgroupdir, Mark Koennecke, October 2009 + + Added NXgetpath, Mark Koennecke, October 2009 + IMPLEMENTATION NOTES The NAPI uses a handle type for hiding the NeXus file datastructure. @@ -32,7 +36,6 @@ the integer. But any routine in here has to retrieve the NXhandle for the integer first before it can do useful work. - */ #include #include @@ -48,43 +51,54 @@ */ #endif -//#define DEBUG -#ifdef DEBUG -static FILE *fd = NULL; -#endif +/* #define DEBUG */ + +static JavaVM *jvm; // Global variable + +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) { + JNIEnv *env; + jclass nexusException; + + jint ret = (*vm)->GetEnv(vm, (void **)&env, JNI_VERSION_1_1); + + assert(ret == JNI_OK); + + jvm = vm; + + nexusException = (*env)->FindClass(env,"org/nexusformat/NexusException"); + if (nexusException == NULL) { + fprintf(stderr, "cannot find NexusException - this will not work. Terminating."); + assert(nexusException); + } + + return JNI_VERSION_1_1; +} /*--------------------------------------------------------------------------- ERROR TREATMENT - The NAPI writes any errors to stdout through a special function. - This is not very feasible in a Java environment where an exception should - be thrown. Fortunately it is possible to define an own error processing - function to be used for error processing. This error handling function - is defined here. A NexusException is constructed and thrown. + The NAPI posts any errors to a customisable function. + We construct and throw a NexusException with the message received. --------------------------------------------------------------------------*/ -static void JapiError(void *pData, char *text) -{ - JNIEnv *env = (JNIEnv *)pData; - jclass jc; - jmethodID jm; - jobject exception; - jstring jtext; - char *args[2]; - - assert(env); +static void JapiError(void *pData, char *text) { + JNIEnv *env = pData; + jclass nexusException; #ifdef DEBUG - fprintf(fd,"JapiError called with: %s\n", text); + fprintf(stderr,"JapiError called with: %s\n", text); #endif - jc = (*env)->FindClass(env,"org/nexusformat/NexusException"); - assert(jc); - jm = (*env)->GetMethodID(env, jc, "","(Ljava/lang/String;)V"); - assert(jm != NULL); - jtext = (*env)->NewStringUTF(env,text); - args[0] = (char *)jtext; - args[1] = 0; - exception = (*env)->NewObjectA(env, jc, jm, (jvalue *) args); - (*env)->Throw(env, exception); + + /* ignore env passed in seems safer */ + (*jvm)->AttachCurrentThread (jvm, (void **) &env, NULL); + + if (env == NULL) { + // if there is no thread environment we do not need to throw an exception + return; + } + + // Find and store the NexusException class for use in JapiError + nexusException = (*env)->FindClass(env,"org/nexusformat/NexusException"); + (*env)->ThrowNew(env, nexusException, text); } /*------------------------------------------------------------------------ @@ -97,26 +111,20 @@ JNIEXPORT jint JNICALL Java_org_nexusformat_NexusFile_init char *fileName; int iRet; -#ifdef DEBUG - if(fd == NULL) - { - fd = fopen("jnexusdebug.dat","w"); - } -#endif /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* extract the filename as a C char* */ - fileName = (char *) (*env)->GetStringUTFChars(env,filename,0); + fileName = (char *) (*env)->GetStringUTFChars(env, filename, 0); /* call NXopen */ #ifdef DEBUG - fprintf(fd,"Calling NXopen on %s, with %d\n", fileName,access); + fprintf(stderr,"Calling NXopen on %s, with %d\n", fileName, access); #endif iRet = NXopen(fileName,access,&handle); #ifdef DEBUG - fprintf(fd,"Handle %d allocated for %s\n", handle, fileName); + fprintf(stderr,"Handle allocated for %s\n", fileName); #endif /* release the filename string */ @@ -141,7 +149,7 @@ JNIEXPORT jint JNICALL Java_org_nexusformat_NexusFile_nxflush int iRet; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -149,7 +157,6 @@ JNIEXPORT jint JNICALL Java_org_nexusformat_NexusFile_nxflush /* kill handle */ HHRemoveHandle(handle); - /* call NXflush */ iRet = NXflush(&nxhandle); @@ -172,12 +179,12 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_close int iRet; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); #ifdef DEBUG - fprintf(fd,"closing handle %d, nxhandle %d\n", handle, nxhandle); + fprintf(stderr,"closing handle %d, nxhandle %d\n", handle, nxhandle); #endif iRet = NXclose(&nxhandle); @@ -196,7 +203,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxmakegroup int iRet; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -223,7 +230,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxopengroup int iRet; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -237,7 +244,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxopengroup #ifdef DEBUG if(iRet != NX_OK) { - fprintf(fd,"Cleanup code called after raising Exception\n"); + fprintf(stderr,"Cleanup code called after raising Exception\n"); } #endif /* release strings */ @@ -255,7 +262,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxopenpath int iRet; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -268,7 +275,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxopenpath #ifdef DEBUG if(iRet != NX_OK) { - fprintf(fd,"Cleanup code called after raising Exception\n"); + fprintf(stderr,"Cleanup code called after raising Exception\n"); } #endif /* release strings */ @@ -285,7 +292,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxopengrouppath int iRet; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -298,12 +305,31 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxopengrouppath #ifdef DEBUG if(iRet != NX_OK) { - fprintf(fd,"Cleanup code called after raising Exception\n"); + fprintf(stderr,"Cleanup code called after raising Exception\n"); } #endif /* release strings */ (*env)->ReleaseStringUTFChars(env,path, nxpath); } +/*-----------------------------------------------------------------------*/ +JNIEXPORT jstring JNICALL Java_org_nexusformat_NexusFile_nxgetpath + (JNIEnv *env, jobject obj, jint handle) +{ + NXhandle nxhandle; + int iRet; + char path[1024]; + + /* set error handler */ + NXMSetTError(env,JapiError); + + /* exchange the Java handler to a NXhandle */ + nxhandle = (NXhandle)HHGetPointer(handle); + + iRet = NXgetpath(nxhandle, path,1024); + + return (*env)->NewStringUTF(env,path); +} + /*------------------------------------------------------------------------ nxclosegroup --------------------------------------------------------------------------*/ @@ -314,7 +340,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxclosegroup int iRet; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -335,7 +361,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxmakedata int iRet; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -366,7 +392,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxmakecompdata int iRet; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -400,7 +426,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxopendata int iRet; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -423,7 +449,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxclosedata int iRet; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -441,13 +467,13 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxcompress int iRet; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); #ifdef DEBUG - fprintf(fd,"Compressing at %d with type %d\n", nxhandle, comp_type); + fprintf(stderr,"Compressing at %d with type %d\n", nxhandle, comp_type); #endif iRet = NXcompress(nxhandle,comp_type); } @@ -462,7 +488,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxputdata int iRet; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -477,7 +503,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxputdata #ifdef DEBUG if(iRet != NX_OK) { - HEprint(fd,0); + HEprint(stderr,0); } #endif } @@ -494,7 +520,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxputslab int iRet; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -525,7 +551,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxputattr int iRet, iDataLen, div = 1; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -578,7 +604,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxgetdata int iRet; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -593,7 +619,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxgetdata #ifdef DEBUG if(iRet != NX_OK) { - HEprint(fd,0); + HEprint(stderr,0); } #endif } @@ -610,7 +636,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxgetslab int iRet; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -643,7 +669,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxgetattr int iLen, iType; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -653,20 +679,20 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxgetattr Name = (char *) (*env)->GetStringUTFChars(env,name,0); iargs = (*env)->GetIntArrayElements(env,args,0); #ifdef DEBUG - fprintf(fd,"nxgetattr converted types \n"); + fprintf(stderr,"nxgetattr converted types \n"); #endif iLen = iargs[0]; iType = iargs[1]; #ifdef DEBUG - fprintf(fd,"nxgetattr: iLen %d, iType: %d\n",iLen, iType); + fprintf(stderr,"nxgetattr: iLen %d, iType: %d\n",iLen, iType); #endif iRet = NXgetattr(nxhandle, Name, bdata, &iLen, &iType); iargs[0] = iLen; iargs[1] = iType; #ifdef DEBUG - fprintf(fd,"nxgetattr cleaning up \n"); + fprintf(stderr,"nxgetattr cleaning up \n"); #endif /* cleanup */ @@ -688,7 +714,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxgetgroupid jstring jstr; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -700,14 +726,14 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxgetgroupid cls = (*env)->GetObjectClass(env, linki); if(cls == NULL) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate class in nxgetgroupid"); return; } fid = (*env)->GetFieldID(env,cls,"tag","I"); if(fid == 0) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate fieldID in nxgetgroupid"); return; } @@ -716,7 +742,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxgetgroupid fid = (*env)->GetFieldID(env,cls,"ref","I"); if(fid == 0) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate fieldID in nxgetgroupid"); return; } @@ -729,7 +755,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxgetgroupid fid = (*env)->GetFieldID(env,cls,"targetPath","Ljava/lang/String;"); if(fid == 0) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate targetPath in nxgetgroupid"); return; } @@ -739,7 +765,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxgetgroupid fid = (*env)->GetFieldID(env,cls,"linkType","I"); if(fid == 0) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate linkType in nxgetgroupid"); return; } @@ -749,7 +775,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxgetgroupid fid = (*env)->GetFieldID(env,cls,"targetPath","Ljava/lang/String;"); if(fid == 0) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate targetPath in nxgetgroupid"); return; } @@ -771,7 +797,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxgetdataid jstring jstr; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -783,14 +809,14 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxgetdataid cls = (*env)->GetObjectClass(env, linki); if(cls == NULL) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate class in nxgetdataid"); return; } fid = (*env)->GetFieldID(env,cls,"tag","I"); if(fid == 0) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate fieldID in nxgetdataid"); return; } @@ -798,7 +824,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxgetdataid fid = (*env)->GetFieldID(env,cls,"ref","I"); if(fid == 0) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate fieldID in nxgetdataid"); return; } @@ -811,7 +837,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxgetdataid fid = (*env)->GetFieldID(env,cls,"targetPath","Ljava/lang/String;"); if(fid == 0) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate targetPath in nxgetgroupid"); return; } @@ -821,7 +847,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxgetdataid fid = (*env)->GetFieldID(env,cls,"linkType","I"); if(fid == 0) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate linkType in nxgetgroupid"); return; } @@ -831,7 +857,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxgetdataid fid = (*env)->GetFieldID(env,cls,"targetPath","Ljava/lang/String;"); if(fid == 0) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate targetPath in nxgetdataid"); return; } @@ -855,7 +881,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxmakelink const char *cData; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -864,14 +890,14 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxmakelink cls = (*env)->GetObjectClass(env, target); if(cls == NULL) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate class in nxmakelink"); return; } fid = (*env)->GetFieldID(env,cls,"tag","I"); if(fid == 0) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate fieldID in nxmakelink"); return; } @@ -879,7 +905,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxmakelink fid = (*env)->GetFieldID(env,cls,"ref","I"); if(fid == 0) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate fieldID in nxmakelink"); return; } @@ -892,7 +918,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxmakelink fid = (*env)->GetFieldID(env,cls,"targetPath","Ljava/lang/String;"); if(fid == 0) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate targetPath in nxmakelink"); return; } @@ -904,7 +930,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxmakelink fid = (*env)->GetFieldID(env,cls,"linkType","I"); if(fid == 0) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate linkType in nxmakelink"); return; } @@ -914,7 +940,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxmakelink fid = (*env)->GetFieldID(env,cls,"targetPath","Ljava/lang/String;"); if(fid == 0) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate targetPath in nxmakelink"); return; } @@ -942,7 +968,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxmakenamedlink char *Name; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -954,14 +980,14 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxmakenamedlink cls = (*env)->GetObjectClass(env, target); if(cls == NULL) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate class in nxmakelink"); return; } fid = (*env)->GetFieldID(env,cls,"tag","I"); if(fid == 0) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate fieldID in nxmakelink"); return; } @@ -969,7 +995,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxmakenamedlink fid = (*env)->GetFieldID(env,cls,"ref","I"); if(fid == 0) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate fieldID in nxmakelink"); return; } @@ -982,7 +1008,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxmakenamedlink fid = (*env)->GetFieldID(env,cls,"targetPath","Ljava/lang/String;"); if(fid == 0) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate targetPath in nxmakelink"); return; } @@ -994,7 +1020,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxmakenamedlink fid = (*env)->GetFieldID(env,cls,"linkType","I"); if(fid == 0) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate linkType in nxmakelink"); return; } @@ -1004,7 +1030,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxmakenamedlink fid = (*env)->GetFieldID(env,cls,"targetPath","Ljava/lang/String;"); if(fid == 0) { - NXIReportError(env, + JapiError(env, "ERROR: failed to locate targetPath in nxmakelink"); return; } @@ -1028,7 +1054,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxopensourcegroup int iRet; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -1047,7 +1073,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxsetnumberformat int iRet; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -1077,7 +1103,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxgetinfo jint *jdata; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -1112,7 +1138,7 @@ JNIEXPORT jint JNICALL Java_org_nexusformat_NexusFile_nextentry jstring rstring; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -1140,7 +1166,7 @@ JNIEXPORT jint JNICALL Java_org_nexusformat_NexusFile_nextattr jstring rstring; jint *jarray; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -1167,7 +1193,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxinquirefile(JNIEnv *env, jstring rstring; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -1186,7 +1212,7 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_nxlinkexternal char *Name, *Nxclass, *Nxurl; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -1212,7 +1238,7 @@ JNIEXPORT jint JNICALL Java_org_nexusformat_NexusFile_nxisexternalgroup jstring rstring; /* set error handler */ - NXMSetError(env,JapiError); + NXMSetTError(env,JapiError); /* exchange the Java handler to a NXhandle */ nxhandle = (NXhandle)HHGetPointer(handle); @@ -1232,6 +1258,37 @@ JNIEXPORT jint JNICALL Java_org_nexusformat_NexusFile_nxisexternalgroup (*env)->SetObjectArrayElement(env,jnames,0,(jobject)rstring); } } +/*---------------------------------------------------------------------*/ +JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_initattrdir +(JNIEnv *env, jobject obj, jint handle) +{ + NXhandle nxhandle; + int iRet; + + /* set error handler */ + NXMSetTError(env,JapiError); + + /* exchange the Java handler to a NXhandle */ + nxhandle = (NXhandle)HHGetPointer(handle); + + iRet = NXinitattrdir(nxhandle); + +} +/*---------------------------------------------------------------------*/ +JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_initgroupdir +(JNIEnv *env, jobject obj, jint handle) +{ + NXhandle nxhandle; + int iRet; + + /* set error handler */ + NXMSetTError(env,JapiError); + + /* exchange the Java handler to a NXhandle */ + nxhandle = (NXhandle)HHGetPointer(handle); + + iRet = NXinitgroupdir(nxhandle); +} /*------------------------------------------------------------------------ debugstop --------------------------------------------------------------------------*/ @@ -1246,12 +1303,3 @@ JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_debugstop /* sleep(2); */ } } - - - - - - - - - diff --git a/bindings/java/org/nexusformat/NeXusFileInterface.java b/bindings/java/org/nexusformat/NeXusFileInterface.java index 0bb3553f..35303e8f 100644 --- a/bindings/java/org/nexusformat/NeXusFileInterface.java +++ b/bindings/java/org/nexusformat/NeXusFileInterface.java @@ -88,6 +88,12 @@ public void openpath(String path) throws */ public void opengrouppath(String path) throws NexusException; + /** + * return the current path into the NeXus file in the + * form of a Unix path string. + * @return A unix path string + */ + public String getpath() throws NexusException; /** * closegroup closes access to the current group and steps down one * step in group hierarchy. diff --git a/bindings/java/org/nexusformat/NexusFile.java b/bindings/java/org/nexusformat/NexusFile.java index 70e9d89e..18b74d0a 100644 --- a/bindings/java/org/nexusformat/NexusFile.java +++ b/bindings/java/org/nexusformat/NexusFile.java @@ -15,6 +15,8 @@ * Updated: Mark Koennecke, April 2006 * * copyright: see accompanying COPYRIGHT file + * + * added nxinitattrdir: Mark Koennecke, October 2009 */ package org.nexusformat; @@ -110,7 +112,7 @@ this class to work properly. The algorithm first looks for a protected native int init(String filename, int access); protected native void close(int handle); protected native int nxflush(int handle); - + /** * constructs a new NexusFile Object. * @param filename The name of the NeXus file to access. @@ -133,6 +135,7 @@ this class to work properly. The algorithm first looks for a */ public NexusFile(String filename, int access) throws NexusException { + checkForNull(filename); handle = init(filename,access); if(handle < 0){ throw new NexusException("Failed to open " + filename); @@ -181,6 +184,7 @@ public void finalize() throws Throwable protected native void nxopenpath(int handle, String path); protected native void nxopengrouppath(int handle, String path); protected native void nxclosegroup(int handle); + protected native String nxgetpath(int handle); /** * makegroup creates a new group below the current group within @@ -192,6 +196,7 @@ public void finalize() throws Throwable public void makegroup(String name, String nxclass) throws NexusException { + checkForNull(name, nxclass); if(handle < 0) throw new NexusException("NAPI-ERROR: File not open"); nxmakegroup(handle, name, nxclass); } @@ -207,6 +212,7 @@ public void opengroup(String name, String nxclass) throws NexusException { if(handle < 0) throw new NexusException("NAPI-ERROR: File not open"); + checkForNull(name, nxclass); nxopengroup(handle, name, nxclass); } /** @@ -221,7 +227,8 @@ public void openpath(String path) throws NexusException { if(handle < 0) throw new NexusException("NAPI-ERROR: File not open"); - nxopenpath(handle,path); + checkForNull(path); + nxopenpath(handle, path); } /** * opengrouppath opens groups and datsets accroding to the path string @@ -235,9 +242,19 @@ public void opengrouppath(String path) throws NexusException { if(handle < 0) throw new NexusException("NAPI-ERROR: File not open"); + checkForNull(path); nxopengrouppath(handle,path); } - + /** + * return the current path into the NeXus file in the + * form of a Unix path string. + * @return A unix path string + */ + public String getpath() throws NexusException + { + if(handle < 0) throw new NexusException("NAPI-ERROR: File not open"); + return nxgetpath(handle); + } /** * closegroup closes access to the current group and steps down one * step in group hierarchy. @@ -282,7 +299,8 @@ public void compmakedata(String name, int type, int rank, int dim[], int compression_type, int iChunk[]) throws NexusException { if(handle < 0) throw new NexusException("NAPI-ERROR: File not open"); - checkType(type); + checkType(type); + checkForNull(name); switch(compression_type) { case NexusFile.NX_COMP_NONE: case NexusFile.NX_COMP_LZW: @@ -306,11 +324,12 @@ public void compmakedata(String name, int type, int rank, int dim[], * means it is an unlimited dimension. * @exception NexusException when the dataset could not be created. */ - public void makedata(String name, int type, int rank, int dim[]) throws + public void makedata(String name, int type, int rank, int[] dim) throws NexusException { if(handle < 0) throw new NexusException("NAPI-ERROR: File not open"); checkType(type); + checkForNull(name, dim); nxmakedata(handle,name,type,rank,dim); } /** @@ -324,6 +343,7 @@ public void opendata(String name)throws NexusException { if(handle < 0) throw new NexusException("NAPI-ERROR: File not open"); + checkForNull(name); nxopendata(handle,name); } /** @@ -385,6 +405,7 @@ public void getdata(Object array)throws { byte bdata[]; if(handle < 0) throw new NexusException("NAPI-ERROR: File not open"); + checkForNull(array); try{ HDFArray ha = new HDFArray(array); bdata = ha.emptyBytes(); @@ -405,15 +426,16 @@ public void getdata(Object array)throws * no dataset is open or array is not of the right type to hold * the data. */ - public void getslab(int start[], int size[],Object array)throws + public void getslab(int[] start, int[] size, Object array) throws NexusException { byte bdata[]; if(handle < 0) throw new NexusException("NAPI-ERROR: File not open"); + checkForNull(start, size, array); try{ HDFArray ha = new HDFArray(array); bdata = ha.emptyBytes(); - nxgetslab(handle,start,size,bdata); + nxgetslab(handle, start, size, bdata); array = ha.arrayify(bdata); }catch(HDFException he) { throw new NexusException(he.getMessage()); @@ -431,11 +453,12 @@ public void getslab(int start[], int size[],Object array)throws * @exception NexusException when either an HDF error occurs or * the attribute could not be found. */ - public void getattr(String name,Object array, int args[])throws + public void getattr(String name, Object array, int[] args)throws NexusException { byte bdata[]; if(handle < 0) throw new NexusException("NAPI-ERROR: File not open"); + checkForNull(name, array, args); checkType(args[1]); try{ HDFArray ha = new HDFArray(array); @@ -467,6 +490,8 @@ public void putdata(Object array) throws byte data[]; if(handle < 0) throw new NexusException("NAPI-ERROR: File not open"); + checkForNull(array); + try{ HDFArray ha = new HDFArray(array); data = ha.byteify(); @@ -487,12 +512,13 @@ public void putdata(Object array) throws * size in each dimension of the data subset to write. * @exception NexusException when an HDF error occurs. */ - public void putslab(Object array, int start[], int size[]) throws + public void putslab(Object array, int[] start, int[] size) throws NexusException { byte data[]; if(handle < 0) throw new NexusException("NAPI-ERROR: File not open"); + checkForNull(array, start, size); try{ HDFArray ha = new HDFArray(array); data = ha.byteify(); @@ -500,7 +526,7 @@ public void putslab(Object array, int start[], int size[]) throws }catch(HDFException he) { throw new NexusException(he.getMessage()); } - nxputslab(handle,data,start,size); + nxputslab(handle, data, start, size); data = null; } /** @@ -518,6 +544,7 @@ public void putattr(String name, Object array, int iType) throws if(handle < 0) throw new NexusException("NAPI-ERROR: File not open"); checkType(iType); + checkForNull(name, array); try{ HDFArray ha = new HDFArray(array); data = ha.byteify(); @@ -536,6 +563,8 @@ protected native void nxsetnumberformat(int handle, int type, String format); protected native int nextentry(int handle, String names[]); protected native int nextattr(int handle, String names[], int args[]); + protected native void initattrdir(int handle); + protected native void initgroupdir(int handle); /** * setnumberformat sets the number format for printing number when * using the XML-NeXus format. For HDF4 and HDF5 this is ignored. @@ -548,6 +577,8 @@ protected native void nxsetnumberformat(int handle, int type, public void setnumberformat(int type, String format) throws NexusException{ if(handle < 0) throw new NexusException("NAPI-ERROR: File not open"); + checkType(type); + checkForNull(format); nxsetnumberformat(handle,type,format); } /** @@ -580,6 +611,8 @@ public Hashtable groupdir()throws Hashtable h = new Hashtable(); String names[] = new String[2]; int i; + + initgroupdir(handle); while(nextentry(handle,names) != -1) { h.put(names[0],names[1]); @@ -602,6 +635,7 @@ public Hashtable attrdir()throws Hashtable h = new Hashtable(); if(handle < 0) throw new NexusException("NAPI-ERROR: File not open"); + initattrdir(handle); while(nextattr(handle,names,args) != -1) { at = new AttributeEntry(); @@ -653,11 +687,12 @@ public NXlink getdataID()throws * @param target The Object to link into the current group. * @exception NexusException if an error occurs. */ - public void makelink(NXlink target)throws + public void makelink(NXlink target) throws NexusException { if(handle < 0) throw new NexusException("NAPI-ERROR: File not open"); - nxmakelink(handle,target); + checkForNull(target); + nxmakelink(handle, target); } /** * makenamedlink links the object described by target into the current @@ -667,10 +702,11 @@ public void makelink(NXlink target)throws * @param name The name of this object in the current group * @exception NexusException if an error occurs. */ - public void makenamedlink(String name, NXlink target)throws + public void makenamedlink(String name, NXlink target) throws NexusException { if(handle < 0) throw new NexusException("NAPI-ERROR: File not open"); - nxmakenamedlink(handle,name, target); + checkForNull(name, target); + nxmakenamedlink(handle, name, target); } /** @@ -678,14 +714,22 @@ public void makenamedlink(String name, NXlink target)throws * Returns an error if the current item is not linked. * @exception NexusException if an error occurs. */ - public void opensourcepath()throws + public void opensourcepath() throws NexusException { if(handle < 0) throw new NexusException("NAPI-ERROR: File not open"); nxopensourcepath(handle); } - + /** + * checks if any of the arguments is null, + * throws appropriate runtime exception if so + */ + private void checkForNull(Object... args) { + for (Object o : args) + if (o==null) throw new NullPointerException(); + } + /** * checkType verifies if a parameter is a valid NeXus type code. * If not an exception is thrown. @@ -695,15 +739,17 @@ public void opensourcepath()throws private void checkType(int type) throws NexusException { switch(type) { + case NexusFile.NX_FLOAT32: + case NexusFile.NX_FLOAT64: case NexusFile.NX_INT8: case NexusFile.NX_UINT8: - case NexusFile.NX_CHAR: case NexusFile.NX_INT16: case NexusFile.NX_UINT16: case NexusFile.NX_INT32: case NexusFile.NX_UINT32: - case NexusFile.NX_FLOAT32: - case NexusFile.NX_FLOAT64: + case NexusFile.NX_INT64: + case NexusFile.NX_UINT64: + case NexusFile.NX_CHAR: break; default: throw new NexusException("Illegal number type requested"); @@ -734,9 +780,10 @@ public String inquirefile() throws NexusException { * @param nxurl The URL to the linked external file * @throws NexusException if things are wrong */ - public void linkexternal(String name, String nxclass, String nxurl) throws NexusException{ + public void linkexternal(String name, String nxclass, String nxurl) throws NexusException { if(handle < 0) throw new NexusException("NAPI-ERROR: File not open"); - nxlinkexternal(handle,name,nxclass,nxurl); + checkForNull(name, nxclass, nxurl); + nxlinkexternal(handle, name, nxclass, nxurl); } /** * nxisexternalgroup test the group name, nxclass if it is linked externally. @@ -748,6 +795,7 @@ public void linkexternal(String name, String nxclass, String nxurl) throws Nexus */ public String isexternalgroup(String name, String nxclass) throws NexusException{ if(handle < 0) throw new NexusException("NAPI-ERROR: File not open"); + checkForNull(name, nxclass); String nxurl[] = new String[1]; int status = nxisexternalgroup(handle,name,nxclass,nxurl); @@ -769,12 +817,3 @@ public String isexternalgroup(String name, String nxclass) throws NexusException */ public native void debugstop(); } - - - - - - - - - diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am index d45c19e2..a5a6ca57 100755 --- a/bindings/python/Makefile.am +++ b/bindings/python/Makefile.am @@ -30,11 +30,19 @@ pydocdir = $(NXDOCDIR)/python pydoc_DATA = README.html -pkgpython_PYTHON = nxs.py setup.py nxstest.py nexus.py nxsunit.py -EXTRA_DIST = README.html +#nxspythondir = $(pkgpythondir)/nxs +nxspythondir = $(pythondir)/nxs +#pkgpython_PYTHON = nxstest.py +nxspython_PYTHON = nxs/__init__.py nxs/napi.py +EXTRA_DIST = README.html nxstest.py run_nxstest setup.py install-data-hook : - sed -e "s|nxprefix = .*|nxprefix = \'${prefix}\'|" < ${srcdir}/nxs.py > $(DESTDIR)${pkgpythondir}/nxs.py + sed -e "s|nxprefix = .*|nxprefix = \'${prefix}\'|" < ${srcdir}/nxs/napi.py > $(DESTDIR)${nxspythondir}/napi.py + if test -z "$(DESTDIR)"; then \ + $(py_compile) --basedir "$(nxspythondir)" napi.py; \ + else \ + $(py_compile) --destdir "$(DESTDIR)" --basedir "$(nxspythondir)" napi.py; \ + fi # python setup.py install --root=$(DESTDIR) diff --git a/bindings/python/nexus.py b/bindings/python/nexus.py deleted file mode 100755 index ab015680..00000000 --- a/bindings/python/nexus.py +++ /dev/null @@ -1,889 +0,0 @@ -#!/usr/bin/env python -# This program is public domain - -""" -High level interface to NeXus files. - -Unlike the nxs routines which implement the NeXus API directly, the -nexus routines preload the entire file structure into memory and use -a natural syntax for navigating the data hierarchy. Large datasets -are not read until they are needed, and may be read or written one -slab at a time. - -There are a number of functions which operate on files:: - - * tree = read(file) loads a structure from a file - * write(file, tree) saves a structure to a file - * dir(file) display the contents of a file - -The tree returned from read() has an entry for each group, field and -attribute. You can traverse the hierarchy using the names of the -groups. For example, tree.Histogram1.instrument.detector.distance -is a field containing the distance to each pixel in the detector. -NeXus attribute names are tagged with a leading 'A', so for example, -tree.Histogram1.instrument.detector.distance.Aunits contains the -units attribute for the detector distances. - -Properties of the nodes in the tree are referenced by nx attributes. -Depending on the node type, different nx attributes may be available. - -Nodes (class NXnode) have attributes shared by both groups and fields:: - * nxname node name - * nxclass node class for groups, 'SDS' for fields - * nxgroup group containing the entry, or None for the root - * nxattrs dictionary of NeXus attributes for the node - -Groups (class NXgroup) have attributes for accessing children:: - * nxentries dictionary of entries within the group - * nxcomponent('nxclass') return group entries of a particular class - * nxdir() print the list of entries in the group - * nxtree() print the list of entries and subentries in the group - * nxplot() plot signal and axes for the group, if available - -Fields (class SDS) have attributes for accessing data: - * nxdims dimensions of data in the field - * nxtype data type - * nxdata data in the field - * nxdata_as('units') data returned in particular units - * nxslab slab context for the field - -Linked fields (class NXlink) have attributes for accessing the link:: - * nxlink reference to the linked field - -Unknown fields (class Unknown) are groups with a name that doesn't -start with 'NX'. These groups are not read or written. - -NeXus attributes (class NXattr) have a type and a value only:: - * nxtype attribute type - * nxdata attribute data - -Data can be stored in the NeXus file in a variety of units, depending -on which facility is storing the file. This makes life difficult -for reduction and analysis programs which must know the units they -are working with. Our solution to this problem is to allow you to -retrieve data from the file in particular units. For example, if -detector distance is stored in the file using millimeters you can -retrieve them in meters using:: - entry.instrument.detector.distance.nxdata_as('m') -See help for nxsunit for more details on the unit formats supported. - -The slab interface to field data works by opening the file handle -and keeping it open as long as the slab interface is needed. This -is done in python 2.5 using the with statement. Once the context -is entered, get() and put() methods on the node allow you to read -and write data a slab at a time. For example:: - - # Read a Ni x Nj x Nk array one vector at a time - with node.nxslab: - size = [1,1,node.nxdims[2]] - for i in range(node.nxdims[0]): - for j in range(node.nxdims[1]): - value = node.nxslab.get([i,j,0],size) # Read counts - -The equivalent can be done in Python 2.4 and lower using the context -functions __enter__ and __exit__:: - - node.nxslab.__enter__() - ... do the slab functions ... - node.nxslab.__exit__() - -You can traverse the tree by component class instead of component name. -Since there may be multiple components of the same class in one group -you will need to specify which one to use. For example, -tree.NXentry[0].NXinstrument[0].NXdetector[0].distance references the -first detector of the first instrument of the first entry. Unfortunately, -there is no guarantee regarding the order of the entries, and it may vary -from call to call, so the above is of limited utility. - -The nxplot() method for groups uses matplotlib to plot the data. You -can replace this with your own plotter by setting nexus.NXgroup._plotter -to your own plotter class. The plotter class has one method:: - - plot(signal, axes, entry, title) - -where signal is the field containing the data, axes are the fields -listing the signal sample points, entry is file/path within the file -to the data group and title is the title of the NXentry, if available. - -The read() and write() functions are implemented within a specialized -NeXus class which allows all the usual API functions. You can subclass -this with your own definitions for NXgroup(), NXattr(), SDS() and NXlink() -if you want to change the nature of the tree. The properties of these -classes are closely coupled to the behaviour of read/write so refer to -the source if you need to do this. -""" -__all__ = ['read', 'write', 'dir'] - -from copy import copy, deepcopy -import numpy -import nxs -import nxsunit - - -class NeXus(nxs.NeXus): - """ - Structure-based interface to the NeXus file API. - - Usage: - - file = NeXus(filename, ['r','rw','w']) - root = file.read() - - read the structure of the NeXus file. This returns a NeXus tree. - file.write(root) - - write a NeXus tree to the file. - data = file.readpath(path) - - read data from a particular path - - - Example:: - - nx = NeXus('REF_L_1346.nxs','r') - tree = nx.read() - for entry in tree.NXentry: - process(entry) - copy = NeXus('modified.nxs','w') - copy.write(tree) - - Note that the large datasets are not loaded immediately. Instead, the - when the data set is requested, the file is reopened, the data read, and - the file closed again. open/close are available for when we want to - read/write slabs without the overhead of moving the file cursor each time. - The NXdata nodes in the returned tree hold the node values. - - """ - def read(self): - """ - Read the nexus file structure from the file. Reading of large datasets - will be postponed. Returns a tree of NXgroup, NXattr, SDS and - NXlink nodes. - - Subclasses can provide methods for individual NeXus classes such - as NXbeam or NXdata. Brave users can also specialize NXgroup, - NXattr, SDS and NXlink methods. - """ - self.open() - self.openpath("/") - root = self._readgroup() - self.close() - root.nxgroup = None - - # Resolve links - self._readlinks(root) - return root - - def write(self, tree): - """ - Write the nexus file structure to the file. The file is assumed to - start empty. - - Updating individual nodes can be done using the napi interface, with - nx.handle as the nexus file handle. - """ - self.open() - links = [] - # Root node is special --- only write its children. - # TODO: maybe want to write root node attributes? - for entry in tree.nxentries.values(): - links += self._writegroup(entry, path="") - self._writelinks(links) - self.close() - - def readpath(self, path): - """ - Read the data on a particular file path. - - Returns a numpy array containing the data, a python scalar, or a - string depending on the shape and storage class. - """ - self.open() - self.openpath(path) - return self.getdata() - - def _readattrs(self): - """ - Return the attributes for the currently open group/data or for - the file if no group or data object is open. - """ - attrs = dict() - for i in range(self.getattrinfo()): - name,length,nxtype = self.getnextattr() - value = self.getattr(name, length, nxtype) - pair = self.NXattr(value,nxtype) - attrs[name] = pair - #print "read attr",name,pair.nxdata, pair.nxtype - return attrs - - def _readdata(self,name,path): - """ - Read a data node, returning SDS or NXlink depending on the - nature of the node. - """ - # Finally some data, but don't read it if it is big - # Instead record the location, type and size - path = path+"/"+name - self.opendata(name) - attrs = self._readattrs() - if 'target' in attrs and attrs['target'].nxdata != path: - # This is a linked dataset; don't try to load it. - #print "read link %s->%s"%(path,attrs['target'].nxdata) - data = NXlink(name,nxclass='SDS',attrs=attrs) - else: - dims,type = self.getinfo() - if numpy.prod(dims) < 1000: - value = self.getdata() - else: - value = None - data = self.SDS(name,type,dims,attrs=attrs,value=value, - file=self,path=path) - self.closedata() - return data - - def _readchildren(self,n,path): - children = {} - for i in range(n): - name,nxclass = self.getnextentry() - #print "name,class,path",name,nxclass,path - if nxclass == 'SDS': - children[name] = self._readdata(name,path) - elif nxclass.startswith('NX'): - self.opengroup(name,nxclass) - children[name] = self._readgroup() - self.closegroup() - else: # Bad entry; flag it but don't do anything - children[name] = self.Unknown(name,nxclass=nxclass) - return children - - def _readgroup(self): - """ - Read the currently open group and all subgroups. - """ - # TODO: does it make sense to read without recursing? - # TODO: can we specify which NXclasses we are interested - # in and skip those of different classes? - n,_,nxclass = self.getgroupinfo() - # getgroupinfo doesn't seem to return the correct path, so reconstruct - path = '/' + '/'.join(self.path) - name = path.split('/')[-1] - attrs = self._readattrs() - if 'target' in attrs and attrs['target'].nxdata != path: - # This is a linked group; don't try to load it. - #print "read group link %s->%s"%(attrs['target'].nxdata,path) - group = self.NXlink(name,nxclass=nxclass,attrs=attrs) - else: - #print "read group",nxclass,"from",path - children = self._readchildren(n,path) - # If we are subclassed with a handler for the particular - # NXentry class name use that constructor for the group - # rather than the generic NXgroup class. - if hasattr(self,nxclass): - factory = getattr(self,nxclass) - else: - factory = self.NXgroup - group = factory(name,nxclass,attrs=attrs,entries=children) - # Build chain back structure - for node in children.values(): - node.nxgroup = group - return group - - def _readlinks(self, root): - """ - Convert linked nodes into direct references. - """ - for entry in root.nxentries.values(): - if isinstance(entry, NXlink): - link = root - for level in self._link_target.split('.'): - link = getattr(link,level) - entry.nxlink = link - - # Allow subclasses to override - def NXattr(self, *args, **kw): return NXattr(*args, **kw) - def SDS(self, *args, **kw): return SDS(*args, **kw) - def NXgroup(self,*args,**kw): return NXgroup(*args, **kw) - def NXlink(self, *args, **kw): return NXlink(*args, **kw) - def Unknown(self, *args, **kw): return Unknown(*args, **kw) - - def _writeattrs(self,attrs): - """ - Return the attributes for the currently open group/data or for - the file if no group or data object is open. - """ - for name,pair in attrs.iteritems(): - #print "write attrs",name,pair.nxtype,pair.nxdata - self.putattr(name,pair.nxdata,pair.nxtype) - - def _writedata(self, data, path): - """ - Write the given data node. - - NXlinks cannot be written until the linked group is created, so - this routine returns the set of links that need to be written. - Call writelinks on the list. - """ - - path = path + "/" + data.nxname - #print 'write data',path - - # If the data is linked then - if hasattr(data,'_link_target'): - return [(path, data._link_target)] - - # Finally some data, but don't read it if it is big - # Instead record the location, type and size - #print "creating data",child.nxname,child.nxdims,child.nxtype - if numpy.prod(data.nxdims) > 10000: - # Compress the fastest moving dimension of large datasets - slab_dims = numpy.ones(len(data.nxdims),'i') - slab_dims[-1] = data.nxdims[-1] - self.compmakedata(data.nxname, data.nxtype, data.nxdims, - 'lzw', slab_dims) - else: - # Don't use compression for small datasets - self.makedata(data.nxname, data.nxtype, data.nxdims) - self.opendata(data.nxname) - self._writeattrs(data.nxattrs) - value = data.nxdata - if value is not None: self.putdata(value) - self.closedata() - return [] - - def _writegroup(self, group, path): - """ - Write the given group structure, including the data. - - NXlinks cannot be written until the linked group is created, so - this routine returns the set of links that need to be written. - Call writelinks on the list. - """ - path = path + "/" + group.nxname - #print 'write group',path - - links = [] - self.makegroup(group.nxname, group.nxclass) - self.opengroup(group.nxname, group.nxclass) - self._writeattrs(group.nxattrs) - if hasattr(group, '_link_target'): - links += [(path, group._link_target)] - for child in group.nxentries.values(): - if child.nxclass == 'SDS': - links += self._writedata(child,path) - elif hasattr(child,'_link_target'): - links += [(path+"/"+child.nxname,child._link_target)] - else: - links += self._writegroup(child,path) - self.closegroup() - return links - - def _writelinks(self, links): - """ - Create links within the NeXus file as indicated by the set of pairs - returned by writegroup. - """ - gid = {} - - # identify targets - for path,target in links: - gid[target] = None - - # find gids for targets - for target in gid.iterkeys(): - #sprint "target",target - self.openpath(target) - # Can't tell from the name if we are linking to a group or - # to a dataset, so cheat and rely on getdataID to signal - # an error if we are not within a group. - try: - gid[target] = self.getdataID() - except RuntimeError: - gid[target] = self.getgroupID() - - # link sources to targets - for path,target in links: - if path != target: - # ignore self-links - parent = "/".join(path.split("/")[:-1]) - #print "link %s -> %s"%(parent,target) - self.openpath(parent) - self.makelink(gid[target]) - -class NXattr(object): - """ - Attributes need to keep track of nxtype as well as attribute value. - """ - def __init__(self,value=None,nxtype='char'): - self.nxdata,self.nxtype = value,nxtype - - def __str__(self): - return str(self.nxdata) - - def __repr__(self): - if self.nxtype == 'char': - return "NXattr('%s','%s')"%(self.nxdata,self.nxtype) - else: - return "NXattr(%s,'%s')"%(self.nxdata,self.nxtype) - -class NXnode(object): - """ - Abstract base class for elements in NeXus files. - The individual objects may be either SDS data objects or groups. - - Children should be accessible directly as object attributes. - NeXus attributes accessible using .Aname rather than .name. - """ - nxclass = "unknown" - nxname = "unknown" - nxgroup = None - - def __str__(self): - return "%s:%s"%(self.nxclass,self.nxname) - - def __repr__(self): - return "NXnode('%s','%s')"%(self.nxclass,self.nxname) - - def _setattrs(self, attrs): - for k,v in attrs.items(): - setattr(self, 'A'+k, v) - def _attrs(self): - return dict([(k[1:],v) - for k,v in self.__dict__.items() - if isinstance(v,NXattr)]) - def _entries(self): - return dict([(k,v) - for k,v in self.__dict__.items() - if isinstance(v,NXnode) and not k.startswith('nx')]) - nxattrs = property(_attrs,doc="NeXus attributes for node") - nxentries = property(_entries,doc="NeXus nodes within group") - - def _str_name(self,indent=0): - if self.nxclass == 'SDS': - return " "*indent+self.nxname+'\n' - else: - return " "*indent+self.nxname+':'+self.nxclass+'\n' - - def _str_value(self,indent=0): - return "" - - def _str_attrs(self,indent=0): - result = "" - attrs = self.nxattrs - names = attrs.keys() - names.sort() - for k in names: - result += " "*indent+"@%s = %s\n"%(k,attrs[k].nxdata) - return result - - def _str_tree(self,indent=0,attrs=False,recursive=False): - """ - Print current node and possibly subnodes. - """ - # Print node - result = self._str_name(indent=indent) - if attrs: result += self._str_attrs(indent=indent+2) - result += self._str_value(indent=indent+2) - # Print children - entries = self.nxentries - names = entries.keys() - names.sort() - if recursive: - for k in names: - result += entries[k]._str_tree(indent=indent+2, - attrs=attrs, recursive=True) - else: - for k in names: - result += entries[k]._str_name(indent=indent+2) - return result - - def nxdir(self,attrs=False,recursive=False): - """Print directory""" - print self._str_tree(attrs=attrs,recursive=recursive) - def nxtree(self,attrs=True): - """Print directory tree""" - print self._str_tree(attrs=attrs,recursive=True) - -class NXslab_context(object): - """ - Context manager for NeXus fields. - - The context manager opens the file and positions the cursor to the - correct field. Data can then be read or written using the get() and - put() methods. See SDS for details on how to use this class. - """ - - def __init__(self, file, path, unit_converter): - self._file = file - self._path = path - self._converter = unit_converter - - def __enter__(self): - """ - Open the datapath for reading slab by slab. - """ - self._close_on_exit = not self._file.isopen - self._file.open() # Force file open even if closed - self._file.openpath(self._path) - return self - - def __exit__(self, *args): - """ - Close the file associated the data after reading. - """ - if self._close_on_exit: - self._file.close() - - def get(self, offset, size, units=""): - """ - Get a slab from the data array. - - Offsets are 0-origin. Shape can be inferred from the data. - Offset and shape must each have one entry per dimension. - - If units are specified, convert the values to the given units - before returning them. - - Raises ValueError if this fails. - - Corresponds to NXgetslab(handle,data,offset,shape) - """ - value = self._file.getslab(offset,size) - return self._converter(value,units) - - def put(self, data, offset): - """ - Put a slab into the data array. - - Offsets are 0-origin. Shape can be inferred from the data. - Offset and shape must each have one entry per dimension. - - Raises ValueError if this fails. - - Corresponds to NXputslab(handle,data,offset,shape) - """ - self._file.putslab(data, offset, data.shape) - -class SDS(NXnode): - """ - NeXus data node SDS. - - Operations are querying type and dimensions, reading the entire - data block or reading a single slab. - - Attributes: - - nxname - dataset name - nxclass - SDS (Scientific Data Set) - nxattrs - attributes for the data - nxgroup - group containing the data - nxdims - array dimensions (numpy shape) - nxtype - data type (numpy dtype) - nxdata - data values - nxdata_as('units') - data values in particular units - nxslab - context manager for reading/writing slabs - - Example: - - # Read the entire array - node.nxdata # The dataset in stored units - node.nxdata_as(units="mm") # read the entire dataset as millimeters - - # Read a Ni x Nj x Nk array one vector at a time - with node.nxslab: - size = [1,1,node.nxdims[2]] - for i in range(node.nxdims[0]): - for j in range(node.nxdims[1]): - value = node.nxslab.get([i,j,0],size) # Read counts - - - """ - def __init__(self,name,dtype='',shape=[],file=None,path=None, - attrs=None,value=None,group=None): - self._file = file - self._path = path - self._value = value - self.nxclass = "SDS" # Scientific Data Set - self.nxname = name - self.nxtype = dtype - self.nxdims = shape - self.nxgroup = group - # Convert NeXus attributes to python attributes - self._setattrs(attrs) - if 'units' in attrs: - units = attrs['units'].nxdata - else: - units = None - self._converter = nxsunit.Converter(units) - self.nxslab = NXslab_context(file, path, self._converter) - - def __str__(self): - """ - If value is loaded, return the value as a string. If value is - not loaded, return the empty string. Only the first view values - for large arrays will be printed. - """ - if self._value is not None: - return str(self._value) - return "" - - def _str_value(self,indent=0): - v = str(self) - if '\n' in v: - v = '\n'.join([(" "*indent)+s for s in v.split('\n')]) - return v+'\n' - - def _str_tree(self,indent=0,attrs=False,recursive=False): - dims = 'x'.join([str(n) for n in self.nxdims]) - #return "%s(%s)"%(self.nxtype, dims) - v = str(self) - if '\n' in v or v == "": - v = "%s(%s)"%(self.nxtype, dims) - v = " "*indent + "%s = %s"%(self.nxname, v)+'\n' - if attrs: v += self._str_attrs(indent=indent+2) - return v - - def nxdata_as(self, units=""): - """ - Read the data in particular units. - """ - if self._value is None: - self._value = self._file.readpath(self._path) - - return self._converter(self._value,units) - - nxdata = property(nxdata_as,doc="The data in default units; see also read() and slab()") - -class NXlink(NXnode): - """ - NeXus linked node. - - The real node will be accessible by following the nxlink attribute. - """ - def __init__(self,name,nxclass="",attrs={},group=None): - self.nxclass = nxclass - self.nxname = name - self.nxlink = None # This will be filled at the end of read - self.nxgroup = None - # Convert NeXus attributes to python attributes - self._setattrs(attrs) - self._link_target = attrs['target'].nxdata - def __str__(self): - return "NXlink(%s)"%(self._link_target) - def _str_tree(self,indent=0,attrs=False,recursive=False): - return " "*indent+self.nxname+' -> '+self._link_target+'\n' - -def centers(signal, axes): - """ - Return the centers of the axes regardless if the axes contain - bin boundaries or centers. - """ - def findc(axis, dimlen): - if len(axis.nxdata) == dimlen+1: - return (axis.nxdata[:-1] + axis.nxdata[-1:])/2 - else: - assert len(axis.nxdata) == dimlen - return axis.nxdata - return [findc(a,signal.nxdims[i]) for i,a in enumerate(axes)] - -def label(field): - """ - Construct a label for a data field suitable for use on a graph axis. - """ - if hasattr(field,'Along_name'): - return field.Along_name.nxdata - else: - return "%s (%s)"%(field.nxname,field.Aunits.nxdata) - -def imshow_irregular(x,y,z): - import pylab - ax = pylab.gca() - im = pylab.mpl.image.NonUniformImage(ax, extent=(x[0],x[-1],y[0],y[-1])) - im.set_data(x,y,z) - ax.images.append(im) - ax.set_xlim(x[0],x[-1]) - ax.set_ylim(y[0],y[-1]) - pylab.gcf().canvas.draw_idle() - -class PylabPlotter(object): - """ - Matplotlib plotter object for NeXus data nodes. - """ - def plot(self, signal, axes, entry, title, **opts): - import pylab - pylab.cla() - - # Find the centers of the bins for histogrammed data - axis_data = centers(signal, axes) - title = entry + '\n' + title - - #One-dimensional Plot - if len(signal.nxdims) == 1: - if signal.Aunits.nxdata == 'counts': - myopts=copy(opts) - myopts.setdefault('fmt','o') - myopts.setdefault('linestyle','None') - pylab.errorbar(axis_data[0], signal.nxdata, - numpy.sqrt(signal.nxdata), **myopts) - else: - pylab.scatter(axis_data[0], signal.nxdata, **opts) - pylab.xlabel(label(axes[0])) - pylab.ylabel(label(signal)) - pylab.title(title) - - #Two dimensional plot - elif len(signal.nxdims) == 2: - #gridplot = pylab.pcolormesh - gridplot = imshow_irregular - if signal.Aunits.nxdata == 'counts': - gridplot(axis_data[1], axis_data[0], - numpy.log10(signal.nxdata+1), **opts) - else: - gridplot(axis_data[1], axis_data[0], - signal.nxdata, **opts) - pylab.xlabel(label(axes[1])) - pylab.ylabel(label(axes[0])) - pylab.title(title) - - # No support for higher dimensions yet - else: - raise RuntimeError, "Cannot plot a dataset of rank 3 or greater." - @staticmethod - def show(): - import pylab - pylab.show() - -class NXgroup(NXnode): - """ - NeXus group node. NXgroup nodes have no data associated with them, - but they do have attributes and children. - """ - # Plotter to use for nxplot calls - _plotter = PylabPlotter() - - def __init__(self,name, nxclass=NXnode.nxclass, - attrs={},entries={}, group=None): - self.nxclass = nxclass - self.nxname = name - self.nxgroup = group - # Convert children and NeXus attributes to python attributes - self._setattrs(attrs) - for k,v in entries.items(): - setattr(self, k, v) - def _str_value(self,indent=0): - return "" - - def __getattr__(self, key): - """ - Provide direct access to nodes via nxclass name. - """ - if key.startswith('NX'): - return self.nxcomponent(key) - raise KeyError(key+" not in "+self.nxclass+":"+self.nxname) - - def nxcomponent(self, nxclass): - """ - Find all child nodes that have a particular class. - """ - return [E for name,E in self.nxentries.items() if E.nxclass==nxclass] - - def nxplot(self, **opts): - """ - Plot data contained within the group. - """ - - # Find a plottable signal - for node in self.nxentries.values(): - if 'signal' in node.nxattrs: - signal = node - break - else: - raise RuntimeError('No plottable signal') - - # Find the associated axes - if hasattr(signal,'Aaxes'): - axes = [getattr(self,a) for a in signal.Aaxes.nxdata.split(':')] - else: - raise RuntimeError('Axes attribute missing from signal') - - # Construct title - path = [] - node = self - subtitle = '' - while node.nxgroup is not None: - if node.nxclass == 'NXentry': - subtitle = node.title.nxdata - path = [node.nxname] + path - node = node.nxgroup - path = [node.Afile_name.nxdata] + path - entry = "/".join(path) - - # Plot with the available plotter - self._plotter.plot(signal, axes, entry, subtitle) - -class Unknown(NXnode): - """ - Unknown group type; class does not start with NX or SDS. - """ - def __init__(self, name, nxclass=NXnode.nxclass): - self.nxname = name - self.nxclass = nxclass - def __repr__(self): - return "Unknown('%s','%s')"%(self.nxname,self.nxclass) - -# File level operations -def read(filename, mode='r'): - """ - Read a NeXus file, returning a tree of nodes - """ - file = NeXus(filename,mode) - tree = file.read() - file.close() - return tree - -def write(filename, tree): - """ - Write a NeXus file from a tree of nodes - """ - file = NeXus(filename,'w5') - file.write(tree) - -def dir(file): - """ - Read and summarize the named nexus file. - """ - tree = read(file) - tree.nxtree() - -def demo(argv): - """ - Process command line commands in argv. argv should contain - program name, command, arguments, where command is one of - the following: - copy fromfile.nxs tofile.nxs - ls f1.nxs f2.nxs ... - """ - if len(argv) > 1: - op = argv[1] - else: - op = 'help' - if op == 'ls': - for f in argv[2:]: dir(f) - elif op == 'copy' and len(argv)==4: - tree = read(argv[2]) - write(argv[3], tree) - elif op == 'plot' and len(argv)==4: - tree = read(argv[2]) - for entry in argv[3].split('.'): - tree = getattr(tree,entry) - tree.nxplot() - tree._plotter.show() - - else: - usage = """ -usage: %s cmd [args] - copy fromfile.nxs tofile.nxs - ls *.nxs - plot file.nxs entry.data - """%(argv[0],) - print usage - -if __name__ == "__main__": - import sys - demo(sys.argv) diff --git a/bindings/python/nxs/__init__.py b/bindings/python/nxs/__init__.py new file mode 100644 index 00000000..3f2daa01 --- /dev/null +++ b/bindings/python/nxs/__init__.py @@ -0,0 +1,17 @@ +# This program is public domain +""" +Python NeXus interface. + +NeXus_ is a common data format for neutron, Xray and muon science. +The files contain multidimensional data elements grouped into a +hierarchical structure. The data sets are self-describing, with +a description of the instrument configuration including the units +used as well as the data measured. + +The NeXus file interface requires compiled libraries to read the +underlying HDF_ files. Binary packages are available for some +platforms from the NeXus site. Details of where the nxs package +searches for the libraries are recorded in `nxs.napi`. +""" + +from nxs.napi import * diff --git a/bindings/python/nxs.py b/bindings/python/nxs/napi.py similarity index 59% rename from bindings/python/nxs.py rename to bindings/python/nxs/napi.py index def5abe5..6c205f8f 100755 --- a/bindings/python/nxs.py +++ b/bindings/python/nxs/napi.py @@ -1,16 +1,18 @@ -# This program is public domain - +# This program is public domain # Author: Paul Kienzle """ Wrapper for the NeXus shared library. +Use this interface when converting code from other languages which +do not support the natural view of the hierarchy. Library Location ================ This wrapper needs the location of the libNeXus precompiled binary. It -looks in the following places in order: +looks in the following places in order:: + os.environ['NEXUSLIB'] - All directory containing nxs.py - All os.environ['NEXUSDIR']\bin - Windows @@ -20,10 +22,10 @@ /usr/local/lib - Unix and Darwin /usr/lib - Unix and Darwin -On Windows it looks for libNeXus.dll and libNeXus-0.dll; -NEXUSDIR defaults to r'C:\Program Files\NeXus Data Format' +On Windows it looks for one of libNeXus.dll or libNeXus-0.dll. On OS X it looks for libNeXus.dylib On Unix it looks for libNeXus.so +NEXUSDIR defaults to r'C:\Program Files\NeXus Data Format'. PREFIX defaults to /usr/local, but is replaced by the value of --prefix during configure. @@ -35,12 +37,28 @@ os.environ['NEXUSLIB'] to the path where it is extracted before the first import of nxs. +Example +======= + + import nxs + file = nxs.open('filename.nxs','rw') + file.opengroup('entry1') + file.opendata('definition') + print file.getdata() + file.close() + + See nxstest.py for a more complete example. + Interface ========= -Full documentation of the NeXus API is available at nexusformat.org. +When converting code to python from other languages you do not +necessarily want to redo the file handling code. The nxs +provides an interface which more closely follows the +NeXus application programming interface (NAPI_). + +This wrapper differs from NAPI in several respects:: -This wrapper differs from napi in several respects: - Data values are loaded/stored directly from numpy arrays. - Return codes are turned into exceptions. - The file handle is stored in a file object @@ -50,18 +68,7 @@ - Adds link() function to return the name of the linked to group, if any - NXmalloc/NXfree are not needed. -Example: - - import nxs - file = nxs.open('filename.nxs','rw') - file.opengroup('entry1') - file.opendata('definition') - print file.getdata() - file.close() - - See nxstest.py for a more complete example. - -File open modes can be constants or strings: +File open modes can be constants or strings:: nxs.ACC_READ 'r' nxs.ACC_RDWR 'rw' @@ -70,34 +77,35 @@ nxs.ACC_CREATE5 'w5' nxs.ACC_CREATEXML 'wx' -Dimension constants: +Dimension constants:: nxs.UNLIMITED - for the extensible data dimension nxs.MAXRANK - for the number of possible dimensions -Data types are strings corresponding to the numpy data types: +Data types are strings corresponding to the numpy data types:: 'float32' 'float64' 'int8' 'int16' 'int32' 'int64' 'uint8' 'uint16' 'uint32' 'uint64' - Use 'char' for strings. You can use the numpy dtype attribute for the - data type. + Use 'char' for string data. + +You can use the numpy A.dtype attribute for the type of array A. Dimensions are lists of integers or numpy arrays. You can use the -numpy shape attribute for the dimensions. +numpy A.shape attribute for the dimensions of array A. -Compression codes are: +Compression codes are:: 'none' 'lzw' 'rle' 'huffman' As of this writing NeXus only supports 'none' and 'lzw'. -Miscellaneous constants: +Miscellaneous constants:: nxs.MAXNAMELEN - names must be shorter than this nxs.MAXPATHLEN - total path length must be shorter than this - + nxs.H4SKIP - class names that may appear in HDF4 files but can be ignored Caveats ======= @@ -111,7 +119,11 @@ - if I use the leak_test1 code in the nexus distribution it doesn't leak - if I remove the open/close call in the wrapper it doesn't leak. +.. _NAPI: http://www.nexusformat.org/Application_Program_Interface """ +__all__ = ['UNLIMITED', 'MAXRANK', 'MAXNAMELEN','MAXPATHLEN','H4SKIP', + 'NeXus','NeXusError','open'] + import sys, os, numpy, ctypes # Defined ctypes @@ -143,6 +155,10 @@ class _NXlink(ctypes.Structure): MAXNAMELEN=64 MAXPATHLEN=1024 # inferred from code +# bogus groups; these groups are ignored in HDFView from NCSA. +H4SKIP = ['CDF0.0','_HDF_CHK_TBL_','Attr0.0', + 'RIG0.0','RI0.0', 'RIATTR0.0N','RIATTR0.0C'] + # HDF data types from numpy types _nxtype_code=dict( char=4, @@ -235,6 +251,13 @@ def _libnexus(): "NeXus library %s could not be loaded: %s"%(file,sys.exc_info()[0]) raise OSError, "Set NEXUSLIB or move NeXus to one of: %s"%(", ".join(files)) +def _init(): + lib = _libnexus() + lib.NXMDisableErrorReporting() + return lib + +# Define the interface to the dll +nxlib = _init() def open(filename, mode='r'): @@ -243,14 +266,15 @@ def open(filename, mode='r'): """ return NeXus(filename, mode) -class NeXus(object): +class NeXusError(Exception): + """NeXus Error""" + pass - # Define the interface to the dll - lib = _libnexus() +class NeXus(object): # ==== File ==== - #lib.nxiopen_.restype = c_int - #lib.nxiopen_.argtypes = [c_char_p, c_int, c_void_pp] + nxlib.nxiopen_.restype = c_int + nxlib.nxiopen_.argtypes = [c_char_p, c_int, c_void_pp] def __init__(self, filename, mode='r'): """ Open the NeXus file returning a handle. @@ -263,7 +287,9 @@ def __init__(self, filename, mode='r'): nxs.ACC_CREATE5 'w5' nxs.ACC_CREATEXML 'wx' - Raises RuntimeError if the file could not be opened, with the + Raises ValueError if the open mode is invalid. + + Raises NeXusError if the file could not be opened, with the filename as part of the error message. Corresponds to NXopen(filename,mode,&handle) @@ -277,16 +303,28 @@ def __init__(self, filename, mode='r'): self.filename, self.mode = filename, mode self.handle = c_void_p(None) - self.path = [] - status = self.lib.nxiopen_(filename,mode,_ref(self.handle)) + self._path = [] + self._indata = False + status = nxlib.nxiopen_(filename,mode,_ref(self.handle)) if status == ERROR: if mode in [ACC_READ, ACC_RDWR]: op = 'open' else: op = 'create' - raise RuntimeError, "Could not %s %s"%(op,filename) + raise NeXusError, "Could not %s %s"%(op,filename) self.isopen = True + def _getpath(self): + mypath = [level[0] for level in self._path] + return '/'+'/'.join(mypath) + path = property(_getpath,doc="Unix-style path to node") + + def _getlongpath(self): + mypath = [':'.join(level) for level in self._path] + return '/' + '/'.join(mypath) + longpath = property(_getlongpath, doc="Unix-style path including " \ + + "nxclass to the node") + def __del__(self): """ Be sure to close the file before deleting the last reference. @@ -304,104 +342,197 @@ def __str__(self): def open(self): """ Opens the NeXus file handle if it is not already open. + + Raises NeXusError if the file could not be opened. + + Corresponds to NXopen(filename,mode,&handle) """ if self.isopen: return if self.mode==ACC_READ: mode = ACC_READ else: mode = ACC_RDWR - status = self.lib.nxiopen_(self.filename,mode,_ref(self.handle)) + status = nxlib.nxiopen_(self.filename,mode,_ref(self.handle)) if status == ERROR: - raise RuntimeError, "Could not open %s"%(self.filename) - self.path = [] + raise NeXusError, "Could not open %s"%(self.filename) + self._path = [] + self._indata = False - #lib.nxiclose_.restype = c_int - #lib.nxiclose_.argtypes = [c_void_pp] + nxlib.nxiclose_.restype = c_int + nxlib.nxiclose_.argtypes = [c_void_pp] def close(self): """ Close the NeXus file associated with handle. - Raises RuntimeError if file could not be opened. + Raises NeXusError if file could not be closed. Corresponds to NXclose(&handle) """ if self.isopen: self.isopen = False - status = self.lib.nxiclose_(_ref(self.handle)) + status = nxlib.nxiclose_(_ref(self.handle)) if status == ERROR: - raise RuntimeError, "Could not close NeXus file %s"%(self.filename) - self.path = [] + raise NeXusError, "Could not close NeXus file %s"%(self.filename) + self._path = [] + self._indata = False - lib.nxiflush_.restype = c_int - lib.nxiflush_.argtypes = [c_void_pp] + nxlib.nxiflush_.restype = c_int + nxlib.nxiflush_.argtypes = [c_void_pp] def flush(self): """ Flush all data to the NeXus file. - Raises RuntimeError if this fails. + Raises NeXusError if this fails. Corresponds to NXflush(&handle) """ - status = self.lib.nxiflush_(_ref(self.handle)) + status = nxlib.nxiflush_(_ref(self.handle)) if status == ERROR: - raise RuntimeError, "Could not flush NeXus file %s"%(self.filename) + raise NeXusError, "Could not flush NeXus file %s"%(self.filename) - lib.nxisetnumberformat_.restype = c_int - lib.nxisetnumberformat_.argtypes = [c_void_p, c_int, c_char_p] + nxlib.nxisetnumberformat_.restype = c_int + nxlib.nxisetnumberformat_.argtypes = [c_void_p, c_int, c_char_p] def setnumberformat(self,type,format): """ Set the output format for the numbers of the given type (only applies to XML). - Raises ValueError if this fails. + Raises ValueError if the number format is incorrect. Corresponds to NXsetnumberformat(&handle,type,format) """ type = _nxtype_code[type] - status = self.lib.nxisetnumberformat_(self.handle,type,format) + status = nxlib.nxisetnumberformat_(self.handle,type,format) if status == ERROR: - raise RuntimeError,\ + raise ValueError,\ "Could not set %s to %s in %s"%(type,format,self.filename) # ==== Group ==== - lib.nximakegroup_.restype = c_int - lib.nximakegroup_.argtypes = [c_void_p, c_char_p, c_char_p] + nxlib.nximakegroup_.restype = c_int + nxlib.nximakegroup_.argtypes = [c_void_p, c_char_p, c_char_p] def makegroup(self, name, nxclass): """ Create the group nxclass:name. - Raises RuntimeError if the group could not be created. + Raises NeXusError if the group could not be created. Corresponds to NXmakegroup(handle, name, nxclass) """ - status = self.lib.nximakegroup_(self.handle, name, nxclass) + #print "makegroup",self._loc(),name,nxclass + status = nxlib.nximakegroup_(self.handle, name, nxclass) if status == ERROR: - raise RuntimeError,\ + raise NeXusError,\ "Could not create %s:%s in %s"%(nxclass,name,self._loc()) - lib.nxiopenpath_.restype = c_int - lib.nxiopenpath_.argtypes = [c_void_p, c_char_p] + nxlib.nxiopenpath_.restype = c_int + nxlib.nxiopenpath_.argtypes = [c_void_p, c_char_p] def openpath(self, path): """ - Open a particular group '/path/to/group'. Paths can - be relative to the currently open group. + Open a particular group '/path/to/group'. Paths can be + absolute or relative to the currently open group. If openpath + fails, then currently open path may not be different from the + starting path. For better performation the types can be + specified as well using '/path:type1/to:type2/group:type3' + which will prevent searching the file for the types associated + with the supplied names. Raises ValueError. Corresponds to NXopenpath(handle, path) """ - status = self.lib.nxiopenpath_(self.handle, path) - if status == ERROR: - raise ValueError, "Could not open %s in %s"%(path,self._loc()) - n,path,nxclass = self.getgroupinfo() - if path != 'root': - self.path = path.split('/') + self._openpath(path, opendata=True) + + def _openpath(self, path, opendata=True): + """helper function: open relative path and maybe data""" + # Determine target node as sequence of group names + if path == '/': + target = [] else: - self.path = [] + if path.endswith("/"): + path = path[:-1] + if path.startswith('/'): + target = path[1:].split('/') + else: + target = self._path + path.split('/') + + # Remove relative path indicators from target + L = [] + for t in target: + if t == '.': + # Skip current node + pass + elif t == '..': + if L == []: + raise ValueError("too many '..' in path") + L.pop() + else: + L.append(t) + target = L + # split out nxclass from each level if available + L = [] + for t in target: + try: + item = t.split(":") + if len(item) == 1: + L.append((item[0], None)) + else: + L.append(tuple(item)) + except AttributeError: + L.append(t) + target = L + + #print "current path",self._path + #print "%s"%path,target + + # Find which groups need to be closed and opened + up = [] + down = [] + for (i, (name, nxclass)) in enumerate(target): + if i == len(self._path): + #print "target longer than current" + up = [] + down = target[i:] + break + elif self._path[i] != name: + #print "target and current differ at",name + up = self._path[i:] + down = target[i:] + break + else: + #print "target shorter than current" + up = self._path[len(target):] + down = [] + + # add more information to the down path + for i in xrange(len(down)): + try: + (name, nxclass) = down[i] + except ValueError: + down[i] = (down[i], None) + #print "close,open",up,down + + # Close groups on the way up + if self._indata and up != []: + self.closedata() + up.pop() + for target in up: + self.closegroup() + + # Open groups on the way down + for target in down: + (name, nxclass) = target + if nxclass is None: + nxclass = self.__getnxclass(name) + if nxclass != "SDS": + self.opengroup(name, nxclass) + elif opendata: + self.opendata(name) + else: + raise ValueError("node %s not in %s"%(name,self.path)) - lib.nxiopengrouppath_.restype = c_int - lib.nxiopengrouppath_.argtypes = [c_void_p, c_char_p] + nxlib.nxiopengrouppath_.restype = c_int + nxlib.nxiopengrouppath_.argtypes = [c_void_p, c_char_p] def opengrouppath(self, path): """ Open a particular group '/path/to/group', or the dataset containing @@ -412,113 +543,154 @@ def opengrouppath(self, path): Corresponds to NXopengrouppath(handle, path) """ - status = self.lib.nxiopengrouppath_(self.handle, path) - if status == ERROR: - raise ValueError, "Could not open %s in %s"%(path,self.filename) - n,path,nxclass = self.getgroupinfo() - if path != 'root': - self.path = path.split('/') - else: - self.path = [] + self._openpath(path,opendata=False) - - lib.nxiopengroup_.restype = c_int - lib.nxiopengroup_.argtypes = [c_void_p, c_char_p, c_char_p] - def opengroup(self, name, nxclass): + nxlib.nxiopengroup_.restype = c_int + nxlib.nxiopengroup_.argtypes = [c_void_p, c_char_p, c_char_p] + def opengroup(self, name, nxclass=None): """ - Open the group nxclass:name. + Open the group nxclass:name. If the nxclass is not specified + this will search for it. Raises ValueError if the group could not be opened. Corresponds to NXopengroup(handle, name, nxclass) """ - #print "open group",nxclass,name - status = self.lib.nxiopengroup_(self.handle, name, nxclass) + #print "opengroup",self._loc(),name,nxclass + if nxclass is None: + nxclass = self.__getnxclass(name) + status = nxlib.nxiopengroup_(self.handle, name, nxclass) if status == ERROR: raise ValueError,\ "Could not open %s:%s in %s"%(nxclass,name,self._loc()) - self.path.append(name) + self._path.append((name,nxclass)) - lib.nxiclosegroup_.restype = c_int - lib.nxiclosegroup_.argtypes = [c_void_p] + nxlib.nxiclosegroup_.restype = c_int + nxlib.nxiclosegroup_.argtypes = [c_void_p] def closegroup(self): """ Close the currently open group. - Raises RuntimeError if the group could not be closed. + Raises NeXusError if the group could not be closed. Corresponds to NXclosegroup(handle) """ - #print "close group" - status = self.lib.nxiclosegroup_(self.handle) - group = self.path.pop() + #print "closegroup" + if self._indata: + raise NeXusError, "Close data before group at %s"%(self._loc()) + status = nxlib.nxiclosegroup_(self.handle) if status == ERROR: - raise RuntimeError, "Could not close %s:"%(group,self._loc()) + raise NeXusError, "Could not close group at %s"%(self._loc()) + self._path.pop() - lib.nxigetinfo_.restype = c_int - lib.nxigetinfo_.argtypes = [c_void_p, c_int_p, c_char_p, c_char_p] + nxlib.nxigetgroupinfo_.restype = c_int + nxlib.nxigetgroupinfo_.argtypes = [c_void_p, c_int_p, c_char_p, c_char_p] def getgroupinfo(self): """ Query the currently open group returning the tuple - numentries, path, nxclass. The path consists of names - of subgroups starting at the root separated by "/". + numentries, name, nxclass. Raises ValueError if the group could not be opened. Corresponds to NXgetgroupinfo(handle) + + Note: corrects error in HDF5 where getgroupinfo returns the entire + path rather than the group name. Use the path attribute to get + a sensible value of path. """ # Space for the returned strings path = ctypes.create_string_buffer(MAXPATHLEN) nxclass = ctypes.create_string_buffer(MAXNAMELEN) n = c_int(0) - status = self.lib.nxigetgroupinfo_(self.handle,_ref(n),path,nxclass) + status = nxlib.nxigetgroupinfo_(self.handle,_ref(n),path,nxclass) if status == ERROR: raise ValueError, "Could not get group info: %s"%(self._loc()) - #print "group info",nxclass.value,name.value,n.value - return n.value,path.value,nxclass.value + #print "getgroupinfo",self._loc(),nxclass.value,name.value,n.value + name = path.value.split('/')[-1] # Protect against HDF5 returning path + return n.value,name,nxclass.value - lib.nxiinitgroupdir_.restype = c_int - lib.nxiinitgroupdir_.argtypes = [c_void_p] + nxlib.nxiinitgroupdir_.restype = c_int + nxlib.nxiinitgroupdir_.argtypes = [c_void_p] def initgroupdir(self): """ Reset getnextentry to return the first entry in the group. - Raises RuntimeError if this fails. + Raises NeXusError if this fails. Corresponds to NXinitgroupdir(handle) """ - status = self.lib.nxiinitgroupdir_(self.handle) + status = nxlib.nxiinitgroupdir_(self.handle) if status == ERROR: - raise RuntimeError, \ + raise NeXusError, \ "Could not reset group scan: %s"%(self._loc()) - lib.nxigetnextentry_.restype = c_int - lib.nxigetnextentry_.argtypes = [c_void_p, c_char_p, c_char_p, c_int_p] + nxlib.nxigetnextentry_.restype = c_int + nxlib.nxigetnextentry_.argtypes = [c_void_p, c_char_p, c_char_p, c_int_p] def getnextentry(self): """ - Return the next entry in the group as name,nxclass tuple. + Return the next entry in the group as name,nxclass tuple. If + end of data is reached this returns the tuple (None, None) - Raises RuntimeError if this fails, or if there is no next entry. + Raises NeXusError if this fails. Corresponds to NXgetnextentry(handle,name,nxclass,&storage). This function doesn't return the storage class for data entries since getinfo returns shape and storage, both of which are required to read the data. + + Note that HDF4 files can have entries in the file with classes + that don't need to be processed. If the file follows the standard + NeXus DTDs then skip any entry for which nxclass.startswith('NX') + is False. For non-conforming files, skip those entries with + nxclass in nxs.H4SKIP. """ name = ctypes.create_string_buffer(MAXNAMELEN) nxclass = ctypes.create_string_buffer(MAXNAMELEN) storage = c_int(0) - status = self.lib.nxigetnextentry_(self.handle,name,nxclass,_ref(storage)) - if status == ERROR or status == EOD: - raise RuntimeError, \ + status = nxlib.nxigetnextentry_(self.handle,name,nxclass,_ref(storage)) + if status == EOD: + return (None, None) + if status == ERROR: + raise NeXusError, \ "Could not get next entry: %s"%(self._loc()) ## Note: ignoring storage --- it is useless without dimensions #if nxclass == 'SDS': # dtype = _pytype_code(storage.value) - #print "group next",nxclass.value, name.value, storage.value + #print "nextentry",nxclass.value, name.value, storage.value return name.value,nxclass.value + def getentries(self): + """ + Return a dictionary of the groups[name]=type below the + existing open one. + + Raises NeXusError if this fails. + """ + self.initgroupdir() + result = {} + (name, nxclass) = self.getnextentry() + if (name, nxclass) != (None, None): + result[name] = nxclass + while (name, nxclass) != (None, None): + result[name] = nxclass + (name, nxclass) = self.getnextentry() + return result + + def __getnxclass(self, target): + """ + Return the nxclass of the supplied name. + """ + self.initgroupdir() + while True: + (nxname, nxclass) = self.getnextentry() + if nxname == target: + return nxclass + if nxname is None: + break + raise NeXusError("Failed to find entry with name \"%s\" " \ + + "at %s" % (target, self.path)) + def entries(self): """ Iterator of entries. @@ -533,23 +705,22 @@ def entries(self): This does not correspond to an existing NeXus API function, but instead combines the work of initgroupdir/getnextentry - and open/close on data and group. + and open/close on data and group. Entries in nxs.H4SKIP are + ignored. """ # To preserve the semantics we must read in the whole list # first, then process the entries one by one. Keep track # of the path so we can restore it between entries. - n,path,_ = self.getgroupinfo() - #print "path",path - if not path == "root": - path = "/"+path - else: - path = "/" + path = self.path # Read list of entries self.initgroupdir() + n,_,_ = self.getgroupinfo() L = [] for i in range(n): - L.append(self.getnextentry()) + name,nxclass = self.getnextentry() + if nxclass not in H4SKIP: + L.append((name,nxclass)) for name,nxclass in L: self.openpath(path) # Reset the file cursor if nxclass == "SDS": @@ -559,8 +730,41 @@ def entries(self): yield name,nxclass # ==== Data ==== - lib.nxigetinfo_.restype = c_int - lib.nxigetinfo_.argtypes = [c_void_p, c_int_p, c_void_p, c_int_p] + nxlib.nxigetrawinfo_.restype = c_int + nxlib.nxigetrawinfo_.argtypes = [c_void_p, c_int_p, c_void_p, c_int_p] + def getrawinfo(self): + """ + Returns the tuple dimensions,type for the currently open dataset. + Dimensions is an integer array whose length corresponds to the rank + of the dataset and whose elements are the size of the individual + dimensions. Storage type is returned as a string, with 'char' for + a stored string, '[u]int[8|16|32]' for various integer values or + 'float[32|64]' for floating point values. No support for + complex values. + + Unlike getinfo(), the size of the string storage area is + returned rather than the length of the stored string. + + Raises NeXusError if this fails. + + Corresponds to NXgetrawinfo(handle, &rank, dims, &storage), + but with storage converted from HDF values to numpy compatible + strings, and rank implicit in the length of the returned dimensions. + """ + rank = c_int(0) + shape = numpy.zeros(MAXRANK, 'i') + storage = c_int(0) + status = nxlib.nxigetrawinfo_(self.handle, _ref(rank), shape.ctypes.data, + _ref(storage)) + if status == ERROR: + raise NeXusError, "Could not get data info: %s"%(self._loc()) + shape = shape[:rank.value]+0 + dtype = _pytype_code[storage.value] + #print "getrawinfo",self._loc(),"->",shape,dtype + return shape,dtype + + nxlib.nxigetinfo_.restype = c_int + nxlib.nxigetinfo_.argtypes = [c_void_p, c_int_p, c_void_p, c_int_p] def getinfo(self): """ Returns the tuple dimensions,type for the currently open dataset. @@ -571,7 +775,10 @@ def getinfo(self): 'float[32|64]' for floating point values. No support for complex values. - Raises RuntimeError if this fails. + Unlike getrawinfo(), the length of the stored string is + returned rather than the size of the string storage area. + + Raises NeXusError if this fails. Note that this is the recommended way to establish if you have a dataset open. @@ -583,17 +790,17 @@ def getinfo(self): rank = c_int(0) shape = numpy.zeros(MAXRANK, 'i') storage = c_int(0) - status = self.lib.nxigetinfo_(self.handle, _ref(rank), shape.ctypes.data, + status = nxlib.nxigetinfo_(self.handle, _ref(rank), shape.ctypes.data, _ref(storage)) if status == ERROR: - raise RuntimeError, "Could not get data info: %s"%(self._loc()) + raise NeXusError, "Could not get data info: %s"%(self._loc()) shape = shape[:rank.value]+0 dtype = _pytype_code[storage.value] - #print "data info",shape,dtype + #print "getinfo",self._loc(),"->",shape,dtype return shape,dtype - lib.nxiopendata_.restype = c_int - lib.nxiopendata_.argtypes = [c_void_p, c_char_p] + nxlib.nxiopendata_.restype = c_int + nxlib.nxiopendata_.argtypes = [c_void_p, c_char_p] def opendata(self, name): """ Open the named data set within the current group. @@ -602,32 +809,37 @@ def opendata(self, name): Corresponds to NXopendata(handle, name) """ - #print "opening data",name - status = self.lib.nxiopendata_(self.handle, name) + #print "opendata",self._loc(),name + if self._indata: + status = ERROR + else: + status = nxlib.nxiopendata_(self.handle, name) if status == ERROR: raise ValueError, "Could not open data %s: %s"%(name, self._loc()) - self.path.append(name) + self._path.append((name,"SDS")) + self._indata = True - lib.nxiclosedata_.restype = c_int - lib.nxiclosedata_.argtypes = [c_void_p] + nxlib.nxiclosedata_.restype = c_int + nxlib.nxiclosedata_.argtypes = [c_void_p] def closedata(self): """ Close the currently open data set. - Raises RuntimeError if this fails (e.g., because no + Raises NeXusError if this fails (e.g., because no dataset is open). Corresponds to NXclosedata(handle) """ - #print "closing data" - status = self.lib.nxiclosedata_(self.handle) - name = self.path.pop() + #print "closedata" + status = nxlib.nxiclosedata_(self.handle) if status == ERROR: - raise RuntimeError,\ - "Could not close data %s: %s"%(name,self._loc()) + raise NeXusError,\ + "Could not close data at %s"%(self._loc()) + self._path.pop() + self._indata = False - lib.nximakedata_.restype = c_int - lib.nximakedata_.argtypes = [c_void_p, c_char_p, c_int, c_int, c_int_p] + nxlib.nximakedata_.restype = c_int + nxlib.nximakedata_.argtypes = [c_void_p, c_char_p, c_int, c_int, c_int_p] def makedata(self, name, dtype=None, shape=None): """ Create a data element of the given type and shape. See getinfo @@ -644,16 +856,16 @@ def makedata(self, name, dtype=None, shape=None): # TODO: compmakedata. # TODO: With keywords for value and attr, this can be used for # TODO: makedata, opendata, putdata, putattr, putattr, ..., closedata - #print "Data",name,dtype,shape + #print "makedata",self._loc(),name,shape,dtype storage = _nxtype_code[str(dtype)] shape = numpy.array(shape,'i') - status = self.lib.nximakedata_(self.handle,name,storage,len(shape), + status = nxlib.nximakedata_(self.handle,name,storage,len(shape), shape.ctypes.data_as(c_int_p)) if status == ERROR: raise ValueError, "Could not create data %s: %s"%(name,self._loc()) - lib.nxicompmakedata_.restype = c_int - lib.nxicompmakedata_.argtypes = [c_void_p, c_char_p, c_int, c_int, c_int_p, + nxlib.nxicompmakedata_.restype = c_int + nxlib.nxicompmakedata_.argtypes = [c_void_p, c_char_p, c_int, c_int, c_int_p, c_int, c_int_p] def compmakedata(self, name, dtype=None, shape=None, mode='lzw', chunks=None): @@ -680,7 +892,7 @@ def compmakedata(self, name, dtype=None, shape=None, mode='lzw', chunks[-1] = shape[-1] else: chunks = numpy.array(chunks,'i') - status = self.lib.nxicompmakedata_(self.handle,name,storage,len(dims), + status = nxlib.nxicompmakedata_(self.handle,name,storage,len(dims), dims.ctypes.data_as(c_int_p), _compression_code[mode], chunks.ctypes.data_as(c_int_p)) @@ -688,29 +900,32 @@ def compmakedata(self, name, dtype=None, shape=None, mode='lzw', raise ValueError, \ "Could not create compressed data %s: %s"%(name,self._loc()) - lib.nxigetdata_.restype = c_int - lib.nxigetdata_.argtypes = [c_void_p, c_void_p] + nxlib.nxigetdata_.restype = c_int + nxlib.nxigetdata_.argtypes = [c_void_p, c_void_p] def getdata(self): """ Return the data. If data is a string (1-D char array), a python string is returned. If data is a scalar (1-D numeric array of - length 1), a python numeric scalar is returned. + length 1), a python scalar is returned. If data is a string + array, a numpy array of type 'S#' where # is the maximum string + length is returned. If data is a numeric array, a numpy array + is returned. - Raises RuntimeError if this fails. + Raises ValueError if this fails. Corresponds to NXgetdata(handle, data) """ # TODO: consider accepting preallocated data so we don't thrash memory shape,dtype = self.getinfo() - datafn,pdata,size = self._poutput(dtype,shape) - status = self.lib.nxigetdata_(self.handle,pdata) + data,pdata,size,datafn = self._poutput(dtype,shape) + status = nxlib.nxigetdata_(self.handle,pdata) if status == ERROR: raise ValueError, "Could not read data: %s"%(self._loc()) - #print "data",ret() + #print "getdata",self._loc(),shape,dtype return datafn() - lib.nxigetslab_.restype = c_int - lib.nxigetslab_.argtypes = [c_void_p, c_void_p, c_int_p, c_int_p] + nxlib.nxigetslab_.restype = c_int + nxlib.nxigetslab_.argtypes = [c_void_p, c_void_p, c_int_p, c_int_p] def getslab(self, slab_offset, slab_shape): """ Get a slab from the data array. @@ -723,11 +938,11 @@ def getslab(self, slab_offset, slab_shape): Corresponds to NXgetslab(handle,data,offset,shape) """ # TODO: consider accepting preallocated data so we don't thrash memory - shape,dtype = self.getinfo() - datafn,pdata,size = self._poutput(dtype,slab_shape) + shape,dtype = self.getrawinfo() + data,pdata,size,datafn = self._poutput(dtype,slab_shape) slab_offset = numpy.array(slab_offset,'i') slab_shape = numpy.array(slab_shape,'i') - status = self.lib.nxigetslab_(self.handle,pdata, + status = nxlib.nxigetslab_(self.handle,pdata, slab_offset.ctypes.data_as(c_int_p), slab_shape.ctypes.data_as(c_int_p)) #print "slab",offset,size,data @@ -735,8 +950,8 @@ def getslab(self, slab_offset, slab_shape): raise ValueError, "Could not read slab: %s"%(self._loc()) return datafn() - lib.nxiputdata_.restype = c_int - lib.nxiputdata_.argtypes = [c_void_p, c_void_p] + nxlib.nxiputdata_.restype = c_int + nxlib.nxiputdata_.argtypes = [c_void_p, c_void_p] def putdata(self, data): """ Write data into the currently open data block. @@ -745,14 +960,15 @@ def putdata(self, data): Corresponds to NXputdata(handle, data) """ - shape,dtype = self.getinfo() + shape,dtype = self.getrawinfo() + #print "putdata",self._loc(),shape,dtype data,pdata = self._pinput(data,dtype,shape) - status = self.lib.nxiputdata_(self.handle,pdata) + status = nxlib.nxiputdata_(self.handle,pdata) if status == ERROR: raise ValueError, "Could not write data: %s"%(self._loc()) - lib.nxiputslab_.restype = c_int - lib.nxiputslab_.argtypes = [c_void_p, c_void_p, c_int_p, c_int_p] + nxlib.nxiputslab_.restype = c_int + nxlib.nxiputslab_.argtypes = [c_void_p, c_void_p, c_int_p, c_int_p] def putslab(self, data, slab_offset, slab_shape): """ Put a slab into the data array. @@ -764,12 +980,12 @@ def putslab(self, data, slab_offset, slab_shape): Corresponds to NXputslab(handle,data,offset,shape) """ - shape,dtype = self.getinfo() + shape,dtype = self.getrawinfo() data,pdata = self._pinput(data,dtype,slab_shape) slab_offset = numpy.array(slab_offset,'i') slab_shape = numpy.array(slab_shape,'i') #print "slab",offset,size,data - status = self.lib.nxiputslab_(self.handle,pdata, + status = nxlib.nxiputslab_(self.handle,pdata, slab_offset.ctypes.data_as(c_int_p), slab_shape.ctypes.data_as(c_int_p)) if status == ERROR: @@ -778,42 +994,42 @@ def putslab(self, data, slab_offset, slab_shape): # ==== Attributes ==== - lib.nxiinitattrdir_.restype = c_int - lib.nxiinitattrdir_.argtypes = [c_void_p] + nxlib.nxiinitattrdir_.restype = c_int + nxlib.nxiinitattrdir_.argtypes = [c_void_p] def initattrdir(self): """ Reset the getnextattr list to the first attribute. - Raises RuntimeError if this fails. + Raises NeXusError if this fails. Corresponds to NXinitattrdir(handle) """ - status = self.lib.nxiinitattrdir_(self.handle) + status = nxlib.nxiinitattrdir_(self.handle) if status == ERROR: - raise RuntimeError, \ + raise NeXusError, \ "Could not reset attribute list: %s"%(self._loc()) - lib.nxigetattrinfo_.restype = c_int - lib.nxigetattrinfo_.argtypes = [c_void_p, c_int_p] + nxlib.nxigetattrinfo_.restype = c_int + nxlib.nxigetattrinfo_.argtypes = [c_void_p, c_int_p] def getattrinfo(self): """ Returns the number of attributes for the currently open group/data object. Do not call getnextattr() more than this number of times. - Raises RuntimeError if this fails. + Raises NeXusError if this fails. Corresponds to NXgetattrinfo(handl, &n) """ n = c_int(0) - status = self.lib.nxigetattrinfo_(self.handle,_ref(n)) + status = nxlib.nxigetattrinfo_(self.handle,_ref(n)) if status == ERROR: - raise RuntimeError, "Could not get attr info: %s"%(self._loc()) + raise NeXusError, "Could not get attr info: %s"%(self._loc()) #print "num attrs",n.value return n.value - lib.nxigetnextattr_.restype = c_int - lib.nxigetnextattr_.argtypes = [c_void_p, c_char_p, c_int_p, c_int_p] + nxlib.nxigetnextattr_.restype = c_int + nxlib.nxigetnextattr_.argtypes = [c_void_p, c_char_p, c_int_p, c_int_p] def getnextattr(self): """ Returns the name, length, and data type for the next attribute. @@ -822,7 +1038,7 @@ def getnextattr(self): getinfo for details. Length is the number of elements in the attribute. - Raises RuntimeError if NeXus returns ERROR or EOD. + Raises NeXusError if NeXus returns ERROR or EOD. Corresponds to NXgetnextattr(handle,name,&length,&storage) but with storage converted from HDF values to numpy compatible @@ -834,17 +1050,19 @@ def getnextattr(self): name = ctypes.create_string_buffer(MAXNAMELEN) length = c_int(0) storage = c_int(0) - status = self.lib.nxigetnextattr_(self.handle,name,_ref(length),_ref(storage)) + status = nxlib.nxigetnextattr_(self.handle,name,_ref(length),_ref(storage)) + if status == EOD: + return (None, None, None) if status == ERROR or status == EOD: - raise RuntimeError, "Could not get next attr: %s"%(self._loc()) + raise NeXusError, "Could not get next attr: %s"%(self._loc()) dtype = _pytype_code[storage.value] - #print "next attr",name.value,length.value,dtype + #print "getnextattr",name.value,length.value,dtype return name.value, length.value, dtype # TODO: Resolve discrepency between NeXus API documentation and # TODO: apparent behaviour for getattr/putattr length. - lib.nxigetattr_.restype = c_int - lib.nxigetattr_.argtypes = [c_void_p, c_char_p, c_void_p, c_int_p, c_int_p] + nxlib.nxigetattr_.restype = c_int + nxlib.nxigetattr_.argtypes = [c_void_p, c_char_p, c_void_p, c_int_p, c_int_p] def getattr(self, name, length, dtype): """ Returns the value of the named attribute. Requires length and @@ -853,24 +1071,26 @@ def getattr(self, name, length, dtype): Corresponds to NXgetattr(handle,name,data,&length,&storage) """ - datafn,pdata,size = self._poutput(str(dtype),[length]) + if dtype is 'char': length += 1 # HDF4 needs zero-terminator + data,pdata,size,datafn = self._poutput(str(dtype),[length]) storage = c_int(_nxtype_code[str(dtype)]) - #print "retrieving",name,length,dtype,size + #print "getattr",self._loc(),name,length,size,dtype size = c_int(size) - status = self.lib.nxigetattr_(self.handle,name,pdata,_ref(size),_ref(storage)) + status = nxlib.nxigetattr_(self.handle,name,pdata,_ref(size),_ref(storage)) if status == ERROR: raise ValueError, "Could not read attr %s: %s" % (name,self._loc()) - #print "attr",name,datafn(),size + #print "getattr",self._loc(),name,datafn() return datafn() - lib.nxiputattr_.restype = c_int - lib.nxiputattr_.argtypes = [c_void_p, c_char_p, c_void_p, c_int, c_int] + nxlib.nxiputattr_.restype = c_int + nxlib.nxiputattr_.argtypes = [c_void_p, c_char_p, c_void_p, c_int, c_int] def putattr(self, name, value, dtype = None): """ Saves the named attribute. The attribute value is a string or a scalar. - Raises ValueError if the attribute could not be saved. + Raises TypeError if the value type is incorrect. + Raises NeXusError if the attribute could not be saved. Corresponds to NXputattr(handle,name,data,length,storage) @@ -908,9 +1128,20 @@ def putattr(self, name, value, dtype = None): # Perform the call storage = c_int(_nxtype_code[dtype]) - status = self.lib.nxiputattr_(self.handle,name,data,length,storage) + status = nxlib.nxiputattr_(self.handle,name,data,length,storage) if status == ERROR: - raise ValueError, "Could not write attr %s: %s"%(name,self._loc()) + raise NeXusError, "Could not write attr %s: %s"%(name,self._loc()) + + def getattrs(self): + """ + Returns a dicitonary of the attributes on the current node. + + This is a second form of attrs(self). + """ + result = {} + for (name, value) in self.attrs(): + result[name] = value + return result def attrs(self): """ @@ -933,70 +1164,70 @@ def attrs(self): yield name,value # ==== Linking ==== - lib.nxigetgroupid_.restype = c_int - lib.nxigetgroupid_.argtypes = [c_void_p, c_NXlink_p] + nxlib.nxigetgroupid_.restype = c_int + nxlib.nxigetgroupid_.argtypes = [c_void_p, c_NXlink_p] def getgroupID(self): """ Return the id of the current group so we can link to it later. - Raises RuntimeError + Raises NeXusError Corresponds to NXgetgroupID(handle, &ID) """ ID = _NXlink() - status = self.lib.nxigetgroupid_(self.handle,_ref(ID)) + status = nxlib.nxigetgroupid_(self.handle,_ref(ID)) if status == ERROR: - raise RuntimeError, "Could not link to group: %s"%(self._loc()) + raise NeXusError, "Could not link to group: %s"%(self._loc()) return ID - lib.nxigetdataid_.restype = c_int - lib.nxigetdataid_.argtypes = [c_void_p, c_NXlink_p] + nxlib.nxigetdataid_.restype = c_int + nxlib.nxigetdataid_.argtypes = [c_void_p, c_NXlink_p] def getdataID(self): """ Return the id of the current data so we can link to it later. - Raises RuntimeError + Raises NeXusError Corresponds to NXgetdataID(handle, &ID) """ ID = _NXlink() - status = self.lib.nxigetdataid_(self.handle,_ref(ID)) + status = nxlib.nxigetdataid_(self.handle,_ref(ID)) if status == ERROR: - raise RuntimeError, "Could not link to data: %s"%(self._loc()) + raise NeXusError, "Could not link to data: %s"%(self._loc()) return ID - lib.nximakelink_.restype = c_int - lib.nximakelink_.argtypes = [c_void_p, c_NXlink_p] + nxlib.nximakelink_.restype = c_int + nxlib.nximakelink_.argtypes = [c_void_p, c_NXlink_p] def makelink(self, ID): """ Link the previously captured group/data ID into the currently open group. - Raises RuntimeError + Raises NeXusError Corresponds to NXmakelink(handle, &ID) """ - status = self.lib.nximakelink_(self.handle,_ref(ID)) + status = nxlib.nximakelink_(self.handle,_ref(ID)) if status == ERROR: - raise RuntimeError, "Could not make link: %s"%(self._loc()) + raise NeXusError, "Could not make link: %s"%(self._loc()) - lib.nximakenamedlink_.restype = c_int - lib.nximakenamedlink_.argtypes = [c_void_p, c_char_p, c_NXlink_p] + nxlib.nximakenamedlink_.restype = c_int + nxlib.nximakenamedlink_.argtypes = [c_void_p, c_char_p, c_NXlink_p] def makenamedlink(self,name,ID): """ Link the previously captured group/data ID into the currently open group, but under a different name. - Raises RuntimeError + Raises NeXusError Corresponds to NXmakenamedlink(handle,name,&ID) """ - status = self.lib.nximakenamedlink_(self.handle,name,_ref(ID)) + status = nxlib.nximakenamedlink_(self.handle,name,_ref(ID)) if status == ERROR: - raise RuntimeError, "Could not make link %s: %s"%(name,self._loc()) + raise NeXusError, "Could not make link %s: %s"%(name,self._loc()) - lib.nxisameid_.restype = c_int - lib.nxisameid_.argtypes = [c_void_p, c_NXlink_p, c_NXlink_p] + nxlib.nxisameid_.restype = c_int + nxlib.nxisameid_.argtypes = [c_void_p, c_NXlink_p, c_NXlink_p] def sameID(self, ID1, ID2): """ Return True of ID1 and ID2 point to the same group/data. @@ -1005,11 +1236,11 @@ def sameID(self, ID1, ID2): Corresponds to NXsameID(handle,&ID1,&ID2) """ - status = self.lib.nxisameid_(self.handle, _ref(ID1), _ref(ID2)) + status = nxlib.nxisameid_(self.handle, _ref(ID1), _ref(ID2)) return status == OK - lib.nxiopensourcegroup_.restype = c_int - lib.nxiopensourcegroup_.argtyps = [c_void_p] + nxlib.nxiopensourcegroup_.restype = c_int + nxlib.nxiopensourcegroup_.argtyps = [c_void_p] def opensourcegroup(self): """ If the current node is a linked to another group or data, then @@ -1018,13 +1249,13 @@ def opensourcegroup(self): Note: it is unclear how can we tell if we are linked, other than perhaps the existence of a 'target' attribute in the current item. - Raises RuntimeError + Raises NeXusError. Corresponds to NXopensourcegroup(handle) """ - status = self.lib.nxiopensourcegroup_(self.handle) + status = nxlib.nxiopensourcegroup_(self.handle) if status == ERROR: - raise RuntimeError, "Could not open source group: %s"%(self._loc()) + raise NeXusError, "Could not open source group: %s"%(self._loc()) def link(self): """ @@ -1036,62 +1267,60 @@ def link(self): This does not correspond to an existing NeXus API function, but combines the work of attrinfo/initattrdir/getnextattr/getattr. """ - # To preserve the semantics we must read in the whole list - # first, then process the entries one by one. - pathstr = "/"+"/".join(self.path) - #print "checking for links from",pathstr n = self.getattrinfo() self.initattrdir() for i in range(n): name,length,dtype = self.getnextattr() if name == "target": target = self.getattr(name,length,dtype) - #print "target %s, path %s"%(target,pathstr) - if target != pathstr: + #print "target %s, path %s"%(target,self.path) + if target != self.path: return target else: return None return None # ==== External linking ==== - lib.nxiinquirefile_.restype = c_int - lib.nxiinquirefile_.argtypes = [c_void_p, c_char_p, c_int] + nxlib.nxiinquirefile_.restype = c_int + nxlib.nxiinquirefile_.argtypes = [c_void_p, c_char_p, c_int] def inquirefile(self, maxnamelen=MAXPATHLEN): """ Return the filename for the current file. This may be different from the file that was opened (file.filename) if the current group is an external link to another file. - Raises RuntimeError if this fails. + Raises NeXusError if this fails. Corresponds to NXinquirefile(&handle,file,len) """ filename = ctypes.create_string_buffer(maxnamelen) - status = self.lib.nxiinquirefile_(self.handle,filename,maxnamelen) + status = nxlib.nxiinquirefile_(self.handle,filename,maxnamelen) if status == ERROR: - raise RuntimeError,\ + raise NeXusError,\ "Could not determine filename: %s"%(self._loc()) return filename.value - lib.nxilinkexternal_.restype = c_int - lib.nxilinkexternal_.argtyps = [c_void_p, c_char_p, + nxlib.nxilinkexternal_.restype = c_int + nxlib.nxilinkexternal_.argtyps = [c_void_p, c_char_p, c_char_p, c_char_p] def linkexternal(self, name, nxclass, url): """ Return the filename for the external link if there is one, otherwise return None. + Raises NeXusError if link fails. + Corresponds to NXisexternalgroup(&handle,name,nxclass,file,len) """ - status = self.lib.nxilinkexternal_(self.handle,name,nxclass,url) + status = nxlib.nxilinkexternal_(self.handle,name,nxclass,url) if status == ERROR: - raise RuntimeError,\ + raise NeXusError,\ "Could not link %s to %s: %s"%(name,url,self._loc()) - lib.nxiisexternalgroup_.restype = c_int - lib.nxiisexternalgroup_.argtyps = [c_void_p, c_char_p, + nxlib.nxiisexternalgroup_.restype = c_int + nxlib.nxiisexternalgroup_.argtyps = [c_void_p, c_char_p, c_char_p, c_char_p, c_int] def isexternalgroup(self, name, nxclass, maxnamelen=MAXPATHLEN): """ @@ -1101,7 +1330,7 @@ def isexternalgroup(self, name, nxclass, maxnamelen=MAXPATHLEN): Corresponds to NXisexternalgroup(&handle,name,nxclass,file,len) """ url = ctypes.create_string_buffer(maxnamelen) - status = self.lib.nxiisexternalgroup_(self.handle,name,nxclass, + status = nxlib.nxiisexternalgroup_(self.handle,name,nxclass, url,maxnamelen) if status == ERROR: return None @@ -1111,80 +1340,76 @@ def isexternalgroup(self, name, nxclass, maxnamelen=MAXPATHLEN): # ==== Utility functions ==== def _loc(self): """ - Return file location as string filename:path + Return file location as string filename(path) This is an extension to the NeXus API. """ - if not self.path == []: - pathstr = "/".join(self.path) - else: - pathstr = "root" - return "%s(%s)"%(self.filename,pathstr) + return "%s(%s)"%(self.filename,self.path) def _poutput(self, dtype, shape): """ Build space to collect a nexus data element. - Returns datafn,data,size where - - datafn is a lamba expression to extract the value out of the element. - - pdata is the value to pass to C (effectively a void *) + Returns data,pdata,size,datafn where + - data is a python type to hold the returned data + - pdata is the pointer to the start of the data - size is the number of bytes in the data block - Note that ret can return a string, a scalar or an array depending + - datafn is a lamba expression to extract the return value from data + Note that datafn can return a string, a scalar or an array depending on the data type and shape of the data group. """ if len(shape) == 1 and dtype == 'char': # string - use ctypes allocator size = int(shape[0]) - pdata = ctypes.create_string_buffer(size) - datafn = lambda: pdata.value + data = ctypes.create_string_buffer(size) + pdata = data + datafn = lambda: data.value else: - # numeric - use numpy array - if dtype=='char': dtype = 'uint8' - data = numpy.zeros(shape,dtype) + # scalar, array or string list - use numpy array + if dtype=='char': + data = numpy.zeros(shape[:-1], dtype='S%i'%shape[-1]) + else: + data = numpy.zeros(shape, dtype) if len(shape) == 1 and shape[0] == 1: datafn = lambda: data[0] else: datafn = lambda: data pdata = data.ctypes.data size = data.nbytes - return datafn,pdata,size + return data,pdata,size,datafn def _pinput(self, data, dtype, shape): """ - Convert an input array to a C pointer to a dense array. This may - require conversion of the array, so the new array is returned along - with its pointer. + Convert an input array to a C pointer to a dense array. + + Returns data, pdata where + - data is a possibly new copy of the array + - pdata is a pointer to the beginning of the array. + Note that you must hold a reference to data for as long + as you need pdata to keep the memory from being released to the heap. """ if dtype == "char": - # Character data - pad with zeros to the right length - if not _is_string_like(data): - raise ValueError,"Expected character data: %s"%(self._loc()) - if len(data) < shape[0]: - data += '\000'*(shape[0]-len(data)) + data = numpy.asarray(data, dtype='S%d'%(shape[-1])) else: # Convert scalars to vectors of length one if numpy.prod(shape) == 1 and not hasattr(data,'shape'): - data = numpy.array([data],dtype=dtype) + data = numpy.array([data], dtype=dtype) # Check that dimensions match # Ick! need to exclude dimensions of length 1 in order to catch # array slices such as a[:,1], which only report one dimension input_shape = numpy.array([i for i in data.shape if i != 1]) target_shape = numpy.array([i for i in shape if i != 1]) - if len(input_shape) != len(target_shape) or (input_shape != target_shape).any(): + if len(input_shape) != len(target_shape) \ + or (input_shape != target_shape).any(): raise ValueError,\ - "Shape mismatch %s!=%s: %s"%(data.shape,shape,self.filename) + "Shape mismatch %s!=%s: %s"%(data_shape,shape,self._loc()) + # Check data type if str(data.dtype) != dtype: raise ValueError,\ "Type mismatch %s!=%s: %s"%(dtype,data.dtype,self._loc()) - if dtype == 'char': - # String: hand it over as usual for strings. Assumes the string - # is the correct length for the storage area. - pdata = data - else: - # Vector: assume it is of the correct storage class and size - data = numpy.ascontiguousarray(data) - pdata = data.ctypes.data - + data = numpy.ascontiguousarray(data) + pdata = data.ctypes.data + return data,pdata def show(self, path=None, indent=0): @@ -1193,8 +1418,7 @@ def show(self, path=None, indent=0): TODO: Break this into a tree walker and a visitor. """ - oldpath = "/"+"/".join(self.path) - if not path: path = oldpath + oldpath = self.path self.openpath(path) print "=== File",self.inquirefile(),path diff --git a/bindings/python/nxstest.py b/bindings/python/nxstest.py index f5df4ec2..4abdb412 100644 --- a/bindings/python/nxstest.py +++ b/bindings/python/nxstest.py @@ -93,6 +93,7 @@ def populate(filename,mode): # Write numeric data for var in ['i1','i2','i4','i8','r4']: + if mode == 'w4' and var == 'i8': continue name = var+'_data' val = locals()[var] file.makedata(name,val.dtype,val.shape) @@ -130,17 +131,17 @@ def populate(filename,mode): # .. demonstrate extensible data file.makedata('flush_data','int32',[nxs.UNLIMITED]) + file.opendata('flush_data') for i in range(7): - file.opendata('flush_data') file.putslab(i,[i],[1]) - file.flush() - # Oops... why isn't there a closedata()? + file.closedata() + file.flush() file.closegroup() # Create NXsample group file.makegroup('sample','NXsample') file.opengroup('sample','NXsample') - file.makedata('ch_data','char',[12]) + file.makedata('ch_data','char',[20]) file.opendata('ch_data') file.putdata('NeXus sample') file.closedata() @@ -182,18 +183,26 @@ def dicteq(a,b): return False return True -def check(filename): +def check(filename, mode): global failures failures = 0 file = nxs.open(filename,'rw') if filename != file.inquirefile(): fail("Files don't match") - attrs = file.getattrinfo() - if attrs != 4: fail("Expected 4 root attributes but got %d", attrs) - for i in range(attrs): + + # check headers + num_attrs = file.getattrinfo() + wxattrs = ['xmlns','xmlns:xsi','xsi:schemaLocation', 'XML_version'] + w4attrs = ['HDF_version'] + w5attrs = ['HDF5_Version'] + extras = dict(wx=wxattrs,w4=w4attrs,w5=w5attrs) + expected_attrs = ['NeXus_version','file_name','file_time']+extras[mode] + for i in range(num_attrs): name,dims,type = file.getnextattr() - if name not in ['file_time','HDF_version','HDF5_Version','XML_version', - 'NeXus_version','file_name']: + if name not in expected_attrs: fail("attribute %s unexpected"%(name)) + if num_attrs != len(expected_attrs): + fail("Expected %d root attributes but got %d" + % (len(expected_attrs),num_attrs)) file.opengroup('entry','NXentry') @@ -212,6 +221,7 @@ def check(filename): ('r4','float32',(5,4),1), ('r8','float64',(5,4),1) ]: + if mode == 'w4' and name == 'i8': continue n = numpy.prod(shape) expected = numpy.arange(n,dtype=dtype).reshape(shape)*scale file.opendata(name+'_data') @@ -220,6 +230,7 @@ def check(filename): if not (get == expected).all(): fail("%s retrieved %s"%(dtype,get)) + # Check attribute types file.opendata('r8_data') get = file.getattr("ch_attribute",5,'char') @@ -227,7 +238,9 @@ def check(filename): get = file.getattr("i4_attribute",1,'int32') if not get == numpy.int32(42): fail("i4_attribute retrieved %s"%(get)) get = file.getattr("r4_attribute",1,'float32') - if not get == numpy.float32(3.14159265): fail("r4_attribute retrieved %s"%(get)) + if ((mode=='wx' and not abs(get-3.14159265) < 1e-6) or + (mode!='wx' and not get == numpy.float32(3.14159265))): + fail("r4_attribute retrieved %s"%(get)) ## Oops... NAPI doesn't support array attributes #expect = numpy.array([3,2],dtype='int32') #get = file.getattr("i4_array",2,'int32') @@ -242,16 +255,36 @@ def check(filename): comp_array=numpy.ones((100,20),dtype='int32') for i in range(100): comp_array[i,:] *= i expected = comp_array - file.opengroup('data','NXdata') - file.opendata('comp_data') + file.opengroup('data','NXdata') #/entry/data + file.opendata('comp_data') #/entry/data/comp_data get = file.getdata() - file.closedata() #/entry/data/comp_data - file.closegroup() #/entry/data + file.closedata() #/entry/data/comp_data + file.closegroup() #/entry/data if not (get == expected).all(): fail("compressed data differs") print get - file.closegroup() #/entry + # Check strings + file.opengroup('sample','NXsample') #/entry/sample + file.opendata('ch_data') #/entry/sample/ch_data + rawshape,rawdtype = file.getrawinfo() + shape,dtype = file.getinfo() + get = file.getdata() + file.closedata() #/entry/sample/ch_data + file.closegroup() #/entry/sample + if not (shape[0]==12 and dtype=='char'): + fail("returned string info is incorrect") + print shape,dtype + if not (rawshape[0]==20 and rawdtype=='char'): + fail("returned string storage info is incorrect") + print shape,dtype + if not (get == "NeXus sample"): + fail("returned string is incorrect") + print shape,dtype + + + file.closegroup() #/entry + # Check read slab (e.g., from extensible) # Check links @@ -346,7 +379,7 @@ def test_mode(mode,quiet=True,external=False): show_structure('dmc01'+ext) if not quiet: show_structure(filename) - failures = check(filename) + failures = check(filename,mode) if external: failures += test_external(mode,quiet) return failures diff --git a/bindings/python/nxsunit.py b/bindings/python/nxsunit.py deleted file mode 100755 index 43bcc0c9..00000000 --- a/bindings/python/nxsunit.py +++ /dev/null @@ -1,192 +0,0 @@ -# This program is public domain -# Author: Paul Kienzle -""" -Define unit conversion support for NeXus style units. - -The unit format is somewhat complicated. There are variant spellings -and incorrect capitalization to worry about, as well as forms such as -"mili*metre" and "1e-7 seconds". - -This is a minimal implementation of units including only what I happen to -need now. It does not support the complete dimensional analysis provided -by the package udunits on which NeXus is based, or even the units used -in the NeXus definition files. - -Unlike other units packages, such as that in DANSE, this package does -not carry the units along with the value, but merely provides a conversion -function for transforming values. - -Usage example: - - u = nxsunit.Converter('mili*metre') # Units stored in mm - v = u(3000,'m') # Convert the value 3000 mm into meters - -NeXus example: - - # Load sample orientation in radians regardless of how it is stored. - # 1. Open the path - file.openpath('/entry1/sample/sample_orientation') - # 2. scan the attributes, retrieving 'units' - units = [for attr,value in file.attrs() if attr == 'units'] - # 3. set up the converter (assumes that units actually exists) - u = nxsunit.Converter(units[0]) - # 4. read the data and convert to the correct units - v = u(file.read(),'radians') - -This is a standalone module, not relying on either DANSE or NeXus, and -can be used for other unit conversion tasks. - -Note: minutes are used for angle and seconds are used for time. We -cannot tell what the correct interpretation is without knowing something -about the fields themselves. If this becomes an issue, we will need to -allow the application to set the dimension for the units rather than -getting the dimension from the units as we are currently doing. -""" - -# TODO: Add udunits to NAPI rather than reimplementing it in python -# TODO: Alternatively, parse the udunits database directly -# UDUnits: -# http://www.unidata.ucar.edu/software/udunits/udunits-1/udunits.txt - -# TODO: Allow application to impose the map on the units - -from __future__ import division -import math - - -# Limited form of units for returning objects of a specific type. -# Maybe want to do full units handling with e.g., pyre's -# unit class. For now lets keep it simple. Note that -def _build_metric_units(unit,abbr): - """ - Construct standard SI names for the given unit. - Builds e.g., - s, ns - second, nanosecond, nano*second - seconds, nanoseconds - Includes prefixes for femto through peta. - - Ack! Allows, e.g., Coulomb and coulomb even though Coulomb is not - a unit because some NeXus files store it that way! - - Returns a dictionary of names and scales. - """ - prefix = dict(peta=1e15,tera=1e12,giga=1e9,mega=1e6,kilo=1e3, - deci=1e-1,centi=1e-2,milli=1e-3,mili=1e-3,micro=1e-6, - nano=1e-9,pico=1e-12,femto=1e-15) - short_prefix = dict(P=1e15,T=1e12,G=1e9,M=1e6,k=1e3, - d=1e-1,c=1e-2,m=1e-3,u=1e-6, - n=1e-9,p=1e-12,f=1e-15) - map = {abbr:1} - map.update([(P+abbr,scale) for (P,scale) in short_prefix.iteritems()]) - for name in [unit,unit.capitalize()]: - map.update({name:1,name+'s':1}) - map.update([(P+name,scale) for (P,scale) in prefix.iteritems()]) - map.update([(P+'*'+name,scale) for (P,scale) in prefix.iteritems()]) - map.update([(P+name+'s',scale) for (P,scale) in prefix.iteritems()]) - return map - -def _build_plural_units(**kw): - """ - Construct names for the given units. Builds singular and plural form. - """ - map = {} - map.update([(name,scale) for name,scale in kw.iteritems()]) - map.update([(name+'s',scale) for name,scale in kw.iteritems()]) - return map - -def _build_all_units(): - # Various distance measures - distance = _build_metric_units('meter','m') - distance.update(_build_metric_units('metre','m')) - distance.update(_build_plural_units(micron=1e-6, Angstrom=1e-10)) - distance.update({'A':1e-10, 'Ang':1e-10}) - - # Various time measures. - # Note: minutes are used for angle rather than time - time = _build_metric_units('second','s') - time.update(_build_plural_units(hour=3600,day=24*3600,week=7*24*3600)) - - # Various angle measures. - # Note: seconds are used for time rather than angle - angle = _build_plural_units(degree=1, minute=1/60., - arcminute=1/60., arcsecond=1/3600., radian=180/math.pi) - angle.update(deg=1, arcmin=1/60., arcsec=1/3600., rad=180/math.pi) - - frequency = _build_metric_units('hertz','Hz') - frequency.update(_build_metric_units('Hertz','Hz')) - frequency.update(_build_plural_units(rpm=1/60.)) - - # Note: degrees are used for angle - # Note: temperature needs an offset as well as a scale - temperature = _build_metric_units('kelvin','K') - temperature.update(_build_metric_units('Kelvin','K')) - - charge = _build_metric_units('coulomb','C') - charge.update({'microAmp*hour':0.0036}) - - sld = { '10^-6 Angstrom^-2': 1e-6, 'Angstrom^-2': 1} - Q = { 'invAng': 1, 'invAngstroms': 1, - '10^-3 Angstrom^-1': 1e-3, 'nm^-1': 10 } - - # APS files may be using 'a.u.' for 'arbitrary units'. Other - # facilities are leaving the units blank, using ??? or not even - # writing the units attributes. - unknown = {None:1, '???':1, '': 1, 'a.u.':1} - - dims = [unknown, distance, time, angle, frequency, - temperature, charge, sld, Q] - return dims - -class Converter(object): - """ - Unit converter for NeXus style units. - - """ - # Define the units, using both American and European spelling. - scalemap = None - scalebase = 1 - dims = _build_all_units() - - def __init__(self,name): - self.base = name - for map in self.dims: - if name in map: - self.scalemap = map - self.scalebase = self.scalemap[name] - break - else: - self.scalemap = {'': 1} - self.scalebase = 1 - #raise ValueError, "Unknown unit %s"%name - - def scale(self, units=""): - if units == "" or self.scalemap is None: return 1 - return self.scalebase/self.scalemap[units] - - def __call__(self, value, units=""): - # Note: calculating a*1 rather than simply returning a would produce - # an unnecessary copy of the array, which in the case of the raw - # counts array would be bad. Sometimes copying and other times - # not copying is also bad, but copy on modify semantics isn't - # supported. - if units == "" or self.scalemap is None: return value - try: - return value * (self.scalebase/self.scalemap[units]) - except KeyError: - raise KeyError("%s not in %s"%(units," ".join(self.scalemap.keys()))) - -def _check(expect,get): - if expect != get: raise ValueError, "Expected %s but got %s"%(expect,get) - #print expect,"==",get - -def test(): - _check(2,Converter('mm')(2000,'m')) # 2000 mm -> 2 m - _check(0.003,Converter('microseconds')(3,units='ms')) # 3 us -> 0.003 ms - _check(45,Converter('nanokelvin')(45)) # 45 nK -> 45 nK - # TODO: more tests - _check(0.5,Converter('seconds')(1800,units='hours')) # 1800 -> 0.5 hr - _check(2.5,Converter('a.u.')(2.5,units='')) - -if __name__ == "__main__": - test() diff --git a/bindings/python/run_nxstest b/bindings/python/run_nxstest new file mode 100755 index 00000000..4dfe79f8 --- /dev/null +++ b/bindings/python/run_nxstest @@ -0,0 +1,6 @@ +#!/bin/sh +# +# this script allows nxstest to be run again the built, rather than installed, +# version of nexus +# +env LD_LIBRARY_PATH=../../src/.libs python nxstest.py $* diff --git a/bindings/python/setup.py b/bindings/python/setup.py index f21da66d..ef2a7831 100755 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -1,10 +1,22 @@ #!/usr/bin/env python - -from distutils.core import setup - -setup(name='NeXus', - version='4.0', - description='Python Bindings to libNeXus', - author='Paul Kienzle', - py_modules=['nxs'], - ) +# +# This file is for a manual install of python on windows +# If python is already present it should be detected by +# the windows installer and the nxs directory copied to +# the python site-packages directory +# +# On Linux the Makefile will also install python, but not +# using this file - instead it uses the automake python install bits +# +# To use this file type: +# +# python setup.py install +# +from distutils.core import setup + +setup(name='NeXus', + version='4.2', + description='Python Bindings to libNeXus', + author='Paul Kienzle', + packages = ['nxs'], + ) diff --git a/bindings/swig/nxinter.i b/bindings/swig/nxinter.i index 25331084..685a1143 100644 --- a/bindings/swig/nxinter.i +++ b/bindings/swig/nxinter.i @@ -56,6 +56,7 @@ extern int nx_makegroup(void *handle, char *name, char *nxclass); extern int nx_opengroup(void *handle, char *name, char *nxclass); extern int nx_openpath(void *handle, char *path); extern int nx_opengrouppath(void *handle, char *path); +extern char *nx_getpath(void *handle); extern int nx_closegroup(void *handle); extern char *nx_getnextentry(void *handle, char separator); extern void *nx_getgroupID(void *handle); diff --git a/bindings/swig/nxinterhelper.c b/bindings/swig/nxinterhelper.c index 6d3dae9f..91920be7 100644 --- a/bindings/swig/nxinterhelper.c +++ b/bindings/swig/nxinterhelper.c @@ -113,6 +113,20 @@ int nx_opengrouppath(void *handle, char *path){ } } /*--------------------------------------------------------------------*/ +char *nx_getpath(void *handle){ + int status; + NXhandle hfil; + char path[1024]; + + hfil = (NXhandle)handle; + status = NXgetpath(hfil,path,1024); + if(status == NX_OK){ + return strdup(path); + } else { + return strdup("Error in NXgetpath"); + } +} +/*--------------------------------------------------------------------*/ int nx_closegroup(void *handle){ int status; NXhandle hfil; diff --git a/bindings/swig/nxinterhelper.h b/bindings/swig/nxinterhelper.h index c6e01ce1..2ac44853 100644 --- a/bindings/swig/nxinterhelper.h +++ b/bindings/swig/nxinterhelper.h @@ -22,6 +22,7 @@ int nx_makegroup(void *handle, char *name, char *nxclass); int nx_opengroup(void *handle, char *name, char *nxclass); int nx_opengrouppath(void *handle, char *path); int nx_openpath(void *handle, char *path); +extern char *nx_getpath(void *handle); int nx_closegroup(void *handle); char *nx_getnextentry(void *handle, char separator); void *nx_getgroupID(void *handle); diff --git a/build_rpm.in b/build_rpm.in index 5e55cbb5..fc4df775 100755 --- a/build_rpm.in +++ b/build_rpm.in @@ -22,8 +22,15 @@ nxtop=`pwd` rm -fr $nxtop/installroot mkdir $nxtop/installroot # +make dist ln -sf $nxtop/@PACKAGE_TARNAME@-@PACKAGE_VERSION@.tar.gz $topdir/SOURCES cp $nxtop/nexus.spec $topdir/SPECS cd $topdir/SPECS +# +if test -z "$1"; then + build_args="--with-python --with-java-home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/ --with-doxygen" +else + build_args="$1" +fi # buildroot is actually where we install to -env NEXUS_CONFIG_OPTIONS="$1" rpmbuild -ba --buildroot $nxtop/installroot nexus.spec +env NEXUS_CONFIG_OPTIONS="$build_args" rpmbuild -ba --buildroot $nxtop/installroot --define "_source_filedigest_algorithm md5" --define "_binary_filedigest_algorithm md5" nexus.spec diff --git a/configure.ac b/configure.ac index 868003bf..5344b01e 100644 --- a/configure.ac +++ b/configure.ac @@ -30,14 +30,18 @@ dnl AC_PREREQ(2.61) AC_REVISION($Revision$) -AC_INIT([NeXus Library], [4.1.0], [nexus-developers@nexusformat.org], [nexus]) +AC_INIT([NeXus Library], [4.2.2], [nexus-developers@nexusformat.org], [nexus]) AC_COPYRIGHT([Copyright (C) 2004 NeXus International Advisory Committee This software is covered by the GNU LESSER GENERAL PUBLIC LICENSE see file COPYING for further information]) +# used by libtool - need to get if from 4.2.1 better +NXLTVERSINFO="4:2:4" + AC_CONFIG_AUX_DIR(config) AC_CONFIG_SRCDIR([src/napi.c]) AC_CANONICAL_TARGET +AC_CANONICAL_BUILD dnl $EGREP is used in macros included from acinclude.m4 AC_PROG_EGREP @@ -51,13 +55,16 @@ fi FCFLAGS="$F90FLAGS $FCFLAGS" # for compatibility with nexus-3.0 -AM_INIT_AUTOMAKE([1.6]) +AM_INIT_AUTOMAKE([1.6 tar-ustar]) +AC_SUBST(NXLTVERSINFO) AM_CONFIG_HEADER(include/nxconfig.h:include/nxconfig_h.in) AC_ARG_ENABLE([debug], AC_HELP_STRING([--enable-debug],[Turn off optimisation]), [enable_debug=$enableval],[enable_debug=no]) +AC_ARG_ENABLE([32bit], AC_HELP_STRING([--enable-32bit],[build 32bit binary on 64 bit computer]), [enable_32bit=$enableval],[enable_32bit=no]) + dnl Checks for programs. AC_ARG_WITH([cc], AC_HELP_STRING([--with-cc=c compiler], [Specify name of C compiler]), [with_cc=$withval], [with_cc=yes]) @@ -78,9 +85,10 @@ else CXX= fi +AC_SUBST(WITH_F77) AC_ARG_WITH([f77], AC_HELP_STRING([--with-f77=f77 compiler], [Specify name of FORTRAN 77 compiler]), - [with_f77=$withval], [with_f77=no]) -if test x"$with_f77" != x"no" ; then + [], [with_f77=no]) +if test ! -z "$with_f77" -a x"$with_f77" != x"no" ; then if test x"$with_f77" != x"yes" ; then F77="$with_f77"; fi AC_PROG_F77 dnl Check FORTRAN compiler options @@ -90,15 +98,18 @@ if test x"$with_f77" != x"no" ; then dnl get right F77 include option AC_CHECK_F77_OPTION([-I$mytop/bindings/f77],[ INCLUDE 'napif.inc']) AC_F77_LIBRARY_LDFLAGS + WITH_F77=yes else F77= + WITH_F77=no fi +AC_SUBST(WITH_F90) AC_ARG_WITH([f90], AC_HELP_STRING([--with-f90=f90 compiler], [Specify name of FORTRAN 90 compiler]), - [with_f90=$withval], [with_f90=no]) -if test x"$with_f90" != x"no" ; then + [], [with_f90=no]) +if test ! -z "$with_f90" -a x"$with_f90" != x"no" ; then if test x"$with_f90" = x"yes" ; then - AC_CHECK_PROGS(FC, [g95 f90 f95 ifort]) + AC_CHECK_PROGS(FC, [g95 gfortran f90 f95 ifort]) else FC="$with_f90" AC_CHECK_PROGS(FC, [$with_f90]) @@ -114,24 +125,52 @@ if test x"$with_f90" != x"no" ; then AC_FC_LIBRARY_LDFLAGS # if test x$with_f77=xno; then with_f77=$FC; fi # if test x$with_f77=xno; then with_f77=yes; fi + WITH_F90=yes else FC= + WITH_F90=no fi +AC_ARG_WITH([matlabroot], AC_HELP_STRING([--with-matlabroot=path to matlab install dir], [Specify location of matlab installation directory]), + [], [with_matlabroot=no]) +if test x"$with_matlabroot" != x"no" ; then + MATLABROOT="$with_matlabroot" +fi +AC_PATH_PROG(MATLAB,matlab,[],[$MATLABROOT/bin:/usr/local/matlab/bin:/opt/matlab/bin:$PATH]) +if test x"$MATLABROOT" = x -a x"$MATLAB" != x; then + MATLABROOT=`dirname $MATLAB`/.. +fi + +dnl thread local storage +AC_MSG_CHECKING([for __thread]) +AC_LINK_IFELSE([AC_LANG_PROGRAM([#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) && ((__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC__MINOR__ < 1) || (__GNUC__ == 4 && __GNUC__MINOR__ == 1 && __GNUC_PATCHLEVEL__ < 2)) +#endif], [static __thread int p = 0])], + [AC_DEFINE(HAVE_TLS, 1, + Define to 1 if compiler supports __thread) + AC_MSG_RESULT([yes])], + [AC_MSG_RESULT([no])]) + java_host="linux" JAVAROOT="" AC_ARG_WITH([java-home], AC_HELP_STRING([--with-java-home=JAVA SDK Home], [Specify location of top directory of JAVA SDK i.e. where the bin, lib and include directories live]), [], [with_java_home=$withval]) +AC_ARG_WITH([java], AC_HELP_STRING([--with-java=path to java executable], [Specify location of JAVA executable]), + [], [with_java=no]) +if test -z "$with_java_home" -a x$with_java != xno; then + def_javac=`which javac` + link_javac=`readlink -e "$def_javac"` + with_java_home=`dirname "$link_javac"`/.. +fi if test -d "$with_java_home"; then JAVAROOT="$with_java_home" AC_MSG_NOTICE([Java SDK home is $JAVAROOT]) JAVAINCLUDE="-I$JAVAROOT/include" - AC_PATH_PROGS(JAVAC,gcj javac,,[$JAVAROOT/bin]) + AC_PATH_PROGS(JAVAC,javac gcj,,[$JAVAROOT/bin]) if test `basename "$JAVAC"` = "gcj"; then JAVACFLAGS="-C" # force creation of .class files fi - AC_PATH_PROGS(JAVA,gij java,,[$JAVAROOT/bin]) - AC_PATH_PROGS(JAVAH,gcjh javah,,[$JAVAROOT/bin]) + AC_PATH_PROGS(JAVA,java gij,,[$JAVAROOT/bin]) + AC_PATH_PROGS(JAVAH,javah gcjh,,[$JAVAROOT/bin]) AC_PATH_PROGS(JAVADOC,javadoc,,[$JAVAROOT/bin:$PATH]) AC_PATH_PROGS(JAR,jar fastjar,,[$JAVAROOT/bin:$PATH]) fi @@ -177,10 +216,17 @@ AM_CONDITIONAL(HAVE_CBFLIB, [test "$CBFLIBROOT" != ""]) AC_SUBST(IDLROOT) AC_ARG_WITH([idlroot], AC_HELP_STRING([--with-idlroot=/path/to/idlroot], - [Specify location of idl files]), + [Specify root directory of system idl installation]), [if test $withval != no; then IDLROOT=$withval; fi]) AM_CONDITIONAL(HAVE_IDL, [test "$IDLROOT" != ""]) +IDLDLM="\${prefix}/lib" +AC_SUBST(IDLDLM) +AC_ARG_WITH([idldlm], + AC_HELP_STRING([--with-idldlm=/path/to/idldlm], + [Specify location ito install idl dlm files to]), + [if test $withval != no; then IDLDLM=$withval; fi]) + AC_ARG_WITH([doxygen], AC_HELP_STRING([--with-doxygen=/path/to/doxygen], [Specify path to doxygen]), [with_doxygen=$withval], [with_doxygen=no]) if test x"$with_doxygen" != x"no" ; then if test x"$with_doxygen" != x"yes" ; then DOXYGEN="$with_doxygen"; fi @@ -201,6 +247,8 @@ AC_SUBST(JAVAINCLUDE) AC_SUBST(PACKAGE_RELEASE) test -z "$PACKAGE_RELEASE" && PACKAGE_RELEASE=1 +SHARED_LDFLAGS="" + NXDOCDIR='${datadir}/nexus/doc' NXEXAMPLEDIR='${datadir}/nexus/examples' NXTESTDIR='${prefix}/nexus/tests' @@ -228,8 +276,12 @@ if test x$with_opengenie != xno; then fi if test x$with_python != xno; then AC_CHECK_ROOT([python],[PYTHONROOT],[/usr /usr/local],[bin/python]) - if test x$PYTHONROOT != x; then PYTHON=$PYTHONROOT/bin/python; fi + if test x$PYTHONROOT != x; then + if test -r "$PYTHONROOT/bin/python"; then PYTHON="$PYTHONROOT/bin/python"; fi + if test -r "$PYTHONROOT/python"; then PYTHON="$PYTHONROOT/python"; fi + fi AM_PATH_PYTHON(,, :) + AC_CHECK_PYTHON_MODULE(numpy) fi AC_ARG_WITH([swig], AC_HELP_STRING([--with-swig=swig compiler], [Specify path of swig compiler]), [with_swig=$withval], [with_swig=]) @@ -282,10 +334,19 @@ dnl microsoft LIB command (used in MinGW makefile to create .LIB file) AC_CHECK_PROGS(MS_LIB, [LIB]) AM_CONDITIONAL(HAVE_MS_LIB, [test ! -z "$MS_LIB"]) +# strict aliasing causes issues with casts from NXmalloc() +CFLAGS="$CFLAGS -fno-strict-aliasing" +CXXFLAGS="$CXXFLAGS -fno-strict-aliasing" + # check for debug if test "$enable_debug" = "yes"; then - CFLAGS="-O0 -g" - CXXFLAGS="-O0 -g" + CFLAGS="$CFLAGS -O0 -g" + CXXFLAGS="$CXXFLAGS -O0 -g" +fi + +if test "$enable_32bit" = "yes"; then + CFLAGS="$CFLAGS -m32" + CXXFLAGS="$CXXFLAGS -m32" fi # enable compiler warnings if gcc @@ -330,6 +391,15 @@ HDF5_EXT=so # library file extent to look for with HDF5 libraries AC_SUBST(LIBXML2_CFLAGS) LIBXML2_CFLAGS='`xml2-config --cflags`' +# set up for linux here - mac is covered in the case $host statement +AS_CASE([$build_cpu], [x86|i386|i686], [IDLCPU=x86], [IDLCPU=$build_cpu]) +if test $enable_32bit = yes; then + IDL_HOST="bin.linux.x86" # force 32 bit on a 64 bit machine +else + IDL_HOST="bin.linux.$IDLCPU" +fi +AC_SUBST(IDL_HOST) + case $host in alpha*-dec-osf*) java_host="alpha" @@ -343,7 +413,7 @@ case $host in ;; *mingw*) - SHARED_LDFLAGS="-no-undefined" # -Wl,--add-stdcall-alias + SHARED_LDFLAGS="$SHARED_LDFLAGS -no-undefined" # -Wl,--add-stdcall-alias MINGW_MSYS=yes HDF_EXT=dll HDF5_EXT=dll @@ -352,7 +422,7 @@ case $host in ;; *cygwin*) -# SHARED_LDFLAGS="-no-undefined" # -Wl,--add-stdcall-alias +# SHARED_LDFLAGS="$SHARED_LDFLAGS -no-undefined" # -Wl,--add-stdcall-alias ;; *darwin*) @@ -371,7 +441,7 @@ dnl does not get set with the commands to create a shared library JAVAINCLUDE="-I/System/Library/Frameworks/JavaVM.framework/Headers" dnl F90FLAGS="$F90FLAGS -g -cons -YEXT_NAMES=LCS -YEXT_SFX=_" dnl FCFLAGS="$FCFLAGS -qextname" - SHARED_LDFLAGS="-Wl,-single_module" + SHARED_LDFLAGS="$SHARED_LDFLAGS -Wl,-single_module" # LTF90COMPILETAG="--tag=F77" # LTF90LINKTAG="--tag=CC" dnl LDFLAGS="$LDFLAGS -flat_namespace" @@ -381,6 +451,11 @@ dnl fi dnl if test "X$lt_int_apple_cc_single_mod" = Xyes ; then dnl archive_cmds='$CC -dynamiclib -single_module' dnl fi + if test $enable_32bit = yes; then + IDL_HOST="bin.darwin.i386" # force 32bit build + else + IDL_HOST="bin.darwin.x86_64" + fi ;; esac @@ -420,7 +495,9 @@ dnl otherwise try and find HDF path, but not if dnl e.g. --without-hdf4 has been specified (hence check on $with_hdf4 != no ) dnl first HDF4 EXTRA_LDPATH="" -HDF4SEARCH="/usr/local/hdf4 /usr/local/hdf /usr/local /sw /usr" +EXTRA_LD_LIBRARY_PATH="" +AC_SUBST(EXTRA_LD_LIBRARY_PATH) +HDF4SEARCH="/usr/local/hdf4 /usr/local/hdf /usr/local /sw /opt/local /usr" if test "$with_hdf4" != "no" -a -z "$H4ROOT"; then AC_MSG_CHECKING(for location of HDF4 libraries) for i in $HDF4SEARCH; do @@ -452,7 +529,10 @@ if test "$H4ROOT"; then 4.[[12]]*) HDF4_LDFLAGS=""; for j in lib lib64; do - if test -d $H4ROOT/$j/$H4LIBSUBROOT; then HDF4_LDFLAGS="-L$H4ROOT/$j/$H4LIBSUBROOT $HDF4_LDFLAGS"; fi + if test -d $H4ROOT/$j/$H4LIBSUBROOT; then + HDF4_LDFLAGS="-L$H4ROOT/$j/$H4LIBSUBROOT $HDF4_LDFLAGS" + EXTRA_LD_LIBRARY_PATH=$EXTRA_LD_LIBRARY_PATH:$H4ROOT/$j/$H4LIBSUBROOT + fi done EXTRA_LDPATH="$EXTRA_LDPATH $HDF4_LDFLAGS" HDF4_LDFLAGS="$HDF4_LDFLAGS -lmfhdf -ldf"; @@ -471,7 +551,7 @@ AC_SUBST(HDF4_LDFLAGS) AC_SUBST(HDF4_CPPFLAGS) dnl HDF5 -HDF5SEARCH="/usr/local/hdf5 /usr/local/hdf /usr/local /sw /usr" +HDF5SEARCH="/usr/local/hdf5 /usr/local/hdf /usr/local /sw /opt/local /usr" if test "$with_hdf5" != "no" -a -z "$H5ROOT"; then AC_MSG_CHECKING(for location of HDF5 libraries) for i in $HDF5SEARCH; do @@ -488,10 +568,13 @@ fi if test "$H5ROOT"; then H5VERSION=`grep H5_VERS_INFO ${H5ROOT}/include/H5public.h | cut -d '"' -f 2 | cut -d ' ' -f 4` case $H5VERSION in - 1.[[68]]*) + 1.[[689]]*) HDF5_LDFLAGS="" for j in lib lib64; do - if test -d $H5ROOT/$j; then HDF5_LDFLAGS="-L$H5ROOT/$j $HDF5_LDFLAGS"; fi + if test -d $H5ROOT/$j; then + HDF5_LDFLAGS="-L$H5ROOT/$j $HDF5_LDFLAGS" + EXTRA_LD_LIBRARY_PATH=$EXTRA_LD_LIBRARY_PATH:$H5ROOT/$j + fi done EXTRA_LDPATH="$EXTRA_LDPATH $HDF5_LDFLAGS" HDF5_LDFLAGS="$HDF5_LDFLAGS -lhdf5 -lz" @@ -520,19 +603,38 @@ if test ! -z "$MXMLROOT"; then XML_LDFLAGS="-lmxml" XML_LDFLAGS="-L$MXMLROOT/lib $XML_LDFLAGS" XML_CPPFLAGS="-I$MXMLROOT/include -DNXXML" +# meed to allow for lib64 +# EXTRA_LDPATH="$EXTRA_LDPATH $XML_LDFLAGS" +# export LD_LIBRARY_PATH=$MXMLROOT/lib:$LD_LIBRARY_PATH fi AC_SUBST(XML_LDFLAGS) AC_SUBST(XML_CPPFLAGS) -if ! test -z "$EXTRA_LDPATH"; then + +if test ! -z "$EXTRA_LDPATH"; then LDFLAGS="$LDFLAGS $EXTRA_LDPATH" fi if test -d /usr/local/lib; then LDFLAGS="$LDFLAGS -L/usr/local/lib" fi # for Mac/fink when hdf and hdf5 are not taken from fink, but jpeg is -if test -d /sw/lib; then - LDFLAGS="$LDFLAGS -L/sw/lib" +#if test -d /sw/lib; then +# LDFLAGS="$LDFLAGS -L/sw/lib" +#fi +# for Mac/Macports when you are not using fink at all. +#if test -d /opt/local/lib; then +# LDFLAGS="$LDFLAGS -L/opt/local/lib" +#fi + +# remove initial : +if test ! -z "$EXTRA_LD_LIBRARY_PATH"; then + EXTRA_LD_LIBRARY_PATH=`expr substr "$EXTRA_LD_LIBRARY_PATH" 2 1024` +fi +if test ! -z "$LD_LIBRARY_PATH"; then + export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${EXTRA_LD_LIBRARY_PATH} +else + export LD_LIBRARY_PATH=${EXTRA_LD_LIBRARY_PATH} fi + AC_SUBST(LIBG2C) dnl finally set LIBS variable if we @@ -554,6 +656,11 @@ AC_CHECK_LIB(df, Hopen) AC_CHECK_LIB(mfhdf, SDcreate) AC_CHECK_LIB(hdf5, H5open) AC_CHECK_LIB(xml2, xmlParseDocument) +AC_CHECK_LIB(readline, readline) +AC_CHECK_LIB(history, add_history) +dnl AC_LANG_PUSH([C++]) +dnl AC_CHECK_LIB(mxmlplus, _ZN4MXML4NodeD2Ev) +dnl AC_LANG_POP([C++]) dnl Checks for header files. AC_HEADER_STDC @@ -573,9 +680,12 @@ AC_TYPE_INT64_T AC_TYPE_UINT64_T AC_TYPE_LONG_LONG_INT AC_TYPE_UNSIGNED_LONG_LONG_INT -AC_CHECK_SIZEOF([int]) -AC_CHECK_SIZEOF([long int]) -AC_CHECK_SIZEOF([long long int]) +dnl these are not compatible with cross architecture compiling +if test x$cross_compiling != xyes; then + AC_CHECK_SIZEOF([int]) + AC_CHECK_SIZEOF([long int]) + AC_CHECK_SIZEOF([long long int]) +fi AC_STRUCT_TM AC_SYS_LARGEFILE @@ -608,10 +718,12 @@ dnl Checks for library functions. AC_CHECK_FUNCS([ftime memset strchr strdup strrchr strstr tzset mkstemp]) +AC_CHECK_FUNC([rl_completion_matches]) + AM_CONDITIONAL(HAVE_CPP, [test ! -z "$CXX"]) AM_CONDITIONAL(HAVE_F77, [test "$with_f77" != "no"]) AM_CONDITIONAL(HAVE_F90, [test "$with_f90" != "no"]) -AM_CONDITIONAL(HAVE_PYTHON, [test ! -z "$PYTHONROOT"]) +AM_CONDITIONAL(HAVE_PYTHON, [test ! -z "$PYTHONROOT" -a "$PYTHON_numpy" -eq 1]) AM_CONDITIONAL(HAVE_TCL, [test ! -z "$TCLROOT"]) AM_CONDITIONAL(HAVE_GUILE, [test ! -z "$GUILEROOT"]) AM_CONDITIONAL(HAVE_SWIG, [test ! -z "$SWIG"]) @@ -622,6 +734,7 @@ AM_CONDITIONAL(HAVE_HDF4, [test ! -z "$H4ROOT"]) AM_CONDITIONAL(HAVE_HDF5, [test ! -z "$H5ROOT"]) AM_CONDITIONAL(HAVE_XML, [test ! -z "$MXMLROOT"]) AM_CONDITIONAL(HAVE_LIBXML2, [ test "$ac_cv_lib_xml2_xmlParseDocument" = "yes" ]) +dnl AM_CONDITIONAL(HAVE_LIBMXMLPLUS, [ test "$ac_cv_lib_mxmlplus__ZN4MXML4NodeD2Ev" = "yes" ]) AM_CONDITIONAL(HAVE_DOCBOOK, [test ! -z "$DOCBOOK2TXT" -a ! -z "$DOCBOOK2PDF"]) AM_CONDITIONAL(HAVE_LATEX, [test ! -z "$LATEX"]) #AM_CONDITIONAL(INSTALL_NXPYTHON, [test ! -z "$INSTALL_NXPYTHON"]) @@ -666,7 +779,6 @@ AC_CONFIG_FILES([Makefile examples/Makefile doc/Makefile doc/doxygen/Makefile - doc/doxygen/Doxyfile doc/api/Makefile doc/nxdict/Makefile doc/tech_ref/Makefile @@ -682,6 +794,9 @@ AC_CONFIG_FILES([Makefile contrib/applications/Makefile contrib/applications/CBFLib/Makefile contrib/bindings/Makefile + contrib/bindings/python/Makefile + macosx_install_kit/Makefile + macosx_install_kit/pkg.config scripts/Makefile scripts/nexus.pc:scripts/nexus_pc.in scripts/nxbuild]) @@ -717,7 +832,7 @@ F77BINDING=`if test -n "$F77" ; then echo yes ; else echo no ; fi` F90BINDING=`if test -n "$FC" ; then echo yes ; else echo no ; fi` JAVABINDING=`if test -n "$JAVAROOT" ; then echo yes ; else echo no ; fi` IDLBINDING=`if test -n "$IDLROOT" ; then echo yes ; else echo no ; fi` -PYTHONBINDING=`if test -n "$PYTHONROOT" ; then echo yes ; else echo no ; fi` +PYTHONBINDING=`if test -n "$HAVE_PYTHON_FALSE"; then echo yes; else echo no ; fi` if test -n "$SWIG" ; then SWIGBINDING="yes (" test -n "$TCLROOT" && SWIGBINDING="$SWIGBINDING tcl" @@ -734,6 +849,7 @@ AC_MSG_RESULT([ Configuration (NeXus): + Install prefix: ${prefix} Source code location: ${srcdir} Version: ${VERSION} Compiler: ${CC},${CXX},${F77},${FC} @@ -750,8 +866,8 @@ build: F90/F95 : ${F90BINDING} (--with-f90=${FC}) JAVA: ${JAVABINDING} (--with-java-home=${JAVAROOT}, JAVA=${JAVA}, JAVAC=${JAVAC}, JAVAH=${JAVAH}) SWIG: ${SWIGBINDING} - IDL: ${IDLBINDING} (--with-idlroot=${IDLROOT}) - PYTHON: ${PYTHONBINDING} + IDL: ${IDLBINDING} (--with-idlroot=${IDLROOT}, --with-idldlm=${IDLDLM}) + PYTHON: ${PYTHONBINDING} (PYTHONROOT=${PYTHONROOT}, numpy found: $PYTHON_numpy_found) documentation: Doxygen: ${DOXYGENDOCS} diff --git a/configure_mingw_kit b/configure_mingw_kit new file mode 100755 index 00000000..b213dcc2 --- /dev/null +++ b/configure_mingw_kit @@ -0,0 +1,5 @@ +#!/bin/sh +# +# this is just for building the mingw nexus kit on my machine +# +env am_cv_python_pythondir='${prefix}/lib/python' am_cv_python_pyexecdir='${prefix}/lib/python' ./configure --prefix=/c/nxinstall --with-python=/c/Python25 --with-java-home=/c/mingw diff --git a/contrib/bindings/Makefile.am b/contrib/bindings/Makefile.am index 53677b1e..0a95e1dd 100644 --- a/contrib/bindings/Makefile.am +++ b/contrib/bindings/Makefile.am @@ -1,16 +1,36 @@ ## Process this file with automake to produce Makefile.in #==================================================================== +# NeXus - Neutron & X-ray Common Data Format # -# $Id$ +# $Id$ # -# @configure_input@ +# Makefile for coordinating the generation of language bindings +# +# Copyright (C) 2004 Freddie Akeroyd +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# +# For further information, see # #==================================================================== -#if HAVE_LIBXML2 -#NXTRANSLATE=NXtranslate -#endif -#if INSTALL_NXPYTHON -#NXPYTHON=nxpython + +#if HAVE_JAVAC +#JAVASUB = java #endif -#SUBDIRS = NXdir $(NXTRANSLATE) -#SUBDIRS = $(NXPYTHON) +if HAVE_PYTHON +PYSUB = python +endif +SUBDIRS = $(PYSUB) # $(JAVASUB) diff --git a/contrib/bindings/README.python b/contrib/bindings/README.python deleted file mode 100644 index c076f873..00000000 --- a/contrib/bindings/README.python +++ /dev/null @@ -1,11 +0,0 @@ -The NeXus kit contains two sets of python bindings. - -If both swig and python are installed on your computer when the -kit is built, a set will have appeared in the bindings/nexus/swig directory. -These are the official NeXus python bindings and provide a low level one-to-one -mapping between NeXus functions and python. - -This directory contains an alternative set of python bindings -developed by Hartmut Gilde (FRM2) which link into his nxpylib package -to provide a higher level interface to NeXus files. For further -informaton see the README files in the nxpython and nxpylib directories. diff --git a/contrib/bindings/nxpylib/README b/contrib/bindings/nxpylib/README deleted file mode 100644 index 34967c9b..00000000 --- a/contrib/bindings/nxpylib/README +++ /dev/null @@ -1,78 +0,0 @@ - --------------------------------------------------------------------------------------- - nxpylib - a set of python classes that simplifies reading, writing and maintaining nexus files ---------------------------------------------------------------------------------------- - - -Introduction -============ - -nxpylib represents a convenience tool for scientists who want to store their scanned data from neutron scattering experiments directly into a NeXus file in a simple manner. - -nxpylib presents itself in a kind of object-oriented fashion and treats every entry and any piece of data in a nexus file as an object. As a consequence it has to implement a mapping of the state-dependant iteration mechanism of the NeXus API into something more manageable and object like when handling with NeXus components. - -nxpylib relies on the nxpython interface in order to access the C API - - -the main goals of nxpylib are: ------------------------------- -1) hide the extensive and recurring NAPI function calling sequence required for any write and read process in NeXus files from the python programmer. - -2) validate the data that is read and written into the HDF file against the Nexus specification -and provide an easy to use interface that only allows the creation of well-formed and spec-compliant Nexus-files. - -3) Facilitate and guarantee the persistent storage of scanned data and provide means of recovering in case of errors and interruptions - - -Moreover the generation of instrument specific validation mechanisms and the automatic creation of validating structures out of the metaDTD format should be covered in future versions of nxpylib. - - - -Installation Instructions -========================= -Note: remember that nxpylib needs the swig interface to the C API nxpython -so please install nxpython first, before testing nxpylib !! - -in order to get nxpylib running, you need: -- the hdf libraries and the 3rdparty librarys hdf relies on (szip, zlib, jpeg) -- a recent copy of the nexus cvs sources -- a recent version of swig (1.3.21 should suffice) -- libxml2 (only needed for the creation of the ) - -if you got all components installed jump to the contrib/bindings/nxpylib directory and type - -./setup.py install - -this should automatically create and install the nxpylib classes -into the python 3rdparty modules directory. -starting the python interpreter, nxpylib can be made available by typing - -from nxfile import * - -For a short introduction on how to use nxpylib take a look at the nxtest.py found in the -same directory. it exemplary shows some typical use cases when dealing with NeXus files. - - -Architecture -============ -to be completed ... - - -Generation -========== -to be completed ... - - -Validation -========== -to be completed ... - - -Maintainance -============ -to be completed ... - - - - diff --git a/contrib/bindings/nxpylib/nxpylib/__init__.py b/contrib/bindings/nxpylib/nxpylib/__init__.py deleted file mode 100644 index aa9464db..00000000 --- a/contrib/bindings/nxpylib/nxpylib/__init__.py +++ /dev/null @@ -1,12 +0,0 @@ -# -# The Nexus Python Library -# -# package placeholder -# -# Copyright (c) 2004 -# by Hartmut Gilde -# FRM2 -# -# - -__all__ = ["nxbaseclass","nxfile","nxparse","nxtemplates","nxclasses","nxobjects", "nxcomponents", "nxtemplatecomponents"] diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXaperture.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXaperture.xml deleted file mode 100644 index 38468dd5..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXaperture.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - {Distance from sample}? - "Rectangular"|"Circular"|"Elliptical"? - {Horizontal aperture}? - {Vertical aperture}? - {Radius of aperture (if circular)}? - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXattenuator.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXattenuator.xml deleted file mode 100644 index ee3fe871..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXattenuator.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - {Distance from sample}? - {Type of attenuator, e.g. polythene}? - {Thickness of attenuator along beam direction}? - {Scattering cross section (coherent+incoherent)}? - {Absorption cross section}? - {Attenuation factor at the nominal beam energy}? - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXbeam.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXbeam.xml deleted file mode 100644 index e5932226..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXbeam.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - {Distance from sample}? - {Energy on entering beamline component}? - {Energy on leaving beamline component}? - {Energy change caused by beamline component }? - {Wavelength on entering beamline component}? - {Wavelength spread FWHM on entering component}? - {Divergence of beam entering this component}? - {Wavelength on leaving beamline component}? - {Polarization vector on entering beamline component}? - {Polarization vector on leaving beamline component}? - {Wavelength spread FWHM of beam leaving this component}? - {Divergence FWHM of beam leaving this component}? - {flux incident on beam plane area}? - {Distribution of beam with respect to relevant variable e.g. wavelength. This is mainly useful for simulations which need to store plottable information at each beamline component. }? - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXbeam_stop.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXbeam_stop.xml deleted file mode 100644 index a2571ff8..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXbeam_stop.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - {description of beamstop: circular | rectangular}? - - - {size of beamstop}? - - - {x position of the beamstop in relation to the detector}? - - - {y position of the beamstop in relation to the detector}? - - - {in|out}? - - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXcrystal.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXcrystal.xml deleted file mode 100644 index 9b9ad2d4..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXcrystal.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - {Distance of chopper from sample}? - {Optimum diffracted wavelength}? - {Optimum diffracted energy}? - {Lattice parameter of the nominal reflection}? - {[hkl] values of nominal reflection}? - {Horizontal curvature of focusing crystal}? - {Vertical curvature of focusing crystal}? - {Horizontal aperture, if rectangular}? - {Vertical aperture, if rectangular}? - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXdata.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXdata.xml deleted file mode 100644 index be7cb31d..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXdata.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - {Dimension scale defining an axis of the data}? - {Errors associated with axis "variable"}? - {Data values}? - {Standard deviations of data values - the data array is identified by the attribute signal="1". This array must have the same dimensions as the data}? - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXdetector.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXdetector.xml deleted file mode 100644 index bf7d0c63..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXdetector.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - {Identifier of detector element}? - {name/manufacturer/model/etc. information}? - {Position and orientation of detector element}? - {Effective distance from scattering centre (secondary flight path)}? - {translation normal to direct beam}? - {Polar angle of detector element}? - {Azimuthal angle of detector element}? - {Solid angle subtended by the detector at the sample}? - {Detector dead time}? - {Delay in detector registering an event}? - {Detector gas pressure}? - {maximum drift space dimension}? - {Crate number of detector}? - {Slot number of detector}? - {Input number of detector}? - "He3 gas cylinder"|He3 PSD"|"He3 planar multidetector"| "He3 curved multidetector"| "multi-tube He3 PSD"|"BF3 gas"|"scintillator"|"fission chamber"? - {Neutron time-of-flight}? - {Efficiency of detector with respect to e.g. wavelength}? - {date of last calibration (geometry and/or efficiency) measurements}? - {summary of conversion of array data to pixels (e.g. -polynomial approximations) and location of details of the calibrations}? - {Coordinates of the pixel of the direct beam centre (1D or 2D)}? - {Size of the pixel (1D or 2D)}? - "+x+y"|"+x-y"|"-x+y"|"-x-y"|"+y+x"|"+y-x"|"-y+x"|"-y-x"{numbering/labelling scheme for pixels: +x+y would mean number along the x axis in a positive direction and then move up y in a positive diection (so bottom right to top left as viewed from the moderator)}? - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXdisk_chopper.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXdisk_chopper.xml deleted file mode 100644 index 266bcf95..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXdisk_chopper.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - {Chopper type single|contra_rotating_pair|synchro_pair}? - - {chopper rotation speed}? - - {Number of slits} - {angular opening} - {disc spacing in direction of beam}? - {radius to centre of slit} - {total slit height} - - {chopper phase angle}? - - - {pulse reduction factor of this chopper in relation to other choppers/fastest pulse - in the instrument}? - - - {distance of chopper to previous item}? - - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXentry.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXentry.xml deleted file mode 100644 index b70a80a5..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXentry.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - {Extended title for entry}? - {Name of entry DTD}? - {Starting time of measurement}? - {Ending time of measurement}? - {Duration of measurement}? - {}? - {Number of run or scan stored in this entry}? - {}? - {Name of program used to generate this file}? - {Name of command line used to generate this file}? - {Notes describing entry}? - - * - ? - ? - * - * - - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXenvironment.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXenvironment.xml deleted file mode 100644 index 37491c6b..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXenvironment.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - {Apparatus identification code/model number; e.g. OC100 011 }? - {Alternative short name, perhaps for dashboard display like a present Seblock name}? - {Type of apparatus. This could be the SE codes in scheduling database; e.g. OC/100}? - {Description of the apparatus; e.g. 100mm bore orange cryostat with Roots pump }? - {Program controlling the apparatus; e.g. LabView VI name}? - {The position and orientation of the apparatus}? - {Additional information, LabView logs, digital photographs, etc}* - * - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXevent_data.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXevent_data.xml deleted file mode 100644 index 40211196..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXevent_data.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXfermi_chopper.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXfermi_chopper.xml deleted file mode 100644 index c4545b5c..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXfermi_chopper.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - {fchopper type}? - - {chopper rotation speed}? - - - {radius of chopper}? - - - {width of an individual slit}? - - - {radius of curvature of slits}? - - - {number of slits}? - - - {input beam height}? - - - {input beam width}? - - - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXfilter.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXfilter.xml deleted file mode 100644 index 1ace38ab..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXfilter.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - {Description of filter}? - - {in | out}? - - - {position of the element in relation to whatever coordinate - system we agree upon}? - - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXflipper.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXflipper.xml deleted file mode 100644 index d48e763a..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXflipper.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - {coil|current-sheet}? - {Number of turns/cm in flipping field coils}? - {Number of turns/cm in compensating field coils}? - {Number of turns/cm in guide field coils}? - {Flipping field coil current in "on" state"}? - {Compensating field coil current in "on" state"}? - {Guide field coil current in "on" state"}? - {thickness along path of neutron travel}? - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXgeometry.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXgeometry.xml deleted file mode 100644 index c9f5a5fc..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXgeometry.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - {shape/size information of component}? - {translation of component}? - {orientation of component}? - {Optional description/label}{Probably only present if we are an additional reference point for components rather than the location of a real component}? - {Position of the component along the beam path.}{The sample is at 0, components upstream have negative component_index, components downstream have positive component_index.}? - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXguide.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXguide.xml deleted file mode 100644 index c0e0c8b1..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXguide.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXinstrument.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXinstrument.xml deleted file mode 100644 index 0564dfb9..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXinstrument.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - {Name of instrument}? - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXlog.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXlog.xml deleted file mode 100644 index 63e1911c..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXlog.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - {Array of logged value, such as temperature} - {Array of raw information, such as voltage on a thermocouple}? - {Description of logged value}? - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXmirror.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXmirror.xml deleted file mode 100644 index a7de984b..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXmirror.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXmoderator.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXmoderator.xml deleted file mode 100644 index d44adee7..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXmoderator.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - {"Engineering" position of moderator}? - {Effective distance as seen by measuring radiation}? - { "H20" | "D20" | "Liquid H2" | "Liquid CH4" | "Liquid D2" | "Solid D2" | "C" |"Solid CH4" | "Solid H2"}? - {Poison depth}? - {whether the moderator is coupled}? - { Gd | Cd |...} - {average/nominal moderator temperature} - {log file of moderator temperature} - {moderator pulse shape} - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXmonitor.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXmonitor.xml deleted file mode 100644 index 73629144..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXmonitor.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - "monitor"|"timer"? - {preset value for time or monitor}? - {Distance of monitor from sample}? - {Time-of-flight range over which the integral was calculated}? - {Total integral monitor counts}? - {Time variation of monitor counts}? - "Fission Chamber"|"Scintillator"? - {Time-of-flight}? - {Monitor efficiency}? - {Monitor data}? - {Proportion of incident beam sampled by the monitor (0<x<1)} - {Geometry of the monitor}? - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXnote.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXnote.xml deleted file mode 100644 index 04694929..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXnote.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - {Author or creator of note}? - {Date note created/added}? - {Mime content type of note data field e.g. image/jpeg, text/plain, text/html}? - {Name of original file name if note was read from an external source}? - {Title of an image or other details of the note}? - {Binary note data - if text, line terminator is \r\n.}? - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXorientation.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXorientation.xml deleted file mode 100644 index 42835b0d..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXorientation.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - {Link to another object if we are using relative positioning, else absent}? - {The orientation information is stored as direction cosines.}{The direction cosines will be between the local coordinate directions and the reference directions (to origin or relative NXgeometry). Calling the local unit vectors (x',y',z') and the reference unit vectors (x,y,z) the six numbers will be [x' dot x, x' dot y, x' dot z, y' dot x, y' dot y, y' dot z] where "dot" is the scalar dot product (cosine of the angle between the unit vectors). The unit vectors in both the local and reference coordinates are right-handed and orthonormal.}? - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXpolarizer.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXpolarizer.xml deleted file mode 100644 index 2cd7a986..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXpolarizer.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - {crystal,supermirror}? - ? - {[hkl] values of nominal reflection}? - {polarizing efficiency}? - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXroot.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXroot.xml deleted file mode 100644 index 063f0a6f..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXroot.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - + - - - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXsample.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXsample.xml deleted file mode 100644 index c87e21b5..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXsample.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - {Descriptive name of sample}? - {Chemical formula}? - {Sample temperature. This could be a scanned variable}? - {Applied electric field}* - {Applied magnetic field}* - {External stress}* - {Applied pressure}? - {Sample changer position}? - {Unit cell parameters (lengths and angles)}? - {Volume of the unit cell}? - {Orientation matrix of single crystal sample}{The is the orientation matrix using Busing-Levy convention}? - {Mass of sample}? - {Density of sample}? - {Relative Molecular Mass of sample}? - - { sample | sample+can | can | calibration sample | normalisation sample | simulated data | none | sample environment }? - { air | vacuum | inert atmosphere | oxidising atmosphere | reducing atmosphere | sealed can | other }{The atmosphere will be one of the components, which is where its details will be stored; the relevant components will be indicated by the entry in the sample_component member.}? - {Description of the sample}? - {Date of preparation of the sample}? - {The position and orientation of the center of mass of the sample}? - {Details of beam incident on sample - used to calculate sample/beam interaction point}? - {Details of the component of the sample and/or can}? - { What type of component we are "sample | can | atmosphere | kit" }? - {Concentration of each component}? - {Volume fraction of each component}? - {Scattering length density of each component (cm-2)}? - { In case it is all we know and we want to record it "cubic | tetragonal | orthorhombic | monoclinic | triclinic" }? - {Crystallographic point or space group}? - {Path length through sample/can for simple case when it does not vary with scattering direction}? - {Thickness of a beam entry/exit window on the can (mm) - assumed same for entry and exit}? - {As a function of Wavelength}? - {Additional sample environment information}* - {magnetic_field_log.value is a link to e.g. magnetic_field_env.sensor1.value_log.value}* - {value sent to user's sample setup}? - {20 character fixed length sample description for legends}? - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXsensor.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXsensor.xml deleted file mode 100644 index 6244a3d0..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXsensor.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - {Sensor identification code/model number}? - {Name for the sensor}? - {Short name of sensor used e.g. on monitor display program}? - { where sensor is attached to ("sample" | "can") }? - {Defines the axes for logged vector quantities if they are not the global instrument axes}? - { what we measure "temperature | pH | magnetic_field | electric field | conductivity | resistance | voltage | pressure | flow | stress | strain | shear | surface_pressure" }? - { The type of hardware we use for the measurement e.g. Temperature: "J | K | T | E | R | S | Pt100 | Rh/Fe" pH: "Hg/Hg2Cl2 | Ag/AgCl | ISFET" -Ion selective electrode: "specify species; e.g. Ca2+" -Magnetic field: "Hall" -Surface pressure: "wilhelmy plate" }? - { Is data collection controlled/synchronised to this quantity: 1=no, 0=to "value", 1=to "value_deriv1" etc.}? - {Upper control bound of sensor reading if using run_control}? - {Lower control bound of sensor reading if using run_control}? - {nominal setpoint or average value - need [n] as may be a vector}? - {Nominal/average first derivative of value e.g. strain rate - need [n] as may be a vector}? - {Nominal/average second derivative of value - need [n] as may be a vector}? - {Time history of sensor readings}? - {Time history of sensor readings}? - {Time history of sensor readings}? - { along beam | across beam | transverse | solenoidal | flow shear gradient | flow vorticity }? - {For complex external fields not satisfied by External_field_brief}? - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXshape.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXshape.xml deleted file mode 100644 index 241782c0..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXshape.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - {"nxcylinder", "nxbox", "nxsphere", ...}? - {physical extent of the object along its local axes (after NXorientation) with the center of mass at the local origin (after NXtranslate).}{The meaning and location of these axes will vary according to the value of the "shape" variable. nshapepar defines how many parameters. For the "nxcylinder" type the paramters are (diameter,height). For the "nxbox" type the parameters are (length,width,height). For the "nxsphere" type the parameters are (diameter).}? - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXsource.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXsource.xml deleted file mode 100644 index f2bc0998..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXsource.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - {Effective distance from sample}{Distance as seen by radiation from sample. This number should be negative to signify that it is upstream of the sample.}? - {Name of source}? - "Spallation Neutron Source"|"Pulsed Reactor Neutron Source"|"Reactor Neutron Source"|"Synchrotron X-ray Source"|"Pulsed Muon Source"|"Rotating Anode X-ray"|Fixed Tube X-ray"? - neutron|x-ray|muon|electron? - {Source power}? - {Accelerator proton current}? - {Accelerator proton voltage}? - {Frequency of pulsed source}? - {Period of pulsed source}? - {Pulsed source target material} {"Ta"|"W"|"depleted_U"|"enriched_U"|"Hg"|"Pb"|"C"}? - {any source/facility related messages/events that occurred during the experiment}? - {width of source pulse}? - {source pulse shape}? - {"Engineering" location of source}? - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXtranslation.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXtranslation.xml deleted file mode 100644 index 9344fe80..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXtranslation.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - {Link to other object if we are relative , else absent}? - {(x,y,z), (r,z) or (r).}{This field and the angle field describe the position of a component. The value of "numdist" and "numang" uniquely define whether the coordinates are cartesian (numdist=3,num_angle=0), cylindrical (numdist=2,numang=1), or spherical (numdist=1,numang=2). For absolute position, the origin is the scattering center (where a perfectly aligned sample would be) with the z-axis pointing downstream and the y-axis pointing gravitationally up. For a relative position the NXtranslation is taken into account before the NXorientation. The axes are right-handed and orthonormal.}? - {(azimuthal_angle,polar_angle) or (azumiuthal_angle). See the documentation in "distances" field.}? - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXuser.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXuser.xml deleted file mode 100644 index 2ab1e5b2..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXuser.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - {Name of user responsible for this entry}? - {role of user responsible for this entry}{Suggested roles are "local_contact", "principal_investigator", and "proposer"}? - {Affiliation of user}? -
{Address of user}?
- {Telephone number of user}? - {Fax number of user}? - {Email of user}? - {facility based unique identifier for this person e.g. their identification code on the facility address/contact database}? -
diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXvelocity_selector.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/NXvelocity_selector.xml deleted file mode 100644 index 1bc6deda..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/NXvelocity_selector.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - {Vselect type}? - - {selector rotation speed}? - - - {radieus at beam centre}? - - - {spoke width at beam centre}? - - - {rotor length}? - - - {number of spokes/lamella}? - - - {twist angle along axis}? - - - {offset vertical angle}? -
- - {input beam height}? - - - {input beam width}? - - - {wavelength} - - - {% deviation FWHM /Wavelength}? - -
diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/instruments/NXmononxtas.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/instruments/NXmononxtas.xml deleted file mode 100644 index 771b9698..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/instruments/NXmononxtas.xml +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - + - {Extended title for entry} - TRIAX - {starting time of measurement} - {ending time of measurement} - {duration} - {name of instrument control program} - {notes describing entry} - - {name of user responsible for this entry} - {affiliation of user} -
{address of user}
- {telephone of user}? - {fax of user}? - {email of user}? -
- * - {Descriptive name of sample} - {Chemical formula} - {Type of sample environment} - {Unit cell lengths and angles} - {Orientation matrix of single crystal} - - - {name of instrument} - {name of instrument scientist} - - {name of facility} - "Reactor" - {reactor power} - - - {distance to sample center}? - "Soller" - {length of blades}? - {angular divergence} - - - {distance to sample center}? - {[hkl] values of nominal reflection} - {Lattice parameter of nominal reflection} - {optimum diffracted wavelength} - {horizontal curvature}? - {vertical curvature}? - - - {distance to sample center}? - "Soller" - {length of blades}? - {angular divergence} - - - {distance to sample center}? - "Fission chamber" - {efficiency of detector} - - - {crystal} - {polarizing efficiency} - - - {coil,current-sheet} - {Number of turns in flipping field coils}? - {Number of turns in compensating field coils}? - {Number of turns in guide field coils}? - {Flipping field coil current in "on" state"} - {Compensating field coil current in "on" state"} - {Guide field coil current in "on" state"} - - - {crystal} - {polarizing efficiency} - - - {coil} - {Number of turns/cm in flipping field coils}? - {Number of turns/cm in compensating field coils}? - {Number of turns/cm in guide field coils}? - {Flipping field coil current in "on" state"} - {Compensating field coil current in "on" state"} - {Guide field coil current in "on" state"} - - - - {distance to sample center}? - "Soller" - {length of blades}? - {angular divergence} - - - {distance to sample center}? - {[hkl] values of nominal reflection} - {Lattice parameter of nominal reflection} - {optimum diffracted wavelength} - - - - - - {distance to sample center}? - "Soller" - {length of blades}? - {angular divergence} - - - {distance to sample center}? - "He3 gas cylinder" - {efficiency of detector}? - - - - {Incident energies}? - {Final energies}? - {Energy transfers}? - {Momentum transfers}? - {H reciprocal space vector}? - {K reciprocal space vector}? - {L reciprocal space vector}? - {current in pre-sample flipper}? - {current in post-sample flipper}? - - {vector of motor positions}? - {incident beam monitor counts} - {measured live time of each point} - {Array of intensities} - -
-
diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/instruments/NXsimulation.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/instruments/NXsimulation.xml deleted file mode 100644 index dffb51e4..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/instruments/NXsimulation.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - {Starting time of measurement} - {Ending time of measurement} - - {Description of parameters given as a list of 'variable_name (type)'} - {Name of the file(s) containing the instrument description} - - {Start date of the simulation} - {Number of generated neutrons} - {yes|no} - - <{parameter_name}>{parameter value} - - - {name of the instrument part/component} - {Name of the simulation instance} - - {array_0d|array_1d(dim)|array_2d(dim1, dim2)} - {Title/description of the data} - {simulation ratio (0=start, 1=end) when the data was issued} - {file name, may be an URL} - {file format, e.g. XML, Scilab, binary float, double ...} - X0={mean value}; dX={2nd moment}; Y0={mean value}; dY={2nd moment}; - Min={min value of signal}; Max={max value of signal}; Mean={mean of signal}; - {integrated intensity} {error on integrated intensity} {number of events recorded} - {X axis variable} - {Y axis variable} - {X axis label (possibly with unit)} - {Y axis label (possibly with unit)} - {Signal variable, usually 'I'} - {Signal label, short title (possibly with unit)} - {6 values for xmin, xmax, ymin, ymax} - {name of relevant variables, usually I I_err N} - <{id1|2|3} - long_name="{label for axis 1|2|3, with unit}" - axis="1|2|3" primary="1" - min="{min value}" max="{max value}" dims="{number of bins}" - range="{1 when the data is given as a range, with min/max/bins, 0 otherwise}"> - - {if nothing, then should lookfor the file} - {statistical errors on each data cell} - number of events recorded on each data cell} - - - - - - diff --git a/contrib/bindings/nxpylib/nxpylib/metaDTD/instruments/NXtofnpd.xml b/contrib/bindings/nxpylib/nxpylib/metaDTD/instruments/NXtofnpd.xml deleted file mode 100644 index 7c1e9d8e..00000000 --- a/contrib/bindings/nxpylib/nxpylib/metaDTD/instruments/NXtofnpd.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - {Extended title for entry} - TOFNPD - {Starting time of measurement} - {Ending time of measurement} - - - {Name of instrument} - - {distance from the sample (should be negative)} - - - + - - - {Polar angle of detector element} - {Azimuthal angle of detector element} - - - {Detectors orientations - are with respect to the laboratory - coordinate system. LPSD are initially - aligned with the x-axis. Area detectors - are initially in the xy-plane.} - - - - * - - - - ? - - - + - - {Total time of flight} - {Identifier for detector}? - - {Data values} - - {Data values} - {offset from the -detector center in x-direction}? - {offset from the -detector center in the y-direction}? - - - diff --git a/contrib/bindings/nxpylib/nxpylib/nxbaseclass.py b/contrib/bindings/nxpylib/nxpylib/nxbaseclass.py deleted file mode 100644 index 0c8c349e..00000000 --- a/contrib/bindings/nxpylib/nxpylib/nxbaseclass.py +++ /dev/null @@ -1,219 +0,0 @@ -#!/usr/bin/python - -import sys -import types -import cPickle -import string - -import nxtemplates -import nxfile - -from nxfile import * -from nexus import * - - - -class NXgroupbase: - def __init__(self, group=None, name="", nxclass="", attrs=None, elems=None, groups=None, path=None, parent=None): - if group==None: - self.group = nxfile.NXgroup(name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - else: - self.group = group - - self.nxclass = nxclass - - if path != None: - if type(path) == types.StringType: - self.path = pathStringToList(path) - elif type(path)==types.ListType: - self.path = path - else: - self.path = None - - if path == None: - if parent != None: - if type(parent.path)==types.ListType: - self.path = parent.path.append((name,nxclass)) - else: - self.path = [(name,nxclass)] - - - def getAttr(self, attr_name): - if self.group != None: - if attr_name in nxtemplates.group_types[self.nxclass].attrs.keys(): - if self.group.attrs != None: - if attr_name in self.group.attrs.keys(): - return self.group.attrs[attr_name] - else: - print "attr valid. but not in group" - else: - print "attr not valid for this group" - return None - - - def getElem(self, elem_name): - if self.group != None: - if elem_name in nxtemplates.group_types[self.nxclass].elems.keys(): - if self.group.elems != None: - if elem_name in self.group.elems.keys(): - return self.group.elems[elem_name] - else: - print "Elem valid. but not in group" - else: - print "Elem not valid for this group" - return None - - - def getGroup(self, group_name, group_class): - if self.group != None: - if group_class in nxtemplates.group_types[self.nxclass].groups.keys(): - if group_name in self.group.groups.keys(): - #for a in self.group.groups.keys(): - #print "group %s: %s"%(a, self.group.groups[a]) - #print self.group.groups[group_name] - #print "returning the instance" - return self.group.groups[group_name] - else: - print "%s valid. but not in group"%(group_name) - #for a in self.group.groups.keys(): - #print "group it: ", self.group.groups[a] - else: - print "%s not valid for this group"%(group_class) - else: - print "self.group is None" - return None - - - def setAttr(self, attr): - if self.group != None: - if attr.getName() in nxtemplates.group_types[self.nxclass].attrs.keys(): - if self.group.attrs== None: - self.group.attrs={} - self.group.attrs[attr.getName()] = attr - return 1 - print "attr not part of GROUP!!! Concatenation FAILED" - return 0 - - - def setElem(self, elem): - if self.group != None: - if elem.getName() in nxtemplates.group_types[self.nxclass].elems.keys(): - #check element dimensions - temp_dims = nxtemplates.group_types[self.nxclass].elems[elem.getName()].dims - if len(temp_dims) != len(elem.dims): - print "dimensions don't match, elem %s not loaded"%(elem.getName()) - return 0 - for i in range(len(temp_dims)): - if temp_dims[i] >= 0: - if elem.dims[i] != temp_dims[i]: - print "WARNING: dimension ranges don't match, elem %s loaded though."%(elem.getName()) - - #check type - if elem.nxtype not in nxtemplates.group_types[self.nxclass].elems[elem.getName()].types: - #print elem.nxtype, nxtemplates.group_types[self.nxclass].elems[elem.getName()].types - print "type of elem %s in group %s doesn't match DTD"%(elem.getName(), self.nxclass) - return 0 - if self.group.elems== None: - self.group.elems={} - self.group.elems[elem.getName()] = elem - return 1 - print "elem not part of GROUP!!! Concatenation FAILED" - return 0 - - - def setMetaGroup(self, group): - if self.group!=None: - if group.nxclass in nxtemplates.group_types[self.nxclass].groups.keys(): - if self.group.groups == None: - self.group.groups = {} - else: - if nxtemplates.group_types[self.nxclass].groups[group.nxclass].maxOccur < 2: - for g in self.group.groups.keys(): - if self.group.groups[g].group.nxclass == group.nxclass: - print "only one group of class %s allowed in groups of class %s"%(group.nxclass, self.group.groups[g].group.nxclass) - return 0 - self.group.groups[group.group.name] = group - return 1 - print "group is not a subgroup of this GROUP!!! Concatenation FAILED" - return 0 - - - def setGroup(self, metagroup): - return self.setMetaGroup(metagroup) - - - def validate(self): - # test if entrys of self.group correspond to nxtemplates.group_types[self.nxclass] - # implement later - pass - - - - - - - -class NXdatabase(NXgroupbase): - # need to subclass groupbase for NXdata entrys because the elems included may have arbitrary names - # -> no (standard) validation is possible - def __init__(self, group=None, name="", nxclass="", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def getElem(self, elem_name): - if self.group != None: - if self.group.elems != None: - if elem_name in self.group.elems.keys(): - return self.group.elems[elem_name] - else: - print "Elem not in group" - return None - - - def getGroup(self, group_name, group_class): - if self.group != None: - if group_name in self.group.groups.keys(): - return self.group.groups[group_name] - else: - print "%s valid. but not in group"%(group_name) - else: - print "self.group is None" - return None - - - def setElem(self, elem): - if self.group != None: - if self.group.elems== None: - self.group.elems={} - self.group.elems[elem.getName()] = elem - return 1 - return 0 - - - - -class NXdata(NXdatabase): - def __init__(self, group=None, name="", nxclass="NXdata", attrs=None, elems=None, groups=None, path=None, parent=None): - NXdatabase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def setData(self, data): - return self.setElem(data) - - def getData(self, data_name): - return self.getElem(data_name) - - def setAxes(self, axlist): - if axlist != None: - if type(axlist) != types.ListType and type(axlist) != types.TupleType: - print "please provide axes as list or tuple of axis instance objects" - return 0 - for ax in axlist: - self.setElem(ax) - return 1 - - def addAxis(self, axis): - self.setElem(axis) - - - - - diff --git a/contrib/bindings/nxpylib/nxpylib/nxclasses.py b/contrib/bindings/nxpylib/nxpylib/nxclasses.py deleted file mode 100644 index f3dcd387..00000000 --- a/contrib/bindings/nxpylib/nxpylib/nxclasses.py +++ /dev/null @@ -1,2213 +0,0 @@ -import types -import nxtemplates -import nxfile -from nexus import * -from nxbaseclass import * - - - - - -class NXaperture(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXaperture", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def get_horizontal_aperture(self): - return self.getElem("horizontal_aperture") - - def set_horizontal_aperture(self, elem): - return self.setElem(elem) - - def get_distance(self): - return self.getElem("distance") - - def set_distance(self, elem): - return self.setElem(elem) - - def get_shape(self): - return self.getElem("shape") - - def set_shape(self, elem): - return self.setElem(elem) - - def get_vertical_aperture(self): - return self.getElem("vertical_aperture") - - def set_vertical_aperture(self, elem): - return self.setElem(elem) - - def get_radius(self): - return self.getElem("radius") - - def set_radius(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXattenuator(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXattenuator", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def get_distance(self): - return self.getElem("distance") - - def set_distance(self, elem): - return self.setElem(elem) - - def get_attenuation(self): - return self.getElem("attenuation") - - def set_attenuation(self, elem): - return self.setElem(elem) - - def get_thickness(self): - return self.getElem("thickness") - - def set_thickness(self, elem): - return self.setElem(elem) - - def get_type(self): - return self.getElem("type") - - def set_type(self, elem): - return self.setElem(elem) - - def get_absorption_cross_section(self): - return self.getElem("absorption_cross_section") - - def set_absorption_cross_section(self, elem): - return self.setElem(elem) - - def get_scattering_cross_section(self): - return self.getElem("scattering_cross_section") - - def set_scattering_cross_section(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXbeam(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXbeam", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def getNXdata(self, name): - return NXgroupbase.getGroup(self, name, "NXdata") - - def readNXdata(self, name, file): - subgroupid = name+":"+"NXdata" - return self.readSubGroup(subgroupid, file) - - def get_incident_polarization(self): - return self.getElem("incident_polarization") - - def set_incident_polarization(self, elem): - return self.setElem(elem) - - def get_distance(self): - return self.getElem("distance") - - def set_distance(self, elem): - return self.setElem(elem) - - def get_incident_wavelength(self): - return self.getElem("incident_wavelength") - - def set_incident_wavelength(self, elem): - return self.setElem(elem) - - def get_incident_energy(self): - return self.getElem("incident_energy") - - def set_incident_energy(self, elem): - return self.setElem(elem) - - def get_final_polarization(self): - return self.getElem("final_polarization") - - def set_final_polarization(self, elem): - return self.setElem(elem) - - def get_incident_wavelength_spread(self): - return self.getElem("incident_wavelength_spread") - - def set_incident_wavelength_spread(self, elem): - return self.setElem(elem) - - def get_final_wavelength_spread(self): - return self.getElem("final_wavelength_spread") - - def set_final_wavelength_spread(self, elem): - return self.setElem(elem) - - def get_flux(self): - return self.getElem("flux") - - def set_flux(self, elem): - return self.setElem(elem) - - def get_incident_beam_divergence(self): - return self.getElem("incident_beam_divergence") - - def set_incident_beam_divergence(self, elem): - return self.setElem(elem) - - def get_final_wavelength(self): - return self.getElem("final_wavelength") - - def set_final_wavelength(self, elem): - return self.setElem(elem) - - def get_energy_transfer(self): - return self.getElem("energy_transfer") - - def set_energy_transfer(self, elem): - return self.setElem(elem) - - def get_final_beam_divergence(self): - return self.getElem("final_beam_divergence") - - def set_final_beam_divergence(self, elem): - return self.setElem(elem) - - def get_final_energy(self): - return self.getElem("final_energy") - - def set_final_energy(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXbeamstop(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXbeamstop", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def get_y(self): - return self.getElem("y") - - def set_y(self, elem): - return self.setElem(elem) - - def get_x(self): - return self.getElem("x") - - def set_x(self, elem): - return self.setElem(elem) - - def get_status(self): - return self.getElem("status") - - def set_status(self, elem): - return self.setElem(elem) - - def get_description(self): - return self.getElem("description") - - def set_description(self, elem): - return self.setElem(elem) - - def get_size(self): - return self.getElem("size") - - def set_size(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXcrystal(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXcrystal", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def get_distance(self): - return self.getElem("distance") - - def set_distance(self, elem): - return self.setElem(elem) - - def get_lattice_parameter(self): - return self.getElem("lattice_parameter") - - def set_lattice_parameter(self, elem): - return self.setElem(elem) - - def get_reflection(self): - return self.getElem("reflection") - - def set_reflection(self, elem): - return self.setElem(elem) - - def get_horizontal_aperture(self): - return self.getElem("horizontal_aperture") - - def set_horizontal_aperture(self, elem): - return self.setElem(elem) - - def get_wavelength(self): - return self.getElem("wavelength") - - def set_wavelength(self, elem): - return self.setElem(elem) - - def get_horizontal_curvature(self): - return self.getElem("horizontal_curvature") - - def set_horizontal_curvature(self, elem): - return self.setElem(elem) - - def get_vertical_aperture(self): - return self.getElem("vertical_aperture") - - def set_vertical_aperture(self, elem): - return self.setElem(elem) - - def get_vertical_curvature(self): - return self.getElem("vertical_curvature") - - def set_vertical_curvature(self, elem): - return self.setElem(elem) - - def get_energy(self): - return self.getElem("energy") - - def set_energy(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXdetector(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXdetector", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def getNXnote(self, name): - return NXgroupbase.getGroup(self, name, "NXnote") - - def readNXnote(self, name, file): - subgroupid = name+":"+"NXnote" - return self.readSubGroup(subgroupid, file) - - def getNXdata(self, name): - return NXgroupbase.getGroup(self, name, "NXdata") - - def readNXdata(self, name, file): - subgroupid = name+":"+"NXdata" - return self.readSubGroup(subgroupid, file) - - def getNXgeometry(self, name): - return NXgroupbase.getGroup(self, name, "NXgeometry") - - def readNXgeometry(self, name, file): - subgroupid = name+":"+"NXgeometry" - return self.readSubGroup(subgroupid, file) - - def get_azimuthal_angle(self): - return self.getElem("azimuthal_angle") - - def set_azimuthal_angle(self, elem): - return self.setElem(elem) - - def get_distance(self): - return self.getElem("distance") - - def set_distance(self, elem): - return self.setElem(elem) - - def get_solid_angle(self): - return self.getElem("solid_angle") - - def set_solid_angle(self, elem): - return self.setElem(elem) - - def get_pixel_raster(self): - return self.getElem("pixel_raster") - - def set_pixel_raster(self, elem): - return self.setElem(elem) - - def get_description(self): - return self.getElem("description") - - def set_description(self, elem): - return self.setElem(elem) - - def get_slot(self): - return self.getElem("slot") - - def set_slot(self, elem): - return self.setElem(elem) - - def get_detection_gas_path(self): - return self.getElem("detection_gas_path") - - def set_detection_gas_path(self, elem): - return self.setElem(elem) - - def get_input(self): - return self.getElem("input") - - def set_input(self, elem): - return self.setElem(elem) - - def get_dead_time(self): - return self.getElem("dead_time") - - def set_dead_time(self, elem): - return self.setElem(elem) - - def get_crate(self): - return self.getElem("crate") - - def set_crate(self, elem): - return self.setElem(elem) - - def get_pixel_centre(self): - return self.getElem("pixel_centre") - - def set_pixel_centre(self, elem): - return self.setElem(elem) - - def get_time_of_flight(self): - return self.getElem("time_of_flight") - - def set_time_of_flight(self, elem): - return self.setElem(elem) - - def get_polar_angle(self): - return self.getElem("polar_angle") - - def set_polar_angle(self, elem): - return self.setElem(elem) - - def get_hold_off(self): - return self.getElem("hold_off") - - def set_hold_off(self, elem): - return self.setElem(elem) - - def get_translation(self): - return self.getElem("translation") - - def set_translation(self, elem): - return self.setElem(elem) - - def get_calibration_date(self): - return self.getElem("calibration_date") - - def set_calibration_date(self, elem): - return self.setElem(elem) - - def get_type(self): - return self.getElem("type") - - def set_type(self, elem): - return self.setElem(elem) - - def get_id(self): - return self.getElem("id") - - def set_id(self, elem): - return self.setElem(elem) - - def get_pixel_size(self): - return self.getElem("pixel_size") - - def set_pixel_size(self, elem): - return self.setElem(elem) - - def get_gas_pressure(self): - return self.getElem("gas_pressure") - - def set_gas_pressure(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXdisc_chopper(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXdisc_chopper", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def get_slit_angle(self): - return self.getElem("slit_angle") - - def set_slit_angle(self, elem): - return self.setElem(elem) - - def get_distance(self): - return self.getElem("distance") - - def set_distance(self, elem): - return self.setElem(elem) - - def get_slit_height(self): - return self.getElem("slit_height") - - def set_slit_height(self, elem): - return self.setElem(elem) - - def get_radius(self): - return self.getElem("radius") - - def set_radius(self, elem): - return self.setElem(elem) - - def get_type(self): - return self.getElem("type") - - def set_type(self, elem): - return self.setElem(elem) - - def get_phase(self): - return self.getElem("phase") - - def set_phase(self, elem): - return self.setElem(elem) - - def get_pair_separation(self): - return self.getElem("pair_separation") - - def set_pair_separation(self, elem): - return self.setElem(elem) - - def get_rotation_speed(self): - return self.getElem("rotation_speed") - - def set_rotation_speed(self, elem): - return self.setElem(elem) - - def get_ratio(self): - return self.getElem("ratio") - - def set_ratio(self, elem): - return self.setElem(elem) - - def get_slits(self): - return self.getElem("slits") - - def set_slits(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXentry(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXentry", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def getNXinstrument(self, name): - return NXgroupbase.getGroup(self, name, "NXinstrument") - - def readNXinstrument(self, name, file): - subgroupid = name+":"+"NXinstrument" - return self.readSubGroup(subgroupid, file) - - def getNXdata(self, name): - return NXgroupbase.getGroup(self, name, "NXdata") - - def readNXdata(self, name, file): - subgroupid = name+":"+"NXdata" - return self.readSubGroup(subgroupid, file) - - def getNXsample(self, name): - return NXgroupbase.getGroup(self, name, "NXsample") - - def readNXsample(self, name, file): - subgroupid = name+":"+"NXsample" - return self.readSubGroup(subgroupid, file) - - def getNXuser(self, name): - return NXgroupbase.getGroup(self, name, "NXuser") - - def readNXuser(self, name, file): - subgroupid = name+":"+"NXuser" - return self.readSubGroup(subgroupid, file) - - def getNXmonitor(self, name): - return NXgroupbase.getGroup(self, name, "NXmonitor") - - def readNXmonitor(self, name, file): - subgroupid = name+":"+"NXmonitor" - return self.readSubGroup(subgroupid, file) - - def get_definition(self): - return self.getElem("definition") - - def set_definition(self, elem): - return self.setElem(elem) - - def get_run_number(self): - return self.getElem("run_number") - - def set_run_number(self, elem): - return self.setElem(elem) - - def get_title(self): - return self.getElem("title") - - def set_title(self, elem): - return self.setElem(elem) - - def get_run_cycle(self): - return self.getElem("run_cycle") - - def set_run_cycle(self, elem): - return self.setElem(elem) - - def get_notes(self): - return self.getElem("notes") - - def set_notes(self, elem): - return self.setElem(elem) - - def get_command_line(self): - return self.getElem("command_line") - - def set_command_line(self, elem): - return self.setElem(elem) - - def get_experiment_identifier(self): - return self.getElem("experiment_identifier") - - def set_experiment_identifier(self, elem): - return self.setElem(elem) - - def get_end_time(self): - return self.getElem("end_time") - - def set_end_time(self, elem): - return self.setElem(elem) - - def get_duration(self): - return self.getElem("duration") - - def set_duration(self, elem): - return self.setElem(elem) - - def get_program_name(self): - return self.getElem("program_name") - - def set_program_name(self, elem): - return self.setElem(elem) - - def get_start_time(self): - return self.getElem("start_time") - - def set_start_time(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXenvironment(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXenvironment", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def getNXnote(self, name): - return NXgroupbase.getGroup(self, name, "NXnote") - - def readNXnote(self, name, file): - subgroupid = name+":"+"NXnote" - return self.readSubGroup(subgroupid, file) - - def getNXsensor(self, name): - return NXgroupbase.getGroup(self, name, "NXsensor") - - def readNXsensor(self, name, file): - subgroupid = name+":"+"NXsensor" - return self.readSubGroup(subgroupid, file) - - def getNXgeometry(self, name): - return NXgroupbase.getGroup(self, name, "NXgeometry") - - def readNXgeometry(self, name, file): - subgroupid = name+":"+"NXgeometry" - return self.readSubGroup(subgroupid, file) - - def get_program(self): - return self.getElem("program") - - def set_program(self, elem): - return self.setElem(elem) - - def get_type(self): - return self.getElem("type") - - def set_type(self, elem): - return self.setElem(elem) - - def get_name(self): - return self.getElem("name") - - def set_name(self, elem): - return self.setElem(elem) - - def get_short_name(self): - return self.getElem("short_name") - - def set_short_name(self, elem): - return self.setElem(elem) - - def get_description(self): - return self.getElem("description") - - def set_description(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXevent_data(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXevent_data", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXfermi_chopper(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXfermi_chopper", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def get_width(self): - return self.getElem("width") - - def set_width(self, elem): - return self.setElem(elem) - - def get_slit(self): - return self.getElem("slit") - - def set_slit(self, elem): - return self.setElem(elem) - - def get_num(self): - return self.getElem("num") - - def set_num(self, elem): - return self.setElem(elem) - - def get_radius(self): - return self.getElem("radius") - - def set_radius(self, elem): - return self.setElem(elem) - - def get_type(self): - return self.getElem("type") - - def set_type(self, elem): - return self.setElem(elem) - - def get_rotation_speed(self): - return self.getElem("rotation_speed") - - def set_rotation_speed(self, elem): - return self.setElem(elem) - - def get_r_slit(self): - return self.getElem("r_slit") - - def set_r_slit(self, elem): - return self.setElem(elem) - - def get_height(self): - return self.getElem("height") - - def set_height(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXfilter(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXfilter", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def get_status(self): - return self.getElem("status") - - def set_status(self, elem): - return self.setElem(elem) - - def get_position(self): - return self.getElem("position") - - def set_position(self, elem): - return self.setElem(elem) - - def get_type(self): - return self.getElem("type") - - def set_type(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXflipper(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXflipper", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def get_guide_turns(self): - return self.getElem("guide_turns") - - def set_guide_turns(self, elem): - return self.setElem(elem) - - def get_comp_current(self): - return self.getElem("comp_current") - - def set_comp_current(self, elem): - return self.setElem(elem) - - def get_guide_current(self): - return self.getElem("guide_current") - - def set_guide_current(self, elem): - return self.setElem(elem) - - def get_flip_turns(self): - return self.getElem("flip_turns") - - def set_flip_turns(self, elem): - return self.setElem(elem) - - def get_thickness(self): - return self.getElem("thickness") - - def set_thickness(self, elem): - return self.setElem(elem) - - def get_type(self): - return self.getElem("type") - - def set_type(self, elem): - return self.setElem(elem) - - def get_comp_turns(self): - return self.getElem("comp_turns") - - def set_comp_turns(self, elem): - return self.setElem(elem) - - def get_flip_current(self): - return self.getElem("flip_current") - - def set_flip_current(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXgeometry(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXgeometry", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def getNXtranslation(self, name): - return NXgroupbase.getGroup(self, name, "NXtranslation") - - def readNXtranslation(self, name, file): - subgroupid = name+":"+"NXtranslation" - return self.readSubGroup(subgroupid, file) - - def getNXshape(self, name): - return NXgroupbase.getGroup(self, name, "NXshape") - - def readNXshape(self, name, file): - subgroupid = name+":"+"NXshape" - return self.readSubGroup(subgroupid, file) - - def getNXorientation(self, name): - return NXgroupbase.getGroup(self, name, "NXorientation") - - def readNXorientation(self, name, file): - subgroupid = name+":"+"NXorientation" - return self.readSubGroup(subgroupid, file) - - def get_component_index(self): - return self.getElem("component_index") - - def set_component_index(self, elem): - return self.setElem(elem) - - def get_description(self): - return self.getElem("description") - - def set_description(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXguide(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXguide", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXinstrument(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXinstrument", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def getNXsource(self, name): - return NXgroupbase.getGroup(self, name, "NXsource") - - def readNXsource(self, name, file): - subgroupid = name+":"+"NXsource" - return self.readSubGroup(subgroupid, file) - - def getNXdetector(self, name): - return NXgroupbase.getGroup(self, name, "NXdetector") - - def readNXdetector(self, name, file): - subgroupid = name+":"+"NXdetector" - return self.readSubGroup(subgroupid, file) - - def getNXattenuator(self, name): - return NXgroupbase.getGroup(self, name, "NXattenuator") - - def readNXattenuator(self, name, file): - subgroupid = name+":"+"NXattenuator" - return self.readSubGroup(subgroupid, file) - - def getNXfermi_chopper(self, name): - return NXgroupbase.getGroup(self, name, "NXfermi_chopper") - - def readNXfermi_chopper(self, name, file): - subgroupid = name+":"+"NXfermi_chopper" - return self.readSubGroup(subgroupid, file) - - def getNXflipper(self, name): - return NXgroupbase.getGroup(self, name, "NXflipper") - - def readNXflipper(self, name, file): - subgroupid = name+":"+"NXflipper" - return self.readSubGroup(subgroupid, file) - - def getNXcrystal(self, name): - return NXgroupbase.getGroup(self, name, "NXcrystal") - - def readNXcrystal(self, name, file): - subgroupid = name+":"+"NXcrystal" - return self.readSubGroup(subgroupid, file) - - def getNXfilter(self, name): - return NXgroupbase.getGroup(self, name, "NXfilter") - - def readNXfilter(self, name, file): - subgroupid = name+":"+"NXfilter" - return self.readSubGroup(subgroupid, file) - - def getNXvelocity_selector(self, name): - return NXgroupbase.getGroup(self, name, "NXvelocity_selector") - - def readNXvelocity_selector(self, name, file): - subgroupid = name+":"+"NXvelocity_selector" - return self.readSubGroup(subgroupid, file) - - def getNXdisk_chopper(self, name): - return NXgroupbase.getGroup(self, name, "NXdisk_chopper") - - def readNXdisk_chopper(self, name, file): - subgroupid = name+":"+"NXdisk_chopper" - return self.readSubGroup(subgroupid, file) - - def getNXmirror(self, name): - return NXgroupbase.getGroup(self, name, "NXmirror") - - def readNXmirror(self, name, file): - subgroupid = name+":"+"NXmirror" - return self.readSubGroup(subgroupid, file) - - def getNXcollimator(self, name): - return NXgroupbase.getGroup(self, name, "NXcollimator") - - def readNXcollimator(self, name, file): - subgroupid = name+":"+"NXcollimator" - return self.readSubGroup(subgroupid, file) - - def getNXaperture(self, name): - return NXgroupbase.getGroup(self, name, "NXaperture") - - def readNXaperture(self, name, file): - subgroupid = name+":"+"NXaperture" - return self.readSubGroup(subgroupid, file) - - def getNXpolarizer(self, name): - return NXgroupbase.getGroup(self, name, "NXpolarizer") - - def readNXpolarizer(self, name, file): - subgroupid = name+":"+"NXpolarizer" - return self.readSubGroup(subgroupid, file) - - def getNXguide(self, name): - return NXgroupbase.getGroup(self, name, "NXguide") - - def readNXguide(self, name, file): - subgroupid = name+":"+"NXguide" - return self.readSubGroup(subgroupid, file) - - def getNXbeam_stop(self, name): - return NXgroupbase.getGroup(self, name, "NXbeam_stop") - - def readNXbeam_stop(self, name, file): - subgroupid = name+":"+"NXbeam_stop" - return self.readSubGroup(subgroupid, file) - - def get_name(self): - return self.getElem("name") - - def set_name(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXlog(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXlog", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def get_raw_value(self): - return self.getElem("raw_value") - - def set_raw_value(self, elem): - return self.setElem(elem) - - def get_description(self): - return self.getElem("description") - - def set_description(self, elem): - return self.setElem(elem) - - def get_value(self): - return self.getElem("value") - - def set_value(self, elem): - return self.setElem(elem) - - def get_time(self): - return self.getElem("time") - - def set_time(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXmirror(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXmirror", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXmoderator(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXmoderator", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def getNXlog(self, name): - return NXgroupbase.getGroup(self, name, "NXlog") - - def readNXlog(self, name, file): - subgroupid = name+":"+"NXlog" - return self.readSubGroup(subgroupid, file) - - def getNXdata(self, name): - return NXgroupbase.getGroup(self, name, "NXdata") - - def readNXdata(self, name, file): - subgroupid = name+":"+"NXdata" - return self.readSubGroup(subgroupid, file) - - def getNXgeometry(self, name): - return NXgroupbase.getGroup(self, name, "NXgeometry") - - def readNXgeometry(self, name, file): - subgroupid = name+":"+"NXgeometry" - return self.readSubGroup(subgroupid, file) - - def get_distance(self): - return self.getElem("distance") - - def set_distance(self, elem): - return self.setElem(elem) - - def get_poison_depth(self): - return self.getElem("poison_depth") - - def set_poison_depth(self, elem): - return self.setElem(elem) - - def get_temperature(self): - return self.getElem("temperature") - - def set_temperature(self, elem): - return self.setElem(elem) - - def get_coupled(self): - return self.getElem("coupled") - - def set_coupled(self, elem): - return self.setElem(elem) - - def get_type(self): - return self.getElem("type") - - def set_type(self, elem): - return self.setElem(elem) - - def get_poison_material(self): - return self.getElem("poison_material") - - def set_poison_material(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXmonitor(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXmonitor", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def getNXlog(self, name): - return NXgroupbase.getGroup(self, name, "NXlog") - - def readNXlog(self, name, file): - subgroupid = name+":"+"NXlog" - return self.readSubGroup(subgroupid, file) - - def getNXgeometry(self, name): - return NXgroupbase.getGroup(self, name, "NXgeometry") - - def readNXgeometry(self, name, file): - subgroupid = name+":"+"NXgeometry" - return self.readSubGroup(subgroupid, file) - - def get_time_of_flight(self): - return self.getElem("time_of_flight") - - def set_time_of_flight(self, elem): - return self.setElem(elem) - - def get_distance(self): - return self.getElem("distance") - - def set_distance(self, elem): - return self.setElem(elem) - - def get_range(self): - return self.getElem("range") - - def set_range(self, elem): - return self.setElem(elem) - - def get_preset(self): - return self.getElem("preset") - - def set_preset(self, elem): - return self.setElem(elem) - - def get_mode(self): - return self.getElem("mode") - - def set_mode(self, elem): - return self.setElem(elem) - - def get_efficiency(self): - return self.getElem("efficiency") - - def set_efficiency(self, elem): - return self.setElem(elem) - - def get_type(self): - return self.getElem("type") - - def set_type(self, elem): - return self.setElem(elem) - - def get_sampled_fraction(self): - return self.getElem("sampled_fraction") - - def set_sampled_fraction(self, elem): - return self.setElem(elem) - - def get_integral(self): - return self.getElem("integral") - - def set_integral(self, elem): - return self.setElem(elem) - - def get_data(self): - return self.getElem("data") - - def set_data(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXnote(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXnote", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def get_description(self): - return self.getElem("description") - - def set_description(self, elem): - return self.setElem(elem) - - def get_author(self): - return self.getElem("author") - - def set_author(self, elem): - return self.setElem(elem) - - def get_date(self): - return self.getElem("date") - - def set_date(self, elem): - return self.setElem(elem) - - def get_file_name(self): - return self.getElem("file_name") - - def set_file_name(self, elem): - return self.setElem(elem) - - def get_type(self): - return self.getElem("type") - - def set_type(self, elem): - return self.setElem(elem) - - def get_data(self): - return self.getElem("data") - - def set_data(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXorientation(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXorientation", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def getNXgeometry(self, name): - return NXgroupbase.getGroup(self, name, "NXgeometry") - - def readNXgeometry(self, name, file): - subgroupid = name+":"+"NXgeometry" - return self.readSubGroup(subgroupid, file) - - def get_value(self): - return self.getElem("value") - - def set_value(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXpolarizer(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXpolarizer", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def get_efficiency(self): - return self.getElem("efficiency") - - def set_efficiency(self, elem): - return self.setElem(elem) - - def get_type(self): - return self.getElem("type") - - def set_type(self, elem): - return self.setElem(elem) - - def get_composition(self): - return self.getElem("composition") - - def set_composition(self, elem): - return self.setElem(elem) - - def get_reflection(self): - return self.getElem("reflection") - - def set_reflection(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXroot(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXroot", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def getNXentry(self, name): - return NXgroupbase.getGroup(self, name, "NXentry") - - def readNXentry(self, name, file): - subgroupid = name+":"+"NXentry" - return self.readSubGroup(subgroupid, file) - - def getattr_NeXus_version(self): - return self.getAttr("NeXus_version") - - def setattr_NeXus_version(self, elem): - return self.setAttr(elem) - - def getattr_HDF5_version(self): - return self.getAttr("HDF5_version") - - def setattr_HDF5_version(self, elem): - return self.setAttr(elem) - - def getattr_creator(self): - return self.getAttr("creator") - - def setattr_creator(self, elem): - return self.setAttr(elem) - - def getattr_file_name(self): - return self.getAttr("file_name") - - def setattr_file_name(self, elem): - return self.setAttr(elem) - - def getattr_file_update_time(self): - return self.getAttr("file_update_time") - - def setattr_file_update_time(self, elem): - return self.setAttr(elem) - - def getattr_HDF_version(self): - return self.getAttr("HDF_version") - - def setattr_HDF_version(self, elem): - return self.setAttr(elem) - - def getattr_file_time(self): - return self.getAttr("file_time") - - def setattr_file_time(self, elem): - return self.setAttr(elem) - - - - -class NXsample(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXsample", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def getNXlog(self, name): - return NXgroupbase.getGroup(self, name, "NXlog") - - def readNXlog(self, name, file): - subgroupid = name+":"+"NXlog" - return self.readSubGroup(subgroupid, file) - - def getNXdata(self, name): - return NXgroupbase.getGroup(self, name, "NXdata") - - def readNXdata(self, name, file): - subgroupid = name+":"+"NXdata" - return self.readSubGroup(subgroupid, file) - - def getNXgeometry(self, name): - return NXgroupbase.getGroup(self, name, "NXgeometry") - - def readNXgeometry(self, name, file): - subgroupid = name+":"+"NXgeometry" - return self.readSubGroup(subgroupid, file) - - def getNXbeam(self, name): - return NXgroupbase.getGroup(self, name, "NXbeam") - - def readNXbeam(self, name, file): - subgroupid = name+":"+"NXbeam" - return self.readSubGroup(subgroupid, file) - - def getNXenvironment(self, name): - return NXgroupbase.getGroup(self, name, "NXenvironment") - - def readNXenvironment(self, name, file): - subgroupid = name+":"+"NXenvironment" - return self.readSubGroup(subgroupid, file) - - def get_changer_position(self): - return self.getElem("changer_position") - - def set_changer_position(self, elem): - return self.setElem(elem) - - def get_description(self): - return self.getElem("description") - - def set_description(self, elem): - return self.setElem(elem) - - def get_sample_component(self): - return self.getElem("sample_component") - - def set_sample_component(self, elem): - return self.setElem(elem) - - def get_magnetic_field(self): - return self.getElem("magnetic_field") - - def set_magnetic_field(self, elem): - return self.setElem(elem) - - def get_unit_cell_class(self): - return self.getElem("unit_cell_class") - - def set_unit_cell_class(self, elem): - return self.setElem(elem) - - def get_component(self): - return self.getElem("component") - - def set_component(self, elem): - return self.setElem(elem) - - def get_unit_cell_group(self): - return self.getElem("unit_cell_group") - - def set_unit_cell_group(self, elem): - return self.setElem(elem) - - def get_pressure(self): - return self.getElem("pressure") - - def set_pressure(self, elem): - return self.setElem(elem) - - def get_electric_field(self): - return self.getElem("electric_field") - - def set_electric_field(self, elem): - return self.setElem(elem) - - def get_orientation_matrix(self): - return self.getElem("orientation_matrix") - - def set_orientation_matrix(self, elem): - return self.setElem(elem) - - def get_concentration(self): - return self.getElem("concentration") - - def set_concentration(self, elem): - return self.setElem(elem) - - def get_unit_cell(self): - return self.getElem("unit_cell") - - def set_unit_cell(self, elem): - return self.setElem(elem) - - def get_mass(self): - return self.getElem("mass") - - def set_mass(self, elem): - return self.setElem(elem) - - def get_temperature(self): - return self.getElem("temperature") - - def set_temperature(self, elem): - return self.setElem(elem) - - def get_name(self): - return self.getElem("name") - - def set_name(self, elem): - return self.setElem(elem) - - def get_unit_cell_volume(self): - return self.getElem("unit_cell_volume") - - def set_unit_cell_volume(self, elem): - return self.setElem(elem) - - def get_density(self): - return self.getElem("density") - - def set_density(self, elem): - return self.setElem(elem) - - def get_path_length_window(self): - return self.getElem("path_length_window") - - def set_path_length_window(self, elem): - return self.setElem(elem) - - def get_preparation_date(self): - return self.getElem("preparation_date") - - def set_preparation_date(self, elem): - return self.setElem(elem) - - def get_path_length(self): - return self.getElem("path_length") - - def set_path_length(self, elem): - return self.setElem(elem) - - def get_short_title(self): - return self.getElem("short_title") - - def set_short_title(self, elem): - return self.setElem(elem) - - def get_stress_field(self): - return self.getElem("stress_field") - - def set_stress_field(self, elem): - return self.setElem(elem) - - def get_external_DAC(self): - return self.getElem("external_DAC") - - def set_external_DAC(self, elem): - return self.setElem(elem) - - def get_scattering_length_density(self): - return self.getElem("scattering_length_density") - - def set_scattering_length_density(self, elem): - return self.setElem(elem) - - def get_volume_fraction(self): - return self.getElem("volume_fraction") - - def set_volume_fraction(self, elem): - return self.setElem(elem) - - def get_relative_molecular_mass(self): - return self.getElem("relative_molecular_mass") - - def set_relative_molecular_mass(self, elem): - return self.setElem(elem) - - def get_situation(self): - return self.getElem("situation") - - def set_situation(self, elem): - return self.setElem(elem) - - def get_chemical_formula(self): - return self.getElem("chemical_formula") - - def set_chemical_formula(self, elem): - return self.setElem(elem) - - def get_type(self): - return self.getElem("type") - - def set_type(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXsensor(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXsensor", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def getNXlog(self, name): - return NXgroupbase.getGroup(self, name, "NXlog") - - def readNXlog(self, name, file): - subgroupid = name+":"+"NXlog" - return self.readSubGroup(subgroupid, file) - - def getNXgeometry(self, name): - return NXgroupbase.getGroup(self, name, "NXgeometry") - - def readNXgeometry(self, name, file): - subgroupid = name+":"+"NXgeometry" - return self.readSubGroup(subgroupid, file) - - def getNXorientation(self, name): - return NXgroupbase.getGroup(self, name, "NXorientation") - - def readNXorientation(self, name, file): - subgroupid = name+":"+"NXorientation" - return self.readSubGroup(subgroupid, file) - - def get_low_trip_value(self): - return self.getElem("low_trip_value") - - def set_low_trip_value(self, elem): - return self.setElem(elem) - - def get_attached_to(self): - return self.getElem("attached_to") - - def set_attached_to(self, elem): - return self.setElem(elem) - - def get_name(self): - return self.getElem("name") - - def set_name(self, elem): - return self.setElem(elem) - - def get_short_name(self): - return self.getElem("short_name") - - def set_short_name(self, elem): - return self.setElem(elem) - - def get_run_control(self): - return self.getElem("run_control") - - def set_run_control(self, elem): - return self.setElem(elem) - - def get_high_trip_value(self): - return self.getElem("high_trip_value") - - def set_high_trip_value(self, elem): - return self.setElem(elem) - - def get_value(self): - return self.getElem("value") - - def set_value(self, elem): - return self.setElem(elem) - - def get_value_deriv2(self): - return self.getElem("value_deriv2") - - def set_value_deriv2(self, elem): - return self.setElem(elem) - - def get_value_deriv1(self): - return self.getElem("value_deriv1") - - def set_value_deriv1(self, elem): - return self.setElem(elem) - - def get_measurement(self): - return self.getElem("measurement") - - def set_measurement(self, elem): - return self.setElem(elem) - - def get_model(self): - return self.getElem("model") - - def set_model(self, elem): - return self.setElem(elem) - - def get_type(self): - return self.getElem("type") - - def set_type(self, elem): - return self.setElem(elem) - - def get_external_field_brief(self): - return self.getElem("external_field_brief") - - def set_external_field_brief(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXshape(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXshape", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def get_shape(self): - return self.getElem("shape") - - def set_shape(self, elem): - return self.setElem(elem) - - def get_size(self): - return self.getElem("size") - - def set_size(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXsource(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXsource", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def getNXgeometry(self, name): - return NXgroupbase.getGroup(self, name, "NXgeometry") - - def readNXgeometry(self, name, file): - subgroupid = name+":"+"NXgeometry" - return self.readSubGroup(subgroupid, file) - - def getNXdata(self, name): - return NXgroupbase.getGroup(self, name, "NXdata") - - def readNXdata(self, name, file): - subgroupid = name+":"+"NXdata" - return self.readSubGroup(subgroupid, file) - - def get_distance(self): - return self.getElem("distance") - - def set_distance(self, elem): - return self.setElem(elem) - - def get_target_material(self): - return self.getElem("target_material") - - def set_target_material(self, elem): - return self.setElem(elem) - - def get_name(self): - return self.getElem("name") - - def set_name(self, elem): - return self.setElem(elem) - - def get_power(self): - return self.getElem("power") - - def set_power(self, elem): - return self.setElem(elem) - - def get_notes(self): - return self.getElem("notes") - - def set_notes(self, elem): - return self.setElem(elem) - - def get_probe(self): - return self.getElem("probe") - - def set_probe(self, elem): - return self.setElem(elem) - - def get_period(self): - return self.getElem("period") - - def set_period(self, elem): - return self.setElem(elem) - - def get_current(self): - return self.getElem("current") - - def set_current(self, elem): - return self.setElem(elem) - - def get_frequency(self): - return self.getElem("frequency") - - def set_frequency(self, elem): - return self.setElem(elem) - - def get_voltage(self): - return self.getElem("voltage") - - def set_voltage(self, elem): - return self.setElem(elem) - - def get_pulse_width(self): - return self.getElem("pulse_width") - - def set_pulse_width(self, elem): - return self.setElem(elem) - - def get_type(self): - return self.getElem("type") - - def set_type(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXtranslation(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXtranslation", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def getNXgeometry(self, name): - return NXgroupbase.getGroup(self, name, "NXgeometry") - - def readNXgeometry(self, name, file): - subgroupid = name+":"+"NXgeometry" - return self.readSubGroup(subgroupid, file) - - def get_distances(self): - return self.getElem("distances") - - def set_distances(self, elem): - return self.setElem(elem) - - def get_angles(self): - return self.getElem("angles") - - def set_angles(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXuser(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXuser", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def get_affiliation(self): - return self.getElem("affiliation") - - def set_affiliation(self, elem): - return self.setElem(elem) - - def get_role(self): - return self.getElem("role") - - def set_role(self, elem): - return self.setElem(elem) - - def get_name(self): - return self.getElem("name") - - def set_name(self, elem): - return self.setElem(elem) - - def get_address(self): - return self.getElem("address") - - def set_address(self, elem): - return self.setElem(elem) - - def get_telephone_number(self): - return self.getElem("telephone_number") - - def set_telephone_number(self, elem): - return self.setElem(elem) - - def get_fax_number(self): - return self.getElem("fax_number") - - def set_fax_number(self, elem): - return self.setElem(elem) - - def get_facility_user_id(self): - return self.getElem("facility_user_id") - - def set_facility_user_id(self, elem): - return self.setElem(elem) - - def get_email(self): - return self.getElem("email") - - def set_email(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXvelocity_selector(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXvelocity_selector", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def get_rotation_speed(self): - return self.getElem("rotation_speed") - - def set_rotation_speed(self, elem): - return self.setElem(elem) - - def get_wavelength_spread(self): - return self.getElem("wavelength_spread") - - def set_wavelength_spread(self, elem): - return self.setElem(elem) - - def get_height(self): - return self.getElem("height") - - def set_height(self, elem): - return self.setElem(elem) - - def get_twist(self): - return self.getElem("twist") - - def set_twist(self, elem): - return self.setElem(elem) - - def get_width(self): - return self.getElem("width") - - def set_width(self, elem): - return self.setElem(elem) - - def get_length(self): - return self.getElem("length") - - def set_length(self, elem): - return self.setElem(elem) - - def get_num(self): - return self.getElem("num") - - def set_num(self, elem): - return self.setElem(elem) - - def get_radius(self): - return self.getElem("radius") - - def set_radius(self, elem): - return self.setElem(elem) - - def get_wavelength(self): - return self.getElem("wavelength") - - def set_wavelength(self, elem): - return self.setElem(elem) - - def get_spwidth(self): - return self.getElem("spwidth") - - def set_spwidth(self, elem): - return self.setElem(elem) - - def get_table(self): - return self.getElem("table") - - def set_table(self, elem): - return self.setElem(elem) - - def get_type(self): - return self.getElem("type") - - def set_type(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXcollimator(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXcollimator", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def get_distance(self): - return self.getElem("distance") - - def set_distance(self, elem): - return self.setElem(elem) - - def get_length(self): - return self.getElem("length") - - def set_length(self, elem): - return self.setElem(elem) - - def get_radius(self): - return self.getElem("radius") - - def set_radius(self, elem): - return self.setElem(elem) - - def get_horizontal_aperture(self): - return self.getElem("horizontal_aperture") - - def set_horizontal_aperture(self, elem): - return self.setElem(elem) - - def get_vertical_aperture(self): - return self.getElem("vertical_aperture") - - def set_vertical_aperture(self, elem): - return self.setElem(elem) - - def get_soller_angle(self): - return self.getElem("soller_angle") - - def set_soller_angle(self, elem): - return self.setElem(elem) - - def get_type(self): - return self.getElem("type") - - def set_type(self, elem): - return self.setElem(elem) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - - - - -class NXprocess(NXgroupbase): - """ auto-generated by metaDTD processor """ - - def __init__(self, group=None, name="", nxclass="NXprocess", attrs=None, elems=None, groups=None, path=None, parent=None): - NXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent) - - def getNXnote(self, name): - return NXgroupbase.getGroup(self, name, "NXnote") - - def readNXnote(self, name, file): - subgroupid = name+":"+"NXnote" - return self.readSubGroup(subgroupid, file) - - def getattr_name(self): - return self.getAttr("name") - - def setattr_name(self, elem): - return self.setAttr(elem) - diff --git a/contrib/bindings/nxpylib/nxpylib/nxcomponents.py b/contrib/bindings/nxpylib/nxpylib/nxcomponents.py deleted file mode 100644 index 53f0bc95..00000000 --- a/contrib/bindings/nxpylib/nxpylib/nxcomponents.py +++ /dev/null @@ -1,1122 +0,0 @@ -import types -import cPickle -import time -import string - -from nexus import * -#from nxplot import * -import nxtemplates - - -def checkTypes(pytype, nxtype): - """ test if nexus type and python type match together - - args : ... - """ - int_types = [NX_INT8, NX_UINT8, NX_INT16, NX_UINT16, NX_INT32, NX_UINT32] - float_types = [NX_FLOAT32, NX_FLOAT64] - str_types = [NX_CHAR] - - if pytype == types.IntType: - if not nxtype in int_types: - print "types don't match" - return 0 - elif pytype == types.LongType: - if not nxtype in int_types: - print "types don't match" - return 0 - elif pytype == types.FloatType: - if not nxtype in float_types: - print "types don't match" - return 0 - elif pytype == types.StringType: - if not nxtype in str_types: - print "types don't match" - return 0 - else: - print "unknown type:", - return 0 - - return 1 - - -# classes for the 3 different objects - -class NXattr: - def __init__(self, parent=None, path=None, name="", nxtype=NX_CHAR, value=None): - self.parent = parent - - if path != None: - if type(path) == types.StringType: - self.path = pathStringToList(path) - elif type(path)==types.ListType: - self.path = path - else: - self.path = None - - if path == None: - if parent != None: - if type(parent.path)==types.ListType: - self.path = parent.path.append((name,"NXattr")) - else: - self.path = [(name,"NXattr")] - - self.name = name - self.type = nxtype - - if value != None: - if type(value)==types.ListType or type(value)==types.TupleType: - if len(value) > 0: - if not checkTypes(type(value[0]), nxtype): - print "error. types don't match" - return None - else: - if not checkTypes(type(value), nxtype): - print "error. simple types don't match" - return None - - self.value = value - - if type(value) == types.ListType or type(value) == types.TupleType or type(value) == types.StringType: - self.length = len(value) - else: - self.length = 1 - - - def getName(self): - return self.name - - def getValue(self): - return self.value - - def getType(self): - return self.type - - def getLength(self): - return self.length - - - def setValue(self, value): - if type(value) == types.ListType or type(value) == types.TupleType: - if len(value) > 0: - if not checkTypes(type(value[0]), type): - print "error. types don't match" - return 0 - else: - if not checkTypes(type(value), type): - print "error. types don't match" - return 0 - - self.value = value - - if type(value) == types.ListType or type(value) == types.TupleType or type(value) == types.StringType: - self.length = len(value) - else: - self.length = 1 - - return 1 - - - -class NXelem: - def __init__(self, parent=None, path=None, name="", nxtype=0, dims=None, attrs=None, data=None): - if dims == None: - dims = [-1] - if attrs == None: - attrs = {} - - self.parent = parent - if path != None: - if type(path) == types.StringType: - self.path = pathStringToList(path) - elif type(path)==types.ListType: - self.path = path - else: - self.path = None - - if path == None: - if parent != None: - if type(parent.path)==types.ListType: - self.path = parent.path.append((name,"SDS")) - else: - self.path = [(name,"SDS")] - - self.nxtype = nxtype - self.dims = dims - - self.name = name - self.data = data - - self.attrs = attrs - - def getName(self): - return self.name - - def getType(self): - return self.nxtype - - def getDims(self): - return self.dims - - def getRank(self): - return len(self.dims) - - def getData(self): - return self.data - - def getAttrs(self): - return self.attrs - - def getAttr(self, attname): - if attname in self.attrs: - return self.attrs[attname] - else: - return None - - def getAttrValue(self, attname): - if attname in self.attrs: - return self.attrs[attname].getValue() - return None - - - - def setData(self, data): - #checkTypeAndDim(data) - #set type and dim - #print "setting data for ", self.name, " ; values: " , data - self.data = data - - def setAttr(self, attr): - if self.path != None: - groupclass = self.path[len(self.path)-1][1] - if groupclass[0:2] != "NX": - groupclass = self.path[len(self.path)-2][1] - if groupclass[0:2] != "NX": - pass - #print "Error in elem path" - #print "elem %s doesn't belong to a group. no validation possible \n-> validate when appending to group!!!!"%(self.name) - #return 0 - if not attname in nxtemplates.group_types[groupclass].elems[self.name].attrs.keys(): - print "attr not valid !!" - return 0 - - self.attrs[attname] = attr - return 1 - - - def setAttrValue(self, attname, attvalue, nxtype): - attpath = None - if self.path != None: - groupclass = self.path[len(self.path)-1][1] - if groupclass[0:2] != "NX": - groupclass = self.path[len(self.path)-2][1] - if groupclass[0:2] != "NX": - pass - #print "elem %s doesn't belong to a group. no validation possible \n-> validate when appending to group!!!!"%(self.name) - #return 0 - - - if groupclass[0:2] == "NX": - if not attname in nxtemplates.group_types[groupclass].elems[self.name].attrs.keys(): - print "attr not valid !!" - return 0 - attpath = self.path - - #atttype = guessNXType(attvalue) - self.attrs[attname] = NXattr(path= attpath, name=attname, value=attvalue, nxtype=nxtype) - return 1 - - - - - -class NXgroup: - def __init__(self, parent=None, path=None, name="", nxclass="", attrs=None, elems=None, groups=None): - self.parent = parent - - if path != None: - if type(path) == types.StringType: - self.path = pathStringToList(path) - elif type(path)==types.ListType: - self.path = path - else: - self.path = None - - if path == None: - if parent != None: - if type(parent.path)==types.ListType: - self.path = parent.path.append((name,nxclass)) - else: - self.path = [(name,nxclass)] - - self.name = name - self.nxclass = nxclass - - self.attrs = attrs - self.elems = elems - self.groups = groups - - - def setAttrs(self, attrs): - self.attrs = attrs - - def setElems(self, elems): - self.elems = elems - - def setGroups(self, groups): - self.groups = groups - - def getAttrs(self): - return self.attrs - - def getElems(self): - return self.elems - - def getGroups(self): - return self.groups - - def getAttr(self, attrname): - if attrname in self.attrs: - if self.attrs[attrname] != None: - if type(self.attrs[attrname]) == types.InstanceType: - return self.attrs[attrname] - return None - - - def getAttrValue(self, attname): - pass - - def setAttrValue(self, attname, attvalue): - pass - - - def getElem(self, elemname): - if elemname in elems: - if elems[elemname] != None: - if type(elems[elemname]) == types.InstanceType: - return elems[elenname] - return None - - def getElemData(self, elemname): - if elemname in elems: - if elems[elemname] != None: - if type(elems[elemname]) == types.InstanceType: - return elems[elemname].getData() - - def setElemData(self, elemname, data): - if elemname in elems: - if elems[elemname] != None: - if type(elems[elemname]) == types.InstanceType: - elems[elemname].setData(data) - return 1 - return 0 - - def getGroup(self, groupname): - if groupname in groups: - if groups[groupname] != None: - if type(groups[groupname]) == types.InstanceType: - return groups[groupname] - return None - - - -class NXaxis(NXelem): - def __init__(self, name="", nxdata=None, nxtype=NX_FLOAT32, dims=None, attrs=None, data=None): - if dims == None: dims = [] - if attrs == None: attrs = {} - if data == None: data = [] - NXelem.__init__(self, parent=None, path=None, name=name, nxtype=nxtype, dims=dims, attrs=attrs, data=data) - self.nxdata = nxdata - self.gridinfo = 0 - - def setUnit(self, unit): - #TODO: check if types match (maybe check in NXelem) - self.setAttrValue("unit", unit) - - def setOffset(self, offset): - self.setAttrValue("offset", offset) - - def setLongName(self, longname): - self.setAttrValue("long_name", longname) - - def setPrimary(self, primary): - self.setAttrValue("primary", primary) - - def appendData(self, value, cache="yes"): - #check if types correspond - if len(self.data) >= self.dims[0]: - print "warning: axis content exceeds dimension boundaries", len(self.data), self.dims[0] - return 0 - self.data.append(value) - if cache == "yes": - if self.nxdata.axcachefile != "": - self.saveAxData(value) - if self.nxdata.nxcachefile !="": - self.saveAxDataToNX(value) - return 1 - - def attachToNXData(self, nxdata): - self.nxdata = nxdata - nxdata.attachAxis(self) - - def getNXData(self): - return self.nxdata - - - def saveAxDataToNX(self, value): - if self.nxdata == None: - print "axis hasn't been assigned to nxdata" - return 0 - return self.nxdata.saveAxDataToNX(self, value) - - def saveAxData(self, value): - if self.nxdata == None: - print "axis hasn't been assigned to nxdata" - return 0 - return self.nxdata.saveAxData(self, value) - - def loadAxData(self): - if self.nxdata == None: - print "axis hasn't been assigned to nxdata" - return 0 - return self.nxdata.loadAxData(self) - - def loadAxDataFromNX(self): - if self.nxdata == None: - print "axis hasn't been assigned to nxdata" - return 0 - return self.nxdata.loadAxDataFromNX(self) - - - def restoreData(self, filename=None): - if filename != None: - if filename.endswith(".nxs"): - self.nxdata.nxcachefile = filename - elif filename.endswith(".nxt"): - self.nxdata.axcachefile = filename - else: - print "improper cache file name" - if self.nxdata.nxcachefile != None and self.nxdata.nxcachefile != "": - self.loadAxDataFromNX() - elif self.nxdata.axcachefile != None and self.nxdata.axcachefile != "": - self.loadAxData() - - def trimAxDataToGridinfo(self): - self.data = self.data[0:self.gridinfo] - - - - - -class NXdataelem(NXelem): - def __init__(self, path=None, name="", nxtype=NX_FLOAT32, dims=None, axnames="", attrs=None, data=None, cachefile="", nxcachefile="", axcachefile=""): - if dims == None: dims = [] - if attrs == None: attrs = {} - if data == None: data = [] - NXelem.__init__(self, parent=None, path=path, name=name, nxtype=nxtype, dims=dims, attrs=attrs, data=data) - self.attrs["axes"] = NXattr(name="axes", nxtype=NX_CHAR, value=axnames) - self.attrs["signal"] = NXattr(name="signal", nxtype=NX_CHAR, value="1") - self.cachefile = cachefile - self.axcachefile = axcachefile - self.nxcachefile = nxcachefile - self.axes = None - - #if nxcachefile!="": - # self.nxcachefile = nxcachefile - #else: - # self.nxcachefile = self.newNXCacheFilename() - self.nxhandle = None - - if len(dims) > 0: - self.gridinfo = self.initGridInfo(0) - #print "self.gridinfo:", self.gridinfo - - - def initGridInfo(self, level): - # provide info where to append data when using NeXus cache file - # needed to determine the insertion position when using NXputslab - l = [] - if level= self.dims[i+1]: - # print "coordinates are out of bounds" - # return 0 -# -# if type(coords[0]) != types.IntType: -# print "coords represent indices. please provide them as integers" -# return 0 -# -# data = self.data -# for i in range(len(coords)): -# while len(data) <= coords[i]: -# data.append([]) -# data = data[coords[i]] -# -# if axname not in self.axes.keys(): -# print "nxdata does not contain axes with name %s"%(axname) -# return 0 -# -# p.plotData(data, self.axes[axname].data) - - - def appendData(self, value, coords=None, cache="yes"): - #check if types correspond - if coords == None: - data = self.data - for i in range(len(self.dims)-1): - if len(data) <= 0: - data.append([]) - data = data[0] - if len(data) >= self.dims[len(self.dims)-1]: - #print "oh:", len(data), self.dims[len(self.dims)-1] - print "warning: data exceeds dimension boundary" - return 0 - data.append(value) - if cache=="yes": - if len(self.dims) <=1: - coord = None - else: - coord = [] - for i in range(len(self.dims)-1): - coord.append(0) - if self.cachefile!="": - self.saveData(value, coord) - if self.nxcachefile!="": - self.saveDataToNX(value, coord) - - else: - if type(coords) != types.TupleType and type(coords) != types.ListType: - print "coordinates must be passed as tuple or list of integers" - return 0 - - if len(coords) != len(self.dims)-1: - print "unsufficient coordinate information." - return 0 - - for i in range(len(coords)): - if coords[i] >= self.dims[i+1]: - print "coordinates are out of bounds" - return 0 - - if type(coords[0]) != types.IntType: - print "coords represent indices. please provide them as integers" - return 0 - - data = self.data - for i in range(len(coords)): - while len(data) <= coords[i]: - data.append([]) - data = data[coords[i]] - - if len(data) >= self.dims[len(self.dims)-1]: - print "warning: data exceeds dimension boundary" - return 0 - data.append(value) - if cache=="yes": - if self.cachefile != "": - self.saveData(value, coords) - if self.nxcachefile != "": - self.saveDataToNX(value, coords) - return 1 - - - - # find a mechanism to save only the newly appended data and not the complete set. - # disk cache problem: where to append data, when only one datum is set to a single entry - # solution -> save data with coordinate information !! - # always append to end of file.-> when reloading -> read coordinates -> reconstruct array. - # define conventions: - # when new data is stored -> new file (one file per object) - # in header store date and user and name of file - - def saveDataToNX(self, value, coords): - if not self.nxcachefileExists(): - #print "opening file" - status, self.nxhandle = NXopen(self.nxcachefile, NXACC_CREATE5) - status = NXmakegroup(self.nxhandle, "entry", "NXentry") - status = NXopengroup(self.nxhandle, "entry", "NXentry") - status = NXmakegroup(self.nxhandle, "data", "NXdata") - status = NXopengroup(self.nxhandle, "data", "NXdata") - - if len(self.dims) > 1: - gridinfo_rank = len(self.dims)-1 - gridinfo_dims = self.dims[0:len(self.dims)-1] - else: - #in case of one-dim data we need only a single field to store gridinfo - gridinfo_rank=1 - gridinfo_dims=[1] - - status = NXmakedata(self.nxhandle, self.name+"_gridinfo", NX_INT32, gridinfo_rank, gridinfo_dims) - status = NXmakedata(self.nxhandle, self.name, self.nxtype, len(self.dims), self.dims) - status = NXopendata(self.nxhandle, self.name) - #print "DEBUG coords:", coords - - #write some header info here - else: - if self.nxhandle != None: - status = NXinitgroupdir(self.nxhandle) - status, nitems, path, nxclass = NXgetgroupinfo(self.nxhandle) - found = 0 - for i in range(nitems): - status, name, nxclass, nxtype = NXgetnextentry(self.nxhandle) - if name == self.name and nxclass == "SDS": - status = NXopendata(self.nxhandle, self.name) - found = 1 - if found == 0: - status = NXflush(self.nxhandle) - status = NXclose(self.nxhandle) - status, self.nxhandle = NXopen(self.nxcachefile, NXACC_RDWR) - status = NXopengroup(self.nxhandle, "entry", "NXentry") - status = NXopengroup(self.nxhandle, "data", "NXdata") - status, nitems, path, nxclass = NXgetgroupinfo(self.nxhandle) - found = 0 - for i in range(nitems): - status, name, nxclass, nxtype = NXgetnextentry(self.nxhandle) - if name == self.name and nxclass == "SDS": - status = NXopendata(self.nxhandle, self.name) - found = 1 - if found == 0: - status = NXmakedata(self.nxhandle, self.name, self.nxtype, len(self.dims), self.dims) - status = NXopendata(self.nxhandle, self.name) - else: - status, self.nxhandle = NXopen(self.nxcachefile, NXACC_RDWR) - status = NXopengroup(self.nxhandle, "entry", "NXentry") - status = NXopengroup(self.nxhandle, "data", "NXdata") - status, nitems, path, nxclass = NXgetgroupinfo(self.nxhandle) - found = 0 - for i in range(nitems): - status, name, nxclass, nxtype = NXgetnextentry(self.nxhandle) - if name == self.name and nxclass == "SDS": - status = NXopendata(self.nxhandle, self.name) - found = 1 - if found == 0: - #print "DEBUG creating:", self.name, self.nxtype, len(self.dims), self.dims - status = NXmakedata(self.nxhandle, self.name, self.nxtype, len(self.dims), self.dims) - status = NXopendata(self.nxhandle, self.name) - - - if coords == None: - if self.gridinfo >= self.dims[len(self.dims)-1]: - print "warning: data exceeds dimension boundary", self.gridinfo, self.dims[len(self.dims)-1] - return 0 - startslab = [] - sizeslab=[] - for i in range(len(self.dims)): - startslab.append(0) - sizeslab.append(1) - startslab[len(startslab)-1]= self.gridinfo - status = NXputslab(self.nxhandle, [value], startslab, sizeslab) - self.gridinfo = self.gridinfo+1 - else: - if type(coords) != types.TupleType and type(coords) != types.ListType: - print "coordinates must be passed as tuple or list of integers" - return 0 - - if len(coords) != len(self.dims)-1: - print "unsufficient coordinate information." - return 0 - - for i in range(len(coords)): - if coords[i] >= self.dims[i+1]: - print "coordinates are out of bounds" - return 0 - - if type(coords[0]) != types.IntType: - print "coords represent indices. please provide them as integers" - return 0 - - #go through array, but only to the forelast subarray - #(this ist because we need the handle, in order to change the value later) - - info = self.gridinfo - for i in range(len(coords)-1): - info = info[coords[i]] - - # now get last subarrray value - infoval = info[coords[len(coords)-1]] - if infoval >= self.dims[len(self.dims)-1]: - print "warning: data exceeds dimension boundary", infoval, self.dims[len(self.dims)-1] - return 0 - - #construct slab array - #append all coords, then append value of the gridinfo in the corresponding coords position - startslab = [] - sizeslab=[] - for i in range(len(coords)): - startslab.append(coords[i]) - sizeslab.append(1) - startslab.append(infoval) - sizeslab.append(1) - status = NXputslab(self.nxhandle, [value], startslab, sizeslab) - #now we need the previously mentioned handle in order to modify the subarray object - #just increment value by one - info[coords[len(coords)-1]] = infoval + 1 - - status = NXclosedata(self.nxhandle) - status = NXflush(self.nxhandle) - - # now write gridinfo - status = NXinitgroupdir(self.nxhandle) - status, nitems, path, nxclass = NXgetgroupinfo(self.nxhandle) - gridinfoname = self.name+"_gridinfo" - found = 0 - for i in range(nitems): - status, name, nxclass, nxtype = NXgetnextentry(self.nxhandle) - if name == gridinfoname and nxclass == "SDS": - status = NXopendata(self.nxhandle, gridinfoname) - found = 1 - if found == 0: - if len(self.dims) > 1: - gridinfo_rank = len(self.dims)-1 - gridinfo_dims = self.dims[0:len(self.dims)-1] - else: - #in case of one-dim data we need only a single field to store gridinfo - gridinfo_rank=1 - gridinfo_dims=[1] - status = NXmakedata(self.nxhandle, gridinfoname, NX_INT32, gridinfo_rank, gridinfo_dims) - status = NXopendata(self.nxhandle, gridinfoname) - startslab = [] - sizeslab=[] - if coords != None: - for i in range(len(coords)): - startslab.append(coords[i]) - sizeslab.append(1) - info_value = info[coords[len(coords)-1]] - else: - startslab = [0] - sizeslab = [1] - info_value = self.gridinfo - #print "DEBUG gridinfo:", info_value - status = NXputslab(self.nxhandle, info_value, startslab, sizeslab) - status = NXclosedata(self.nxhandle) - status = NXflush(self.nxhandle) - return 1 - - - - def saveData(self, value, coords): - if not self.cachefileExists(): - f = file(self.cachefile, "w") - f.write("HEADER:\n") - f.write("put some information here: date of creation, user name etc.\n") - f.write("\n") - f.write("\n") - f.write("START:\n") - else: - f = file(self.cachefile, "a") - - f.write(repr(coords)) - f.write(",") - f.write(repr(value)) - f.write("\n") - f.write(cPickle.dumps(coords)) - f.write("\n") - f.write(cPickle.dumps(value)) - f.write("\n") - f.close() - - - def loadDataFromNX(self): - if not self.nxcachefileExists(): - print "cachefile does not exist. unable to load the data" - return 0 - status, self.nxhandle = NXopen(self.nxcachefile, NXACC_RDWR) - status = NXopengroup(self.nxhandle, "entry", "NXentry") - status = NXopengroup(self.nxhandle, "data", "NXdata") - status = NXopendata(self.nxhandle, self.name) - if status != 1: - print "failed to open dataset %s. it does not seem to exist"%(self.name) - return 0 - status,rank,dims,nxtype = NXgetinfo(self.nxhandle) - if nxtype != self.nxtype: - print "types don't match. cannot load data set" - return 0 - if dims != self.dims: - print "dimensions don't match. cannot load data set" - return 0 - - # CAUTION: -> get data gets the hole array -> we need only the array of size gridinfo -> - # FIX IT - # we must either work with NXgetslab or just cut the array according to gridinfo - status, self.data = NXgetdata(self.nxhandle) - status = NXclosedata(self.nxhandle) - - status = NXopendata(self.nxhandle, self.name+"_gridinfo") - if status != 1: - print "failed to open gridinfo for dataset %s"%(self.name) - print "WARNING: gridinfo will be reset to zero" - self.gridinfo = self.initGridInfo(0) - return 0 - status,rank,dims,nxtype = NXgetinfo(self.nxhandle) - if dims != self.dims[0:len(self.dims)-1]: - print "dimensions don't match. cannot load data set" - return 0 - - status, self.gridinfo = NXgetdata(self.nxhandle) - status = NXflush(self.nxhandle) - status = NXclose(self.nxhandle) - self.nxhandle = None - #now trim data array according to gridinfo - self.trimDataToGridinfo(self.data, self.gridinfo, 0) - return 1 - - - def trimDataToGridinfo(self, data, info, level): - if level= axis.dims[0]: - print "warning: ax data exceeds dimension boundary", axis.gridinfo, axis.dims[0] - return 0 - startslab= [axis.gridinfo] - sizeslab=[1] - - status = NXputslab(self.nxhandle, [value], startslab, sizeslab) - if status: - axis.gridinfo = axis.gridinfo+1 - status = NXputattr(self.nxhandle, "cursor", axis.gridinfo, NX_INT32) - status = NXclosedata(self.nxhandle) - - #status, nitems, path, nxclass = NXgetgroupinfo(self.nxhandle) - #status = NXinitgroupdir(self.nxhandle) - #gridinfoname = axis.name+"_gridinfo" - #found = 0 - #for i in range(nitems): - # status, name, nxclass, nxtype = NXgetnextentry(self.nxhandle) - # if name == gridinfoname and nxclass == "SDS": - # status = NXopendata(self.nxhandle, gridinfoname) - # found = 1 - #if found == 0: - # status = NXmakedata(self.nxhandle, gridinfoname, NX_INT32, 1, [1]) - # status = NXopendata(self.nxhandle, gridinfoname) - #status = NXputdata(self.nxhandle, axis.gridinfo) - #status = NXclosedata(self.nxhandle) - return 1 - - - def loadAxDataFromNX(self, axis): - if not self.nxcachefileExists(): - print "cachefile does not exist. unable to load the data" - return 0 - status, self.nxhandle = NXopen(self.nxcachefile, NXACC_RDWR) - status = NXopengroup(self.nxhandle, "entry", "NXentry") - status = NXopengroup(self.nxhandle, "data", "NXdata") - - status = NXopendata(self.nxhandle, axis.name) - if status!=1: - print "axis data not found in nxfile %s"%(self.nxcachefile) - return 0 - status,rank,dims,nxtype = NXgetinfo(self.nxhandle) - if nxtype != axis.nxtype: - print "types don't match. cannot load data set" - return 0 - if dims != axis.dims: - print "dimensions don't match. cannot load data set" - return 0 - - status, axis.data = NXgetdata(self.nxhandle) - status, axis.gridinfo, type = NXgetattr(self.nxhandle, "cursor", NX_INT32) - if status != 1: - print "axis gridinfo not found in nxfile %s"%(self.nxcachefile) - print "WARNING: initializing to Null -> ax data gets overwritten" - axis.gridinfo = 0 - status = NXclosedata(self.nxhandle) - - #status = NXopendata(self.nxhandle, axis.name+"_gridinfo") - #if status!=1: - # print "axis gridinfo not found in nxfile %s"%(self.nxcachefile) - # print "WARNING: initializing to Null -> ax data gets overwritten" - # axis.gridinfo = 0 - # return 0 - #status,rank,dims,nxtype = NXgetinfo(self.nxhandle) - #if nxtype != NX_INT32: - # print "types don't match. cannot load data set" - # return 0 - #if dims != [1]: - # print "dimensions don't match. cannot load data set" - # return 0 - - #status, axis.gridinfo = NXgetdata(self.nxhandle) - #status = NXflush(self.nxhandle) - #status = NXclose(self.nxhandle) - - self.nxhandle = None - axis.trimAxDataToGridinfo() - return 1 - - -def pathStringToList(pathstr): - pathlist = string.split(pathstr, "/") - for i in range(len(pathlist)): - pair = string.split(pathlist[i], ":", 2) - if len(pair)>1: - pathlist[i] = (pair[0], pair[1]) - else: - pathlist[i] = (pair[0], "") - return pathlist diff --git a/contrib/bindings/nxpylib/nxpylib/nxfile.py b/contrib/bindings/nxpylib/nxpylib/nxfile.py deleted file mode 100644 index 2ff698ab..00000000 --- a/contrib/bindings/nxpylib/nxpylib/nxfile.py +++ /dev/null @@ -1,824 +0,0 @@ -#!/usr/bin/python - -import sys -import cPickle -import types -import time -from string import * - -from nexus import * - -import nxtemplates -import nxparse - -from nxcomponents import * -from nxobjects import * -from nxclasses import * - - - -class NXfile: - FLAT = 0 - DEEP = 1 - - def __init__(self, filename, mode, template=""): - if template != "": - if mode == NXACC_CREATE5: - self.readFromXMLTemplate(template, filename) - mode = NXACC_RDWR - status, self.handle = NXopen(filename, mode) - if status != 1: - print "Error. can't open file: %s" %(filename) - self.root = self.readRoot() - - - - def readRoot(self): - return self.readSingleGroup("root", "NXroot", self.FLAT, [("root","NXroot")]) - - - def getRoot(self): - return self.root - - - def save(self): - self.writeGroup(self.root) - - - - def readGroup(self, pathstr, mode=DEEP): - pathlist = self.pathStringToList(pathstr) - - group = self.readGroupFromFile(pathlist, mode) - - if group ==0: - group = None - - return group - - - - def readGroupFromFile(self, pathlist, mode): - if self.handle == None: - print "Error: handle hasn't been initialized yet" - return 0 - - if not self.pathValid(pathlist): - return 0 - - if not self.openPath(pathlist): - return 0 - - groupname = pathlist[len(pathlist)-1][0] - groupclass = pathlist[len(pathlist)-1][1] - - if groupclass[0:2] != "NX": - print "invalid path string. " - return 0 - - group = self.readSingleGroup(groupname, groupclass, mode, pathlist) - return group - - - def readSingleGroup(self, groupname, groupclass, mode, pathlist): - #print "pathlist init: ", pathlist - group = None - groups = {} - elems = {} - attrs = {} - - #first read attributes - status = NXinitattrdir(self.handle) - if status != 1: - print "NXinitattrdir failed" - return 0 - - status, nattrs = NXgetattrinfo(self.handle) - if status == 1: - for i in range(nattrs): - status,name,length,ntype = NXgetnextattr(self.handle) - if status != 1: - print "NXgetnextattr failed" - continue - status,value,ntype = NXgetattr(self.handle, name, ntype) - if status != 1: - print "NXgetattr failed" - continue - - if nxtemplates.group_types[groupclass].hasAttr(name): - attrs[name] = NXattr(path=pathlist, name=name, value=value, nxtype=ntype) - else: - pass - #print "group %s has no attribute %s "%(groupclass, name) - - #now read data and groups - status, nitems, namepath, nxclass = NXgetgroupinfo(self.handle) - if status != 1: - print "NXgetgroupinfo failed" - return 0 - names = split(namepath, "/") - name = names[len(names)-1] - #print "getgroupinfo returned: ", status, nitems, name, nxclass - status = NXinitgroupdir(self.handle) - if status != 1: - print "NXinitgroupdir failed" - return 0 - - #print "\n\n\nnitems: ", nitems - for i in range(nitems): - status,ename,nxclass,ntype = NXgetnextentry(self.handle) - if status != 1: - print "NXgetnextentry failed .unknown class %s"%(nxclass) - continue - if nxclass == "SDS": - #got a Data Set - if groupclass != "NXdata": - if not nxtemplates.group_types[groupclass].hasElem(ename): - print "group %s of class %s has no elem %s "%(groupname,groupclass, ename) - continue - - status = NXopendata(self.handle, ename) - if status !=1: - print "opening dataset %s failed"%(ename) - continue - - #get all attributes of data set - elemattrs = {} - status = NXinitattrdir(self.handle) - if status !=1: - print "NXinitattrdir failed" - continue - status, nattrs = NXgetattrinfo(self.handle) - #print "NXgetattrinfo returned: ", status, nattrs - if status !=1: - print "NXgetattrinfo failed" - continue - - for j in range(nattrs): - status,attname,length,atttype = NXgetnextattr(self.handle) - if status != 1: - print "NXgetnextattr failed" - continue - status,attvalue,atttype = NXgetattr(self.handle, attname, atttype) - if status != 1: - print "NXgetattr failed" - continue - - if groupclass != "NXdata": - if not nxtemplates.group_types[groupclass].elems[ename].hasAttr(attname): - #print "elem %s has no attribute %s "%(ename, attname) - continue - - nlist=pathlist[:] - nlist.append((ename,"SDS")) - elemattrs[attname] = NXattr(path=nlist, name=attname, value=attvalue, nxtype=atttype) - - - - - #get data set information - status, rank, dims, elemtype = NXgetinfo(self.handle) - #print "NXgetinfo returned: ", status, rank, dims, elemtype - - if groupclass != "NXdata": - #check dims - temp_dims = nxtemplates.group_types[groupclass].elems[ename].dims - if len(temp_dims) != len(dims): - print "dimensions don't match, elem %s not loaded"%(ename) - continue - for i in range(len(temp_dims)): - if temp_dims[i] >= 0: - if dims[i] != temp_dims[i]: - if type(temp_dims[i]) != types.StringType: - print "WARNING: dimension ranges don't match, elem %s loaded though."%(ename) - else: - pass - #print "WARNING: dimension has to match other dim values declared with",temp_dims[i] - #check type - #print elemtype, nxtemplates.group_types[groupclass].elems[ename].types - if elemtype not in nxtemplates.group_types[groupclass].elems[ename].types: - print "type of elem %s in group %s doesn't match DTD"%(ename, groupclass) - continue - - # build path - nlist=pathlist[:] - nlist.append((ename,"SDS")) - - if groupclass == "NXdata": - if elemattrs.has_key("signal"): - elems[ename] = NXdataelem( path=nlist, - name=ename, - nxtype=elemtype, - dims=dims, - attrs=elemattrs) - else: - if elemattrs.has_key("axis") or ename != "errors": - elems[ename] = NXaxis ( name=ename, - nxtype=elemtype, - dims=dims, - attrs=elemattrs) - else: - # this must be the "errors" of the data - elems[ename] = NXelem( path=nlist, - name=ename, - nxtype=elemtype, - dims=dims, - attrs=elemattrs) - - - else: - elems[ename] = NXelem( path=nlist, - name=ename, - nxtype=elemtype, - dims=dims, - attrs=elemattrs) - - #get data of data set - status, data = NXgetdata(self.handle) - if status != 1: - print "NXgetdata failed" - continue - #print "NXgetdata returned: ", status, data - elems[ename].setData(data) - - elif nxclass[0:2] == "NX" and mode==self.DEEP: - # Group - #print "step from %s into subgroup %s"% (groupclass, ename) - if nxtemplates.group_types[groupclass].hasGroup(nxclass): - if nxtemplates.group_types[groupclass].groups[nxclass].maxOccur < 2: - found = 0 - for g in groups.keys(): - if groups[g].group.nxclass == nxclass: - print "only one group of class %s allowed in groups of class %s"%(nxclass, groups[g].group.nxclass) - found = 1 - break - if found == 1: - continue - #print "opening group: %s %s"%(ename, nxclass) - status = NXopengroup(self.handle, ename, nxclass) - if status ==1: - #print "reading subbranch: %s"%(ename) - nlist = pathlist[:] - nlist.append((ename,nxclass)) - groups[ename] = self.readSingleGroup(ename, nxclass, mode, nlist) - - #print "ok, now build group %s %s" %(groupname, groupclass) - group = NXgroup(path=pathlist, name=groupname, nxclass=groupclass, attrs=attrs, elems=elems, groups=groups) - status = NXclosegroup(self.handle) - #print "group path check",group.path - return nx_classes[groupclass](group=group) - - - def readSubGroup(self, metagroup, subgroupid): - subgrouptuple = split(subgroupid, ":", 2) - subgrouppath = metagroup.group.path[:] - subgrouppath.append((subgrouptuple[0], subgrouptuple[1])) - subgroup = self.readGroupFromFile(subgrouppath, self.FLAT) - if subgroup != 0: - metagroup.setGroup(subgroup) - return subgroup - - - def readElem(self, pathstr): - pathlist = self.pathStringToList(pathstr) -# pathlist = split(pathstr, "/") -# for i in range(len(pathlist)): -# pair = split(pathlist[i], ":", 2) -# pathlist[i] = (pair[0], pair[1]) - - elem = self.readElemFromFile(pathlist) - if elem == 0: - elem = None - return elem - - - - def readElemFromFile(self, pathlist): - if self.handle == None: - print "Error: handle hasn't been initialized yet" - return 0 - - elemname = pathlist[len(pathlist)-1][0] - elemclass = pathlist[len(pathlist)-1][1] - - if elemclass != "SDS": - print "invalid path string. " - return 0 - - if not self.pathValid(pathlist): - return 0 - - if not self.openPath(pathlist): - return 0 - - groupname = pathlist[len(pathlist)-2][0] - groupclass = pathlist[len(pathlist)-2][1] - - attrs = {} - - #first read attributes - status = NXinitattrdir(self.handle) - status, nattrs = NXgetattrinfo(self.handle) - #print "number of attributes %d"%nattrs - if status == 1: - for i in range(nattrs): - status,attname,length,type = NXgetnextattr(self.handle) - if status == 1: - status,value,type = NXgetattr(self.handle, attname, type) - if status == 1: - if nxtemplates.group_types[groupclass].elems[elemname].hasAttr(attname): - attrs[attname] = NXattr(path=pathlist, name=attname, value=value, nxtype=type) - else: - print "elem %s has no attribute %s "%(elemname, attname) - else: - print "NXerror getting attribute value" - else: - print "NXerror fetching next attribute" - - #get data set information - status, rank, dims, elemtype = NXgetinfo(self.handle) - #print "NXgetinfo returned: ", status, rank, dims, elemtype - - #check element dimensions - temp_dims = nxtemplates.group_types[groupclass].elems[elemname].dims - if len(temp_dims) != len(dims): - print "dimensions don't match, elem %s not loaded"%(elemname) - return 0 - #check type - #print elemtype, nxtemplates.group_types[groupclass].elems[elemname].types - if elemtype not in nxtemplates.group_types[groupclass].elems[elemname].types: - print "type of elem %s in group %s doesn't match DTD"%(elemname, groupclass) - return 0 - - for i in range(len(temp_dims)): - if temp_dims[i] >= 0: - if dims[i] != temp_dims[i]: - print "WARNING: dimension ranges don't match, elem %s loaded though."%(elemname) - - elem = NXelem(path=pathlist, name=elemname, nxtype=elemtype, dims=dims, attrs=attrs) - - #get data of data set - status, data = NXgetdata(self.handle) - #print "NXgetdata returned: ", status, data - if status == 1: - elem.setData(data) - - status = NXclosedata(self.handle) - return elem - - - - def readData(self, pathstr): - pathlist = self.pathStringToList(pathstr) -# pathlist = split(pathstr, "/") -# for i in range(len(pathlist)): -# pair = split(pathlist[i], ":", 2) -# pathlist[i] = (pair[0], pair[1]) - - if not self.pathValid(pathlist): - return 0 - - if self.handle == None: - print "Error: handle hasn't been initialized yet" - return 0 - - elemname = pathlist[len(pathlist)-1][0] - elemclass = pathlist[len(pathlist)-1][1] - - if elemclass != "SDS": - print "invalid path string. " - return 0 - - if not self.openPath(pathlist): - return 0 - - #get data of data set - status, data = NXgetdata(self.handle) - #print "NXgetdata returned: ", status, data - if status != 1: - return status - - status = NXclosedata(self.handle) - return data - - - - def readAttr(self, pathstr): - pathlist = self.pathStringToList(pathstr) -# pathlist = split(pathstr, "/") -# for i in range(len(pathlist)): -# pair = split(pathlist[i], ":", 2) -# if len(pair)>1: -# pathlist[i] = (pair[0], pair[1]) -# else: -# pathlist[i] = (pair[0], "") - - attr = self.readAttrFromFile(pathlist) - - if attr == 0: - attr = None - - return attr - - - - def readAttrFromFile(self, pathlist): - if self.handle == None: - print "Error: handle hasn't been initialized yet" - return 0 - - attname = pathlist[len(pathlist)-1][0] - pathlist = pathlist[:len(pathlist)-1] - - if not self.pathValid(pathlist): - return 0 - - if not self.openPath(pathlist): - return 0 - - parentname = pathlist[len(pathlist)-1][0] - parentclass = pathlist[len(pathlist)-1][1] - - groupname = pathlist[len(pathlist)-2][0] - groupclass = pathlist[len(pathlist)-2][1] - - attr = None - - #first get type - status = NXinitattrdir(self.handle) - status, nattrs = NXgetattrinfo(self.handle) - if status == 1: - for i in range(nattrs): - status,aname,length,type = NXgetnextattr(self.handle) - if status == 1: - if aname == attname: - break - else: - print "cannot determine attr type " - break - - # now read attribute - status,value,type = NXgetattr(self.handle, attname, attname) - if status == 1: - if parentclass == "SDS": - if not nxtemplates.group_types[groupclass].elems[parentname].hasAttr(attname): - print "elem %s has no attribute %s "%(parentname, attname) - return 0 - elif parentclass[0:2]=="NX": - if not nxtemplates.group_types[parentclass].hasAttr(attname): - print "group %s has no attribute %s "%(parentclass, attname) - return 0 - attr = NXattr(path=pathlist, name=attname, value=value, nxtype=type) - else: - print "NXerror getting attribute value" - - status = NXclosedata(self.handle) - return attr - - - - def writeGroup(self, metagroup, mode=DEEP): - #print "writing metagroup: ", metagroup - return self.writeGroupToFile(metagroup.group, mode) - - - def writeGroupToFile(self, group, mode): - #print "writing group: ", group - if self.handle == None: - print "Error: handle hasn't been initialized yet" - return 0 - - if group.path[len(group.path)-1][1][0:2] != "NX": - return 0 - - if not self.pathValid(group.path): - print "path is NOT valid\n\n" - return 0 - - parentpath = group.path[:len(group.path)-1] - if not self.openPath(parentpath): - return 0 - - return self.writeSingleGroup(group, mode) - - - def writeSingleGroup(self, group, mode): - # first check if group already exists ... - #print "path:", group.path - groupname = group.path[len(group.path)-1][0] - groupclass = group.path[len(group.path)-1][1] - #print "writeSingleGroup: ", group.name, groupname, groupclass - - if groupclass != "NXroot": - status = NXinitgroupdir(self.handle) - status, nitems, path, parent_nxclass = NXgetgroupinfo(self.handle) - found = 0 - for i in range(nitems): - status, name, nxclass, nxtype = NXgetnextentry(self.handle) - if nxclass == groupclass: - #check if group exists - if name == groupname: - #print "group exists" - status = NXopengroup(self.handle, groupname, groupclass) - found = 1 - else: - # check maxxoccur - if nxtemplates.group_types[parent_nxclass].groups[nxclass].maxOccur < 2: - print "only one group of class %s allowed in groups of class %s"%(nxclass, parent_nxclass) - return 0 - if found == 0: - status = NXmakegroup(self.handle, groupname, groupclass) - if status != 1: - print "NXmakegroup failed" - return 0 - status = NXopengroup(self.handle, groupname, groupclass) - if status != 1: - "NXopengroup failed" - return 0 - - #first write attributes - if group.attrs != None: - for attname in group.attrs.keys(): - attval = group.attrs[attname].getValue() - atttype = group.attrs[attname].getType() - attlength = group.attrs[attname].getLength() - - if attval != None: - status = NXputattr(self.handle, attname, attval, atttype) - if status !=1: - print "NXputattr failed: ", attname, attval, atttype - - - #print "group elems:", group.elems - #now write data and groups - if group.elems != None: - for elemname in group.elems.keys(): - elemdata = group.elems[elemname].getData() - elemtype = group.elems[elemname].getType() - elemrank = group.elems[elemname].getRank() - elemdims = group.elems[elemname].getDims() - #get rid of -1 in dims - for i in range(len(elemdims)): - if elemdims[i] == -1: - elemdims[i] = 1024 - #check if elem already exists - status = NXinitgroupdir(self.handle) - status, nitems, path, parent_nxclass = NXgetgroupinfo(self.handle) - found = 0 - for i in range(nitems): - status, name, nxclass, nxtype = NXgetnextentry(self.handle) - #print "nxclass", name, nxclass - if nxclass == "SDS": - #check if group exists - if name == elemname: - status = NXopendata(self.handle, elemname) - found = 1 - break - if found == 0: - #print "elem wasn't found -> create it", elemname, elemtype, elemrank, elemdims - status = NXmakedata(self.handle, elemname, elemtype, elemrank, elemdims) - if status != 1: - print "couldn't create Data set", elemname, elemtype, elemrank, elemdims - continue - status = NXopendata(self.handle, elemname) - if status != 1: - print "NXopendata failed" - continue - - #data set must be open now, so put data and attributes - status = NXputdata(self.handle, elemdata) - if status != 1: - print "failed to set data" - - #now for the attributes - if group.elems[elemname].attrs != None: - if len(group.elems[elemname].attrs) > 0: - #print "group.elems[elemname].attrs:", group.elems[elemname].attrs - for attname in group.elems[elemname].attrs.keys(): - attval = group.elems[elemname].attrs[attname].getValue() - atttype = group.elems[elemname].attrs[attname].getType() - attlength = group.elems[elemname].attrs[attname].getLength() - - if attval != None: - #print "setting attribute" - status = NXputattr(self.handle, attname, attval, atttype) - if status !=1: - print "NXputattr failed: ", attname, attval, atttype - ret = 1 - #ok, now for the subgroups - if mode==self.DEEP: - if group.groups != None: - for groupname in group.groups.keys(): - #print "writing of group ",groupname - #print "instance ",group.groups[groupname].group - ret = self.writeSingleGroup(group.groups[groupname].group, mode) - if ret != 1: - print "writing of group %s failed"%(groupname) - ret = 0 - status = NXclosegroup(self.handle) - return ret - - - def writeElem(self, elem): - if self.handle == None: - print "Error: handle hasn't been initialized yet" - return 0 - if elem.path[len(elem.path)-1][1] != "SDS": - elem.path.append((elem.getName(), "SDS")) - - if not self.pathValid(elem.path): - print "path is NOT valid\n\n" - return 0 - - parentpath = elem.path[:len(elem.path)-1] - if not self.openPath(parentpath): - return 0 - - elemname = elem.getName() - elemdata = elem.getData() - elemtype = elem.getType() - elemrank = elem.getRank() - elemdims = elem.getDims() - - #check if elem already exists - status = NXinitgroupdir(self.handle) - status, nitems, path, parent_nxclass = NXgetgroupinfo(self.handle) - found = 0 - for i in range(nitems): - status, name, nxclass, nxtype = NXgetnextentry(self.handle) - if nxclass == "SDS": - #check if group exists - if name == elemname: - status = NXopendata(self.handle, elemname) - found = 1 - break - if found == 0: - status = NXmakedata(self.handle, elemname, elemtype, elemrank, elemdims) - if status != 1: - print "couldn't create Data set", elemname, elemtype, elemrank, elemdims - return 0 - status = NXopendata(self.handle, elemname) - - if status != 1: - return 0 - - #data set must be open now, so put data and attributes - status = NXputdata(self.handle, elemdata) - if status != 1: - print "failed to set data" - return 0 - - #now for the attributes - for attname in elem.attrs.keys(): - attval = elem.attrs[attname].getValue() - atttype = elem.attrs[attname].getType() - attlength = elem.attrs[attname].getLength() - #print "attlength: ", attlength - if attval != None: - status = NXputattr(self.handle, attname, attval, atttype) - if status !=1: - print "NXputattr failed: ", attname, attval, atttype - return 0 - return 1 - - - - def writeAttr(self, attr): - if self.handle == None: - print "Error: handle hasn't been initialized yet" - return 0 - - if not self.pathValid(attr.path): - return 0 - - if not self.openPath(attr.path): - return 0 - - #write attribute - attval = attr.getValue() - atttype = attr.getType() - attlength = attr.getLength() - - if attval != None: - status = NXputattr(self.handle, attname, attval, atttype) - if status !=1: - print "NXputattr failed: ", attname, attval, atttype - return 0 - return 1 - - - def writeData(self, elem): - if self.handle == None: - print "Error: handle hasn't been initialized yet" - return 0 - - if elem.path[len(elem.path)-1][1] != "SDS": - elem.path.append((elem.getName(), "SDS")) - - if not self.pathValid(elem.path): - print "path is NOT valid\n\n" - return 0 - - parentpath = elem.path[:len(elem.path)-1] - if not self.openPath(parentpath): - return 0 - - elemname = elem.getName() - elemdata = elem.getData() - - #check if elem already exists - status = NXopendata(self.handle, elemname) - if status != 1: - return 0 - - #data set must be open now, so put data and attributes - status = NXputdata(self.handle, elemdata) - if status != 1: - print "failed to set data" - return 0 - - return 1 - - - - def pathValid(self, pathlist): - # TODO check root !!!! - if len(pathlist) == 1 and pathlist[0][1] != "NXroot": - if not nxtemplates.group_types["NXroot"].hasGroup(pathlist[0][1]): - return 0 - for i in range(len(pathlist)-1): - if pathlist[i+1][1][0:2] == "NX": - if not nxtemplates.group_types[pathlist[i][1]].hasGroup(pathlist[i+1][1]): - return 0 - elif pathlist[i+1][1] =="SDS": - if not nxtemplates.group_types[pathlist[i][1]].hasElem(pathlist[i+1][0]): - return 0 - elif pathlist[i+1][1] == "": - if pathlist[i][1][0:2] == "NX": - if not nxtemplates.group_types[pathlist[i][1]].hasAttr(pathlist[i+1][0]): - return 0 - elif pathlist[i][1] == "SDS": - if not nxtemplates.group_types[pathlist[i-1][1]].elems[pathlist[i][0]].hasAttr(pathlist[i+1][0]): - return 0 - else: - return 0 - else: - return 0 - return 1 - - - - def openPath(self, path): - if not self.closePath(): - return 0 - - path2 = path[1:] - for groupitem in path2: - if groupitem[1][0:2]=="NX": - status = NXopengroup(self.handle, groupitem[0], groupitem[1]) - elif groupitem[1] == "SDS": - status = NXopendata(self.handle, groupitem[0]) - else: - return 0 - - if status != 1: - return 0 - - return 1 - - - def closePath(self): - status, nitems, name, nxclass = NXgetgroupinfo(self.handle) - while nxclass!="NXroot": - if nxclass == "SDS": - if not NXclosedata(self.handle): - return 0 - else: - if not NXclosegroup(self.handle): - return 0 - status,numelems, name, nxclass = NXgetgroupinfo(self.handle) - return 1 - - - def pathStringToList(self, pathstr): - pathlist = split(pathstr, "/") - for i in range(len(pathlist)): - pair = split(pathlist[i], ":", 2) - if len(pair)>1: - pathlist[i] = (pair[0], pair[1]) - else: - pathlist[i] = (pair[0], "") - return pathlist - - - def close(self): - status = NXflush(self.handle) - stauts = NXclose(self.handle) - return status - - - def readFromXMLTemplate(self, template, filename): - nxf = nxparse.NXfactory() - return nxf.readFromXMLTemplate(template, filename) - - diff --git a/contrib/bindings/nxpylib/nxpylib/nxobjects.py b/contrib/bindings/nxpylib/nxpylib/nxobjects.py deleted file mode 100644 index f7842111..00000000 --- a/contrib/bindings/nxpylib/nxpylib/nxobjects.py +++ /dev/null @@ -1,41 +0,0 @@ -from nxclasses import * - - - - - -nx_classes={} -nx_classes['NXaperture']=NXaperture -nx_classes['NXattenuator']=NXattenuator -nx_classes['NXbeam']=NXbeam -nx_classes['NXbeamstop']=NXbeamstop -nx_classes['NXcrystal']=NXcrystal -nx_classes['NXdata']=NXdata -nx_classes['NXdetector']=NXdetector -nx_classes['NXdisc_chopper']=NXdisc_chopper -nx_classes['NXentry']=NXentry -nx_classes['NXenvironment']=NXenvironment -nx_classes['NXevent_data']=NXevent_data -nx_classes['NXfermi_chopper']=NXfermi_chopper -nx_classes['NXfilter']=NXfilter -nx_classes['NXflipper']=NXflipper -nx_classes['NXgeometry']=NXgeometry -nx_classes['NXguide']=NXguide -nx_classes['NXinstrument']=NXinstrument -nx_classes['NXlog']=NXlog -nx_classes['NXmirror']=NXmirror -nx_classes['NXmoderator']=NXmoderator -nx_classes['NXmonitor']=NXmonitor -nx_classes['NXnote']=NXnote -nx_classes['NXorientation']=NXorientation -nx_classes['NXpolarizer']=NXpolarizer -nx_classes['NXroot']=NXroot -nx_classes['NXsample']=NXsample -nx_classes['NXsensor']=NXsensor -nx_classes['NXshape']=NXshape -nx_classes['NXsource']=NXsource -nx_classes['NXtranslation']=NXtranslation -nx_classes['NXuser']=NXuser -nx_classes['NXvelocity_selector']=NXvelocity_selector -nx_classes['NXcollimator']=NXcollimator -nx_classes['NXprocess']=NXprocess diff --git a/contrib/bindings/nxpylib/nxpylib/nxparse.py b/contrib/bindings/nxpylib/nxpylib/nxparse.py deleted file mode 100644 index b594f15e..00000000 --- a/contrib/bindings/nxpylib/nxpylib/nxparse.py +++ /dev/null @@ -1,1060 +0,0 @@ -#!/usr/bin/python -import sys -import libxml2 -import string -import os -import time -import types - -from nexus import * -from nxtemplatecomponents import * - - - -class NXfactory: - - def __init__(self, metagroup=None, nxstructfile="", nxclassfile="", dictclassfile=""): - if metagroup == None: - self.metagroup = NXgroup_type("", 0, 0, None, None, None) - else: - self.metagroup = metagroup - self.nxclassfile = nxclassfile - self.nxstructfile = nxstructfile - self.dictclassfile = dictclassfile - self.buildTypeDict() - - - def readFromXMLTemplate(self, template, filename): - if not self.fileExists(template): - print "error: template file %s found" %(template) - return 0 - - doc = libxml2.parseFile(template) - - if doc.name != template: - print "doc.name failed" - sys.exit(1) - - root = doc.children - while root.type=="comment": - root = root.next - - self.metagroup.nxclass = root.name - - status, nxhandle = NXopen(filename, NXACC_CREATE5) - #print "opening filename", filename - - nxhandle = self.parseTemplateRootAttrs(root, nxhandle) - nxhandle = self.parseTemplateNode(root.children, nxhandle) - - links = [] - links = self.getLinks(root.children, links) - print "links: ", links - if len(links) > 0 and nxhandle != None and nxhandle != 0: - self.makeLinks(links, nxhandle) - - doc.freeDoc() - - try: - status = NXflush(nxhandle) - if status != 1: - print "warning: flushing NeXus file failed" - status = NXclose(nxhandle) - if status != 1: - print "warning: closing Nexus file failed" - except: - print "warning: closing Nexus file failed" - - - def getLinks(self, item, links): - """ running through the xml tree using libxml2""" - while item != None: - if item.type == "element": - if item.name[0:2] == "NX": - # Group - links = self.getLinks(item.children, links) - else: - # SDS - if item.properties != None: - for att in item.properties: - if att.type == "attribute": - if att.name == "NAPIlink": - path = "" - parent = item.parent - while parent != None: - if parent.name == "NXroot": - break - if path == "": - path = parent.name - else: - path = parent.name + "/"+path - parent = parent.parent - links.append([path, att.content]) - - item=item.next - return links - - - def makeLinks(self, links, nxhandle): - for a in links: - nxhandle = self.resetHandle(nxhandle) - src_items = a[0].split("/") - tgt_items = a[1].split("/") - nxID = self.getID(tgt_items, nxhandle) - if nxhandle != None and nxhandle != 0: - nxhandle = self.resetHandle(nxhandle) - if nxID != None: - nx_handle = self.getHandle(src_items, nxhandle) - if nx_handle != None: - status = NXmakelink(nx_handle, nxID) - print "makelink status: ", status - - - def resetHandle(self, nxhandle): - status, nitems, path, nxclass = NXgetgroupinfo(nxhandle) - while nxclass != "NXroot": - status = NXclosegroup(nxhandle) - status, nitems, path, nxclass = NXgetgroupinfo(nxhandle) - status = NXinitgroupdir(nxhandle) - return nxhandle - - - def getHandle(self, items, nxhandle): - nx_handle=None - status, nitems, path, nxclass = NXgetgroupinfo(nxhandle) - status = NXinitgroupdir(nxhandle) - - for a in range(nitems): - status, name, nxclass, type = NXgetnextentry(nxhandle) - if nxclass[0:2] == "NX": - # Group - if name == items[0] or nxclass == items[0]: - status = NXopengroup(nxhandle, name, nxclass) - if len(items)==1: - return nxhandle - else: - nx_handle = self.getHandle(items[1:], nxhandle) - return nx_handle - else: - # SDS - if name == items[0]: - if len(items)==1: - status = NXopendata(nxhandle, name) - return nxhandle - else: - return None - return nx_handle - - - def getID(self, items, nxhandle): - link = None - status, nitems, path, nxclass = NXgetgroupinfo(nxhandle) - status = NXinitgroupdir(nxhandle) - - for a in range(nitems): - status, name, nxclass, type = NXgetnextentry(nxhandle) - if nxclass[0:2] == "NX": - # Group - if name == items[0] or nxclass == items[0]: - if len(items)==1: - return None - else: - status = NXopengroup(nxhandle, name, nxclass) - link = self.getID(items[1:], nxhandle) - return link - else: - # SDS - if name == items[0]: - if len(items) ==1: - status = NXopendata(nxhandle, name) - status, link = NXgetdataID(nxhandle) - return link - else: - return None - return link - - - def parseTemplateRootAttrs(self, item, nxhandle): - if item.properties != None: - for att in item.properties: - if att.type == "attribute": - # got an attribute - #todo: convert attcontent to type !!!! - #too complicated -> where to get type info !?!? - #always treat attributes as strings - #alternatively: check if string may be converted to float or int - NXputattr(nxhandle, att.name, self.convertXMLToNXAtt(att.content), NX_CHAR) - return nxhandle - - - def parseTemplateNode(self, item, nxhandle): - """ running through the xml tree using libxml2""" - while item != None: - if item.type == "element": - if item.name[0:2] == "NX": - if item.properties != None: - for att in item.properties: - if att.type == "attribute": - if att.name != "name": - #print "putting a group element attribute", att.name, att.content - NXputattr(nxhandle, att.name, att.content, NX_CHAR) - - if item.name[0:2] == "NX": #NXgroup - groupname = item.name - if item.properties != None: - for att in item.properties: - if att.type == "attribute": - if att.name == "name": - groupname = att.content - #make group - #print "making group", groupname, item.name - status = NXmakegroup(nxhandle, groupname, item.name) - if status != 1: - print "creating group %s of class %s failed"%(groupname, item.name) - return 0 - #open group - #print "try to open group" - status = NXopengroup(nxhandle, groupname, item.name) - if status != 1: - print "opening group %s of class %s failed"%(groupname, item.name) - return 0 - #print "stepping a level deeper", item.name, groupname - nxhandle = self.parseTemplateNode(item.children, nxhandle) - if nxhandle == 0: - return 0 - - #print "closing group" - NXclosegroup(nxhandle) - - else: #SDS - #print "name", item.name - try: - elemcontent = item.children.listGetString(item.doc, 1) - except: - elemcontent = None - - attrs = None - elemtype = NX_CHAR - elemdims = [] - - napilink = False - - if item.properties != None: - for att in item.properties: - if att.type == "attribute": - if att.name == "NAPIlink": - napilink = True - break - attcontent = att.content - if att.name == "type": - dimstring = att.content - if string.find(attcontent, "[")>-1: - dimstring = attcontent[string.find(attcontent, "[")+1:string.find(attcontent[0], "]")] - if string.find(dimstring, ",")>-1: - tdims = map(string.strip, string.split(dimstring, ",")) - for i in range(len(tdims)): - if tdims[i] != "": - try: - elemdims.append(string.atoi(tdims[i])) - except: - elemdims.append(1) - - #if tdims[i][0] >= "0" and tdims[i][0] <="9": - # elemdims.append(string.atoi(tdims[i])) - #else: - # elemdims.append(tdims[i]) - else: - try: - elemdims = [int(dimstring)] - except: - elemdims = None - else: - elemdims = None - - if string.find(attcontent, "[")>-1: - cutstring = attcontent[string.find(attcontent, "["):string.find(attcontent, "]")+1] - if cutstring != "": - typestring = string.replace(attcontent, cutstring, "") - elemtype = self.StringToNXType(self.correctTypeString(typestring)) - else: - elemtype = self.StringToNXType(self.correctTypeString(attcontent)) - - - if elemdims == None or dimstring=="": - if elemtype == NX_CHAR: - elemdims = [len(elemcontent)] - else: - elemdims = [1] - - break - if napilink == True: - napilink = False - item = item.next - continue - - if elemtype == NX_CHAR and elemdims==[]: - elemdims = [len(elemcontent)] - - #make data set - status = NXmakedata(nxhandle, item.name, elemtype, len(elemdims), elemdims) - if status != 1: - print "making data set %s failed. aborting"%(item.name) - return 0 - #open dataset - status = NXopendata(nxhandle, item.name) - if status != 1: - print "opening data set %s failed. aborting"%(item.name) - return 0 - #put data - if elemcontent != None: - print "putting data:", elemcontent - sds_data = self.convertXMLToNXData(elemcontent, elemdims, elemtype) - status = NXputdata(nxhandle, sds_data) - if status != 1: - print "putting data to dataset %s failed. aborting"%(item.name) - return 0 - #print "data put into ", item.name, self.convertXMLToNXData(elemcontent, elemdims, elemtype) - #in case of numeric type and string content save content as description attribute ... - if len(elemcontent)!=0 and len(sds_data)==0: - if elemtype != NX_CHAR: - NXputattr(nxhandle, "description", elemcontent, NX_CHAR) - - else: - print "elemcontent of ", item.name, " was None" - - if item.properties != None: - for att in item.properties: - if att.type == "attribute": - if att.name != "type": - #print "'%s'"%(att.name) - #print "putting an attribute", att.name, att.content - NXputattr(nxhandle, att.name, att.content, NX_CHAR) - status = NXclosedata(nxhandle) - if status != 1: - print "closing dataset %s failed"%(item.name) - return 0 - #print " " - item = item.next - return nxhandle - - - - def convertXMLToNXData(self, xmldata, dims, type): - int_types = [NX_INT8, NX_UINT8, NX_INT16, NX_UINT16, NX_INT32, NX_UINT32] - float_types = [NX_FLOAT32, NX_FLOAT64] - str_types = [NX_CHAR] - - totaldimcounts = 1 - for i in range(len(dims)): - totaldimcounts = totaldimcounts*dims[i] - - if type in int_types: - ints = [] - int_toks = string.split(xmldata) - try: - for i in range(len(int_toks)): - ints.append(int(int_toks[i])) - - if totaldimcounts != len(ints): - print "warning: count of int data elems does not match dimensions", totaldimcounts, len(ints), xmldata - except: - #no integer data -> treat as comment string - pass - return ints - - elif type in float_types: - floats = [] - float_toks = string.split(xmldata) - try: - for i in range(len(float_toks)): - floats.append(float(float_toks[i])) - - if totaldimcounts != len(floats): - print "warning: count of float data elems does not match dimensions", totaldimcounts, len(floats), xmldata - except: - # no float data -> treat as comment string - pass - return floats - - elif type in str_types: - return xmldata - - - - def checkTypes(self, pytype, nxtype): - int_types = [NX_INT8, NX_UINT8, NX_INT16, NX_UINT16, NX_INT32, NX_UINT32] - float_types = [NX_FLOAT32, NX_FLOAT64] - str_types = [NX_CHAR] - - if pytype == types.IntType: - if not nxtype in int_types: - print "types don't match" - return 0 - elif pytype == types.LongType: - if not nxtype in int_types: - print "types don't match" - return 0 - elif pytype == types.FloatType: - if not nxtype in float_types: - print "types don't match" - return 0 - elif pytype == types.StringType: - if not nxtype in str_types: - print "types don't match" - return 0 - else: - print "unknown type:", - return 0 - - return 1 - - - def convertXMLToNXAtt(self, xmlvalue): - return xmlvalue - - - - def parseMetaDTD(self, xmlfilename): - """as the name supposes: just a test class for the xml python bindings of gnome""" - #open xml file and build dom tree - doc = libxml2.parseFile(xmlfilename) - if doc.name != xmlfilename: - print "doc.name failed" - sys.exit(1) - - root = doc.children - while root.type=="comment": - root = root.next - - self.metagroup.nxclass = root.name - self.getRootAttrs(root) - self.parseNxNode(root.children) - doc.freeDoc() - - - def getRootAttrs(self, item): - rootattrs = None - elemtype = NX_CHAR - if item.properties != None: - for att in item.properties: - if att.type == "attribute": - # got an attribute - print "ATTRIBUTE: ", att.name - attcontent = att.content - - if att.name == "type": - #extract dims and type - if string.find(attcontent, "{")>-1: - dims = attcontent[string.find(attcontent, "{")+1:string.find(attcontent, "}")] - elemtype = attcontent - continue - else: - print "attcontent..................................:", attcontent - if rootattrs == None: - rootattrs = {} - - if string.find(attcontent, "{")>-1: - info = attcontent[string.find(attcontent, "{")+1:string.find(attcontent, "}")] - desc = attcontent[string.rfind(attcontent, "{")+1:string.rfind(attcontent, "}")] - info = string.replace(info, "'", "\\'") - desc = string.replace(desc, "'", "\\'") - if string.find(attcontent, "{")==string.rfind(attcontent, "{"): - desc = "" - else: - info = "" - desc = "" - print "info: ", info - print "desc: ", desc - #strip description and info - if info != "": - attcontent = string.replace(attcontent, info, "") - if desc != "": - attcontent = string.replace(attcontent, desc, "") - attcontent = string.replace(attcontent, "{}", "") - #extract specifier - minOccur=1 - print "attcontent before specext: ", attcontent - if len(attcontent) > 0: - if attcontent[len(attcontent)-1] == "?": - attcontent = attcontent[:len(attcontent)-1] - minOccur=0 - print "attcontent after specext: ", attcontent - #extract enums/default values - print "attcontent before mapping: ", attcontent - if string.find(attcontent, "|")>-1: - enums = map(string.strip, string.split(attcontent, "|")) - else: - enums = [attcontent] - else: - enums = None - - if enums == [""] or enums == "": - enums = None - - attr = NXattr_type(name=att.name, info=info, desc=desc , minOccur=minOccur, enums=enums) - rootattrs[att.name] = attr - self.metagroup.attrs = rootattrs - - - - def parseNxNode(self, item): - """ running through the xml tree using libxml2""" - - while item != None: - if item.type == "element": - print "element: ", item.name - - grouptype = 0 - if item.properties != None: - for att in item.properties: - if att.type == "attribute": - if att.name == "type": - classtype = att.content+".xml" - if classtype in self.nxfiles: - grouptype = att.content - break - - if item.name[0:2] == "NX" or grouptype != 0: - #Got A Group - # adapt groups stored as typed elems - itemname = item.name - print "item: ", itemname - if grouptype != 0: - itemname = grouptype - if self.metagroup.groups == None: - self.metagroup.groups = {} - else: - # if it was stored previously simply continue and do nothing - # (not needed -> it simply gets overwritten by the same value) - #if itemname in self.metagroup.groups.keys(): - # item = item.next - # continue - self.metagroup.groups[itemname] = NXgroup_type(itemname, 0,0,None,None,None) - #if we got an NXtype elem we can not assume that no other elem with same type will follow - # so set max occurence to arbitrary - self.metagroup.groups[itemname].maxOccur = 2 - #got a group -> create group entry - # search for {} constructs -> remove them - # init groups - else: - occSpec = item.children.listGetString(item.doc, 1) - if string.find(occSpec, "{")>-1: - info = occSpec[string.find(occSpec, "{"):string.find(occSpec, "}")+1] - desc = occSpec[string.rfind(occSpec, "{"):string.rfind(occSpec, "}")+1] - if info != "": - occSpec = string.replace(occSpec, info, "") - if desc != "": - occSpec = string.replace(occSpec, desc, "") - occSpec = occSpec.strip() - if itemname != self.metagroup.nxclass: - if self.metagroup.groups == None: - self.metagroup.groups = {} - - self.metagroup.groups[itemname] = NXgroup_type(itemname, 0,0,None,None,None) - if occSpec == "*": - self.metagroup.groups[itemname].minOccur = 0 - self.metagroup.groups[itemname].maxOccur = 2 - elif occSpec == "+": - self.metagroup.groups[itemname].minOccur = 1 - self.metagroup.groups[itemname].maxOccur = 2 - elif occSpec == "?": - self.metagroup.groups[itemname].minOccur = 0 - self.metagroup.groups[itemname].maxOccur = 1 - elif occSpec == "": - self.metagroup.groups[itemname].minOccur = 1 - self.metagroup.groups[itemname].maxOccur = 1 - else: - print "unrecognized specifier %s. Maybe not a group?"%(occSpec) - - - else: - #Got a Data Set - print "got a Data Set" - -# the following implementation is quite quick and dirty -# it should to be cleaned and split up into functions and modules sometimes - - attrs = None - elemtypes = [NX_CHAR] - elemdims = [] - if item.properties != None: - for att in item.properties: - if att.type == "attribute": - # got an attribute - attcontent = att.content - print "ATTRIBUTE: ", att.name - if att.name == "type": - print "got a type attribute ......................." - #extract dims and type - # 1) check paranthesis - # 1.1) -1 for arbitrary dimension value (-> : or blank) - # 1.2) -2 for arbitrary dimension number - # 1.3) n for determined dimensions - # 1.4) no paranthesis mean [1] - # 2) - elemtypes = [] - type_tokens = [] - if string.find(attcontent, "|")>-1: - type_tokens = map(string.strip, string.split(attcontent, "|")) - else: - type_tokens = [attcontent] - - #get dim information from first type selection, extract and anaylse dimstring - #assumption -> '...' stands for arbitrary values -> adapt it for NXelem_type dims field - dimstring = type_tokens[0] - if string.find(type_tokens[0], "[")>-1: - dimstring = type_tokens[0][string.find(type_tokens[0], "[")+1:string.find(type_tokens[0], "]")] - if string.find(dimstring, ",")>-1: - tdims = map(string.strip, string.split(dimstring, ",")) - for i in range(len(tdims)): - if tdims[i]==":": - elemdims.append(-1) - elif tdims[i] != "": - if tdims[i][0] >= "0" and tdims[i][0] <="9": - elemdims.append(string.atoi(tdims[i])) - elif tdims[i] =="..." or tdims[i]==":...": - elemdims = [-2] - else: - elemdims.append(tdims[i]) - elif tdims[i] == "": - elemdims.append(-1) - else: - elemdims = [-1] - else: - elemdims = None - - if string.find(dimstring, "...")>-1: - elemdims = ["..."] - - if dimstring ==":": - elemdims = [-1] - - - #get types out of the strings - for i in range(len(type_tokens)): - tcontent = type_tokens[i] - if string.find(tcontent, "[")>-1: - cutstring = tcontent[string.find(tcontent, "["):string.find(tcontent, "]")+1] - if cutstring != "": - typestring = string.replace(tcontent, cutstring, "") - elemtypes.append(self.StringToNXType(self.correctTypeString(typestring))) - else: - elemtypes.append(self.StringToNXType(self.correctTypeString(tcontent))) - - - if dimstring == "": - if NX_CHAR in elemtypes: - elemdims=[-1] - else: - elemdims=[1] - - if elemdims == None: - if NX_CHAR in elemtypes: - elemdims=[-1] - else: - elemdims=[1] - - continue - - else: # no 'type' att -> normal attribute - - print "got a NONEtype attribute .......................: ", att.name - if attrs == None: - attrs = {} - info ="" - desc ="" - if string.find(attcontent, "{")>-1: - info = attcontent[string.find(attcontent, "{")+1:string.find(attcontent, "}")] - info = string.replace(info, "'", "\\'") - desc = attcontent[string.rfind(attcontent, "{")+1:string.rfind(attcontent, "}")] - desc = string.replace(desc, "'", "\\'") - if string.find(attcontent, "{")==string.rfind(attcontent, "{"): - desc = "" - else: - info = "" - desc = "" - print "info: ", info - print "desc: ", desc - #strip description and info - attcontent = att.content - if info != "": - attcontent = string.replace(attcontent, info, "") - if desc != "": - attcontent = string.replace(attcontent, desc, "") - attcontent = string.replace(attcontent, "{}", "") - #extract specifier - minOccur=1 - if len(attcontent)>0: - if attcontent[len(attcontent)-1] == "?": - attcontent = attcontent[:len(attcontent)-2] - minOccur=0 - #extract enums/default values - print "attcontent before mapping: ", attcontent - if string.find(attcontent, "|")>-1: - enums = map(string.strip, string.split(attcontent, "|")) - else: - enums = [attcontent] - else: - enums = None - if enums == [""] or enums == "": - enums = None - - attr = NXattr_type(name=att.name, info=info, desc=desc , minOccur=minOccur, enums=enums) - attrs[att.name] = attr - - #if no type attr is specified -> NX_CHAR[] is assumed - found = 0 - for att in item.properties: - if att.type == "attribute": - if att.name == "type": - found = 1 - if found == 0: - elemtypes = [NX_CHAR] - elemdims = [-1] - else: - if att.content == "ISO8601": - elemtypes = [NX_CHAR] - elemdims = [-1] - - else: #item.properties == None - elemtypes = [NX_CHAR] - elemdims = [-1] - - - elemcontent = item.children.listGetString(item.doc, 1) - if self.metagroup.elems == None: - self.metagroup.elems = {} - - if string.find(elemcontent, "{")>-1: - info = elemcontent[string.find(elemcontent, "{")+1:string.find(elemcontent, "}")] - desc = elemcontent[string.rfind(elemcontent, "{")+1:string.rfind(elemcontent, "}")] - info = string.replace(info, "'", "\\'") - desc = string.replace(desc, "'", "\\'") - info = string.replace(info, "\n", " ") - desc = string.replace(desc, "\n", " ") - if string.find(elemcontent, "{")==string.rfind(elemcontent, "{"): - desc = "" - else: - info = "" - desc = "" - print "info: ", info - print "desc: ", desc - #strip description and info - if info != "": - elemcontent = string.replace(elemcontent, info, "") - if desc != "": - elemcontent = string.replace(elemcontent, desc, "") - - elemcontent = string.replace(elemcontent, "{}", "") - #extract specifier - minOccur=1 - if len(elemcontent)>0: - if elemcontent[len(elemcontent)-1] == "?" or elemcontent[len(elemcontent)-1] == "*": - elemcontent = elemcontent[:(len(elemcontent)-1)] - minOccur=0 - #extract enums/default values - if string.find(elemcontent, "|")>-1: - enums = map(string.strip, string.split(elemcontent, "|")) - else: - enums = [elemcontent] - else: - enums = None - - if enums == [""] or enums=="": - enums = None - - print "types for elem ", item.name,"= " , elemtypes - print "dims for elem ", item.name,"= " , elemdims - elem = NXelem_type(name=item.name, types=elemtypes, dims=elemdims, info=info, desc=desc, minOccur=minOccur, enums=enums, attrs=attrs) - - self.metagroup.elems[item.name] = elem - item = item.next - - - - - def correctTypeString(self, typestring): - if typestring == "NX_FLOAT": - return "NX_FLOAT32" - elif typestring == "NX_UINT": - return "NX_UINT32" - elif typestring=="NX_INT": - return "NX_INT32" - elif typestring=="NX_BOOLEAN": - return "NX_UINT8" - elif typestring=="ISO8601": - return "NX_CHAR" - elif typestring=="NXlog": - return "NX_CHAR" - elif typestring=="NXgeometry": - return "NX_CHAR" - elif typestring=="NXnote": - return "NX_CHAR" - elif typestring=="NXenvironment": - return "NX_CHAR" - elif typestring=="NXdata": - return "NX_CHAR" - elif typestring=="NXbeam": - return "NX_CHAR" - elif typestring=="NXorientation": - return "NX_CHAR" - elif typestring=="NX_BINARY": - return "NX_CHAR" - else: - return typestring - - - def buildTypeDict(self): - self.typedict = {} - self.typedict["NX_CHAR"] = NX_CHAR - self.typedict["NX_FLOAT32"] = NX_FLOAT32 - self.typedict["NX_FLOAT64"] = NX_FLOAT64 - self.typedict["NX_UINT8"] = NX_UINT8 - self.typedict["NX_INT8"] = NX_INT8 - self.typedict["NX_UINT16"] = NX_UINT16 - self.typedict["NX_INT16"] = NX_INT16 - self.typedict["NX_UINT32"] = NX_UINT32 - self.typedict["NX_INT32"] = NX_INT32 - - - def StringToNXType(self, typestring): - return self.typedict[typestring] - - - - def createNXStruct(self): - f = file(self.nxstructfile, "w") - self.writeFileHeader(f) - f.close() - - - def appendNXStruct(self): - f = file(self.nxstructfile, "a") - self.writeAttsToFile(f) - self.writeElemsToFile(f) - self.writeGroupsToFile(f) - self.writeMetaGroupToFile(f) - f.close() - - - def writeFileHeader(self, f): - f.write("from nexus import *") - f.write("\n"); - f.write("from nxtemplatecomponents import *") - f.write("\n"); - f.write("\n"); - f.write("group_types = {}\n") - f.write("\n"); - - def writeAttsToFile(self, f): - if self.metagroup.attrs != None: - f.write(self.metagroup.nxclass+"_attrs = {}\n") - for a in self.metagroup.attrs.keys(): - f.write(self.metagroup.nxclass + "_attrs['" + - self.metagroup.attrs[a].name+"'] = NXattr_type("+ - "name='" + self.metagroup.attrs[a].name + - "', info = '" + self.metagroup.attrs[a].info + - "', desc = '" + self.metagroup.attrs[a].desc + - "', minOccur = " + repr(self.metagroup.attrs[a].minOccur) + - ", enums = " + repr(self.metagroup.attrs[a].enums) + - ")\n") - f.write("\n"); - - - def writeElemsToFile(self, f): - if self.metagroup.elems != None: - f.write(self.metagroup.nxclass+"_elems = {}\n") - for a in self.metagroup.elems.keys(): - if self.metagroup.elems[a].attrs != None: - f.write("\n") - f.write(self.metagroup.elems[a].name+"_attrs = {}\n") - for att in self.metagroup.elems[a].attrs.keys(): - f.write(self.metagroup.elems[a].name + "_attrs['" + - self.metagroup.elems[a].attrs[att].name+"'] = NXattr_type("+ - "name='" + self.metagroup.elems[a].attrs[att].name + - "', info = '" + self.metagroup.elems[a].attrs[att].info + - "', desc = '" + self.metagroup.elems[a].attrs[att].desc + - "', minOccur = " + repr(self.metagroup.elems[a].attrs[att].minOccur)) - if self.metagroup.elems[a].attrs[att].enums != None: - f.write(", enums = " + repr(self.metagroup.elems[a].attrs[att].enums)) - else: - f.write(", enums = None") - f.write(")\n") - - - f.write(self.metagroup.nxclass + "_elems['" + - self.metagroup.elems[a].name+"'] = NXelem_type("+ - "name='" + self.metagroup.elems[a].name + - "', types = " + repr(self.metagroup.elems[a].types) + - ", dims = " + repr(self.metagroup.elems[a].dims) + - ", info = '" + self.metagroup.elems[a].info + - "', desc = '" + self.metagroup.elems[a].desc + - "', minOccur = " + repr(self.metagroup.elems[a].minOccur)) - if self.metagroup.elems[a].enums != None: - f.write(", enums = " + repr(self.metagroup.elems[a].enums)) - else: - f.write(", enums = None") - if self.metagroup.elems[a].attrs != None: - f.write(", attrs = " + self.metagroup.elems[a].name+"_attrs") - else: - f.write(", attrs = None") - f.write(")\n") - - - - def writeGroupsToFile(self, f): - if self.metagroup.groups != None: - f.write(self.metagroup.nxclass+"_groups = {}\n") - for a in self.metagroup.groups.keys(): - f.write(self.metagroup.nxclass + "_groups['" + - self.metagroup.groups[a].nxclass+"'] = NXgroup_type("+ - "nxclass='" + self.metagroup.groups[a].nxclass + - "', minOccur = " + repr(self.metagroup.groups[a].minOccur) + - ", maxOccur = " + repr(self.metagroup.groups[a].maxOccur) + - ", attrs = None" + - ", elems = None" + - ", groups = None"+ - ")\n") - f.write("\n") - - - def writeMetaGroupToFile(self,f): - f.write("group_types['"+self.metagroup.nxclass+"'] = NXgroup_type(nxclass = '"+self.metagroup.nxclass+ - "', minOccur= "+repr(self.metagroup.minOccur)+ - ", maxOccur= "+repr(self.metagroup.maxOccur)) - if self.metagroup.attrs != None: - f.write(", attrs= "+self.metagroup.nxclass+"_attrs") - else: - f.write(", attrs= None") - if self.metagroup.elems != None: - f.write(", elems= "+self.metagroup.nxclass+"_elems") - else: - f.write(", elems= None") - if self.metagroup.groups != None: - f.write(", groups= "+self.metagroup.nxclass+"_groups") - else: - f.write(", groups=None") - f.write(")\n") - f.write("\n") - f.write("\n") - - - def clearMetaGroup(self): - """ need to clear all entrys for next scan """ - self.metagroup = NXgroup_type("", 0, 0, None, None, None) - - - def createNXClasses(self): - f = file(self.nxclassfile, "w") - self.writeNXClassesHeader(f) - f.close() - - def createNXDict(self): - f = file(self.dictclassfile, "w") - self.writeNXClassDictHeader(f) - f.close() - - def appendNXClass(self): - f = file(self.nxclassfile, "a") - self.writeNXClass(f) - f.close() - - def appendNXDict(self): - f = file(self.dictclassfile, "a") - self.writeNXClassDict(f) - f.close() - - def writeNXClassesHeader(self,f): - f.write("import types\n") - f.write("import nxtemplates\n") - f.write("import nxfile\n") - f.write("from nexus import *\n") - f.write("from nxbaseclass import *\n") - f.write("\n\n") - - def writeNXClassDictHeader(self,f): - f.write("from nxclasses import *\n") - f.write("\n\n\n\n\n") - f.write("nx_classes={}") - f.write("\n") - - - def writeNXClass(self,f): - # for NXdata a special handling exists - if self.metagroup.nxclass == "NXdata": - return 0 - - f.write("\n\n\n") - f.write("class "+self.metagroup.nxclass+"(NXgroupbase):\n") - f.write("\t\"\"\" auto-generated by metaDTD processor \"\"\"\n\n") - f.write("\tdef __init__(self, group=None, name=\"\", nxclass=\""+self.metagroup.nxclass+"\", attrs=None, elems=None, groups=None, path=None, parent=None):\n") - f.write("\t\tNXgroupbase.__init__(self, group=group, name=name, nxclass=nxclass, attrs=attrs, elems=elems, groups=groups, path=path, parent=parent)\n\n") - if self.metagroup.groups != None: - for a in self.metagroup.groups.keys(): - f.write("\tdef get"+self.metagroup.groups[a].nxclass+"(self, name):\n") - f.write("\t\treturn NXgroupbase.getGroup(self, name, \""+self.metagroup.groups[a].nxclass+"\")\n\n") - f.write("\tdef read"+self.metagroup.groups[a].nxclass+"(self, name, file):\n") - f.write("\t\tsubgroupid = name+\":\"+\""+self.metagroup.groups[a].nxclass+"\"\n") - f.write("\t\treturn self.readSubGroup(subgroupid, file)\n\n") - - if self.metagroup.elems != None: - for e in self.metagroup.elems.keys(): - f.write("\tdef get_"+self.metagroup.elems[e].name+"(self):\n") - f.write("\t\treturn self.getElem(\""+self.metagroup.elems[e].name+"\")\n\n") - f.write("\tdef set_"+self.metagroup.elems[e].name+"(self, elem):\n") - f.write("\t\treturn self.setElem(elem)\n\n") - - if self.metagroup.attrs != None: - for a in self.metagroup.attrs.keys(): - f.write("\tdef getattr_"+self.metagroup.attrs[a].name+"(self):\n") - f.write("\t\treturn self.getAttr(\""+self.metagroup.attrs[a].name+"\")\n\n") - f.write("\tdef setattr_"+self.metagroup.attrs[a].name+"(self, elem):\n") - f.write("\t\treturn self.setAttr(elem)\n\n") - - - def writeNXClassDict(self,f): - f.write("nx_classes['"+self.metagroup.nxclass+"']="+ self.metagroup.nxclass +"\n") - - def setFiles(self, files): - self.nxfiles = files - - def checkXML(self, filename): - return filename.endswith(".xml") - - def fileExists(self, filename): - try: - f = file(filename, 'r') - except: - return 0 - return 1 - - -def main(args): - """ the entry point for testig purposes""" - - nxf = NXfactory( nxstructfile="nxtemplates.py", - nxclassfile="nxclasses.py", - dictclassfile="nxobjects.py") - nxf.createNXStruct() - nxf.createNXClasses() - - - files = os.listdir("./metaDTD") - metaDTDs = filter(nxf.checkXML, files) - nxf.setFiles(metaDTDs) - - for metafile in metaDTDs: - nxf.parseMetaDTD("./metaDTD/"+metafile) - nxf.appendNXStruct() - nxf.appendNXClass() - nxf.clearMetaGroup() - - nxf.createNXDict() - for metafile in metaDTDs: - nxf.parseMetaDTD("./metaDTD/"+metafile) - nxf.appendNXDict() - nxf.clearMetaGroup() - -if __name__=="__main__": - main(sys.argv) - diff --git a/contrib/bindings/nxpylib/nxpylib/nxplot.py b/contrib/bindings/nxpylib/nxpylib/nxplot.py deleted file mode 100644 index 8e55587e..00000000 --- a/contrib/bindings/nxpylib/nxpylib/nxplot.py +++ /dev/null @@ -1,38 +0,0 @@ -import grace_np - - -class NXplot: - def __init__(self, gp=None): - # do initializing - self.gp = gp # grace plot - - def plotData(self, nxdatapoints, axispoints): - # plot the data via grace - # nxdatapoints must contain the nxdata as array - # axispoints must contain axis data as array of same size - - if self.gp == None: - self.gp = grace_np.GraceProcess() - - self.gp.command('s0 on') - self.gp.command('s0 symbol 1') - self.gp.command('s0 symbol 1') - self.gp.command('s0 symbol size 0.3') - self.gp.command('s0 symbol fill pattern 1') - - - # check if length are same size, if not, crop smaller list - if not len(nxdatapoints) == len(axispoints): - if len(nxdatapoints) > len(axispoints): - nxdatapoints = nxdatapoints[0:len(axispoints)-1] - else: - axispoints = axispoints[0:len(nxdatapoints)-1] - - for i in range(len(nxdatapoints)): - self.gp.command('g0.s0 point %f,%f' % (axispoints[i],nxdatapoints[i])) - self.gp.command('autoscale') - self.gp.command('redraw') - self.gp.command('autoscale') - self.gp.command('redraw') - - diff --git a/contrib/bindings/nxpylib/nxpylib/nxtemplatecomponents.py b/contrib/bindings/nxpylib/nxpylib/nxtemplatecomponents.py deleted file mode 100644 index 00a6cf8e..00000000 --- a/contrib/bindings/nxpylib/nxpylib/nxtemplatecomponents.py +++ /dev/null @@ -1,71 +0,0 @@ - -class NXattr_type: - def __init__(self, name="", info="", desc="", minOccur=0, enums=None): - if enums == None: - enums = [] - - self.name = name - self.enums = enums - self.info = info - self.desc = desc - self.minOccur = minOccur - self.maxOccur = 1 - - -class NXelem_type: - def __init__(self, name="", types=None, dims=None, info="", desc="", minOccur=0, enums=None, attrs=None): - if enums == None: enums = [] - if types == None: types = [] - if dims == None: dims = [] - if attrs == None: attrs = {} - - self.name = name - self.enums = enums - self.types = types - self.dims = dims - self.info = info - self.desc = desc - self.minOccur = minOccur - self.maxOccur = 1 - self.attrs = attrs - - def hasAttr(self, attrname): - if self.attrs != None: - if attrname in self.attrs.keys(): - return 1 - return 0 - - - -class NXgroup_type: - def __init__(self, nxclass="", minOccur=0, maxOccur=1, groups=None, elems=None, attrs=None): - if groups == None: groups = {} - if elems == None: elems = {} - if attrs == None: attrs = {} - - self.nxclass = nxclass - self.minOccur = minOccur - self.maxOccur = maxOccur - self.groups = groups - self.elems = elems - self.attrs = attrs - - def hasAttr(self, attrname): - if self.attrs != None: - if attrname in self.attrs.keys(): - return 1 - return 0 - - def hasElem(self, elemname): - if self.elems != None: - if elemname in self.elems.keys(): - return 1 - return 0 - - def hasGroup(self, groupclass): - if self.groups != None: - if groupclass in self.groups.keys(): - return 1 - return 0 - - diff --git a/contrib/bindings/nxpylib/nxpylib/nxtemplates.py b/contrib/bindings/nxpylib/nxpylib/nxtemplates.py deleted file mode 100644 index dcf0d947..00000000 --- a/contrib/bindings/nxpylib/nxpylib/nxtemplates.py +++ /dev/null @@ -1,1167 +0,0 @@ -from nexus import * -from nxtemplatecomponents import * - -group_types = {} - -NXaperture_attrs = {} -NXaperture_attrs['name'] = NXattr_type(name='name', info = 'Name of aperture', desc = '', minOccur = 1, enums = []) - -NXaperture_elems = {} - -horizontal_aperture_attrs = {} -horizontal_aperture_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['cm']) -NXaperture_elems['horizontal_aperture'] = NXelem_type(name='horizontal_aperture', types = [5], dims = [1], info = 'Horizontal aperture', desc = '', minOccur = 0, enums = [], attrs = horizontal_aperture_attrs) - -distance_attrs = {} -distance_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['m']) -NXaperture_elems['distance'] = NXelem_type(name='distance', types = [5], dims = [1], info = 'Distance from sample', desc = '', minOccur = 0, enums = [], attrs = distance_attrs) - -shape_attrs = {} -NXaperture_elems['shape'] = NXelem_type(name='shape', types = [4], dims = [-1], info = '', desc = '', minOccur = 0, enums = ['"Rectangular"', '"Circular"', '"Elliptical"'], attrs = shape_attrs) - -vertical_aperture_attrs = {} -vertical_aperture_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['cm']) -NXaperture_elems['vertical_aperture'] = NXelem_type(name='vertical_aperture', types = [5], dims = [1], info = 'Vertical aperture', desc = '', minOccur = 0, enums = [], attrs = vertical_aperture_attrs) - -radius_attrs = {} -radius_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['cm']) -NXaperture_elems['radius'] = NXelem_type(name='radius', types = [5], dims = [1], info = 'Radius of aperture (if circular)', desc = '', minOccur = 0, enums = [], attrs = radius_attrs) -NXaperture_groups = {} - -group_types['NXaperture'] = NXgroup_type(nxclass = 'NXaperture', minOccur= 0, maxOccur= 0, attrs= NXaperture_attrs, elems= NXaperture_elems, groups= NXaperture_groups) - - -NXattenuator_attrs = {} -NXattenuator_attrs['name'] = NXattr_type(name='name', info = 'Name of attenuator', desc = '', minOccur = 1, enums = []) - -NXattenuator_elems = {} - -distance_attrs = {} -distance_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['m']) -NXattenuator_elems['distance'] = NXelem_type(name='distance', types = [5], dims = [1], info = 'Distance from sample', desc = '', minOccur = 0, enums = [], attrs = distance_attrs) - -attenuation_attrs = {} -NXattenuator_elems['attenuation'] = NXelem_type(name='attenuation', types = [5], dims = [1], info = 'Attenuation factor at the nominal beam energy', desc = '', minOccur = 0, enums = [], attrs = attenuation_attrs) - -thickness_attrs = {} -thickness_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['cm']) -NXattenuator_elems['thickness'] = NXelem_type(name='thickness', types = [5], dims = [1], info = 'Thickness of attenuator along beam direction', desc = '', minOccur = 0, enums = [], attrs = thickness_attrs) - -type_attrs = {} -NXattenuator_elems['type'] = NXelem_type(name='type', types = [4], dims = [-1], info = 'Type of attenuator, e.g. polythene', desc = '', minOccur = 0, enums = [], attrs = type_attrs) - -absorption_cross_section_attrs = {} -absorption_cross_section_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['barns']) -NXattenuator_elems['absorption_cross_section'] = NXelem_type(name='absorption_cross_section', types = [5], dims = [1], info = 'Absorption cross section', desc = '', minOccur = 0, enums = [], attrs = absorption_cross_section_attrs) - -scattering_cross_section_attrs = {} -scattering_cross_section_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['barns']) -NXattenuator_elems['scattering_cross_section'] = NXelem_type(name='scattering_cross_section', types = [5], dims = [1], info = 'Scattering cross section (coherent+incoherent)', desc = '', minOccur = 0, enums = [], attrs = scattering_cross_section_attrs) -NXattenuator_groups = {} - -group_types['NXattenuator'] = NXgroup_type(nxclass = 'NXattenuator', minOccur= 0, maxOccur= 0, attrs= NXattenuator_attrs, elems= NXattenuator_elems, groups= NXattenuator_groups) - - -NXbeam_attrs = {} -NXbeam_attrs['name'] = NXattr_type(name='name', info = 'Name of beam plane', desc = '', minOccur = 1, enums = []) - -NXbeam_elems = {} - -incident_polarization_attrs = {} -NXbeam_elems['incident_polarization'] = NXelem_type(name='incident_polarization', types = [5], dims = [3, -1], info = 'Polarization vector on entering beamline component', desc = '', minOccur = 0, enums = [], attrs = incident_polarization_attrs) - -distance_attrs = {} -distance_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['m']) -NXbeam_elems['distance'] = NXelem_type(name='distance', types = [5], dims = [1], info = 'Distance from sample', desc = '', minOccur = 0, enums = [], attrs = distance_attrs) - -incident_wavelength_attrs = {} -incident_wavelength_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['Angstroms']) -NXbeam_elems['incident_wavelength'] = NXelem_type(name='incident_wavelength', types = [5], dims = [-1], info = 'Wavelength on entering beamline component', desc = '', minOccur = 0, enums = [], attrs = incident_wavelength_attrs) - -incident_energy_attrs = {} -incident_energy_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['meV']) -NXbeam_elems['incident_energy'] = NXelem_type(name='incident_energy', types = [5], dims = [-1], info = 'Energy on entering beamline component', desc = '', minOccur = 0, enums = [], attrs = incident_energy_attrs) - -final_polarization_attrs = {} -NXbeam_elems['final_polarization'] = NXelem_type(name='final_polarization', types = [5], dims = [3, -1], info = 'Polarization vector on leaving beamline component', desc = '', minOccur = 0, enums = [], attrs = final_polarization_attrs) - -incident_wavelength_spread_attrs = {} -incident_wavelength_spread_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['Angstroms']) -NXbeam_elems['incident_wavelength_spread'] = NXelem_type(name='incident_wavelength_spread', types = [5], dims = [-1], info = 'Wavelength spread FWHM on entering component', desc = '', minOccur = 0, enums = [], attrs = incident_wavelength_spread_attrs) - -final_wavelength_spread_attrs = {} -final_wavelength_spread_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['Angstroms']) -NXbeam_elems['final_wavelength_spread'] = NXelem_type(name='final_wavelength_spread', types = [5], dims = [-1], info = 'Wavelength spread FWHM of beam leaving this component', desc = '', minOccur = 0, enums = [], attrs = final_wavelength_spread_attrs) - -flux_attrs = {} -flux_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['s-1cm-2']) -NXbeam_elems['flux'] = NXelem_type(name='flux', types = [5], dims = [-1], info = 'flux incident on beam plane area', desc = '', minOccur = 0, enums = [], attrs = flux_attrs) - -incident_beam_divergence_attrs = {} -incident_beam_divergence_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['degree']) -NXbeam_elems['incident_beam_divergence'] = NXelem_type(name='incident_beam_divergence', types = [5], dims = [2, -1], info = 'Divergence of beam entering this component', desc = '', minOccur = 0, enums = [], attrs = incident_beam_divergence_attrs) - -final_wavelength_attrs = {} -NXbeam_elems['final_wavelength'] = NXelem_type(name='final_wavelength', types = [5], dims = [-1], info = 'Wavelength on leaving beamline component', desc = '', minOccur = 0, enums = [], attrs = final_wavelength_attrs) - -energy_transfer_attrs = {} -energy_transfer_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['meV']) -NXbeam_elems['energy_transfer'] = NXelem_type(name='energy_transfer', types = [5], dims = [-1], info = 'Energy change caused by beamline component ', desc = '', minOccur = 0, enums = [], attrs = energy_transfer_attrs) - -final_beam_divergence_attrs = {} -final_beam_divergence_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['degrees']) -NXbeam_elems['final_beam_divergence'] = NXelem_type(name='final_beam_divergence', types = [5], dims = [2, -1], info = 'Divergence FWHM of beam leaving this component', desc = '', minOccur = 0, enums = [], attrs = final_beam_divergence_attrs) - -final_energy_attrs = {} -final_energy_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['meV']) -NXbeam_elems['final_energy'] = NXelem_type(name='final_energy', types = [5], dims = [-1], info = 'Energy on leaving beamline component', desc = '', minOccur = 0, enums = [], attrs = final_energy_attrs) -NXbeam_groups = {} -NXbeam_groups['NXdata'] = NXgroup_type(nxclass='NXdata', minOccur = 0, maxOccur = 1, attrs = None, elems = None, groups = None) - -group_types['NXbeam'] = NXgroup_type(nxclass = 'NXbeam', minOccur= 0, maxOccur= 0, attrs= NXbeam_attrs, elems= NXbeam_elems, groups= NXbeam_groups) - - -NXbeamstop_attrs = {} -NXbeamstop_attrs['name'] = NXattr_type(name='name', info = '', desc = '', minOccur = 1, enums = ['beamstop_name']) - -NXbeamstop_elems = {} - -y_attrs = {} -y_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['cm']) -NXbeamstop_elems['y'] = NXelem_type(name='y', types = [5], dims = [1], info = 'y position of the beamstop in relation to the detector', desc = '', minOccur = 1, enums = ['\n ?\n '], attrs = y_attrs) - -x_attrs = {} -x_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['cm']) -NXbeamstop_elems['x'] = NXelem_type(name='x', types = [5], dims = [1], info = 'x position of the beamstop in relation to the detector', desc = '', minOccur = 1, enums = ['\n ?\n '], attrs = x_attrs) - -status_attrs = {} -NXbeamstop_elems['status'] = NXelem_type(name='status', types = [4], dims = [-1], info = 'in|out', desc = '', minOccur = 1, enums = ['\n ?\n '], attrs = status_attrs) - -description_attrs = {} -NXbeamstop_elems['description'] = NXelem_type(name='description', types = [4], dims = [-1], info = 'description of beamstop: circular | rectangular', desc = '', minOccur = 1, enums = ['\n ?\n '], attrs = description_attrs) - -size_attrs = {} -size_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['cm']) -NXbeamstop_elems['size'] = NXelem_type(name='size', types = [5], dims = [1], info = 'size of beamstop', desc = '', minOccur = 1, enums = ['\n ?\n '], attrs = size_attrs) -NXbeamstop_groups = {} - -group_types['NXbeamstop'] = NXgroup_type(nxclass = 'NXbeamstop', minOccur= 0, maxOccur= 0, attrs= NXbeamstop_attrs, elems= NXbeamstop_elems, groups= NXbeamstop_groups) - - -NXcrystal_attrs = {} -NXcrystal_attrs['name'] = NXattr_type(name='name', info = 'Name of crystal beamline component', desc = '', minOccur = 1, enums = []) - -NXcrystal_elems = {} - -distance_attrs = {} -distance_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['m']) -NXcrystal_elems['distance'] = NXelem_type(name='distance', types = [5], dims = [1], info = 'Distance of chopper from sample', desc = '', minOccur = 0, enums = [], attrs = distance_attrs) - -lattice_parameter_attrs = {} -lattice_parameter_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['Angstrom']) -NXcrystal_elems['lattice_parameter'] = NXelem_type(name='lattice_parameter', types = [5], dims = [1], info = 'Lattice parameter of the nominal reflection', desc = '', minOccur = 0, enums = [], attrs = lattice_parameter_attrs) - -reflection_attrs = {} -NXcrystal_elems['reflection'] = NXelem_type(name='reflection', types = [24], dims = [-1], info = '[hkl] values of nominal reflection', desc = '', minOccur = 0, enums = [], attrs = reflection_attrs) - -horizontal_aperture_attrs = {} -horizontal_aperture_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['cm']) -NXcrystal_elems['horizontal_aperture'] = NXelem_type(name='horizontal_aperture', types = [5], dims = [1], info = 'Horizontal aperture, if rectangular', desc = '', minOccur = 0, enums = [], attrs = horizontal_aperture_attrs) - -wavelength_attrs = {} -wavelength_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['Angstroms']) -NXcrystal_elems['wavelength'] = NXelem_type(name='wavelength', types = [5], dims = [1], info = 'Optimum diffracted wavelength', desc = '', minOccur = 0, enums = [], attrs = wavelength_attrs) - -horizontal_curvature_attrs = {} -horizontal_curvature_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['degrees']) -NXcrystal_elems['horizontal_curvature'] = NXelem_type(name='horizontal_curvature', types = [5], dims = [1], info = 'Horizontal curvature of focusing crystal', desc = '', minOccur = 0, enums = [], attrs = horizontal_curvature_attrs) - -vertical_aperture_attrs = {} -vertical_aperture_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['cm']) -NXcrystal_elems['vertical_aperture'] = NXelem_type(name='vertical_aperture', types = [5], dims = [1], info = 'Vertical aperture, if rectangular', desc = '', minOccur = 0, enums = [], attrs = vertical_aperture_attrs) - -vertical_curvature_attrs = {} -vertical_curvature_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['degrees']) -NXcrystal_elems['vertical_curvature'] = NXelem_type(name='vertical_curvature', types = [5], dims = [1], info = 'Vertical curvature of focusing crystal', desc = '', minOccur = 0, enums = [], attrs = vertical_curvature_attrs) - -energy_attrs = {} -energy_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['meV']) -NXcrystal_elems['energy'] = NXelem_type(name='energy', types = [5], dims = [1], info = 'Optimum diffracted energy', desc = '', minOccur = 0, enums = [], attrs = energy_attrs) -NXcrystal_groups = {} - -group_types['NXcrystal'] = NXgroup_type(nxclass = 'NXcrystal', minOccur= 0, maxOccur= 0, attrs= NXcrystal_attrs, elems= NXcrystal_elems, groups= NXcrystal_groups) - - -NXdata_attrs = {} -NXdata_attrs['name'] = NXattr_type(name='name', info = 'Name of data block', desc = '', minOccur = 1, enums = []) - -NXdata_elems = {} - -variable_attrs = {} -variable_attrs['long_name'] = NXattr_type(name='long_name', info = 'Axis label', desc = '', minOccur = 1, enums = []) -variable_attrs['distribution'] = NXattr_type(name='distribution', info = '', desc = '', minOccur = 1, enums = ['0', '1']) -variable_attrs['first_good'] = NXattr_type(name='first_good', info = 'Index of first good value', desc = '', minOccur = 1, enums = []) -variable_attrs['last_good'] = NXattr_type(name='last_good', info = 'Index of last good value', desc = '', minOccur = 1, enums = []) -NXdata_elems['variable'] = NXelem_type(name='variable', types = [5, 24], dims = [-1], info = 'Dimension scale defining an axis of the data', desc = '', minOccur = 0, enums = [], attrs = variable_attrs) - -errors_attrs = {} -NXdata_elems['errors'] = NXelem_type(name='errors', types = [5], dims = ['...'], info = 'Standard deviations of data values - the data array is identified by the attribute signal="1". This array must have the same dimensions as the data', desc = '', minOccur = 0, enums = [], attrs = errors_attrs) - -data_attrs = {} -data_attrs['long_name'] = NXattr_type(name='long_name', info = 'Title of data', desc = '', minOccur = 1, enums = []) -data_attrs['signal'] = NXattr_type(name='signal', info = '', desc = '', minOccur = 1, enums = ['1']) -data_attrs['axes'] = NXattr_type(name='axes', info = '', desc = '', minOccur = 1, enums = ['[...]']) -NXdata_elems['data'] = NXelem_type(name='data', types = [5, 24], dims = ['...'], info = 'Data values', desc = '', minOccur = 0, enums = [], attrs = data_attrs) - -variable_errors_attrs = {} -NXdata_elems['variable_errors'] = NXelem_type(name='variable_errors', types = [5, 24], dims = [-1], info = 'Errors associated with axis "variable"', desc = '', minOccur = 0, enums = [], attrs = variable_errors_attrs) -NXdata_groups = {} - -group_types['NXdata'] = NXgroup_type(nxclass = 'NXdata', minOccur= 0, maxOccur= 0, attrs= NXdata_attrs, elems= NXdata_elems, groups= NXdata_groups) - - -NXdetector_attrs = {} -NXdetector_attrs['name'] = NXattr_type(name='name', info = 'Name of detector bank', desc = '', minOccur = 1, enums = []) - -NXdetector_elems = {} - -azimuthal_angle_attrs = {} -azimuthal_angle_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['degree']) -NXdetector_elems['azimuthal_angle'] = NXelem_type(name='azimuthal_angle', types = [5], dims = [-1], info = 'Azimuthal angle of detector element', desc = '', minOccur = 0, enums = [], attrs = azimuthal_angle_attrs) - -distance_attrs = {} -distance_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['meter']) -NXdetector_elems['distance'] = NXelem_type(name='distance', types = [5], dims = [-1], info = 'Effective distance from scattering centre (secondary flight path)', desc = '', minOccur = 0, enums = [], attrs = distance_attrs) - -solid_angle_attrs = {} -solid_angle_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['steradians']) -NXdetector_elems['solid_angle'] = NXelem_type(name='solid_angle', types = [5], dims = [-1], info = 'Solid angle subtended by the detector at the sample', desc = '', minOccur = 0, enums = [], attrs = solid_angle_attrs) - -pixel_raster_attrs = {} -NXdetector_elems['pixel_raster'] = NXelem_type(name='pixel_raster', types = [4], dims = [-1], info = 'numbering/labelling scheme for pixels: +x+y would mean number along the x axis in a positive direction and then move up y in a positive diection (so bottom right to top left as viewed from the moderator)', desc = '', minOccur = 0, enums = ['"+x+y"', '"+x-y"', '"-x+y"', '"-x-y"', '"+y+x"', '"+y-x"', '"-y+x"', '"-y-x"'], attrs = pixel_raster_attrs) - -description_attrs = {} -NXdetector_elems['description'] = NXelem_type(name='description', types = [4], dims = [-1], info = 'name/manufacturer/model/etc. information', desc = '', minOccur = 0, enums = [], attrs = description_attrs) - -slot_attrs = {} -slot_attrs['local_name'] = NXattr_type(name='local_name', info = 'Equivalent local term', desc = '', minOccur = 1, enums = []) -NXdetector_elems['slot'] = NXelem_type(name='slot', types = [24], dims = [-1], info = 'Slot number of detector', desc = '', minOccur = 0, enums = [], attrs = slot_attrs) - -detection_gas_path_attrs = {} -detection_gas_path_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['cm']) -NXdetector_elems['detection_gas_path'] = NXelem_type(name='detection_gas_path', types = [5], dims = [1], info = 'maximum drift space dimension', desc = '', minOccur = 0, enums = [], attrs = detection_gas_path_attrs) - -input_attrs = {} -input_attrs['local_name'] = NXattr_type(name='local_name', info = 'Equivalent local term', desc = '', minOccur = 1, enums = []) -NXdetector_elems['input'] = NXelem_type(name='input', types = [24], dims = [-1], info = 'Input number of detector', desc = '', minOccur = 0, enums = [], attrs = input_attrs) - -dead_time_attrs = {} -NXdetector_elems['dead_time'] = NXelem_type(name='dead_time', types = [5], dims = [-1], info = 'Detector dead time', desc = '', minOccur = 0, enums = [], attrs = dead_time_attrs) - -crate_attrs = {} -crate_attrs['local_name'] = NXattr_type(name='local_name', info = 'Equivalent local term', desc = '', minOccur = 1, enums = []) -NXdetector_elems['crate'] = NXelem_type(name='crate', types = [24], dims = [-1], info = 'Crate number of detector', desc = '', minOccur = 0, enums = [], attrs = crate_attrs) - -pixel_centre_attrs = {} -NXdetector_elems['pixel_centre'] = NXelem_type(name='pixel_centre', types = [5], dims = [-1], info = 'Coordinates of the pixel of the direct beam centre (1D or 2D)', desc = '', minOccur = 0, enums = [], attrs = pixel_centre_attrs) - -time_of_flight_attrs = {} -time_of_flight_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['microsecond']) -NXdetector_elems['time_of_flight'] = NXelem_type(name='time_of_flight', types = [5], dims = [-1], info = 'Neutron time-of-flight', desc = '', minOccur = 0, enums = [], attrs = time_of_flight_attrs) - -polar_angle_attrs = {} -polar_angle_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['degree']) -NXdetector_elems['polar_angle'] = NXelem_type(name='polar_angle', types = [5], dims = [-1], info = 'Polar angle of detector element', desc = '', minOccur = 0, enums = [], attrs = polar_angle_attrs) - -hold_off_attrs = {} -hold_off_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['micro.second']) -NXdetector_elems['hold_off'] = NXelem_type(name='hold_off', types = [5], dims = [-1], info = 'Delay in detector registering an event', desc = '', minOccur = 0, enums = [], attrs = hold_off_attrs) - -translation_attrs = {} -translation_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['centimeter']) -NXdetector_elems['translation'] = NXelem_type(name='translation', types = [5], dims = [-1], info = 'translation normal to direct beam', desc = '', minOccur = 0, enums = [], attrs = translation_attrs) - -calibration_date_attrs = {} -NXdetector_elems['calibration_date'] = NXelem_type(name='calibration_date', types = [4], dims = [-1], info = 'date of last calibration (geometry and/or efficiency) measurements', desc = '', minOccur = 0, enums = [], attrs = calibration_date_attrs) - -type_attrs = {} -NXdetector_elems['type'] = NXelem_type(name='type', types = [4], dims = [-1], info = '', desc = '', minOccur = 0, enums = ['"He3 gas cylinder"', 'He3 PSD"', '"He3 planar multidetector"', '"He3 curved multidetector"', '"multi-tube He3 PSD"', '"BF3 gas"', '"scintillator"', '"fission chamber"'], attrs = type_attrs) - -id_attrs = {} -NXdetector_elems['id'] = NXelem_type(name='id', types = [24], dims = [-1], info = 'Identifier of detector element', desc = '', minOccur = 0, enums = [], attrs = id_attrs) - -pixel_size_attrs = {} -pixel_size_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['millimetre']) -NXdetector_elems['pixel_size'] = NXelem_type(name='pixel_size', types = [5], dims = [-1], info = 'Size of the pixel (1D or 2D)', desc = '', minOccur = 0, enums = [], attrs = pixel_size_attrs) - -gas_pressure_attrs = {} -gas_pressure_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['bars']) -NXdetector_elems['gas_pressure'] = NXelem_type(name='gas_pressure', types = [5], dims = [-1], info = 'Detector gas pressure', desc = '', minOccur = 0, enums = [], attrs = gas_pressure_attrs) -NXdetector_groups = {} -NXdetector_groups['NXnote'] = NXgroup_type(nxclass='NXnote', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) -NXdetector_groups['NXdata'] = NXgroup_type(nxclass='NXdata', minOccur = 0, maxOccur = 1, attrs = None, elems = None, groups = None) -NXdetector_groups['NXgeometry'] = NXgroup_type(nxclass='NXgeometry', minOccur = 0, maxOccur = 1, attrs = None, elems = None, groups = None) - -group_types['NXdetector'] = NXgroup_type(nxclass = 'NXdetector', minOccur= 0, maxOccur= 0, attrs= NXdetector_attrs, elems= NXdetector_elems, groups= NXdetector_groups) - - -NXdisc_chopper_attrs = {} -NXdisc_chopper_attrs['name'] = NXattr_type(name='name', info = '', desc = '', minOccur = 1, enums = ['chopper_name']) - -NXdisc_chopper_elems = {} - -slit_angle_attrs = {} -slit_angle_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['degree']) -NXdisc_chopper_elems['slit_angle'] = NXelem_type(name='slit_angle', types = [5], dims = [1], info = 'angular opening', desc = '', minOccur = 1, enums = [], attrs = slit_angle_attrs) - -distance_attrs = {} -distance_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['cm']) -NXdisc_chopper_elems['distance'] = NXelem_type(name='distance', types = [5], dims = [1], info = 'distance of chopper to previous item', desc = '', minOccur = 1, enums = ['\n ?\n '], attrs = distance_attrs) - -slit_height_attrs = {} -slit_height_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['cm']) -NXdisc_chopper_elems['slit_height'] = NXelem_type(name='slit_height', types = [5], dims = [1], info = 'total slit height', desc = '', minOccur = 1, enums = [' '], attrs = slit_height_attrs) - -radius_attrs = {} -radius_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['cm']) -NXdisc_chopper_elems['radius'] = NXelem_type(name='radius', types = [5], dims = [1], info = 'radius to centre of slit', desc = '', minOccur = 1, enums = [' '], attrs = radius_attrs) - -type_attrs = {} -NXdisc_chopper_elems['type'] = NXelem_type(name='type', types = [4], dims = [-1], info = 'Chopper type single|contra_rotating_pair|synchro_pair', desc = '', minOccur = 0, enums = [], attrs = type_attrs) - -phase_attrs = {} -phase_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['degree']) -NXdisc_chopper_elems['phase'] = NXelem_type(name='phase', types = [5], dims = [1], info = 'chopper phase angle', desc = '', minOccur = 1, enums = ['\n ?\n '], attrs = phase_attrs) - -pair_separation_attrs = {} -pair_separation_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['cm']) -NXdisc_chopper_elems['pair_separation'] = NXelem_type(name='pair_separation', types = [5], dims = [1], info = 'disc spacing in direction of beam', desc = '', minOccur = 0, enums = [' '], attrs = pair_separation_attrs) - -rotation_speed_attrs = {} -rotation_speed_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['rpm']) -NXdisc_chopper_elems['rotation_speed'] = NXelem_type(name='rotation_speed', types = [5], dims = [1], info = 'chopper rotation speed', desc = '', minOccur = 1, enums = [' \n ?\n '], attrs = rotation_speed_attrs) - -ratio_attrs = {} -NXdisc_chopper_elems['ratio'] = NXelem_type(name='ratio', types = [24], dims = [1], info = 'pulse reduction factor of this chopper in relation to other choppers/fastest pulse in the instrument', desc = '', minOccur = 1, enums = ['\n {pulse reduction factor of this chopper in relation to other choppers/fastest pulse\n in the instrument}?\n '], attrs = ratio_attrs) - -slits_attrs = {} -NXdisc_chopper_elems['slits'] = NXelem_type(name='slits', types = [24], dims = [1], info = 'Number of slits', desc = '', minOccur = 1, enums = [], attrs = slits_attrs) -NXdisc_chopper_groups = {} - -group_types['NXdisc_chopper'] = NXgroup_type(nxclass = 'NXdisc_chopper', minOccur= 0, maxOccur= 0, attrs= NXdisc_chopper_attrs, elems= NXdisc_chopper_elems, groups= NXdisc_chopper_groups) - - -NXentry_attrs = {} -NXentry_attrs['name'] = NXattr_type(name='name', info = 'Entry Name', desc = '', minOccur = 1, enums = []) - -NXentry_elems = {} - -definition_attrs = {} -definition_attrs['URL'] = NXattr_type(name='URL', info = 'URL of DTD file', desc = '', minOccur = 1, enums = []) -definition_attrs['version'] = NXattr_type(name='version', info = 'DTD version number', desc = '', minOccur = 1, enums = []) -NXentry_elems['definition'] = NXelem_type(name='definition', types = [4], dims = [-1], info = 'Name of entry DTD', desc = '', minOccur = 0, enums = [], attrs = definition_attrs) - -run_number_attrs = {} -NXentry_elems['run_number'] = NXelem_type(name='run_number', types = [24], dims = [1], info = 'Number of run or scan stored in this entry', desc = '', minOccur = 0, enums = [], attrs = run_number_attrs) - -title_attrs = {} -NXentry_elems['title'] = NXelem_type(name='title', types = [4], dims = [-1], info = 'Extended title for entry', desc = '', minOccur = 0, enums = [], attrs = title_attrs) - -run_cycle_attrs = {} -NXentry_elems['run_cycle'] = NXelem_type(name='run_cycle', types = [4], dims = [-1], info = '', desc = '', minOccur = 0, enums = [], attrs = run_cycle_attrs) - -notes_attrs = {} -NXentry_elems['notes'] = NXelem_type(name='notes', types = [4], dims = [-1], info = 'Notes describing entry', desc = '', minOccur = 0, enums = [], attrs = notes_attrs) - -command_line_attrs = {} -NXentry_elems['command_line'] = NXelem_type(name='command_line', types = [4], dims = [-1], info = 'Name of command line used to generate this file', desc = '', minOccur = 0, enums = [], attrs = command_line_attrs) - -experiment_identifier_attrs = {} -NXentry_elems['experiment_identifier'] = NXelem_type(name='experiment_identifier', types = [4], dims = [-1], info = '', desc = '', minOccur = 0, enums = [], attrs = experiment_identifier_attrs) - -end_time_attrs = {} -NXentry_elems['end_time'] = NXelem_type(name='end_time', types = [4], dims = [-1], info = 'Ending time of measurement', desc = '', minOccur = 0, enums = [], attrs = end_time_attrs) - -duration_attrs = {} -duration_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['seconds']) -NXentry_elems['duration'] = NXelem_type(name='duration', types = [24], dims = [1], info = 'Duration of measurement', desc = '', minOccur = 0, enums = [], attrs = duration_attrs) - -program_name_attrs = {} -program_name_attrs['version'] = NXattr_type(name='version', info = 'Program version number', desc = '', minOccur = 1, enums = []) -NXentry_elems['program_name'] = NXelem_type(name='program_name', types = [4], dims = [-1], info = 'Name of program used to generate this file', desc = '', minOccur = 0, enums = [], attrs = program_name_attrs) - -start_time_attrs = {} -NXentry_elems['start_time'] = NXelem_type(name='start_time', types = [4], dims = [-1], info = 'Starting time of measurement', desc = '', minOccur = 0, enums = [], attrs = start_time_attrs) -NXentry_groups = {} -NXentry_groups['NXinstrument'] = NXgroup_type(nxclass='NXinstrument', minOccur = 0, maxOccur = 1, attrs = None, elems = None, groups = None) -NXentry_groups['NXdata'] = NXgroup_type(nxclass='NXdata', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) -NXentry_groups['NXsample'] = NXgroup_type(nxclass='NXsample', minOccur = 0, maxOccur = 1, attrs = None, elems = None, groups = None) -NXentry_groups['NXuser'] = NXgroup_type(nxclass='NXuser', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) -NXentry_groups['NXmonitor'] = NXgroup_type(nxclass='NXmonitor', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) - -group_types['NXentry'] = NXgroup_type(nxclass = 'NXentry', minOccur= 0, maxOccur= 0, attrs= NXentry_attrs, elems= NXentry_elems, groups= NXentry_groups) - - -NXenvironment_attrs = {} -NXenvironment_attrs['name'] = NXattr_type(name='name', info = 'Name of sample environment', desc = '', minOccur = 1, enums = []) - -NXenvironment_elems = {} - -program_attrs = {} -NXenvironment_elems['program'] = NXelem_type(name='program', types = [4], dims = [-1], info = 'Program controlling the apparatus; e.g. LabView VI name', desc = '', minOccur = 0, enums = [], attrs = program_attrs) - -type_attrs = {} -NXenvironment_elems['type'] = NXelem_type(name='type', types = [4], dims = [-1], info = 'Type of apparatus. This could be the SE codes in scheduling database; e.g. OC/100', desc = '', minOccur = 0, enums = [], attrs = type_attrs) - -name_attrs = {} -NXenvironment_elems['name'] = NXelem_type(name='name', types = [4], dims = [-1], info = 'Apparatus identification code/model number; e.g. OC100 011 ', desc = '', minOccur = 0, enums = [], attrs = name_attrs) - -short_name_attrs = {} -NXenvironment_elems['short_name'] = NXelem_type(name='short_name', types = [4], dims = [-1], info = 'Alternative short name, perhaps for dashboard display like a present Seblock name', desc = '', minOccur = 0, enums = [], attrs = short_name_attrs) - -description_attrs = {} -NXenvironment_elems['description'] = NXelem_type(name='description', types = [4], dims = [-1], info = 'Description of the apparatus; e.g. 100mm bore orange cryostat with Roots pump ', desc = '', minOccur = 0, enums = [], attrs = description_attrs) -NXenvironment_groups = {} -NXenvironment_groups['NXnote'] = NXgroup_type(nxclass='NXnote', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) -NXenvironment_groups['NXsensor'] = NXgroup_type(nxclass='NXsensor', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) -NXenvironment_groups['NXgeometry'] = NXgroup_type(nxclass='NXgeometry', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) - -group_types['NXenvironment'] = NXgroup_type(nxclass = 'NXenvironment', minOccur= 0, maxOccur= 0, attrs= NXenvironment_attrs, elems= NXenvironment_elems, groups= NXenvironment_groups) - - -NXevent_data_attrs = {} -NXevent_data_attrs['name'] = NXattr_type(name='name', info = '', desc = '', minOccur = 1, enums = []) - -NXevent_data_elems = {} -NXevent_data_groups = {} - -group_types['NXevent_data'] = NXgroup_type(nxclass = 'NXevent_data', minOccur= 0, maxOccur= 0, attrs= NXevent_data_attrs, elems= NXevent_data_elems, groups= NXevent_data_groups) - - -NXfermi_chopper_attrs = {} -NXfermi_chopper_attrs['name'] = NXattr_type(name='name', info = '', desc = '', minOccur = 1, enums = ['chopper_name']) - -NXfermi_chopper_elems = {} - -width_attrs = {} -width_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['cm']) -NXfermi_chopper_elems['width'] = NXelem_type(name='width', types = [5], dims = [1], info = 'input beam width', desc = '', minOccur = 1, enums = ['\n ?\n '], attrs = width_attrs) - -slit_attrs = {} -slit_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['cm']) -NXfermi_chopper_elems['slit'] = NXelem_type(name='slit', types = [5], dims = [1], info = 'width of an individual slit', desc = '', minOccur = 1, enums = ['\n ?\n '], attrs = slit_attrs) - -num_attrs = {} -NXfermi_chopper_elems['num'] = NXelem_type(name='num', types = [24], dims = [1], info = 'number of slits', desc = '', minOccur = 1, enums = ['\n ?\n '], attrs = num_attrs) - -radius_attrs = {} -radius_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['cm']) -NXfermi_chopper_elems['radius'] = NXelem_type(name='radius', types = [5], dims = [1], info = 'radius of chopper', desc = '', minOccur = 1, enums = ['\n ?\n '], attrs = radius_attrs) - -type_attrs = {} -NXfermi_chopper_elems['type'] = NXelem_type(name='type', types = [4], dims = [-1], info = 'fchopper type', desc = '', minOccur = 0, enums = [], attrs = type_attrs) - -rotation_speed_attrs = {} -rotation_speed_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['rpm']) -NXfermi_chopper_elems['rotation_speed'] = NXelem_type(name='rotation_speed', types = [5], dims = [1], info = 'chopper rotation speed', desc = '', minOccur = 1, enums = [' \n ?\n '], attrs = rotation_speed_attrs) - -r_slit_attrs = {} -r_slit_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['cm']) -NXfermi_chopper_elems['r_slit'] = NXelem_type(name='r_slit', types = [5], dims = [1], info = 'radius of curvature of slits', desc = '', minOccur = 1, enums = ['\n ?\n '], attrs = r_slit_attrs) - -height_attrs = {} -height_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['cm']) -NXfermi_chopper_elems['height'] = NXelem_type(name='height', types = [5], dims = [1], info = 'input beam height', desc = '', minOccur = 1, enums = ['\n ?\n '], attrs = height_attrs) -NXfermi_chopper_groups = {} - -group_types['NXfermi_chopper'] = NXgroup_type(nxclass = 'NXfermi_chopper', minOccur= 0, maxOccur= 0, attrs= NXfermi_chopper_attrs, elems= NXfermi_chopper_elems, groups= NXfermi_chopper_groups) - - -NXfilter_attrs = {} -NXfilter_attrs['name'] = NXattr_type(name='name', info = '', desc = '', minOccur = 1, enums = ['some_filter']) - -NXfilter_elems = {} - -status_attrs = {} -NXfilter_elems['status'] = NXelem_type(name='status', types = [4], dims = [-1], info = 'in | out', desc = '', minOccur = 1, enums = [' ?\n '], attrs = status_attrs) - -position_attrs = {} -position_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['cm']) -NXfilter_elems['position'] = NXelem_type(name='position', types = [5], dims = [-1], info = 'position of the element in relation to whatever coordinate system we agree upon', desc = '', minOccur = 1, enums = ['\n {position of the element in relation to whatever coordinate\n system we agree upon}?\n '], attrs = position_attrs) - -type_attrs = {} -NXfilter_elems['type'] = NXelem_type(name='type', types = [4], dims = [-1], info = 'Description of filter', desc = '', minOccur = 1, enums = ['\n ?\n '], attrs = type_attrs) -NXfilter_groups = {} - -group_types['NXfilter'] = NXgroup_type(nxclass = 'NXfilter', minOccur= 0, maxOccur= 0, attrs= NXfilter_attrs, elems= NXfilter_elems, groups= NXfilter_groups) - - -NXflipper_attrs = {} -NXflipper_attrs['name'] = NXattr_type(name='name', info = 'Name of flipper', desc = '', minOccur = 1, enums = []) - -NXflipper_elems = {} - -guide_turns_attrs = {} -NXflipper_elems['guide_turns'] = NXelem_type(name='guide_turns', types = [5], dims = [1], info = 'Number of turns/cm in guide field coils', desc = '', minOccur = 0, enums = [], attrs = guide_turns_attrs) - -comp_current_attrs = {} -comp_current_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['amperes']) -NXflipper_elems['comp_current'] = NXelem_type(name='comp_current', types = [5], dims = [1], info = 'Compensating field coil current in "on" state"', desc = '', minOccur = 0, enums = [], attrs = comp_current_attrs) - -guide_current_attrs = {} -guide_current_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['amperes']) -NXflipper_elems['guide_current'] = NXelem_type(name='guide_current', types = [5], dims = [1], info = 'Guide field coil current in "on" state"', desc = '', minOccur = 0, enums = [], attrs = guide_current_attrs) - -flip_turns_attrs = {} -NXflipper_elems['flip_turns'] = NXelem_type(name='flip_turns', types = [5], dims = [1], info = 'Number of turns/cm in flipping field coils', desc = '', minOccur = 0, enums = [], attrs = flip_turns_attrs) - -thickness_attrs = {} -thickness_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['cm']) -NXflipper_elems['thickness'] = NXelem_type(name='thickness', types = [5], dims = [1], info = 'thickness along path of neutron travel', desc = '', minOccur = 0, enums = [], attrs = thickness_attrs) - -type_attrs = {} -NXflipper_elems['type'] = NXelem_type(name='type', types = [4], dims = [-1], info = 'coil|current-sheet', desc = '', minOccur = 0, enums = [], attrs = type_attrs) - -comp_turns_attrs = {} -NXflipper_elems['comp_turns'] = NXelem_type(name='comp_turns', types = [5], dims = [1], info = 'Number of turns/cm in compensating field coils', desc = '', minOccur = 0, enums = [], attrs = comp_turns_attrs) - -flip_current_attrs = {} -flip_current_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['amperes']) -NXflipper_elems['flip_current'] = NXelem_type(name='flip_current', types = [5], dims = [1], info = 'Flipping field coil current in "on" state"', desc = '', minOccur = 0, enums = [], attrs = flip_current_attrs) -NXflipper_groups = {} - -group_types['NXflipper'] = NXgroup_type(nxclass = 'NXflipper', minOccur= 0, maxOccur= 0, attrs= NXflipper_attrs, elems= NXflipper_elems, groups= NXflipper_groups) - - -NXgeometry_attrs = {} -NXgeometry_attrs['name'] = NXattr_type(name='name', info = '', desc = '', minOccur = 1, enums = ['geometry']) - -NXgeometry_elems = {} - -component_index_attrs = {} -NXgeometry_elems['component_index'] = NXelem_type(name='component_index', types = [24], dims = [1], info = 'Position of the component along the beam path.', desc = 'The sample is at 0, components upstream have negative component_index, components downstream have positive component_index.', minOccur = 0, enums = [], attrs = component_index_attrs) - -description_attrs = {} -NXgeometry_elems['description'] = NXelem_type(name='description', types = [4], dims = [-1], info = 'Optional description/label', desc = 'Probably only present if we are an additional reference point for components rather than the location of a real component', minOccur = 0, enums = [], attrs = description_attrs) -NXgeometry_groups = {} -NXgeometry_groups['NXtranslation'] = NXgroup_type(nxclass='NXtranslation', minOccur = 0, maxOccur = 1, attrs = None, elems = None, groups = None) -NXgeometry_groups['NXshape'] = NXgroup_type(nxclass='NXshape', minOccur = 0, maxOccur = 1, attrs = None, elems = None, groups = None) -NXgeometry_groups['NXorientation'] = NXgroup_type(nxclass='NXorientation', minOccur = 0, maxOccur = 1, attrs = None, elems = None, groups = None) - -group_types['NXgeometry'] = NXgroup_type(nxclass = 'NXgeometry', minOccur= 0, maxOccur= 0, attrs= NXgeometry_attrs, elems= NXgeometry_elems, groups= NXgeometry_groups) - - -NXguide_attrs = {} -NXguide_attrs['name'] = NXattr_type(name='name', info = '', desc = '', minOccur = 1, enums = []) - -NXguide_elems = {} -NXguide_groups = {} - -group_types['NXguide'] = NXgroup_type(nxclass = 'NXguide', minOccur= 0, maxOccur= 0, attrs= NXguide_attrs, elems= NXguide_elems, groups= NXguide_groups) - - -NXinstrument_attrs = {} -NXinstrument_attrs['name'] = NXattr_type(name='name', info = 'Name of instrument', desc = '', minOccur = 1, enums = []) - -NXinstrument_elems = {} - -name_attrs = {} -name_attrs['short_name'] = NXattr_type(name='short_name', info = 'abbreviated name of instrument', desc = '', minOccur = 1, enums = []) -NXinstrument_elems['name'] = NXelem_type(name='name', types = [4], dims = [-1], info = 'Name of instrument', desc = '', minOccur = 0, enums = [], attrs = name_attrs) -NXinstrument_groups = {} -NXinstrument_groups['NXsource'] = NXgroup_type(nxclass='NXsource', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) -NXinstrument_groups['NXdetector'] = NXgroup_type(nxclass='NXdetector', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) -NXinstrument_groups['NXattenuator'] = NXgroup_type(nxclass='NXattenuator', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) -NXinstrument_groups['NXfermi_chopper'] = NXgroup_type(nxclass='NXfermi_chopper', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) -NXinstrument_groups['NXflipper'] = NXgroup_type(nxclass='NXflipper', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) -NXinstrument_groups['NXcrystal'] = NXgroup_type(nxclass='NXcrystal', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) -NXinstrument_groups['NXfilter'] = NXgroup_type(nxclass='NXfilter', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) -NXinstrument_groups['NXvelocity_selector'] = NXgroup_type(nxclass='NXvelocity_selector', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) -NXinstrument_groups['NXdisk_chopper'] = NXgroup_type(nxclass='NXdisk_chopper', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) -NXinstrument_groups['NXmirror'] = NXgroup_type(nxclass='NXmirror', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) -NXinstrument_groups['NXcollimator'] = NXgroup_type(nxclass='NXcollimator', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) -NXinstrument_groups['NXaperture'] = NXgroup_type(nxclass='NXaperture', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) -NXinstrument_groups['NXpolarizer'] = NXgroup_type(nxclass='NXpolarizer', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) -NXinstrument_groups['NXguide'] = NXgroup_type(nxclass='NXguide', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) -NXinstrument_groups['NXbeam_stop'] = NXgroup_type(nxclass='NXbeam_stop', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) - -group_types['NXinstrument'] = NXgroup_type(nxclass = 'NXinstrument', minOccur= 0, maxOccur= 0, attrs= NXinstrument_attrs, elems= NXinstrument_elems, groups= NXinstrument_groups) - - -NXlog_attrs = {} -NXlog_attrs['name'] = NXattr_type(name='name', info = 'Name of logged measurements', desc = '', minOccur = 1, enums = []) - -NXlog_elems = {} - -raw_value_attrs = {} -raw_value_attrs['units'] = NXattr_type(name='units', info = 'units of raw values', desc = '', minOccur = 1, enums = []) -NXlog_elems['raw_value'] = NXelem_type(name='raw_value', types = [5, 24], dims = [1], info = 'Array of raw information, such as voltage on a thermocouple', desc = '', minOccur = 0, enums = [], attrs = raw_value_attrs) - -description_attrs = {} -NXlog_elems['description'] = NXelem_type(name='description', types = [4], dims = [-1], info = 'Description of logged value', desc = '', minOccur = 0, enums = [], attrs = description_attrs) - -value_attrs = {} -value_attrs['units'] = NXattr_type(name='units', info = 'units of logged value', desc = '', minOccur = 1, enums = []) -NXlog_elems['value'] = NXelem_type(name='value', types = [5, 24], dims = [1], info = 'Array of logged value, such as temperature', desc = '', minOccur = 1, enums = [], attrs = value_attrs) - -time_attrs = {} -time_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = []) -time_attrs['start'] = NXattr_type(name='start', info = 'ISO8601', desc = '', minOccur = 1, enums = []) -NXlog_elems['time'] = NXelem_type(name='time', types = [5], dims = [1], info = 'Time of logged entry', desc = '', minOccur = 1, enums = [], attrs = time_attrs) -NXlog_groups = {} - -group_types['NXlog'] = NXgroup_type(nxclass = 'NXlog', minOccur= 0, maxOccur= 0, attrs= NXlog_attrs, elems= NXlog_elems, groups= NXlog_groups) - - -NXmirror_attrs = {} -NXmirror_attrs['name'] = NXattr_type(name='name', info = 'Name of mirror guide', desc = '', minOccur = 1, enums = []) - -NXmirror_elems = {} -NXmirror_groups = {} - -group_types['NXmirror'] = NXgroup_type(nxclass = 'NXmirror', minOccur= 0, maxOccur= 0, attrs= NXmirror_attrs, elems= NXmirror_elems, groups= NXmirror_groups) - - -NXmoderator_attrs = {} -NXmoderator_attrs['name'] = NXattr_type(name='name', info = 'Name of moderator', desc = '', minOccur = 1, enums = []) - -NXmoderator_elems = {} - -distance_attrs = {} -NXmoderator_elems['distance'] = NXelem_type(name='distance', types = [5], dims = [1], info = 'Effective distance as seen by measuring radiation', desc = '', minOccur = 0, enums = [], attrs = distance_attrs) - -poison_depth_attrs = {} -poison_depth_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['cm']) -NXmoderator_elems['poison_depth'] = NXelem_type(name='poison_depth', types = [5], dims = [1], info = 'Poison depth', desc = '', minOccur = 0, enums = [], attrs = poison_depth_attrs) - -temperature_attrs = {} -temperature_attrs['Units'] = NXattr_type(name='Units', info = '', desc = '', minOccur = 1, enums = ['Kelvin']) -NXmoderator_elems['temperature'] = NXelem_type(name='temperature', types = [5], dims = [1], info = 'average/nominal moderator temperature', desc = '', minOccur = 1, enums = [], attrs = temperature_attrs) - -coupled_attrs = {} -NXmoderator_elems['coupled'] = NXelem_type(name='coupled', types = [21], dims = [1], info = 'whether the moderator is coupled', desc = '', minOccur = 0, enums = [], attrs = coupled_attrs) - -type_attrs = {} -NXmoderator_elems['type'] = NXelem_type(name='type', types = [4], dims = [-1], info = ' "H20" | "D20" | "Liquid H2" | "Liquid CH4" | "Liquid D2" | "Solid D2" | "C" |"Solid CH4" | "Solid H2"', desc = '', minOccur = 0, enums = [], attrs = type_attrs) - -poison_material_attrs = {} -NXmoderator_elems['poison_material'] = NXelem_type(name='poison_material', types = [4], dims = [-1], info = ' Gd | Cd |...', desc = '', minOccur = 1, enums = [], attrs = poison_material_attrs) -NXmoderator_groups = {} -NXmoderator_groups['NXlog'] = NXgroup_type(nxclass='NXlog', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) -NXmoderator_groups['NXdata'] = NXgroup_type(nxclass='NXdata', minOccur = 0, maxOccur = 2, attrs = None, elems = None, groups = None) -NXmoderator_groups['NXgeometry'] = NXgroup_type(nxclass='NXgeometry', minOccur = 0, maxOccur = 1, attrs = None, elems = None, groups = None) - -group_types['NXmoderator'] = NXgroup_type(nxclass = 'NXmoderator', minOccur= 0, maxOccur= 0, attrs= NXmoderator_attrs, elems= NXmoderator_elems, groups= NXmoderator_groups) - - -NXmonitor_attrs = {} -NXmonitor_attrs['name'] = NXattr_type(name='name', info = 'Name of monitor', desc = '', minOccur = 1, enums = []) - -NXmonitor_elems = {} - -time_of_flight_attrs = {} -time_of_flight_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['microseconds']) -NXmonitor_elems['time_of_flight'] = NXelem_type(name='time_of_flight', types = [5], dims = [-1], info = 'Time-of-flight', desc = '', minOccur = 0, enums = [], attrs = time_of_flight_attrs) - -distance_attrs = {} -distance_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['m']) -NXmonitor_elems['distance'] = NXelem_type(name='distance', types = [5], dims = [1], info = 'Distance of monitor from sample', desc = '', minOccur = 0, enums = [], attrs = distance_attrs) - -range_attrs = {} -NXmonitor_elems['range'] = NXelem_type(name='range', types = [5], dims = [-1], info = 'Time-of-flight range over which the integral was calculated', desc = '', minOccur = 0, enums = [], attrs = range_attrs) - -preset_attrs = {} -NXmonitor_elems['preset'] = NXelem_type(name='preset', types = [5], dims = [1], info = 'preset value for time or monitor', desc = '', minOccur = 0, enums = [], attrs = preset_attrs) - -mode_attrs = {} -NXmonitor_elems['mode'] = NXelem_type(name='mode', types = [4], dims = [-1], info = '', desc = '', minOccur = 0, enums = ['"monitor"', '"timer"'], attrs = mode_attrs) - -efficiency_attrs = {} -NXmonitor_elems['efficiency'] = NXelem_type(name='efficiency', types = [5], dims = [-1], info = 'Monitor efficiency', desc = '', minOccur = 0, enums = [], attrs = efficiency_attrs) - -type_attrs = {} -NXmonitor_elems['type'] = NXelem_type(name='type', types = [4], dims = [-1], info = '', desc = '', minOccur = 0, enums = ['"Fission Chamber"', '"Scintillator"'], attrs = type_attrs) - -sampled_fraction_attrs = {} -sampled_fraction_attrs['units'] = NXattr_type(name='units', info = '', desc = '', minOccur = 1, enums = ['dimensionless']) -NXmonitor_elems['sampled_fraction'] = NXelem_type(name='sampled_fraction', types = [5], dims = [1], info = 'Proportion of incident beam sampled by the monitor (0 - - - - - - entry - - 2004-06-02 11:40:15+0100 - 2004-06-03 11:40:15+0100 - 23 - {name of instrument control program} - {notes describing entry} - - Peter Link -
FRM2
- +49(0)89 28914622 - peter.link@frm2.tum.de -
- - sample - NaCl - - {Apparatus identification code/model number; e.g. OC100 011 }? - {Alternative short name, perhaps for dashboard display like a present Seblock name}? - {Type of apparatus. This could be the SE codes in scheduling database; e.g. OC/100}? - {Description of the apparatus; e.g. 100mm bore orange cryostat with Roots pump }? - {Program controlling the apparatus; e.g. LabView VI name}? - - 0 0 0 0 0 0 - 0 0 0 0 0 0 0 0 0 - - - PANDA - - - FRM2 - Reactor Neutron Source - 20.00 - - - 0.0 - "Soller" - 0.0 - 0.0 - - - 30.0 - 1 2 3 - 2.0 - 1.0 - 1.0 - 2.0 - - - 30.0 - Fission chamber - - 0.0 - - - - - crystal - polarizing efficiency - - - {coil,current-sheet} - 0.0 - 0.0 - 0.0 - 0.0 - 0.0 - 0.0 - - - {crystal} - {polarizing efficiency} - - - {coil} - 0.0 - 0.0 - 0.0 - 0.0 - 0.0 - 0.0 - 0.0 - - - 0.0 - "Soller" - 0.0 - 0.0 - - - 0.0 - 0 0 0 - 0.0 - 0.0 - 0.0 - 0.0 - - - 0.0 - "Soller" - 0.0 - 0.0 - - - 0.0 - "He3 gas cylinder" - - 0.0 - - - - - - - 0 0 0 0 0 - 0 0 0 0 0 - 0 0 0 0 0 - 0 - 0 0 0 0 0 - 0 0 0 0 0 - 0 0 0 0 0 - 0 0 0 0 0 - 0 0 0 0 0 - 0 0 0 0 0 - 0 0 0 0 0 - 0 0 0 0 0 - 0 0 0 0 0 - -
-
diff --git a/contrib/bindings/nxpylib/test/nxtest.py b/contrib/bindings/nxpylib/test/nxtest.py deleted file mode 100755 index 2fad5a33..00000000 --- a/contrib/bindings/nxpylib/test/nxtest.py +++ /dev/null @@ -1,417 +0,0 @@ -#!/usr/bin/python - -import sys - -from nxfile import * -import math - - - -def main(args): - """ the entry point for testing purposes """ - - - print "EXAMPLE 0: LOAD TEMPLATE META-DTD AND GENERATE SKELETON MONOXTAS NXFILE" - print "========================================================================" - - f = NXfile(filename="monoxtas_template.nxs", - mode=NXACC_CREATE5, - template="monoxtas_template.xml") - - root = f.getRoot() - myentry = f.readGroup("root:NXroot/entry:NXentry") - mydata = myentry.getGroup("on-on", "NXdata") - - h_vector = NXelem(name="h", nxtype=NX_FLOAT32, dims=[5], data=[0.0,0.0,0.0,0.0,0.0]) - h_vector.setAttrValue("info", "{H reciprocal space vector}?", NX_CHAR) - mydata.setElem(h_vector) - - k_vector = NXelem(name="k", nxtype=NX_FLOAT32, dims=[5], data=[0.0,0.0,0.0,0.0,0.0]) - k_vector.setAttrValue("info", "{K reciprocal space vector}?", NX_CHAR) - mydata.setElem(k_vector) - - l_vector = NXelem(name="l", nxtype=NX_FLOAT32, dims=[5], data=[0.0,0.0,0.0,0.0,0.0]) - l_vector.setAttrValue("info", "{L reciprocal space vector}?", NX_CHAR) - mydata.setElem(l_vector) - - - mycounts = NXdataelem( name="counts", - dims=[5], - nxtype=NX_INT32, - nxcachefile="monoxtas_template.nxc") - - for i in range(mycounts.dims[0]): - print "writing ", i , " to position: ",i - mycounts.appendData(i) - - mydata.setData(mycounts) - root.setGroup(myentry) - - f.save() #equivalent to f.writeGroup(root) - f.close() - - print "========================================================================" - - - #---------------------------------------------------------- - # EXAMPLE 1: BUILD GROUP TREE FROM SCRATCH AND FILL NXDATA - print "EXAMPLE 1: BUILD GROUP TREE FROM SCRATCH AND FILL NXDATA" - print "=========================================================" - - #create a new nexus file from scratch - f = NXfile(filename="nxtest.nxs", mode=NXACC_CREATE5, template="monoxtas_template.xml") - #f = NXfile("nxtest.nxs", NXACC_CREATE5) - - root = f.getRoot() - - creator = NXattr(name="creator", nxtype=NX_CHAR , value="hartmut.gilde@frm2.tum.de") - root.setattr_creator(creator) - root.setAttr(creator) - - #create some nexus groups - myentry = NXentry(name="entry") - mysample = NXsample(name="sample") - mydata = NXdata(name="data") - - #append subgroups/determine group hirarchy - myentry.setGroup(mysample) - myentry.setGroup(mydata) - root.setGroup(myentry) - #create data entry - #nxcachefile is the name of the cache file to be created, if omitted or empty, no data will be cached - dataElem = NXdataelem(name="counts", dims=[3,5,10], nxtype=NX_INT32, nxcachefile="") - - #append data entry to group - mydata.setData(dataElem) - #add some data - for i in range(dataElem.dims[0]): - for j in range(dataElem.dims[1]): - for k in range(dataElem.dims[2]): - print "writing ",i+j+k, " to position: ",i,j,k - dataElem.appendData(i+j+k, [i,j]) - - #write back to nexus file - f.save() # this is equivalent to f.writeGroup(root) - - #close nexus file - f.close() - #clear objects - myentry = None - mysample = None - mydata = None - print "\n\n" - - - - - - - - - - - - - - - - - - - - - - - #--------------------------------------------------- - #EXAMPLE 2: OPEN EXISTING FILE AND PUT SOME ELEMENTS - print "EXAMPLE 2: OPEN EXISTING FILE, GET AND PUT SOME ELEMENTS/ATTRIBUTES" - print "===================================================================" - #reopen nexus file - f = NXfile("nxtest.nxs", NXACC_RDWR) - - root = f.getRoot() - nexus_version = root.getattr_NeXus_version() - print "nexus version: ", nexus_version.getValue() - - file_time = root.getattr_file_time() - print "file_time:", file_time.getValue() - - creator = root.getattr_creator() - print "creator:", creator.getValue() - - # read previously created group - myentry = f.readGroup("root:NXroot/entry:NXentry") - - mydata = myentry.getGroup("data", "NXdata") - counts = mydata.getElem("counts") - print "counts:",counts.getData() - - #create a few new elements - entry_title = NXelem(name="title", nxtype=NX_CHAR, data="entry title") - entry_run_number = NXelem(name="run_number", nxtype=NX_INT32, dims=[1], data=2) - - #attach elements to entry group - myentry.set_title(entry_title) - myentry.set_run_number(entry_run_number) - - #alternatively we could also write - myentry.setElem(entry_title) - myentry.setElem(entry_run_number) - - - #write file - f.writeGroup(myentry) - #close file - f.close() - - #clear objects - myentry = None - entry_title = None - - #reopen nexus file - f = NXfile("nxtest.nxs", NXACC_RDWR) - entry_title = f.readElem("root:NXroot/entry:NXentry/title:SDS") - print "title:", entry_title.getData() - - #close nexus file - f.close() - print "\n\n" - - - - - - - - - - - - - - - - - - - - - - - #Example 3: OPEN NEXUS FILE AND SUBSEQUENTLY READ SUBGROUPS - print "OPEN NEXUS FILE AND SUBSEQUENTLY READ SUBGROUPS" - print "===================================================" - #reopen nexus file - f = NXfile("nxtest.nxs", NXACC_RDWR) - - root = f.getRoot() - entry = f.readSubGroup(root, "entry:NXentry") - entry.setElem (NXelem(name="command_line", nxtype=NX_CHAR, dims=[20], data="/command") ) - - sample = f.readSubGroup(entry, "sample:NXsample") - tvalues = [20.0, 21.0, 20.0, 20.0, 21.0, 20.0, 20.0, 21.0, 20.0, 20.0, 21.0, 20.0, 20.0, 21.0, 20.0, 20.0, 21.0, 20.0, 19.0, 18.0 ] - sample.setElem( NXelem(name="temperature", nxtype=NX_FLOAT32, dims=[20], data=tvalues) ) - - entry.setGroup(sample) - root.setGroup(entry) - f.save() - f.close() - - #reopen nexus file - f = NXfile("nxtest.nxs", NXACC_RDWR) - sample = f.readGroup("root:NXroot/entry:NXentry/sample:NXsample") - temperature = sample.get_temperature() - # equivalent to: temperature = sample.getElem("temperature") - print "temperature:", temperature.getData() - - #close nexus file - f.close() - print "\n\n" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #Example 4: OPEN NEXUS FILE AND PLACE SOME ARBITRARY GROUPS/ELEMS/ATTRS/DATA - print "OPEN NEXUS FILE AND PLACE SOME ARBITRARY GROUPS/ELEMS/ATTRS/DATA" - print "================================================================" - - f = NXfile("nxtest.nxs", NXACC_RDWR) - usr = f.readGroup("root:NXroot/entry:NXentry/user:NXuser") - user_name = NXelem(name="name", nxtype=NX_CHAR, dims=[20], data="Hartmut Gilde") - user_role = NXelem(name="role", nxtype=NX_CHAR, dims=[20], data="observer") - user_mail = NXelem(name="email", nxtype=NX_CHAR, dims=[30], data="hartmut.gilde@frm2.tum.de") - - # write single group to specific location in tree - #usr = NXuser(name="hartmut", path="root:NXroot/entry:NXentry/user:NXuser") - usr.set_name(user_name) - usr.set_role(user_role) - usr.set_email(user_mail) - - f.writeGroup(usr) - - #write single element to specified location in tree - density = NXelem(path="root:NXroot/entry:NXentry/sample:NXsample/density:SDS", name="density", nxtype=NX_FLOAT32, dims=[4], data=[0.5, 0.5, 0.5, 0.5]) - f.writeElem(density) - - density = None - - f.close() - - - # reopen it again - f = NXfile("nxtest.nxs", NXACC_RDWR) - - density = f.readElem("root:NXroot/entry:NXentry/sample:NXsample/density:SDS") - print "directly read density: ", density.getData() - - #read data from single elem - cmd_ln = f.readData("root:NXroot/entry:NXentry/command_line:SDS") - print "directly read command_line: ", cmd_ln - - f.close() - print "\n\n" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #Example 6: INTERRUPT SCAN PROCESS(WRITE PROCESS TO NXDATA) AND RECOVER FROM SAVED DATA - print "INTERRUPT SCAN PROCESS(WRITE PROCESS TO NXDATA) AND RECOVER FROM SAVED DATA" - print "================================================================" - - f = NXfile("nxtest.nxs", NXACC_RDWR) - - entry = f.readGroup("root:NXroot/entry:NXentry") - - tnxdata = NXdata(name="tdata") - - tsdata = NXdataelem( name="ncounts", - dims=[2,3,20], - axnames="[p]", - nxcachefile="./nxcache.nxs") - tsaxish = NXaxis(name="h", nxtype=NX_FLOAT32, dims=[20]) - tsaxisk = NXaxis(name="k", nxtype=NX_FLOAT32, dims=[20]) - tsaxisl = NXaxis(name="l", nxtype=NX_FLOAT32, dims=[20]) - tsaxish.attachToNXData(tsdata) - tsaxisk.attachToNXData(tsdata) - tsaxisl.attachToNXData(tsdata) - - tnxdata.setData(data=tsdata) - - entry.setGroup(tnxdata) - - status = f.writeGroup(entry) - - # loops simulate interruption on scan line 2 and entry 12 - for j in range(2): - for i in range(2): - for k in range(12): - print "writing", float((j+1)*(i+1)*(k+1)), " to [", j,"," , i, "]" - tsdata.appendData(float((j+1)*(i+1)*(k+1)), [j,i]) - #time.sleep(1) - for k in range(12): - print "write %d to hkl"%(k) - time.sleep(0.2) - tsaxish.appendData(math.sin(k)) - tsaxisk.appendData(3.1) - tsaxisl.appendData(4.4) - f = None - - # now try to recover - f = NXfile("nxtest.nxs", NXACC_RDWR) - entry = f.readGroup("root:NXroot/entry:NXentry") - - trdata2 = NXdataelem(name="ncounts", - dims=[2,3,20], - axnames="[p]", - nxcachefile="./nxcache.nxs") - trdata2.restoreData() - print "restored data: ", trdata2.data - traxish = NXaxis(name="h", nxtype=NX_FLOAT32, dims=[20]) - traxisk = NXaxis(name="k", nxtype=NX_FLOAT32, dims=[20]) - traxisl = NXaxis(name="l", nxtype=NX_FLOAT32, dims=[20]) - traxish.attachToNXData(trdata2) - traxisk.attachToNXData(trdata2) - traxisl.attachToNXData(trdata2) - traxish.restoreData() - traxisk.restoreData() - traxisl.restoreData() - - print "restored axis h:", traxish.data - print "restored axis k:", traxisk.data - print "restored axis l:", traxisl.data - - for j in range(1,2): - for i in range(2,3): - for k in range(10,20): - print "writing", float((j+1)*(i+1)*(k+1)), " to [", j,"," , i, "]" - time.sleep(0.1) - trdata2.appendData(float((j+1)*(i+1)*(k+1)), [j,i]) - for k in range(0,4): - traxish.appendData(math.sin(k)) - traxisk.appendData(3.1) - traxisl.appendData(4.4) - - #trdata2.plotData(axname="h", coords=[1,2]) - - f.close() - print "\n\n" - - - -if __name__=="__main__": - main(sys.argv) - - diff --git a/contrib/bindings/nxpython/README b/contrib/bindings/nxpython/README deleted file mode 100644 index b6511fb1..00000000 --- a/contrib/bindings/nxpython/README +++ /dev/null @@ -1,76 +0,0 @@ -------------------------------------------------------------------------- - nxpython - a 1:1 python interface to the nexus c api using swig and typemaps -------------------------------------------------------------------------- - - -Introduction -============ - -nxpython represents just another interface to the core nexus library available for the C language. -it neither needs modification of the original c sources, nor does it require an additional python layer, -nor does it annoy the python programmer with the creation and handling of opaque c pointers. -the pointer handling and argument input/output conversion is dealt by the language(python)-specific -and function-specific typemaps supplied in a separate napi_typemaps.i file. -This way the python functions act just as the python programmer would expect them to do, -although there is a pretty one to one correspondance between C functions and python functions. -(take a look at the list of the available python routines below) - - - -Installation Instructions -========================= -in order to get nxpython running, you need a recent copy of the nexus cvs sources(of course) -(the hdf libraries and the hdf 3rdparty librarys too, of course) and a recent version of swig (1.3.21 should suffice) -if you got hdf, nexus and swig installed on your system, just unpack the nxpython.tar.gz -in the contrib dir in the nexus root dir and run - -./setup.py install - -(please do not forget to adapt the pathes in setup.py to point to the actual locations of hdf and nexus libs/includes.) - -this should automatically create and install the nexus libs into the python 3rdparty modules directory. -starting the python interpreter, the nexus functions should be made available by typing - -from nexus import * - - - - -Usage of API Routines in Python -=============================== - -General Initialization and Shutdown: -status, handle = NXopen (name, mode) -status = NXclose (handle) -status = NXmakegroup (handle, groupname, classname) -status = NXopengroup (handle, groupname, classname) -status = NXclosegroup (handle) -status = NXmakedata (handle, name, type, rank, dims[]) -status = NXcompmakedata (handle, name, type, rank, dims[], comptype) -status = NXopendata (handle, name) -status = NXclosedata (handle) - -Reading and Writing: -status, data[] = NXgetdata (handle) -status, data[] = NXgetslab (handle, start[], size[]) -status, value, type = NXgetattr (handle, name, type) -status = NXputdata (handle, data[]) -status = NXputslab (handle, data[], start[], size[]) -status = NXputattr (handle, name, value, type) -status = NXflush (handle) - -Meta-Data Routines: -status, rank, dims[], type = NXgetinfo (handle) -status, nitems, path, class = NXgetgroupinfo (handle) -status = NXinitgroupdir (handle) -status, name, class, type = NXgetnextentry (handle) -status, nattrs = NXgetattrinfo (handle) -status = NXinitattrdir (handle) -status, name, length, type = NXgetnextattr (handle) - -Linking and Group Hierarchy: -status, link NXgetgroupID (handle) -status, link NXgetdataID (handle) -status NXmakelink (handle, link) - diff --git a/contrib/bindings/nxpython/napi_swig.i b/contrib/bindings/nxpython/napi_swig.i deleted file mode 100644 index 98706a2f..00000000 --- a/contrib/bindings/nxpython/napi_swig.i +++ /dev/null @@ -1,192 +0,0 @@ -%module nexus - -%{ - -/*extern NexusFunction; -extern pNexusFunction;*/ - -#include "napi.h" -%} - -%include typemaps.i -%include cpointer.i -%include cstring.i - -%include napi_typemaps.i - -%pointer_functions(NXhandle, pNXhandle) -%pointer_functions(NXlink, pNXlink) - -%cstring_bounded_output(NXname name, 128); -%cstring_bounded_output(NXname nxclass, 128); - - -/* SPECIFIC CUSTOMIZED TYPEMAPS */ - -/* NXopen */ -%apply NXhandle* pHandle {NXhandle* pHandle}; - -/* NXclose, NXflush */ -%apply NXhandle* ppHandle {NXhandle* ppHandle}; - -/* NXopendata, NXcompmakedata */ -%apply int dim[] {int dim[]}; -%apply int bufsize[] {int bufsize[]}; - - -/* NXgetdata */ -%apply void* data_out {void* data_out}; - -/* NXgetslab */ -%apply void *data_out_slab {void* data_out_slab} - -/* NXgetattr */ -%apply void* data_out_att {void* data_out_att}; -%apply int* iDataLen {int* iDataLen}; -%apply int * iType { int * iType}; - -/* NXputdata */ -%apply void* data_in_put {void* data_in_put}; - -/* NXputattr */ -%apply void* data_in_att {void* data_in_att}; -%apply int iDataLen {int iDataLen}; - -/* NXgetslab, NXputslab */ -%apply int SlabIn[] {int slab_start[], int slab_size[]}; - - -/* NXgetinfo */ -%apply int dimension[] {int dimension[]}; - - -/* NXgetdataID, NXgetgroupID */ -%apply NXlink* outLink {NXlink* outLink}; - -/* NXmakelink */ -%apply NXlink* pLink {NXlink* pLink}; - -/* all expect NXopen */ -%apply NXhandle handle {NXhandle handle}; - - - -/* NeXus HDF45 */ -#define NEXUS_VERSION "3.0.0" /* major.minor.patch */ -#define CONSTCHAR const char - -typedef void* NXhandle; -typedef int NXstatus; -typedef char NXname[128]; - -typedef enum {NXACC_READ=1, NXACC_RDWR=2, NXACC_CREATE=3, NXACC_CREATE4=4, - NXACC_CREATE5=5, NXACC_CREATEXML=6, NXACC_NOSTRIP=128} NXaccess; - -typedef struct { - char *iname; - int type; -}info_type, *pinfo; - -#define NX_OK 1 -#define NX_ERROR 0 -#define NX_EOD -1 - -#define NX_UNLIMITED -1 - -#define NX_MAXRANK 32 -#define NX_MAXNAMELEN 64 - - -#define NX_FLOAT32 5 -#define NX_FLOAT64 6 -#define NX_INT8 20 -#define NX_UINT8 21 -#define NX_INT16 22 -#define NX_UINT16 23 -#define NX_INT32 24 -#define NX_UINT32 25 -#define NX_CHAR 4 - -#define NX_COMP_NONE 100 -#define NX_COMP_LZW 200 -#define NX_COMP_RLE 300 -#define NX_COMP_HUF 400 - - -#ifdef HDF4 -#include -#endif - -#ifdef HDF5 -#include -#endif - - -#ifdef HDF4 -typedef struct { - int32 iTag; - int32 iRef; - } NXlink; -#endif - -#ifdef HDF5 -typedef struct { - char iTag5[1024]; - char iRef5[1024]; - char iRefd[1024]; - } NXlink; -#endif - - -#define NXMAXSTACK 50 - - -NXstatus NXopen(char* filename, NXaccess access_method, NXhandle* pHandle); -NXstatus NXclose(NXhandle* ppHandle); - -NXstatus NXmakegroup (NXhandle handle, char* name, char* NXclass); -NXstatus NXopengroup (NXhandle handle, char* name, char* NXclass); -NXstatus NXclosegroup(NXhandle handle); - -NXstatus NXmakedata (NXhandle handle, char* label, int datatype, int rank, int dim[]); -NXstatus NXcompmakedata (NXhandle handle, char* label, int datatype, int rank, int dim[], int comp_typ, int bufsize[]); -NXstatus NXopendata (NXhandle handle, char* label); -NXstatus NXclosedata(NXhandle handle); - - - -NXstatus NXgetdata(NXhandle handle, void* data_out); -NXstatus NXgetslab(NXhandle handle, void* data_out_slab, int slab_start[], int slab_size[]); -NXstatus NXgetattr(NXhandle handle, char* name, void* data_out_att, int* iDataLen, int* iType); - -NXstatus NXputdata(NXhandle handle, void* data_in_put); -NXstatus NXputslab(NXhandle handle, void* data_in_put, int slab_start[], int slab_size[]); -NXstatus NXputattr(NXhandle handle, char* name, void* data_in_att, int iDataLen, int iType); - -NXstatus NXflush(NXhandle* ppHandle); - - - -NXstatus NXgetinfo(NXhandle handle, int* OUTPUT, int dimension[], int* OUTPUT); -NXstatus NXgetgroupinfo(NXhandle handle, int* OUTPUT, NXname name, NXname nxclass); -NXstatus NXinitgroupdir(NXhandle handle); -NXstatus NXgetnextentry(NXhandle handle, NXname name, NXname nxclass, int* OUTPUT); -NXstatus NXgetattrinfo(NXhandle handle, int* OUTPUT); -NXstatus NXinitattrdir(NXhandle handle); -NXstatus NXgetnextattr(NXhandle handle, NXname name, int *OUTPUT, int *OUTPUT); - - - - -NXstatus NXgetgroupID(NXhandle handle, NXlink* outLink); -NXstatus NXgetdataID(NXhandle handle, NXlink* outLink); -NXstatus NXmakelink(NXhandle handle, NXlink* pLink); - - - -NXstatus NXcompress (NXhandle handle, int compr_type); -NXstatus NXsameID(NXhandle handle, NXlink* pFirstID, NXlink* pSecondID); -NXstatus NXmalloc(void** data, int rank, int dimensions[], int datatype); -NXstatus NXfree(void** data); - - diff --git a/contrib/bindings/nxpython/napi_typemaps.i b/contrib/bindings/nxpython/napi_typemaps.i deleted file mode 100644 index 1e5b25f9..00000000 --- a/contrib/bindings/nxpython/napi_typemaps.i +++ /dev/null @@ -1,864 +0,0 @@ - -/* CUSTOMIZED TYPEMAPS FOR THE C-PYTHON MAPPING OF NEXUS FUNCTIONS USING SWIG */ -/* Author: Hartmut Gilde */ -/* (c) 2004 FRM2 */ - - - -/*---------------------------------------------------*/ -/* SECTION 1: Auxiliary Functions */ -/*---------------------------------------------------*/ - - -%{ -/* helper function to free the handle */ -void destroyHandle(void* nxh) { - NXhandle oldnxh = (NXhandle)nxh; - NXclose(&oldnxh); - return; -} - -/* helper function to free the link */ -void destroyLink(void* ln) { - NXlink* oldln = (NXlink*)ln; - free(oldln); - return; -} - -/* helper function to determine memory size for memory allocation */ -int getTypeSize(int typecode){ - switch(typecode){ - case NX_FLOAT32: - case NX_INT32: - case NX_UINT32: - return 4; - break; - case NX_FLOAT64: - return 8; - break; - case NX_INT16: - case NX_UINT16: - return 2; - break; - default: - return 1; - break; - } -} - -/* checks if the type of the given python object is compatible with the specified Nexus data type*/ -int checkTypes(PyObject* py_obj, int nx_type) { - if (PyInt_Check(py_obj)) { - if ( (nx_type == NX_INT8) || - (nx_type == NX_UINT8) || - (nx_type == NX_INT16) || - (nx_type == NX_UINT16) || - (nx_type == NX_INT32) || - (nx_type == NX_UINT32) ) { - return 1; - } - } - else if (PyLong_Check(py_obj)) { - if ( (nx_type == NX_INT8) || - (nx_type == NX_UINT8) || - (nx_type == NX_INT16) || - (nx_type == NX_UINT16) || - (nx_type == NX_INT32) || - (nx_type == NX_UINT32) ) { - return 1; - } - } - else if (PyFloat_Check(py_obj)) { - if ( (nx_type == NX_FLOAT32) || - (nx_type == NX_FLOAT64) ) { - return 1; - } - } - else if (PyString_Check(py_obj)) { - if ( (nx_type == NX_CHAR) ) { - return 1; - } - } - else { - return 0; - } - return 0; -} - -/* converts an arbitrary nested list of Python objects to a flat list */ -int flattenList(PyObject* list, int rank, int dims[], int depth, int type, PyObject** target) { - PyObject* litem; - int i, lsize; - - if (PyList_Check(list)) { - lsize = PyList_Size(list); - /*if ((lsize != dims[depth]) || (rank == depth)) { - printf("lsize %d, dims %d, rank %d, depth %d \n", lsize, dims[depth],rank, depth); - PyErr_SetString(PyExc_ValueError, "Dimensions don't match. Check your data\n"); - return 0; - }*/ - for (i=0; i1) { - PyErr_SetString(PyExc_ValueError, "Type NX_CHAR is restricted to 1 dimension.\n"); - return NULL; - } - list = PyString_FromString(it); - } - else { - list = PyList_New(0); - buildList(&list, 0, rank, dimsp, type, &it); - /* if dim=1 and only one element is returned, don't return it as list*/ - if (!PyList_Check(PyList_GetItem(list, 0))) { - if (PyList_Size(list) == 1) { - list = PyList_GetItem(list, 0); - } - } - } - } - $result = t_output_helper($result, list); -} - - -/*--------------------------------- NXgetslab -------------------------------*/ -/*data_out_slab acts as output argument */ -%typemap(python,in, numinputs=0) void* data_out_slab { - -} - -%typemap(python,check) void* data_out_slab { - NXstatus t_result; - - void *data = (void*)0; - - int rank, type, dims[NX_MAXRANK]; - int *rankp = &rank; - int *typep = &type; - int *dimsp = dims; - - t_result = (NXstatus)NXgetinfo(arg1, rankp, dimsp, typep); - if (t_result != NX_OK) { - return NULL; - } - - t_result =(NXstatus)NXmalloc(&data, rank, arg4, type); - if (t_result != NX_OK) { - return NULL; - } - - $1 = data; -} - - -%typemap(python,argout) void* data_out_slab { - PyObject* list; - - NXstatus t_result; - - int rank, type, dims[NX_MAXRANK]; - int *rankp = &rank; - int *typep = &type; - int *dimsp = dims; - - t_result = (NXstatus)NXgetinfo(arg1, rankp, dimsp, typep); - - if (t_result == NX_OK) { - char * it= (char*)$1; - - if (type==NX_CHAR) { - if (rank>1) { - PyErr_SetString(PyExc_ValueError, "Type NX_CHAR is restricted to 1 dimension.\n"); - return NULL; - } - list = PyString_FromString(it); - } - else { - list = PyList_New(0); - buildList(&list, 0, rank, arg4, type, &it); - } - } - - $result = t_output_helper($result, list); -} - - -/*--------------------------------- NXgetattr -------------------------------*/ -/*iType argument acts as input and output argument*/ -%typemap(python,in) int* iType { - int inout; - - if (!PyInt_Check($input)) { - PyErr_SetString(PyExc_TypeError, "Wrong type. Expected an integer.\n"); - return NULL; - } - inout = (int)PyInt_AsLong($input); - - $1 = &inout; -} - - -%typemap(python,argout) int* iType { - PyObject* result_obj = PyInt_FromLong((long)(*($1))); - $result = t_output_helper($result,result_obj); - free(arg3); -} - - -/*--------------------------------- NXgetattr -------------------------------*/ -/*data_out_att acts as output parameter*/ -%typemap(python,in, numinputs=0) void* data_out_att { -} - -%typemap(python,check) void* data_out_att { - int* data_type = arg5; - /*int* data_length = arg4;*/ - - void* data = (void*)0; - int buf_size=1; - - if (*data_type == NX_CHAR) { - buf_size = 4096; - } - else { - buf_size = getTypeSize(*data_type); - } - - data = (void*)malloc(buf_size); - memset(data,0,buf_size); - - $1 = data; -} - - -%typemap(python,argout) void* data_out_att { - int* data_type = arg5; - PyObject* result_obj; - void* data = $1; - - switch(*data_type) { - case NX_CHAR: - result_obj = PyString_FromString((char*)data); - break; - case NX_INT8: - result_obj = PyInt_FromLong((long)(*((char*)data))); - break; - case NX_UINT8: - result_obj = PyInt_FromLong((long)(*((unsigned char*)data))); - break; - case NX_INT16: - result_obj = PyInt_FromLong((long)(*((short*)data))); - break; - case NX_UINT16: - result_obj = PyInt_FromLong((long)(*((unsigned short*)data))); - break; - case NX_INT32: - result_obj = PyInt_FromLong((long)(*((int*)data))); - break; - case NX_UINT32: - result_obj = PyInt_FromLong((long)(*((unsigned int*)data))); - break; - case NX_FLOAT32: - result_obj = PyFloat_FromDouble((double)(*((float*)data))); - break; - case NX_FLOAT64: - result_obj = PyFloat_FromDouble((double)(*((double*)data))); - break; - default: - PyErr_SetString(PyExc_TypeError, "Unknown type or type not supported yet.\n"); - return NULL; - break; - } - $result = t_output_helper($result,result_obj); -} - - -/*--------------------------------- NXgetattr -------------------------------*/ -%typemap(python,in, numinputs=0) int* iDataLen { -} - -%typemap(python,check) int* iDataLen { - int initial_size = 1; - if (*arg5==NX_CHAR) { - initial_size = 4096; - } - $1 = &initial_size; -} - - -/* ------------------------- NXputdata ---------------------*/ -/*Typemaps for the NXputdata function*/ -%typemap(python,in) void* data_in_put { - PyObject* flatlist; - - NXstatus t_result; - - int i, ntotal=1; - void* data; - - int rank, type, dims[NX_MAXRANK]; - int *rankp = &rank; - int *typep = &type; - int *dimsp = dims; - - t_result = (NXstatus)NXgetinfo(arg1, rankp, dimsp, typep); - - if (t_result == NX_OK) { - for (i=0; i +# +# +#==================================================================== + +pydocdir = $(NXDOCDIR)/python +### pydoc_DATA = README.html +### pkgpython_PYTHON = nxs.py setup.py nxstest.py nexus.py nxsunit.py +### EXTRA_DIST = README.html + +### install-data-hook : +### sed -e "s|nxprefix = .*|nxprefix = \'${prefix}\'|" < ${srcdir}/nxs.py > $(DESTDIR)${pkgpythondir}/nxs.py + +# python setup.py install --root=$(DESTDIR) + +include $(top_srcdir)/build_rules.am diff --git a/doc/doxygen/Doxyfile_c b/doc/doxygen/Doxyfile_c new file mode 100644 index 00000000..b99d547a --- /dev/null +++ b/doc/doxygen/Doxyfile_c @@ -0,0 +1,1524 @@ +# Doxyfile 1.6.1 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project +# +# All text after a hash (#) is considered a comment and will be ignored +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" ") + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all +# text before the first occurrence of this tag. Doxygen uses libiconv (or the +# iconv built into libc) for the transcoding. See +# http://www.gnu.org/software/libiconv for the list of possible encodings. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded +# by quotes) that should identify the project. + +PROJECT_NAME = NeXus + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = 1 + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = . + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, +# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, +# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English +# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, +# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, +# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = YES + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = $(TOPSRC) + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = $(TOPSRC) + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful is your file systems +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like regular Qt-style comments +# (thus requiring an explicit @brief command for a brief description.) + +JAVADOC_AUTOBRIEF = YES + +# If the QT_AUTOBRIEF tag is set to YES then Doxygen will +# interpret the first line (until the first dot) of a Qt-style +# comment as the brief description. If set to NO, the comments +# will behave just like regular Qt-style comments (thus requiring +# an explicit \brief command for a brief description.) + +QT_AUTOBRIEF = YES + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 8 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = YES + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java +# sources only. Doxygen will then generate output that is more tailored for +# Java. For instance, namespaces will be presented as packages, qualified +# scopes will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources only. Doxygen will then generate output that is more tailored for +# Fortran. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for +# VHDL. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it parses. +# With this tag you can assign which parser to use for a given extension. +# Doxygen has a built-in mapping, but you can override or extend it using this tag. +# The format is ext=language, where ext is a file extension, and language is one of +# the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP, +# Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat +# .inc files as Fortran files (default is PHP), and .f files as C (default is Fortran), +# use: inc=Fortran f=C. Note that for custom extensions you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should +# set this tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. +# func(std::string) {}). This also make the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. + +BUILTIN_STL_SUPPORT = YES + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. +# Doxygen will parse them like normal C++ but will assume all classes use public +# instead of private inheritance when no explicit protection keyword is present. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate getter +# and setter methods for a property. Setting this option to YES (the default) +# will make doxygen to replace the get and set methods by a property in the +# documentation. This will only work if the methods are indeed getting or +# setting a simple type. If this is not the case, or you want to show the +# methods anyway, you should set this option to NO. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = NO + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum +# is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically +# be useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. + +TYPEDEF_HIDES_STRUCT = NO + +# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to +# determine which symbols to keep in memory and which to flush to disk. +# When the cache is full, less often used symbols will be written to disk. +# For small to medium size projects (<1000 input files) the default value is +# probably good enough. For larger projects a too small cache size can cause +# doxygen to be busy swapping symbols to and from disk most of the time +# causing a significant performance penality. +# If the system has enough physical memory increasing the cache will improve the +# performance by keeping more symbols in memory. Note that the value works on +# a logarithmic scale so increasing the size by one will rougly double the +# memory usage. The cache size is given by this formula: +# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, +# corresponding to a cache size of 2^16 = 65536 symbols + +SYMBOL_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = YES + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = NO + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = NO + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base +# name of the file that contains the anonymous namespace. By default +# anonymous namespace are hidden. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = NO + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the (brief and detailed) documentation of class members so that constructors and destructors are listed first. If set to NO (the default) the constructors will appear in the respective orders defined by SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the +# hierarchy of group names into alphabetical order. If set to NO (the default) +# the group names will appear in their defined order. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or define consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and defines in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = YES + +# If the sources in your project are distributed over multiple directories +# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy +# in the documentation. The default is NO. + +SHOW_DIRECTORIES = NO + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. +# This will remove the Files entry from the Quick Index and from the +# Folder Tree View (if specified). The default is YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the +# Namespaces page. +# This will remove the Namespaces entry from the Quick Index +# and from the Folder Tree View (if specified). The default is YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command , where is the value of +# the FILE_VERSION_FILTER tag, and is the name of an input file +# provided by doxygen. Whatever the program writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by +# doxygen. The layout file controls the global structure of the generated output files +# in an output format independent way. The create the layout file that represents +# doxygen's defaults, run doxygen with the -l option. You can optionally specify a +# file name after the option, if omitted DoxygenLayout.xml will be used as the name +# of the layout file. + +LAYOUT_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = YES + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = YES + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# This WARN_NO_PARAMDOC option can be abled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = $(TOPSRC)/src \ + $(TOPSRC)/include + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is +# also the default input encoding. Doxygen uses libiconv (or the iconv built +# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for +# the list of possible encodings. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx +# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90 + +FILE_PATTERNS = *.c \ + *.h + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = NO + +# The EXCLUDE tag can be used to specify files and/or directories that should +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used select whether or not files or +# directories that are symbolic links (a Unix filesystem feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. Note that the wildcards are matched +# against the file with absolute path, so to exclude all test directories +# for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. +# If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. +# Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. +# The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER +# is applied to all files. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = YES + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = YES + +# If the REFERENCES_RELATION tag is set to YES +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = YES + +# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) +# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from +# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will +# link to the source code. +# Otherwise they will link to the documentation. + +REFERENCES_LINK_SOURCE = YES + +# If the USE_HTAGS tag is set to YES then the references to source code +# will point to the HTML generated by the htags(1) tool instead of doxygen +# built-in source browser. The htags tool is part of GNU's global source +# tagging system (see http://www.gnu.org/software/global/global.html). You +# will need version 4.8.6 or higher. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = NO + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = html-c + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# If the HTML_TIMESTAMP tag is set to YES then the generated HTML +# documentation will contain the timesstamp. + +HTML_TIMESTAMP = NO + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# stylesheet in the HTML output directory as well, or it will be erased! + +HTML_STYLESHEET = + +# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, +# files or namespaces will be aligned in HTML using tables. If set to +# NO a bullet list will be used. + +HTML_ALIGN_MEMBERS = YES + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. For this to work a browser that supports +# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox +# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). + +HTML_DYNAMIC_SECTIONS = NO + +# If the GENERATE_DOCSET tag is set to YES, additional index files +# will be generated that can be used as input for Apple's Xcode 3 +# integrated development environment, introduced with OSX 10.5 (Leopard). +# To create a documentation set, doxygen will generate a Makefile in the +# HTML output directory. Running make will produce the docset in that +# directory and running "make install" will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find +# it at startup. +# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information. + +GENERATE_DOCSET = NO + +# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the +# feed. A documentation feed provides an umbrella under which multiple +# documentation sets from a single provider (such as a company or product suite) +# can be grouped. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that +# should uniquely identify the documentation set bundle. This should be a +# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen +# will append .docset to the name. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING +# is used to encode HtmlHelp index (hhk), content (hhc) and project file +# content. + +CHM_INDEX_ENCODING = + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = NO + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER +# are set, an additional index file will be generated that can be used as input for +# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated +# HTML documentation. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can +# be used to specify the file name of the resulting .qch file. +# The path specified is relative to the HTML output folder. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#namespace + +QHP_NAMESPACE = + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#virtual-folders + +QHP_VIRTUAL_FOLDER = doc + +# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to add. +# For more information please see +# http://doc.trolltech.com/qthelpproject.html#custom-filters + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the custom filter to add.For more information please see +# Qt Help Project / Custom Filters. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this project's +# filter section matches. +# Qt Help Project / Filter Attributes. + +QHP_SECT_FILTER_ATTRS = + +# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can +# be used to specify the location of Qt's qhelpgenerator. +# If non-empty doxygen will try to run qhelpgenerator on the generated +# .qhp file. + +QHG_LOCATION = + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index at +# top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. + +DISABLE_INDEX = NO + +# This tag can be used to set the number of enum values (range [1..20]) +# that doxygen will group on one line in the generated HTML documentation. + +ENUM_VALUES_PER_LINE = 4 + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. +# If the tag value is set to YES, a side panel will be generated +# containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). +# Windows users are probably better off using the HTML help feature. + +GENERATE_TREEVIEW = NO + +# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories, +# and Class Hierarchy pages using a tree view instead of an ordered list. + +USE_INLINE_TREES = NO + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +# Use this tag to change the font size of Latex formulas included +# as images in the HTML documentation. The default is 10. Note that +# when you change the font size after a successful doxygen run you need +# to manually remove any form_*.png images from the HTML output directory +# to force them to be regenerated. + +FORMULA_FONTSIZE = 10 + +# When the SEARCHENGINE tag is enable doxygen will generate a search box for the HTML output. The underlying search engine uses javascript +# and DHTML and should work on any modern browser. Note that when using HTML help (GENERATE_HTMLHELP) or Qt help (GENERATE_QHP) +# there is already a search function so this one should typically +# be disabled. + +SEARCHENGINE = YES + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = YES + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex-c + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = NO + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, a4wide, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = a4wide + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = NO + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = NO + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = NO + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = NO + +# If LATEX_SOURCE_CODE is set to YES then doxygen will include source code with syntax highlighting in the LaTeX output. Note that which sources are shown also depends on other settings such as SOURCE_BROWSER. + +LATEX_SOURCE_CODE = NO + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load stylesheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = NO + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + +# The XML_SCHEMA tag can be used to specify an XML schema, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_SCHEMA = + +# The XML_DTD tag can be used to specify an XML DTD, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_DTD = + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. +# This is useful +# if you want to understand what is going on. +# On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = YES + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_DEFINED tags. + +EXPAND_ONLY_PREDEF = YES + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# in the INCLUDE_PATH (see below) will be search if a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = HDF4=1 \ + HDF5=1 \ + NXXML=1 \ + NXDLL_EXPORT= + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition. + +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all function-like macros that are alone +# on a line, have an all uppercase name, and do not end with a semicolon. Such +# function macros are typically used for boiler-plate code, and will confuse +# the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. +# Optionally an initial location of the external documentation +# can be added for each tagfile. The format of a tag file without +# this location is as follows: +# +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths or +# URLs. If a location is present for each tag, the installdox tool +# does not have to be run to correct the links. +# Note that each tag file must have a unique name +# (where the name does NOT include the path) +# If a tag file is not located in the directory in which doxygen +# is run, you must also specify the path to the tagfile here. + +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = YES + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option is superseded by the HAVE_DOT option below. This is only a +# fallback. It is recommended to install and use dot, since it yields more +# powerful graphs. + +CLASS_DIAGRAMS = YES + +# You can define message sequence charts within doxygen comments using the \msc +# command. Doxygen will then run the mscgen tool (see +# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the +# documentation. The MSCGEN_PATH tag allows you to specify the directory where +# the mscgen tool resides. If left empty the tool is assumed to be found in the +# default search path. + +MSCGEN_PATH = + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = YES + +# By default doxygen will write a font called FreeSans.ttf to the output +# directory and reference it in all dot files that doxygen generates. This +# font does not include all possible unicode characters however, so when you need +# these (or just want a differently looking font) you can specify the font name +# using DOT_FONTNAME. You need need to make sure dot is able to find the font, +# which can be done by putting it in a standard location or by setting the +# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory +# containing the font. + +DOT_FONTNAME = FreeSans + +# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. +# The default size is 10pt. + +DOT_FONTSIZE = 10 + +# By default doxygen will tell dot to use the output directory to look for the +# FreeSans.ttf font (which doxygen will put there itself). If you specify a +# different font using DOT_FONTNAME you can set the path where dot +# can find it using this tag. + +DOT_FONTPATH = + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# the CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = YES + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = NO + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = YES + +# If the CALL_GRAPH and HAVE_DOT options are set to YES then +# doxygen will generate a call dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable call graphs +# for selected functions only using the \callgraph command. + +CALL_GRAPH = YES + +# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then +# doxygen will generate a caller dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable caller +# graphs for selected functions only using the \callergraph command. + +CALLER_GRAPH = NO + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are png, jpg, or gif +# If left blank png will be used. + +DOT_IMAGE_FORMAT = png + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of +# nodes that will be shown in the graph. If the number of nodes in a graph +# becomes larger than this value, doxygen will truncate the graph, which is +# visualized by representing a node as a red box. Note that doxygen if the +# number of direct children of the root node in a graph is already larger than +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note +# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. + +DOT_GRAPH_MAX_NODES = 50 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that the size of a graph can be further restricted by +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, because dot on Windows does not +# seem to support this out of the box. Warning: Depending on the platform used, +# enabling this option may lead to badly anti-aliased labels on the edges of +# a graph (i.e. they become hard to read). + +DOT_TRANSPARENT = NO + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = NO + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES diff --git a/doc/doxygen/Doxyfile_cpp b/doc/doxygen/Doxyfile_cpp new file mode 100644 index 00000000..17eda953 --- /dev/null +++ b/doc/doxygen/Doxyfile_cpp @@ -0,0 +1,1531 @@ +# Doxyfile 1.6.1 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project +# +# All text after a hash (#) is considered a comment and will be ignored +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" ") + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all +# text before the first occurrence of this tag. Doxygen uses libiconv (or the +# iconv built into libc) for the transcoding. See +# http://www.gnu.org/software/libiconv for the list of possible encodings. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded +# by quotes) that should identify the project. + +PROJECT_NAME = NeXus + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = 1 + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = . + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, +# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, +# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English +# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, +# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, +# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = YES + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = $(TOPSRC) + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = $(TOPSRC) + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful is your file systems +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like regular Qt-style comments +# (thus requiring an explicit @brief command for a brief description.) + +JAVADOC_AUTOBRIEF = YES + +# If the QT_AUTOBRIEF tag is set to YES then Doxygen will +# interpret the first line (until the first dot) of a Qt-style +# comment as the brief description. If set to NO, the comments +# will behave just like regular Qt-style comments (thus requiring +# an explicit \brief command for a brief description.) + +QT_AUTOBRIEF = YES + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 8 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java +# sources only. Doxygen will then generate output that is more tailored for +# Java. For instance, namespaces will be presented as packages, qualified +# scopes will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources only. Doxygen will then generate output that is more tailored for +# Fortran. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for +# VHDL. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it parses. +# With this tag you can assign which parser to use for a given extension. +# Doxygen has a built-in mapping, but you can override or extend it using this tag. +# The format is ext=language, where ext is a file extension, and language is one of +# the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP, +# Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat +# .inc files as Fortran files (default is PHP), and .f files as C (default is Fortran), +# use: inc=Fortran f=C. Note that for custom extensions you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should +# set this tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. +# func(std::string) {}). This also make the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. + +BUILTIN_STL_SUPPORT = YES + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. +# Doxygen will parse them like normal C++ but will assume all classes use public +# instead of private inheritance when no explicit protection keyword is present. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate getter +# and setter methods for a property. Setting this option to YES (the default) +# will make doxygen to replace the get and set methods by a property in the +# documentation. This will only work if the methods are indeed getting or +# setting a simple type. If this is not the case, or you want to show the +# methods anyway, you should set this option to NO. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = NO + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum +# is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically +# be useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. + +TYPEDEF_HIDES_STRUCT = NO + +# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to +# determine which symbols to keep in memory and which to flush to disk. +# When the cache is full, less often used symbols will be written to disk. +# For small to medium size projects (<1000 input files) the default value is +# probably good enough. For larger projects a too small cache size can cause +# doxygen to be busy swapping symbols to and from disk most of the time +# causing a significant performance penality. +# If the system has enough physical memory increasing the cache will improve the +# performance by keeping more symbols in memory. Note that the value works on +# a logarithmic scale so increasing the size by one will rougly double the +# memory usage. The cache size is given by this formula: +# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, +# corresponding to a cache size of 2^16 = 65536 symbols + +SYMBOL_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = YES + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = NO + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = NO + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base +# name of the file that contains the anonymous namespace. By default +# anonymous namespace are hidden. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = NO + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the (brief and detailed) documentation of class members so that constructors and destructors are listed first. If set to NO (the default) the constructors will appear in the respective orders defined by SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the +# hierarchy of group names into alphabetical order. If set to NO (the default) +# the group names will appear in their defined order. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or define consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and defines in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = YES + +# If the sources in your project are distributed over multiple directories +# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy +# in the documentation. The default is NO. + +SHOW_DIRECTORIES = NO + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. +# This will remove the Files entry from the Quick Index and from the +# Folder Tree View (if specified). The default is YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the +# Namespaces page. +# This will remove the Namespaces entry from the Quick Index +# and from the Folder Tree View (if specified). The default is YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command , where is the value of +# the FILE_VERSION_FILTER tag, and is the name of an input file +# provided by doxygen. Whatever the program writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by +# doxygen. The layout file controls the global structure of the generated output files +# in an output format independent way. The create the layout file that represents +# doxygen's defaults, run doxygen with the -l option. You can optionally specify a +# file name after the option, if omitted DoxygenLayout.xml will be used as the name +# of the layout file. + +LAYOUT_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = YES + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = YES + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# This WARN_NO_PARAMDOC option can be abled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = $(TOPSRC)/bindings/cpp + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is +# also the default input encoding. Doxygen uses libiconv (or the iconv built +# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for +# the list of possible encodings. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx +# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90 + +FILE_PATTERNS = *.c \ + *.cc \ + *.cxx \ + *.cpp \ + *.c++ \ + *.h \ + *.hh \ + *.hxx \ + *.hpp \ + *.h++ + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = NO + +# The EXCLUDE tag can be used to specify files and/or directories that should +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used select whether or not files or +# directories that are symbolic links (a Unix filesystem feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. Note that the wildcards are matched +# against the file with absolute path, so to exclude all test directories +# for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. +# If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. +# Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. +# The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER +# is applied to all files. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = YES + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = YES + +# If the REFERENCES_RELATION tag is set to YES +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = YES + +# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) +# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from +# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will +# link to the source code. +# Otherwise they will link to the documentation. + +REFERENCES_LINK_SOURCE = YES + +# If the USE_HTAGS tag is set to YES then the references to source code +# will point to the HTML generated by the htags(1) tool instead of doxygen +# built-in source browser. The htags tool is part of GNU's global source +# tagging system (see http://www.gnu.org/software/global/global.html). You +# will need version 4.8.6 or higher. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = NO + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = html-cpp + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# If the HTML_TIMESTAMP tag is set to YES then the generated HTML +# documentation will contain the timesstamp. + +HTML_TIMESTAMP = NO + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# stylesheet in the HTML output directory as well, or it will be erased! + +HTML_STYLESHEET = + +# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, +# files or namespaces will be aligned in HTML using tables. If set to +# NO a bullet list will be used. + +HTML_ALIGN_MEMBERS = YES + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. For this to work a browser that supports +# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox +# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). + +HTML_DYNAMIC_SECTIONS = NO + +# If the GENERATE_DOCSET tag is set to YES, additional index files +# will be generated that can be used as input for Apple's Xcode 3 +# integrated development environment, introduced with OSX 10.5 (Leopard). +# To create a documentation set, doxygen will generate a Makefile in the +# HTML output directory. Running make will produce the docset in that +# directory and running "make install" will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find +# it at startup. +# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information. + +GENERATE_DOCSET = NO + +# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the +# feed. A documentation feed provides an umbrella under which multiple +# documentation sets from a single provider (such as a company or product suite) +# can be grouped. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that +# should uniquely identify the documentation set bundle. This should be a +# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen +# will append .docset to the name. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING +# is used to encode HtmlHelp index (hhk), content (hhc) and project file +# content. + +CHM_INDEX_ENCODING = + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = NO + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER +# are set, an additional index file will be generated that can be used as input for +# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated +# HTML documentation. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can +# be used to specify the file name of the resulting .qch file. +# The path specified is relative to the HTML output folder. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#namespace + +QHP_NAMESPACE = + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#virtual-folders + +QHP_VIRTUAL_FOLDER = doc + +# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to add. +# For more information please see +# http://doc.trolltech.com/qthelpproject.html#custom-filters + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the custom filter to add.For more information please see +# Qt Help Project / Custom Filters. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this project's +# filter section matches. +# Qt Help Project / Filter Attributes. + +QHP_SECT_FILTER_ATTRS = + +# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can +# be used to specify the location of Qt's qhelpgenerator. +# If non-empty doxygen will try to run qhelpgenerator on the generated +# .qhp file. + +QHG_LOCATION = + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index at +# top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. + +DISABLE_INDEX = NO + +# This tag can be used to set the number of enum values (range [1..20]) +# that doxygen will group on one line in the generated HTML documentation. + +ENUM_VALUES_PER_LINE = 4 + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. +# If the tag value is set to YES, a side panel will be generated +# containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). +# Windows users are probably better off using the HTML help feature. + +GENERATE_TREEVIEW = NO + +# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories, +# and Class Hierarchy pages using a tree view instead of an ordered list. + +USE_INLINE_TREES = NO + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +# Use this tag to change the font size of Latex formulas included +# as images in the HTML documentation. The default is 10. Note that +# when you change the font size after a successful doxygen run you need +# to manually remove any form_*.png images from the HTML output directory +# to force them to be regenerated. + +FORMULA_FONTSIZE = 10 + +# When the SEARCHENGINE tag is enable doxygen will generate a search box for the HTML output. The underlying search engine uses javascript +# and DHTML and should work on any modern browser. Note that when using HTML help (GENERATE_HTMLHELP) or Qt help (GENERATE_QHP) +# there is already a search function so this one should typically +# be disabled. + +SEARCHENGINE = YES + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = YES + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex-cpp + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = NO + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, a4wide, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = a4wide + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = NO + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = NO + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = NO + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = NO + +# If LATEX_SOURCE_CODE is set to YES then doxygen will include source code with syntax highlighting in the LaTeX output. Note that which sources are shown also depends on other settings such as SOURCE_BROWSER. + +LATEX_SOURCE_CODE = NO + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load stylesheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = NO + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + +# The XML_SCHEMA tag can be used to specify an XML schema, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_SCHEMA = + +# The XML_DTD tag can be used to specify an XML DTD, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_DTD = + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. +# This is useful +# if you want to understand what is going on. +# On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = YES + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_DEFINED tags. + +EXPAND_ONLY_PREDEF = YES + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# in the INCLUDE_PATH (see below) will be search if a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = HDF4=1 \ + HDF5=1 \ + NXXML=1 \ + NXDLL_EXPORT= + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition. + +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all function-like macros that are alone +# on a line, have an all uppercase name, and do not end with a semicolon. Such +# function macros are typically used for boiler-plate code, and will confuse +# the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. +# Optionally an initial location of the external documentation +# can be added for each tagfile. The format of a tag file without +# this location is as follows: +# +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths or +# URLs. If a location is present for each tag, the installdox tool +# does not have to be run to correct the links. +# Note that each tag file must have a unique name +# (where the name does NOT include the path) +# If a tag file is not located in the directory in which doxygen +# is run, you must also specify the path to the tagfile here. + +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = YES + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option is superseded by the HAVE_DOT option below. This is only a +# fallback. It is recommended to install and use dot, since it yields more +# powerful graphs. + +CLASS_DIAGRAMS = YES + +# You can define message sequence charts within doxygen comments using the \msc +# command. Doxygen will then run the mscgen tool (see +# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the +# documentation. The MSCGEN_PATH tag allows you to specify the directory where +# the mscgen tool resides. If left empty the tool is assumed to be found in the +# default search path. + +MSCGEN_PATH = + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = YES + +# By default doxygen will write a font called FreeSans.ttf to the output +# directory and reference it in all dot files that doxygen generates. This +# font does not include all possible unicode characters however, so when you need +# these (or just want a differently looking font) you can specify the font name +# using DOT_FONTNAME. You need need to make sure dot is able to find the font, +# which can be done by putting it in a standard location or by setting the +# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory +# containing the font. + +DOT_FONTNAME = FreeSans + +# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. +# The default size is 10pt. + +DOT_FONTSIZE = 10 + +# By default doxygen will tell dot to use the output directory to look for the +# FreeSans.ttf font (which doxygen will put there itself). If you specify a +# different font using DOT_FONTNAME you can set the path where dot +# can find it using this tag. + +DOT_FONTPATH = + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# the CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = YES + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = NO + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = YES + +# If the CALL_GRAPH and HAVE_DOT options are set to YES then +# doxygen will generate a call dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable call graphs +# for selected functions only using the \callgraph command. + +CALL_GRAPH = YES + +# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then +# doxygen will generate a caller dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable caller +# graphs for selected functions only using the \callergraph command. + +CALLER_GRAPH = NO + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are png, jpg, or gif +# If left blank png will be used. + +DOT_IMAGE_FORMAT = png + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of +# nodes that will be shown in the graph. If the number of nodes in a graph +# becomes larger than this value, doxygen will truncate the graph, which is +# visualized by representing a node as a red box. Note that doxygen if the +# number of direct children of the root node in a graph is already larger than +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note +# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. + +DOT_GRAPH_MAX_NODES = 50 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that the size of a graph can be further restricted by +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, because dot on Windows does not +# seem to support this out of the box. Warning: Depending on the platform used, +# enabling this option may lead to badly anti-aliased labels on the edges of +# a graph (i.e. they become hard to read). + +DOT_TRANSPARENT = NO + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = NO + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES diff --git a/doc/doxygen/Doxyfile_f77 b/doc/doxygen/Doxyfile_f77 new file mode 100644 index 00000000..455692e6 --- /dev/null +++ b/doc/doxygen/Doxyfile_f77 @@ -0,0 +1,1535 @@ +# Doxyfile 1.6.1 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project +# +# All text after a hash (#) is considered a comment and will be ignored +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" ") + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all +# text before the first occurrence of this tag. Doxygen uses libiconv (or the +# iconv built into libc) for the transcoding. See +# http://www.gnu.org/software/libiconv for the list of possible encodings. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded +# by quotes) that should identify the project. + +PROJECT_NAME = NeXus + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = 1 + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = . + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, +# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, +# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English +# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, +# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, +# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = YES + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = $(TOPSRC) + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = $(TOPSRC) + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful is your file systems +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like regular Qt-style comments +# (thus requiring an explicit @brief command for a brief description.) + +JAVADOC_AUTOBRIEF = YES + +# If the QT_AUTOBRIEF tag is set to YES then Doxygen will +# interpret the first line (until the first dot) of a Qt-style +# comment as the brief description. If set to NO, the comments +# will behave just like regular Qt-style comments (thus requiring +# an explicit \brief command for a brief description.) + +QT_AUTOBRIEF = YES + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 8 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java +# sources only. Doxygen will then generate output that is more tailored for +# Java. For instance, namespaces will be presented as packages, qualified +# scopes will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources only. Doxygen will then generate output that is more tailored for +# Fortran. + +OPTIMIZE_FOR_FORTRAN = YES + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for +# VHDL. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it parses. +# With this tag you can assign which parser to use for a given extension. +# Doxygen has a built-in mapping, but you can override or extend it using this tag. +# The format is ext=language, where ext is a file extension, and language is one of +# the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP, +# Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat +# .inc files as Fortran files (default is PHP), and .f files as C (default is Fortran), +# use: inc=Fortran f=C. Note that for custom extensions you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should +# set this tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. +# func(std::string) {}). This also make the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. + +BUILTIN_STL_SUPPORT = YES + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. +# Doxygen will parse them like normal C++ but will assume all classes use public +# instead of private inheritance when no explicit protection keyword is present. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate getter +# and setter methods for a property. Setting this option to YES (the default) +# will make doxygen to replace the get and set methods by a property in the +# documentation. This will only work if the methods are indeed getting or +# setting a simple type. If this is not the case, or you want to show the +# methods anyway, you should set this option to NO. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = NO + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum +# is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically +# be useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. + +TYPEDEF_HIDES_STRUCT = NO + +# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to +# determine which symbols to keep in memory and which to flush to disk. +# When the cache is full, less often used symbols will be written to disk. +# For small to medium size projects (<1000 input files) the default value is +# probably good enough. For larger projects a too small cache size can cause +# doxygen to be busy swapping symbols to and from disk most of the time +# causing a significant performance penality. +# If the system has enough physical memory increasing the cache will improve the +# performance by keeping more symbols in memory. Note that the value works on +# a logarithmic scale so increasing the size by one will rougly double the +# memory usage. The cache size is given by this formula: +# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, +# corresponding to a cache size of 2^16 = 65536 symbols + +SYMBOL_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = YES + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = NO + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = NO + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base +# name of the file that contains the anonymous namespace. By default +# anonymous namespace are hidden. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = NO + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the (brief and detailed) documentation of class members so that constructors and destructors are listed first. If set to NO (the default) the constructors will appear in the respective orders defined by SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the +# hierarchy of group names into alphabetical order. If set to NO (the default) +# the group names will appear in their defined order. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or define consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and defines in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = YES + +# If the sources in your project are distributed over multiple directories +# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy +# in the documentation. The default is NO. + +SHOW_DIRECTORIES = NO + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. +# This will remove the Files entry from the Quick Index and from the +# Folder Tree View (if specified). The default is YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the +# Namespaces page. +# This will remove the Namespaces entry from the Quick Index +# and from the Folder Tree View (if specified). The default is YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command , where is the value of +# the FILE_VERSION_FILTER tag, and is the name of an input file +# provided by doxygen. Whatever the program writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by +# doxygen. The layout file controls the global structure of the generated output files +# in an output format independent way. The create the layout file that represents +# doxygen's defaults, run doxygen with the -l option. You can optionally specify a +# file name after the option, if omitted DoxygenLayout.xml will be used as the name +# of the layout file. + +LAYOUT_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = YES + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = YES + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# This WARN_NO_PARAMDOC option can be abled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = $(TOPSRC)/bindings/f77 + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is +# also the default input encoding. Doxygen uses libiconv (or the iconv built +# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for +# the list of possible encodings. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx +# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90 + +FILE_PATTERNS = *.f \ + *.f77 \ + *.inc \ + *.c \ + *.cc \ + *.cxx \ + *.cpp \ + *.c++ \ + *.java \ + *.h \ + *.hh \ + *.hxx \ + *.hpp \ + *.h++ + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = NO + +# The EXCLUDE tag can be used to specify files and/or directories that should +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used select whether or not files or +# directories that are symbolic links (a Unix filesystem feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. Note that the wildcards are matched +# against the file with absolute path, so to exclude all test directories +# for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. +# If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. +# Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. +# The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER +# is applied to all files. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = YES + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = YES + +# If the REFERENCES_RELATION tag is set to YES +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = YES + +# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) +# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from +# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will +# link to the source code. +# Otherwise they will link to the documentation. + +REFERENCES_LINK_SOURCE = YES + +# If the USE_HTAGS tag is set to YES then the references to source code +# will point to the HTML generated by the htags(1) tool instead of doxygen +# built-in source browser. The htags tool is part of GNU's global source +# tagging system (see http://www.gnu.org/software/global/global.html). You +# will need version 4.8.6 or higher. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = NO + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = html-f77 + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# If the HTML_TIMESTAMP tag is set to YES then the generated HTML +# documentation will contain the timesstamp. + +HTML_TIMESTAMP = NO + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# stylesheet in the HTML output directory as well, or it will be erased! + +HTML_STYLESHEET = + +# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, +# files or namespaces will be aligned in HTML using tables. If set to +# NO a bullet list will be used. + +HTML_ALIGN_MEMBERS = YES + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. For this to work a browser that supports +# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox +# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). + +HTML_DYNAMIC_SECTIONS = NO + +# If the GENERATE_DOCSET tag is set to YES, additional index files +# will be generated that can be used as input for Apple's Xcode 3 +# integrated development environment, introduced with OSX 10.5 (Leopard). +# To create a documentation set, doxygen will generate a Makefile in the +# HTML output directory. Running make will produce the docset in that +# directory and running "make install" will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find +# it at startup. +# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information. + +GENERATE_DOCSET = NO + +# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the +# feed. A documentation feed provides an umbrella under which multiple +# documentation sets from a single provider (such as a company or product suite) +# can be grouped. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that +# should uniquely identify the documentation set bundle. This should be a +# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen +# will append .docset to the name. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING +# is used to encode HtmlHelp index (hhk), content (hhc) and project file +# content. + +CHM_INDEX_ENCODING = + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = NO + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER +# are set, an additional index file will be generated that can be used as input for +# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated +# HTML documentation. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can +# be used to specify the file name of the resulting .qch file. +# The path specified is relative to the HTML output folder. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#namespace + +QHP_NAMESPACE = + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#virtual-folders + +QHP_VIRTUAL_FOLDER = doc + +# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to add. +# For more information please see +# http://doc.trolltech.com/qthelpproject.html#custom-filters + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the custom filter to add.For more information please see +# Qt Help Project / Custom Filters. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this project's +# filter section matches. +# Qt Help Project / Filter Attributes. + +QHP_SECT_FILTER_ATTRS = + +# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can +# be used to specify the location of Qt's qhelpgenerator. +# If non-empty doxygen will try to run qhelpgenerator on the generated +# .qhp file. + +QHG_LOCATION = + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index at +# top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. + +DISABLE_INDEX = NO + +# This tag can be used to set the number of enum values (range [1..20]) +# that doxygen will group on one line in the generated HTML documentation. + +ENUM_VALUES_PER_LINE = 4 + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. +# If the tag value is set to YES, a side panel will be generated +# containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). +# Windows users are probably better off using the HTML help feature. + +GENERATE_TREEVIEW = NO + +# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories, +# and Class Hierarchy pages using a tree view instead of an ordered list. + +USE_INLINE_TREES = NO + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +# Use this tag to change the font size of Latex formulas included +# as images in the HTML documentation. The default is 10. Note that +# when you change the font size after a successful doxygen run you need +# to manually remove any form_*.png images from the HTML output directory +# to force them to be regenerated. + +FORMULA_FONTSIZE = 10 + +# When the SEARCHENGINE tag is enable doxygen will generate a search box for the HTML output. The underlying search engine uses javascript +# and DHTML and should work on any modern browser. Note that when using HTML help (GENERATE_HTMLHELP) or Qt help (GENERATE_QHP) +# there is already a search function so this one should typically +# be disabled. + +SEARCHENGINE = YES + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = YES + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex-f77 + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = NO + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, a4wide, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = a4wide + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = NO + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = NO + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = NO + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = NO + +# If LATEX_SOURCE_CODE is set to YES then doxygen will include source code with syntax highlighting in the LaTeX output. Note that which sources are shown also depends on other settings such as SOURCE_BROWSER. + +LATEX_SOURCE_CODE = NO + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load stylesheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = NO + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + +# The XML_SCHEMA tag can be used to specify an XML schema, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_SCHEMA = + +# The XML_DTD tag can be used to specify an XML DTD, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_DTD = + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. +# This is useful +# if you want to understand what is going on. +# On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = YES + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_DEFINED tags. + +EXPAND_ONLY_PREDEF = YES + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# in the INCLUDE_PATH (see below) will be search if a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = HDF4=1 \ + HDF5=1 \ + NXXML=1 \ + NXDLL_EXPORT= + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition. + +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all function-like macros that are alone +# on a line, have an all uppercase name, and do not end with a semicolon. Such +# function macros are typically used for boiler-plate code, and will confuse +# the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. +# Optionally an initial location of the external documentation +# can be added for each tagfile. The format of a tag file without +# this location is as follows: +# +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths or +# URLs. If a location is present for each tag, the installdox tool +# does not have to be run to correct the links. +# Note that each tag file must have a unique name +# (where the name does NOT include the path) +# If a tag file is not located in the directory in which doxygen +# is run, you must also specify the path to the tagfile here. + +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = YES + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option is superseded by the HAVE_DOT option below. This is only a +# fallback. It is recommended to install and use dot, since it yields more +# powerful graphs. + +CLASS_DIAGRAMS = YES + +# You can define message sequence charts within doxygen comments using the \msc +# command. Doxygen will then run the mscgen tool (see +# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the +# documentation. The MSCGEN_PATH tag allows you to specify the directory where +# the mscgen tool resides. If left empty the tool is assumed to be found in the +# default search path. + +MSCGEN_PATH = + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = YES + +# By default doxygen will write a font called FreeSans.ttf to the output +# directory and reference it in all dot files that doxygen generates. This +# font does not include all possible unicode characters however, so when you need +# these (or just want a differently looking font) you can specify the font name +# using DOT_FONTNAME. You need need to make sure dot is able to find the font, +# which can be done by putting it in a standard location or by setting the +# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory +# containing the font. + +DOT_FONTNAME = FreeSans + +# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. +# The default size is 10pt. + +DOT_FONTSIZE = 10 + +# By default doxygen will tell dot to use the output directory to look for the +# FreeSans.ttf font (which doxygen will put there itself). If you specify a +# different font using DOT_FONTNAME you can set the path where dot +# can find it using this tag. + +DOT_FONTPATH = + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# the CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = YES + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = NO + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = YES + +# If the CALL_GRAPH and HAVE_DOT options are set to YES then +# doxygen will generate a call dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable call graphs +# for selected functions only using the \callgraph command. + +CALL_GRAPH = YES + +# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then +# doxygen will generate a caller dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable caller +# graphs for selected functions only using the \callergraph command. + +CALLER_GRAPH = NO + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are png, jpg, or gif +# If left blank png will be used. + +DOT_IMAGE_FORMAT = png + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of +# nodes that will be shown in the graph. If the number of nodes in a graph +# becomes larger than this value, doxygen will truncate the graph, which is +# visualized by representing a node as a red box. Note that doxygen if the +# number of direct children of the root node in a graph is already larger than +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note +# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. + +DOT_GRAPH_MAX_NODES = 50 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that the size of a graph can be further restricted by +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, because dot on Windows does not +# seem to support this out of the box. Warning: Depending on the platform used, +# enabling this option may lead to badly anti-aliased labels on the edges of +# a graph (i.e. they become hard to read). + +DOT_TRANSPARENT = NO + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = NO + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES diff --git a/doc/doxygen/Doxyfile_f90 b/doc/doxygen/Doxyfile_f90 new file mode 100644 index 00000000..56b7482e --- /dev/null +++ b/doc/doxygen/Doxyfile_f90 @@ -0,0 +1,1535 @@ +# Doxyfile 1.6.1 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project +# +# All text after a hash (#) is considered a comment and will be ignored +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" ") + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all +# text before the first occurrence of this tag. Doxygen uses libiconv (or the +# iconv built into libc) for the transcoding. See +# http://www.gnu.org/software/libiconv for the list of possible encodings. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded +# by quotes) that should identify the project. + +PROJECT_NAME = NeXus + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = 1 + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = . + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, +# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, +# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English +# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, +# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, +# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = YES + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = $(TOPSRC) + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = $(TOPSRC) + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful is your file systems +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like regular Qt-style comments +# (thus requiring an explicit @brief command for a brief description.) + +JAVADOC_AUTOBRIEF = YES + +# If the QT_AUTOBRIEF tag is set to YES then Doxygen will +# interpret the first line (until the first dot) of a Qt-style +# comment as the brief description. If set to NO, the comments +# will behave just like regular Qt-style comments (thus requiring +# an explicit \brief command for a brief description.) + +QT_AUTOBRIEF = YES + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 8 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java +# sources only. Doxygen will then generate output that is more tailored for +# Java. For instance, namespaces will be presented as packages, qualified +# scopes will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources only. Doxygen will then generate output that is more tailored for +# Fortran. + +OPTIMIZE_FOR_FORTRAN = YES + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for +# VHDL. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it parses. +# With this tag you can assign which parser to use for a given extension. +# Doxygen has a built-in mapping, but you can override or extend it using this tag. +# The format is ext=language, where ext is a file extension, and language is one of +# the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP, +# Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat +# .inc files as Fortran files (default is PHP), and .f files as C (default is Fortran), +# use: inc=Fortran f=C. Note that for custom extensions you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should +# set this tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. +# func(std::string) {}). This also make the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. + +BUILTIN_STL_SUPPORT = YES + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. +# Doxygen will parse them like normal C++ but will assume all classes use public +# instead of private inheritance when no explicit protection keyword is present. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate getter +# and setter methods for a property. Setting this option to YES (the default) +# will make doxygen to replace the get and set methods by a property in the +# documentation. This will only work if the methods are indeed getting or +# setting a simple type. If this is not the case, or you want to show the +# methods anyway, you should set this option to NO. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = NO + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum +# is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically +# be useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. + +TYPEDEF_HIDES_STRUCT = NO + +# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to +# determine which symbols to keep in memory and which to flush to disk. +# When the cache is full, less often used symbols will be written to disk. +# For small to medium size projects (<1000 input files) the default value is +# probably good enough. For larger projects a too small cache size can cause +# doxygen to be busy swapping symbols to and from disk most of the time +# causing a significant performance penality. +# If the system has enough physical memory increasing the cache will improve the +# performance by keeping more symbols in memory. Note that the value works on +# a logarithmic scale so increasing the size by one will rougly double the +# memory usage. The cache size is given by this formula: +# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, +# corresponding to a cache size of 2^16 = 65536 symbols + +SYMBOL_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = YES + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = NO + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = NO + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base +# name of the file that contains the anonymous namespace. By default +# anonymous namespace are hidden. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = NO + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the (brief and detailed) documentation of class members so that constructors and destructors are listed first. If set to NO (the default) the constructors will appear in the respective orders defined by SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the +# hierarchy of group names into alphabetical order. If set to NO (the default) +# the group names will appear in their defined order. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or define consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and defines in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = YES + +# If the sources in your project are distributed over multiple directories +# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy +# in the documentation. The default is NO. + +SHOW_DIRECTORIES = NO + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. +# This will remove the Files entry from the Quick Index and from the +# Folder Tree View (if specified). The default is YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the +# Namespaces page. +# This will remove the Namespaces entry from the Quick Index +# and from the Folder Tree View (if specified). The default is YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command , where is the value of +# the FILE_VERSION_FILTER tag, and is the name of an input file +# provided by doxygen. Whatever the program writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by +# doxygen. The layout file controls the global structure of the generated output files +# in an output format independent way. The create the layout file that represents +# doxygen's defaults, run doxygen with the -l option. You can optionally specify a +# file name after the option, if omitted DoxygenLayout.xml will be used as the name +# of the layout file. + +LAYOUT_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = YES + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = YES + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# This WARN_NO_PARAMDOC option can be abled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = $(TOPSRC)/bindings/f90 + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is +# also the default input encoding. Doxygen uses libiconv (or the iconv built +# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for +# the list of possible encodings. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx +# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90 + +FILE_PATTERNS = *.f90 \ + *.inc \ + *.f \ + *.c \ + *.cc \ + *.cxx \ + *.cpp \ + *.c++ \ + *.java \ + *.h \ + *.hh \ + *.hxx \ + *.hpp \ + *.h++ + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = NO + +# The EXCLUDE tag can be used to specify files and/or directories that should +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used select whether or not files or +# directories that are symbolic links (a Unix filesystem feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. Note that the wildcards are matched +# against the file with absolute path, so to exclude all test directories +# for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. +# If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. +# Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. +# The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER +# is applied to all files. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = YES + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = YES + +# If the REFERENCES_RELATION tag is set to YES +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = YES + +# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) +# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from +# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will +# link to the source code. +# Otherwise they will link to the documentation. + +REFERENCES_LINK_SOURCE = YES + +# If the USE_HTAGS tag is set to YES then the references to source code +# will point to the HTML generated by the htags(1) tool instead of doxygen +# built-in source browser. The htags tool is part of GNU's global source +# tagging system (see http://www.gnu.org/software/global/global.html). You +# will need version 4.8.6 or higher. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = NO + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = html-f90 + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# If the HTML_TIMESTAMP tag is set to YES then the generated HTML +# documentation will contain the timesstamp. + +HTML_TIMESTAMP = NO + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# stylesheet in the HTML output directory as well, or it will be erased! + +HTML_STYLESHEET = + +# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, +# files or namespaces will be aligned in HTML using tables. If set to +# NO a bullet list will be used. + +HTML_ALIGN_MEMBERS = YES + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. For this to work a browser that supports +# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox +# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). + +HTML_DYNAMIC_SECTIONS = NO + +# If the GENERATE_DOCSET tag is set to YES, additional index files +# will be generated that can be used as input for Apple's Xcode 3 +# integrated development environment, introduced with OSX 10.5 (Leopard). +# To create a documentation set, doxygen will generate a Makefile in the +# HTML output directory. Running make will produce the docset in that +# directory and running "make install" will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find +# it at startup. +# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information. + +GENERATE_DOCSET = NO + +# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the +# feed. A documentation feed provides an umbrella under which multiple +# documentation sets from a single provider (such as a company or product suite) +# can be grouped. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that +# should uniquely identify the documentation set bundle. This should be a +# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen +# will append .docset to the name. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING +# is used to encode HtmlHelp index (hhk), content (hhc) and project file +# content. + +CHM_INDEX_ENCODING = + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = NO + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER +# are set, an additional index file will be generated that can be used as input for +# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated +# HTML documentation. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can +# be used to specify the file name of the resulting .qch file. +# The path specified is relative to the HTML output folder. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#namespace + +QHP_NAMESPACE = + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#virtual-folders + +QHP_VIRTUAL_FOLDER = doc + +# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to add. +# For more information please see +# http://doc.trolltech.com/qthelpproject.html#custom-filters + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the custom filter to add.For more information please see +# Qt Help Project / Custom Filters. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this project's +# filter section matches. +# Qt Help Project / Filter Attributes. + +QHP_SECT_FILTER_ATTRS = + +# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can +# be used to specify the location of Qt's qhelpgenerator. +# If non-empty doxygen will try to run qhelpgenerator on the generated +# .qhp file. + +QHG_LOCATION = + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index at +# top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. + +DISABLE_INDEX = NO + +# This tag can be used to set the number of enum values (range [1..20]) +# that doxygen will group on one line in the generated HTML documentation. + +ENUM_VALUES_PER_LINE = 4 + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. +# If the tag value is set to YES, a side panel will be generated +# containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). +# Windows users are probably better off using the HTML help feature. + +GENERATE_TREEVIEW = NO + +# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories, +# and Class Hierarchy pages using a tree view instead of an ordered list. + +USE_INLINE_TREES = NO + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +# Use this tag to change the font size of Latex formulas included +# as images in the HTML documentation. The default is 10. Note that +# when you change the font size after a successful doxygen run you need +# to manually remove any form_*.png images from the HTML output directory +# to force them to be regenerated. + +FORMULA_FONTSIZE = 10 + +# When the SEARCHENGINE tag is enable doxygen will generate a search box for the HTML output. The underlying search engine uses javascript +# and DHTML and should work on any modern browser. Note that when using HTML help (GENERATE_HTMLHELP) or Qt help (GENERATE_QHP) +# there is already a search function so this one should typically +# be disabled. + +SEARCHENGINE = YES + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = YES + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex-f90 + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = NO + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, a4wide, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = a4wide + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = NO + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = NO + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = NO + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = NO + +# If LATEX_SOURCE_CODE is set to YES then doxygen will include source code with syntax highlighting in the LaTeX output. Note that which sources are shown also depends on other settings such as SOURCE_BROWSER. + +LATEX_SOURCE_CODE = NO + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load stylesheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = NO + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + +# The XML_SCHEMA tag can be used to specify an XML schema, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_SCHEMA = + +# The XML_DTD tag can be used to specify an XML DTD, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_DTD = + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. +# This is useful +# if you want to understand what is going on. +# On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = YES + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_DEFINED tags. + +EXPAND_ONLY_PREDEF = YES + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# in the INCLUDE_PATH (see below) will be search if a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = HDF4=1 \ + HDF5=1 \ + NXXML=1 \ + NXDLL_EXPORT= + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition. + +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all function-like macros that are alone +# on a line, have an all uppercase name, and do not end with a semicolon. Such +# function macros are typically used for boiler-plate code, and will confuse +# the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. +# Optionally an initial location of the external documentation +# can be added for each tagfile. The format of a tag file without +# this location is as follows: +# +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths or +# URLs. If a location is present for each tag, the installdox tool +# does not have to be run to correct the links. +# Note that each tag file must have a unique name +# (where the name does NOT include the path) +# If a tag file is not located in the directory in which doxygen +# is run, you must also specify the path to the tagfile here. + +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = YES + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option is superseded by the HAVE_DOT option below. This is only a +# fallback. It is recommended to install and use dot, since it yields more +# powerful graphs. + +CLASS_DIAGRAMS = YES + +# You can define message sequence charts within doxygen comments using the \msc +# command. Doxygen will then run the mscgen tool (see +# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the +# documentation. The MSCGEN_PATH tag allows you to specify the directory where +# the mscgen tool resides. If left empty the tool is assumed to be found in the +# default search path. + +MSCGEN_PATH = + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = YES + +# By default doxygen will write a font called FreeSans.ttf to the output +# directory and reference it in all dot files that doxygen generates. This +# font does not include all possible unicode characters however, so when you need +# these (or just want a differently looking font) you can specify the font name +# using DOT_FONTNAME. You need need to make sure dot is able to find the font, +# which can be done by putting it in a standard location or by setting the +# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory +# containing the font. + +DOT_FONTNAME = FreeSans + +# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. +# The default size is 10pt. + +DOT_FONTSIZE = 10 + +# By default doxygen will tell dot to use the output directory to look for the +# FreeSans.ttf font (which doxygen will put there itself). If you specify a +# different font using DOT_FONTNAME you can set the path where dot +# can find it using this tag. + +DOT_FONTPATH = + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# the CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = YES + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = NO + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = YES + +# If the CALL_GRAPH and HAVE_DOT options are set to YES then +# doxygen will generate a call dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable call graphs +# for selected functions only using the \callgraph command. + +CALL_GRAPH = YES + +# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then +# doxygen will generate a caller dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable caller +# graphs for selected functions only using the \callergraph command. + +CALLER_GRAPH = NO + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are png, jpg, or gif +# If left blank png will be used. + +DOT_IMAGE_FORMAT = png + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of +# nodes that will be shown in the graph. If the number of nodes in a graph +# becomes larger than this value, doxygen will truncate the graph, which is +# visualized by representing a node as a red box. Note that doxygen if the +# number of direct children of the root node in a graph is already larger than +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note +# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. + +DOT_GRAPH_MAX_NODES = 50 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that the size of a graph can be further restricted by +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, because dot on Windows does not +# seem to support this out of the box. Warning: Depending on the platform used, +# enabling this option may lead to badly anti-aliased labels on the edges of +# a graph (i.e. they become hard to read). + +DOT_TRANSPARENT = NO + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = NO + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES diff --git a/doc/doxygen/Doxyfile_java b/doc/doxygen/Doxyfile_java new file mode 100644 index 00000000..6d0c114f --- /dev/null +++ b/doc/doxygen/Doxyfile_java @@ -0,0 +1,1532 @@ +# Doxyfile 1.6.1 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project +# +# All text after a hash (#) is considered a comment and will be ignored +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" ") + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all +# text before the first occurrence of this tag. Doxygen uses libiconv (or the +# iconv built into libc) for the transcoding. See +# http://www.gnu.org/software/libiconv for the list of possible encodings. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded +# by quotes) that should identify the project. + +PROJECT_NAME = NeXus Java Bindings + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = 1 + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = . + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, +# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, +# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English +# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, +# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, +# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = YES + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = $(TOPSRC) + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = $(TOPSRC) + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful is your file systems +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like regular Qt-style comments +# (thus requiring an explicit @brief command for a brief description.) + +JAVADOC_AUTOBRIEF = YES + +# If the QT_AUTOBRIEF tag is set to YES then Doxygen will +# interpret the first line (until the first dot) of a Qt-style +# comment as the brief description. If set to NO, the comments +# will behave just like regular Qt-style comments (thus requiring +# an explicit \brief command for a brief description.) + +QT_AUTOBRIEF = YES + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 8 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java +# sources only. Doxygen will then generate output that is more tailored for +# Java. For instance, namespaces will be presented as packages, qualified +# scopes will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = YES + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources only. Doxygen will then generate output that is more tailored for +# Fortran. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for +# VHDL. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it parses. +# With this tag you can assign which parser to use for a given extension. +# Doxygen has a built-in mapping, but you can override or extend it using this tag. +# The format is ext=language, where ext is a file extension, and language is one of +# the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP, +# Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat +# .inc files as Fortran files (default is PHP), and .f files as C (default is Fortran), +# use: inc=Fortran f=C. Note that for custom extensions you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should +# set this tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. +# func(std::string) {}). This also make the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. + +BUILTIN_STL_SUPPORT = YES + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. +# Doxygen will parse them like normal C++ but will assume all classes use public +# instead of private inheritance when no explicit protection keyword is present. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate getter +# and setter methods for a property. Setting this option to YES (the default) +# will make doxygen to replace the get and set methods by a property in the +# documentation. This will only work if the methods are indeed getting or +# setting a simple type. If this is not the case, or you want to show the +# methods anyway, you should set this option to NO. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = NO + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum +# is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically +# be useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. + +TYPEDEF_HIDES_STRUCT = NO + +# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to +# determine which symbols to keep in memory and which to flush to disk. +# When the cache is full, less often used symbols will be written to disk. +# For small to medium size projects (<1000 input files) the default value is +# probably good enough. For larger projects a too small cache size can cause +# doxygen to be busy swapping symbols to and from disk most of the time +# causing a significant performance penality. +# If the system has enough physical memory increasing the cache will improve the +# performance by keeping more symbols in memory. Note that the value works on +# a logarithmic scale so increasing the size by one will rougly double the +# memory usage. The cache size is given by this formula: +# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, +# corresponding to a cache size of 2^16 = 65536 symbols + +SYMBOL_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = YES + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = NO + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = NO + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base +# name of the file that contains the anonymous namespace. By default +# anonymous namespace are hidden. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = NO + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the (brief and detailed) documentation of class members so that constructors and destructors are listed first. If set to NO (the default) the constructors will appear in the respective orders defined by SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the +# hierarchy of group names into alphabetical order. If set to NO (the default) +# the group names will appear in their defined order. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or define consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and defines in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = YES + +# If the sources in your project are distributed over multiple directories +# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy +# in the documentation. The default is NO. + +SHOW_DIRECTORIES = NO + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. +# This will remove the Files entry from the Quick Index and from the +# Folder Tree View (if specified). The default is YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the +# Namespaces page. +# This will remove the Namespaces entry from the Quick Index +# and from the Folder Tree View (if specified). The default is YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command , where is the value of +# the FILE_VERSION_FILTER tag, and is the name of an input file +# provided by doxygen. Whatever the program writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by +# doxygen. The layout file controls the global structure of the generated output files +# in an output format independent way. The create the layout file that represents +# doxygen's defaults, run doxygen with the -l option. You can optionally specify a +# file name after the option, if omitted DoxygenLayout.xml will be used as the name +# of the layout file. + +LAYOUT_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = YES + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = YES + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# This WARN_NO_PARAMDOC option can be abled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = $(TOPSRC)/bindings/java + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is +# also the default input encoding. Doxygen uses libiconv (or the iconv built +# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for +# the list of possible encodings. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx +# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90 + +FILE_PATTERNS = *.java \ + *.c \ + *.cc \ + *.cxx \ + *.cpp \ + *.c++ \ + *.h \ + *.hh \ + *.hxx \ + *.hpp \ + *.h++ + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = YES + +# The EXCLUDE tag can be used to specify files and/or directories that should +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used select whether or not files or +# directories that are symbolic links (a Unix filesystem feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. Note that the wildcards are matched +# against the file with absolute path, so to exclude all test directories +# for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. +# If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. +# Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. +# The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER +# is applied to all files. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = YES + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = YES + +# If the REFERENCES_RELATION tag is set to YES +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = YES + +# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) +# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from +# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will +# link to the source code. +# Otherwise they will link to the documentation. + +REFERENCES_LINK_SOURCE = YES + +# If the USE_HTAGS tag is set to YES then the references to source code +# will point to the HTML generated by the htags(1) tool instead of doxygen +# built-in source browser. The htags tool is part of GNU's global source +# tagging system (see http://www.gnu.org/software/global/global.html). You +# will need version 4.8.6 or higher. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = NO + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = html-java + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# If the HTML_TIMESTAMP tag is set to YES then the generated HTML +# documentation will contain the timesstamp. + +HTML_TIMESTAMP = NO + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# stylesheet in the HTML output directory as well, or it will be erased! + +HTML_STYLESHEET = + +# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, +# files or namespaces will be aligned in HTML using tables. If set to +# NO a bullet list will be used. + +HTML_ALIGN_MEMBERS = YES + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. For this to work a browser that supports +# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox +# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). + +HTML_DYNAMIC_SECTIONS = NO + +# If the GENERATE_DOCSET tag is set to YES, additional index files +# will be generated that can be used as input for Apple's Xcode 3 +# integrated development environment, introduced with OSX 10.5 (Leopard). +# To create a documentation set, doxygen will generate a Makefile in the +# HTML output directory. Running make will produce the docset in that +# directory and running "make install" will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find +# it at startup. +# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information. + +GENERATE_DOCSET = NO + +# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the +# feed. A documentation feed provides an umbrella under which multiple +# documentation sets from a single provider (such as a company or product suite) +# can be grouped. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that +# should uniquely identify the documentation set bundle. This should be a +# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen +# will append .docset to the name. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING +# is used to encode HtmlHelp index (hhk), content (hhc) and project file +# content. + +CHM_INDEX_ENCODING = + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = NO + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER +# are set, an additional index file will be generated that can be used as input for +# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated +# HTML documentation. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can +# be used to specify the file name of the resulting .qch file. +# The path specified is relative to the HTML output folder. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#namespace + +QHP_NAMESPACE = + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#virtual-folders + +QHP_VIRTUAL_FOLDER = doc + +# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to add. +# For more information please see +# http://doc.trolltech.com/qthelpproject.html#custom-filters + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the custom filter to add.For more information please see +# Qt Help Project / Custom Filters. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this project's +# filter section matches. +# Qt Help Project / Filter Attributes. + +QHP_SECT_FILTER_ATTRS = + +# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can +# be used to specify the location of Qt's qhelpgenerator. +# If non-empty doxygen will try to run qhelpgenerator on the generated +# .qhp file. + +QHG_LOCATION = + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index at +# top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. + +DISABLE_INDEX = NO + +# This tag can be used to set the number of enum values (range [1..20]) +# that doxygen will group on one line in the generated HTML documentation. + +ENUM_VALUES_PER_LINE = 4 + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. +# If the tag value is set to YES, a side panel will be generated +# containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). +# Windows users are probably better off using the HTML help feature. + +GENERATE_TREEVIEW = NO + +# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories, +# and Class Hierarchy pages using a tree view instead of an ordered list. + +USE_INLINE_TREES = NO + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +# Use this tag to change the font size of Latex formulas included +# as images in the HTML documentation. The default is 10. Note that +# when you change the font size after a successful doxygen run you need +# to manually remove any form_*.png images from the HTML output directory +# to force them to be regenerated. + +FORMULA_FONTSIZE = 10 + +# When the SEARCHENGINE tag is enable doxygen will generate a search box for the HTML output. The underlying search engine uses javascript +# and DHTML and should work on any modern browser. Note that when using HTML help (GENERATE_HTMLHELP) or Qt help (GENERATE_QHP) +# there is already a search function so this one should typically +# be disabled. + +SEARCHENGINE = YES + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = YES + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex-java + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = NO + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, a4wide, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = a4wide + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = NO + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = NO + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = NO + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = NO + +# If LATEX_SOURCE_CODE is set to YES then doxygen will include source code with syntax highlighting in the LaTeX output. Note that which sources are shown also depends on other settings such as SOURCE_BROWSER. + +LATEX_SOURCE_CODE = NO + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load stylesheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = NO + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + +# The XML_SCHEMA tag can be used to specify an XML schema, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_SCHEMA = + +# The XML_DTD tag can be used to specify an XML DTD, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_DTD = + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. +# This is useful +# if you want to understand what is going on. +# On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = YES + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_DEFINED tags. + +EXPAND_ONLY_PREDEF = YES + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# in the INCLUDE_PATH (see below) will be search if a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = HDF4=1 \ + HDF5=1 \ + NXXML=1 \ + NXDLL_EXPORT= + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition. + +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all function-like macros that are alone +# on a line, have an all uppercase name, and do not end with a semicolon. Such +# function macros are typically used for boiler-plate code, and will confuse +# the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. +# Optionally an initial location of the external documentation +# can be added for each tagfile. The format of a tag file without +# this location is as follows: +# +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths or +# URLs. If a location is present for each tag, the installdox tool +# does not have to be run to correct the links. +# Note that each tag file must have a unique name +# (where the name does NOT include the path) +# If a tag file is not located in the directory in which doxygen +# is run, you must also specify the path to the tagfile here. + +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = YES + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option is superseded by the HAVE_DOT option below. This is only a +# fallback. It is recommended to install and use dot, since it yields more +# powerful graphs. + +CLASS_DIAGRAMS = YES + +# You can define message sequence charts within doxygen comments using the \msc +# command. Doxygen will then run the mscgen tool (see +# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the +# documentation. The MSCGEN_PATH tag allows you to specify the directory where +# the mscgen tool resides. If left empty the tool is assumed to be found in the +# default search path. + +MSCGEN_PATH = + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = YES + +# By default doxygen will write a font called FreeSans.ttf to the output +# directory and reference it in all dot files that doxygen generates. This +# font does not include all possible unicode characters however, so when you need +# these (or just want a differently looking font) you can specify the font name +# using DOT_FONTNAME. You need need to make sure dot is able to find the font, +# which can be done by putting it in a standard location or by setting the +# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory +# containing the font. + +DOT_FONTNAME = FreeSans + +# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. +# The default size is 10pt. + +DOT_FONTSIZE = 10 + +# By default doxygen will tell dot to use the output directory to look for the +# FreeSans.ttf font (which doxygen will put there itself). If you specify a +# different font using DOT_FONTNAME you can set the path where dot +# can find it using this tag. + +DOT_FONTPATH = + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# the CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = YES + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = NO + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = YES + +# If the CALL_GRAPH and HAVE_DOT options are set to YES then +# doxygen will generate a call dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable call graphs +# for selected functions only using the \callgraph command. + +CALL_GRAPH = YES + +# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then +# doxygen will generate a caller dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable caller +# graphs for selected functions only using the \callergraph command. + +CALLER_GRAPH = NO + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are png, jpg, or gif +# If left blank png will be used. + +DOT_IMAGE_FORMAT = png + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of +# nodes that will be shown in the graph. If the number of nodes in a graph +# becomes larger than this value, doxygen will truncate the graph, which is +# visualized by representing a node as a red box. Note that doxygen if the +# number of direct children of the root node in a graph is already larger than +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note +# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. + +DOT_GRAPH_MAX_NODES = 50 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that the size of a graph can be further restricted by +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, because dot on Windows does not +# seem to support this out of the box. Warning: Depending on the platform used, +# enabling this option may lead to badly anti-aliased labels on the edges of +# a graph (i.e. they become hard to read). + +DOT_TRANSPARENT = NO + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = NO + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES diff --git a/doc/doxygen/Doxyfile.in b/doc/doxygen/Doxyfile_python similarity index 60% rename from doc/doxygen/Doxyfile.in rename to doc/doxygen/Doxyfile_python index 9f1954b5..af82d711 100644 --- a/doc/doxygen/Doxyfile.in +++ b/doc/doxygen/Doxyfile_python @@ -1,4 +1,4 @@ -# Doxyfile 1.4.6 +# Doxyfile 1.6.1 # This file describes the settings to be used by the documentation system # doxygen (www.doxygen.org) for a project @@ -14,535 +14,663 @@ # Project related configuration options #--------------------------------------------------------------------------- -# The PROJECT_NAME tag is a single word (or a sequence of words surrounded +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all +# text before the first occurrence of this tag. Doxygen uses libiconv (or the +# iconv built into libc) for the transcoding. See +# http://www.gnu.org/software/libiconv for the list of possible encodings. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded # by quotes) that should identify the project. PROJECT_NAME = NeXus -# The PROJECT_NUMBER tag can be used to enter a project or revision number. -# This could be handy for archiving the generated documentation or +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or # if some version control system is used. PROJECT_NUMBER = 1 -# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) -# base path where the generated documentation will be put. -# If a relative path is entered, it will be relative to the location +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location # where doxygen was started. If left blank the current directory will be used. OUTPUT_DIRECTORY = . -# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create -# 4096 sub-directories (in 2 levels) under the output directory of each output -# format and will distribute the generated files over these directories. -# Enabling this option can be useful when feeding doxygen a huge amount of -# source files, where putting all generated files in the same directory would +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would # otherwise cause performance problems for the file system. CREATE_SUBDIRS = NO -# The OUTPUT_LANGUAGE tag is used to specify the language in which all -# documentation generated by doxygen is written. Doxygen will use this -# information to generate all constant output in the proper language. -# The default language is English, other supported languages are: -# Brazilian, Catalan, Chinese, Chinese-Traditional, Croatian, Czech, Danish, -# Dutch, Finnish, French, German, Greek, Hungarian, Italian, Japanese, -# Japanese-en (Japanese with English messages), Korean, Korean-en, Norwegian, -# Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovene, Spanish, -# Swedish, and Ukrainian. +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, +# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, +# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English +# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, +# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, +# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. OUTPUT_LANGUAGE = English -# This tag can be used to specify the encoding used in the generated output. -# The encoding is not always determined by the language that is chosen, -# but also whether or not the output is meant for Windows or non-Windows users. -# In case there is a difference, setting the USE_WINDOWS_ENCODING tag to YES -# forces the Windows encoding (this is the default for the Windows binary), -# whereas setting the tag to NO uses a Unix-style encoding (the default for -# all platforms other than Windows). - -USE_WINDOWS_ENCODING = NO - -# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will -# include brief member descriptions after the members that are listed in -# the file and class documentation (similar to JavaDoc). +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). # Set to NO to disable this. BRIEF_MEMBER_DESC = YES -# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend -# the brief description of a member or function before the detailed description. -# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the # brief descriptions will be completely suppressed. REPEAT_BRIEF = YES -# This tag implements a quasi-intelligent brief description abbreviator -# that is used to form the text in various listings. Each string -# in this list, if found as the leading text of the brief description, will be -# stripped from the text and the result after processing the whole list, is -# used as the annotated text. Otherwise, the brief description is used as-is. -# If left blank, the following values are used ("$name" is automatically -# replaced with the name of the entity): "The $name class" "The $name widget" -# "The $name file" "is" "provides" "specifies" "contains" +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" # "represents" "a" "an" "the" -ABBREVIATE_BRIEF = +ABBREVIATE_BRIEF = -# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then -# Doxygen will generate a detailed section even if there is only a brief +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief # description. ALWAYS_DETAILED_SEC = NO -# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all -# inherited members of a class in the documentation of that class as if those -# members were ordinary class members. Constructors, destructors and assignment +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment # operators of the base classes will not be shown. INLINE_INHERITED_MEMB = NO -# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full -# path before files name in the file list and in the header files. If set +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set # to NO the shortest path that makes the file name unique will be used. FULL_PATH_NAMES = YES -# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag -# can be used to strip a user-defined part of the path. Stripping is -# only done if one of the specified strings matches the left-hand part of -# the path. The tag can be used to show relative paths in the file list. -# If left blank the directory from which doxygen is run is used as the +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the # path to strip. -STRIP_FROM_PATH = @top_srcdir@ +STRIP_FROM_PATH = $(TOPSRC) -# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of -# the path mentioned in the documentation of a class, which tells -# the reader which header file to include in order to use a class. -# If left blank only the name of the header file containing the class -# definition is used. Otherwise one should specify the include paths that +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that # are normally passed to the compiler using the -I flag. -STRIP_FROM_INC_PATH = @top_srcdir@ +STRIP_FROM_INC_PATH = $(TOPSRC) -# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter -# (but less readable) file names. This can be useful is your file systems +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful is your file systems # doesn't support long names like on DOS, Mac, or CD-ROM. SHORT_NAMES = NO -# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen -# will interpret the first line (until the first dot) of a JavaDoc-style -# comment as the brief description. If set to NO, the JavaDoc -# comments will behave just like the Qt-style comments (thus requiring an -# explicit @brief command for a brief description. +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like regular Qt-style comments +# (thus requiring an explicit @brief command for a brief description.) -JAVADOC_AUTOBRIEF = NO +JAVADOC_AUTOBRIEF = YES -# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen -# treat a multi-line C++ special comment block (i.e. a block of //! or /// -# comments) as a brief description. This used to be the default behaviour. -# The new default is to treat a multi-line C++ comment block as a detailed -# description. Set this tag to YES if you prefer the old behaviour instead. +# If the QT_AUTOBRIEF tag is set to YES then Doxygen will +# interpret the first line (until the first dot) of a Qt-style +# comment as the brief description. If set to NO, the comments +# will behave just like regular Qt-style comments (thus requiring +# an explicit \brief command for a brief description.) -MULTILINE_CPP_IS_BRIEF = NO +QT_AUTOBRIEF = YES -# If the DETAILS_AT_TOP tag is set to YES then Doxygen -# will output the detailed description near the top, like JavaDoc. -# If set to NO, the detailed description appears after the member -# documentation. +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. -DETAILS_AT_TOP = NO +MULTILINE_CPP_IS_BRIEF = NO -# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented -# member inherits the documentation from any documented member that it +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it # re-implements. INHERIT_DOCS = YES -# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce -# a new page for each member. If set to NO, the documentation of a member will +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will # be part of the file/class/namespace that contains it. SEPARATE_MEMBER_PAGES = NO -# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# The TAB_SIZE tag can be used to set the number of spaces in a tab. # Doxygen uses this value to replace tabs by spaces in code fragments. TAB_SIZE = 8 -# This tag can be used to specify a number of aliases that acts -# as commands in the documentation. An alias has the form "name=value". -# For example adding "sideeffect=\par Side Effects:\n" will allow you to -# put the command \sideeffect (or @sideeffect) in the documentation, which -# will result in a user-defined paragraph with heading "Side Effects:". +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". # You can put \n's in the value part of an alias to insert newlines. -ALIASES = +ALIASES = -# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C -# sources only. Doxygen will then generate output that is more tailored for C. -# For instance, some of the names that are used will be different. The list +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list # of all members will be omitted, etc. OPTIMIZE_OUTPUT_FOR_C = NO -# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java -# sources only. Doxygen will then generate output that is more tailored for Java. -# For instance, namespaces will be presented as packages, qualified scopes -# will look different, etc. +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java +# sources only. Doxygen will then generate output that is more tailored for +# Java. For instance, namespaces will be presented as packages, qualified +# scopes will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = YES + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources only. Doxygen will then generate output that is more tailored for +# Fortran. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for +# VHDL. -OPTIMIZE_OUTPUT_JAVA = NO +OPTIMIZE_OUTPUT_VHDL = NO -# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want to -# include (a tag file for) the STL sources as input, then you should -# set this tag to YES in order to let doxygen match functions declarations and -# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. -# func(std::string) {}). This also make the inheritance and collaboration +# Doxygen selects the parser to use depending on the extension of the files it parses. +# With this tag you can assign which parser to use for a given extension. +# Doxygen has a built-in mapping, but you can override or extend it using this tag. +# The format is ext=language, where ext is a file extension, and language is one of +# the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP, +# Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat +# .inc files as Fortran files (default is PHP), and .f files as C (default is Fortran), +# use: inc=Fortran f=C. Note that for custom extensions you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should +# set this tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. +# func(std::string) {}). This also make the inheritance and collaboration # diagrams that involve STL classes more complete and accurate. BUILTIN_STL_SUPPORT = YES -# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC -# tag is set to YES, then doxygen will reuse the documentation of the first -# member in the group (if any) for the other members of the group. By default +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. +# Doxygen will parse them like normal C++ but will assume all classes use public +# instead of private inheritance when no explicit protection keyword is present. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate getter +# and setter methods for a property. Setting this option to YES (the default) +# will make doxygen to replace the get and set methods by a property in the +# documentation. This will only work if the methods are indeed getting or +# setting a simple type. If this is not the case, or you want to show the +# methods anyway, you should set this option to NO. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default # all members of a group must be documented explicitly. DISTRIBUTE_GROUP_DOC = NO -# Set the SUBGROUPING tag to YES (the default) to allow class member groups of -# the same type (for instance a group of public functions) to be put as a -# subgroup of that type (e.g. under the Public Functions section). Set it to -# NO to prevent subgrouping. Alternatively, this can be done per class using +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using # the \nosubgrouping command. SUBGROUPING = YES +# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum +# is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically +# be useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. + +TYPEDEF_HIDES_STRUCT = NO + +# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to +# determine which symbols to keep in memory and which to flush to disk. +# When the cache is full, less often used symbols will be written to disk. +# For small to medium size projects (<1000 input files) the default value is +# probably good enough. For larger projects a too small cache size can cause +# doxygen to be busy swapping symbols to and from disk most of the time +# causing a significant performance penality. +# If the system has enough physical memory increasing the cache will improve the +# performance by keeping more symbols in memory. Note that the value works on +# a logarithmic scale so increasing the size by one will rougly double the +# memory usage. The cache size is given by this formula: +# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, +# corresponding to a cache size of 2^16 = 65536 symbols + +SYMBOL_CACHE_SIZE = 0 + #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- -# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in -# documentation are documented, even if no documentation was available. -# Private class members and static file members will be hidden unless +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless # the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES EXTRACT_ALL = YES -# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class # will be included in the documentation. EXTRACT_PRIVATE = NO -# If the EXTRACT_STATIC tag is set to YES all static members of a file +# If the EXTRACT_STATIC tag is set to YES all static members of a file # will be included in the documentation. EXTRACT_STATIC = NO -# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) -# defined locally in source files will be included in the documentation. +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. # If set to NO only classes defined in header files are included. EXTRACT_LOCAL_CLASSES = YES -# This flag is only useful for Objective-C code. When set to YES local -# methods, which are defined in the implementation section but not in -# the interface are included in the documentation. +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. # If set to NO (the default) only methods in the interface are included. EXTRACT_LOCAL_METHODS = NO -# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all -# undocumented members of documented classes, files or namespaces. -# If set to NO (the default) these members will be included in the -# various overviews, but no documentation section is generated. +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base +# name of the file that contains the anonymous namespace. By default +# anonymous namespace are hidden. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. # This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_MEMBERS = NO -# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all -# undocumented classes that are normally visible in the class hierarchy. -# If set to NO (the default) these classes will be included in the various +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various # overviews. This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_CLASSES = NO -# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all -# friend (class|struct|union) declarations. -# If set to NO (the default) these declarations will be included in the +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the # documentation. HIDE_FRIEND_COMPOUNDS = NO -# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any -# documentation blocks found inside the body of a function. -# If set to NO (the default) these blocks will be appended to the +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the # function's detailed documentation block. HIDE_IN_BODY_DOCS = NO -# The INTERNAL_DOCS tag determines if documentation -# that is typed after a \internal command is included. If the tag is set -# to NO (the default) then the documentation will be excluded. +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. # Set it to YES to include the internal documentation. INTERNAL_DOCS = NO -# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate -# file names in lower-case letters. If set to YES upper-case letters are also -# allowed. This is useful if you have classes or files whose names only differ -# in case and if your file system supports case sensitive file names. Windows +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows # and Mac users are advised to set this option to NO. CASE_SENSE_NAMES = YES -# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen -# will show members with their full class and namespace scopes in the +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the # documentation. If set to YES the scope will be hidden. HIDE_SCOPE_NAMES = NO -# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen -# will put a list of the files that are included by a file in the documentation +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation # of that file. SHOW_INCLUDE_FILES = YES -# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] # is inserted in the documentation for inline members. INLINE_INFO = YES -# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen -# will sort the (detailed) documentation of file and class members -# alphabetically by member name. If set to NO the members will appear in +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in # declaration order. SORT_MEMBER_DOCS = YES -# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the -# brief documentation of file, namespace and class members alphabetically -# by member name. If set to NO (the default) the members will appear in +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in # declaration order. SORT_BRIEF_DOCS = NO -# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be -# sorted by fully-qualified names, including namespaces. If set to -# NO (the default), the class list will be sorted only by class name, -# not including the namespace part. +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the (brief and detailed) documentation of class members so that constructors and destructors are listed first. If set to NO (the default) the constructors will appear in the respective orders defined by SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the +# hierarchy of group names into alphabetical order. If set to NO (the default) +# the group names will appear in their defined order. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. # Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. -# Note: This option applies only to the class list, not to the +# Note: This option applies only to the class list, not to the # alphabetical list. SORT_BY_SCOPE_NAME = NO -# The GENERATE_TODOLIST tag can be used to enable (YES) or -# disable (NO) the todo list. This list is created by putting \todo +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo # commands in the documentation. GENERATE_TODOLIST = YES -# The GENERATE_TESTLIST tag can be used to enable (YES) or -# disable (NO) the test list. This list is created by putting \test +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test # commands in the documentation. GENERATE_TESTLIST = YES -# The GENERATE_BUGLIST tag can be used to enable (YES) or -# disable (NO) the bug list. This list is created by putting \bug +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug # commands in the documentation. GENERATE_BUGLIST = YES -# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or -# disable (NO) the deprecated list. This list is created by putting +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting # \deprecated commands in the documentation. GENERATE_DEPRECATEDLIST= YES -# The ENABLED_SECTIONS tag can be used to enable conditional +# The ENABLED_SECTIONS tag can be used to enable conditional # documentation sections, marked by \if sectionname ... \endif. -ENABLED_SECTIONS = +ENABLED_SECTIONS = -# The MAX_INITIALIZER_LINES tag determines the maximum number of lines -# the initial value of a variable or define consists of for it to appear in -# the documentation. If the initializer consists of more lines than specified -# here it will be hidden. Use a value of 0 to hide initializers completely. -# The appearance of the initializer of individual variables and defines in the -# documentation can be controlled using \showinitializer or \hideinitializer +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or define consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and defines in the +# documentation can be controlled using \showinitializer or \hideinitializer # command in the documentation regardless of this setting. MAX_INITIALIZER_LINES = 30 -# Set the SHOW_USED_FILES tag to NO to disable the list of files generated -# at the bottom of the documentation of classes and structs. If set to YES the +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the # list will mention the files that were used to generate the documentation. SHOW_USED_FILES = YES -# If the sources in your project are distributed over multiple directories -# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy +# If the sources in your project are distributed over multiple directories +# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy # in the documentation. The default is NO. SHOW_DIRECTORIES = NO -# The FILE_VERSION_FILTER tag can be used to specify a program or script that -# doxygen should invoke to get the current version for each file (typically from the -# version control system). Doxygen will invoke the program by executing (via -# popen()) the command , where is the value of -# the FILE_VERSION_FILTER tag, and is the name of an input file -# provided by doxygen. Whatever the program writes to standard output +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. +# This will remove the Files entry from the Quick Index and from the +# Folder Tree View (if specified). The default is YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the +# Namespaces page. +# This will remove the Namespaces entry from the Quick Index +# and from the Folder Tree View (if specified). The default is YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command , where is the value of +# the FILE_VERSION_FILTER tag, and is the name of an input file +# provided by doxygen. Whatever the program writes to standard output # is used as the file version. See the manual for examples. -FILE_VERSION_FILTER = +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by +# doxygen. The layout file controls the global structure of the generated output files +# in an output format independent way. The create the layout file that represents +# doxygen's defaults, run doxygen with the -l option. You can optionally specify a +# file name after the option, if omitted DoxygenLayout.xml will be used as the name +# of the layout file. + +LAYOUT_FILE = #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- -# The QUIET tag can be used to turn on/off the messages that are generated +# The QUIET tag can be used to turn on/off the messages that are generated # by doxygen. Possible values are YES and NO. If left blank NO is used. -QUIET = NO +QUIET = YES -# The WARNINGS tag can be used to turn on/off the warning messages that are -# generated by doxygen. Possible values are YES and NO. If left blank +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank # NO is used. WARNINGS = YES -# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings -# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will # automatically be disabled. WARN_IF_UNDOCUMENTED = YES -# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for -# potential errors in the documentation, such as not documenting some -# parameters in a documented function, or documenting parameters that +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that # don't exist or using markup commands wrongly. WARN_IF_DOC_ERROR = YES -# This WARN_NO_PARAMDOC option can be abled to get warnings for -# functions that are documented, but have no documentation for their parameters -# or return value. If set to NO (the default) doxygen will only warn about -# wrong or incomplete parameter documentation, but not about the absence of +# This WARN_NO_PARAMDOC option can be abled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of # documentation. WARN_NO_PARAMDOC = NO -# The WARN_FORMAT tag determines the format of the warning messages that -# doxygen can produce. The string should contain the $file, $line, and $text -# tags, which will be replaced by the file and line number from which the -# warning originated and the warning text. Optionally the format may contain -# $version, which will be replaced by the version of the file (if it could +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could # be obtained via FILE_VERSION_FILTER) WARN_FORMAT = "$file:$line: $text" -# The WARN_LOGFILE tag can be used to specify a file to which warning -# and error messages should be written. If left blank the output is written +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written # to stderr. -WARN_LOGFILE = +WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- -# The INPUT tag can be used to specify the files and/or directories that contain -# documented source files. You may enter file names like "myfile.cpp" or -# directories like "/usr/src/myproject". Separate the files or directories +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories # with spaces. -INPUT = @top_srcdir@/src @top_srcdir@/include @top_srcdir@/bindings/cpp +INPUT = $(TOPSRC)/bindings/python -# If the value of the INPUT tag contains directories, you can use the -# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp -# and *.h) to filter out the source-files in the directories. If left -# blank the following patterns are tested: -# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx -# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is +# also the default input encoding. Doxygen uses libiconv (or the iconv built +# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for +# the list of possible encodings. -FILE_PATTERNS = *.c *.cc *.cxx *.cpp *.c++ *.java *.h *.hh *.hxx *.hpp *.h++ +INPUT_ENCODING = UTF-8 -# The RECURSIVE tag can be used to turn specify whether or not subdirectories -# should be searched for input files as well. Possible values are YES and NO. +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx +# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90 + +FILE_PATTERNS = *.py + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. # If left blank NO is used. -RECURSIVE = NO +RECURSIVE = YES -# The EXCLUDE tag can be used to specify files and/or directories that should -# excluded from the INPUT source files. This way you can easily exclude a +# The EXCLUDE tag can be used to specify files and/or directories that should +# excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. -EXCLUDE = +EXCLUDE = -# The EXCLUDE_SYMLINKS tag can be used select whether or not files or -# directories that are symbolic links (a Unix filesystem feature) are excluded +# The EXCLUDE_SYMLINKS tag can be used select whether or not files or +# directories that are symbolic links (a Unix filesystem feature) are excluded # from the input. EXCLUDE_SYMLINKS = NO -# If the value of the INPUT tag contains directories, you can use the -# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude -# certain files from those directories. Note that the wildcards are matched -# against the file with absolute path, so to exclude all test directories +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. Note that the wildcards are matched +# against the file with absolute path, so to exclude all test directories # for example use the pattern */test/* -EXCLUDE_PATTERNS = +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test -# The EXAMPLE_PATH tag can be used to specify one or more files or -# directories that contain example code fragments that are included (see +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see # the \include command). -EXAMPLE_PATH = +EXAMPLE_PATH = -# If the value of the EXAMPLE_PATH tag contains directories, you can use the -# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp -# and *.h) to filter out the source-files in the directories. If left +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left # blank all files are included. -EXAMPLE_PATTERNS = +EXAMPLE_PATTERNS = -# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be -# searched for input files to be used with the \include or \dontinclude -# commands irrespective of the value of the RECURSIVE tag. +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. # Possible values are YES and NO. If left blank NO is used. EXAMPLE_RECURSIVE = NO -# The IMAGE_PATH tag can be used to specify one or more files or -# directories that contain image that are included in the documentation (see +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see # the \image command). -IMAGE_PATH = +IMAGE_PATH = -# The INPUT_FILTER tag can be used to specify a program that doxygen should -# invoke to filter for each input file. Doxygen will invoke the filter program -# by executing (via popen()) the command , where -# is the value of the INPUT_FILTER tag, and is the name of an -# input file. Doxygen will then use the output that the filter program writes -# to standard output. If FILTER_PATTERNS is specified, this tag will be +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. +# If FILTER_PATTERNS is specified, this tag will be # ignored. -INPUT_FILTER = +INPUT_FILTER = -# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern -# basis. Doxygen will compare the file name with each pattern and apply the -# filter if there is a match. The filters are a list of the form: -# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further -# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. +# Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. +# The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER # is applied to all files. -FILTER_PATTERNS = +FILTER_PATTERNS = -# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using -# INPUT_FILTER) will be used to filter the input files when producing source +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source # files to browse (i.e. when SOURCE_BROWSER is set to YES). FILTER_SOURCE_FILES = NO @@ -551,46 +679,54 @@ FILTER_SOURCE_FILES = NO # configuration options related to source browsing #--------------------------------------------------------------------------- -# If the SOURCE_BROWSER tag is set to YES then a list of source files will -# be generated. Documented entities will be cross-referenced with these sources. -# Note: To get rid of all source code in the generated output, make sure also +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also # VERBATIM_HEADERS is set to NO. SOURCE_BROWSER = YES -# Setting the INLINE_SOURCES tag to YES will include the body +# Setting the INLINE_SOURCES tag to YES will include the body # of functions and classes directly in the documentation. INLINE_SOURCES = NO -# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct -# doxygen to hide any special comment blocks from generated source code +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code # fragments. Normal C and C++ comments will always remain visible. STRIP_CODE_COMMENTS = YES -# If the REFERENCED_BY_RELATION tag is set to YES (the default) -# then for each documented function all documented +# If the REFERENCED_BY_RELATION tag is set to YES +# then for each documented function all documented # functions referencing it will be listed. REFERENCED_BY_RELATION = YES -# If the REFERENCES_RELATION tag is set to YES (the default) -# then for each documented function all documented entities +# If the REFERENCES_RELATION tag is set to YES +# then for each documented function all documented entities # called/used by that function will be listed. REFERENCES_RELATION = YES -# If the USE_HTAGS tag is set to YES then the references to source code -# will point to the HTML generated by the htags(1) tool instead of doxygen -# built-in source browser. The htags tool is part of GNU's global source -# tagging system (see http://www.gnu.org/software/global/global.html). You +# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) +# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from +# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will +# link to the source code. +# Otherwise they will link to the documentation. + +REFERENCES_LINK_SOURCE = YES + +# If the USE_HTAGS tag is set to YES then the references to source code +# will point to the HTML generated by the htags(1) tool instead of doxygen +# built-in source browser. The htags tool is part of GNU's global source +# tagging system (see http://www.gnu.org/software/global/global.html). You # will need version 4.8.6 or higher. USE_HTAGS = NO -# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen -# will generate a verbatim copy of the header file for each class for +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for # which an include is specified. Set to NO to disable this. VERBATIM_HEADERS = YES @@ -599,279 +735,398 @@ VERBATIM_HEADERS = YES # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- -# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index -# of all compounds will be generated. Enable this if the project +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project # contains a lot of classes, structs, unions or interfaces. ALPHABETICAL_INDEX = NO -# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then -# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns # in which this list will be split (can be a number in the range [1..20]) COLS_IN_ALPHA_INDEX = 5 -# In case all classes in a project start with a common prefix, all -# classes will be put under the same header in the alphabetical index. -# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that # should be ignored while generating the index headers. -IGNORE_PREFIX = +IGNORE_PREFIX = #--------------------------------------------------------------------------- # configuration options related to the HTML output #--------------------------------------------------------------------------- -# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will # generate HTML output. GENERATE_HTML = YES -# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `html' will be used as the default path. -HTML_OUTPUT = html +HTML_OUTPUT = html-python -# The HTML_FILE_EXTENSION tag can be used to specify the file extension for -# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank # doxygen will generate files with .html extension. HTML_FILE_EXTENSION = .html -# The HTML_HEADER tag can be used to specify a personal HTML header for -# each generated HTML page. If it is left blank doxygen will generate a +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a # standard header. -HTML_HEADER = +HTML_HEADER = -# The HTML_FOOTER tag can be used to specify a personal HTML footer for -# each generated HTML page. If it is left blank doxygen will generate a +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a # standard footer. -HTML_FOOTER = +HTML_FOOTER = -# The HTML_STYLESHEET tag can be used to specify a user-defined cascading -# style sheet that is used by each HTML page. It can be used to -# fine-tune the look of the HTML output. If the tag is left blank doxygen -# will generate a default style sheet. Note that doxygen will try to copy -# the style sheet file to the HTML output directory, so don't put your own +# If the HTML_TIMESTAMP tag is set to YES then the generated HTML +# documentation will contain the timesstamp. + +HTML_TIMESTAMP = NO + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own # stylesheet in the HTML output directory as well, or it will be erased! -HTML_STYLESHEET = +HTML_STYLESHEET = -# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, -# files or namespaces will be aligned in HTML using tables. If set to +# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, +# files or namespaces will be aligned in HTML using tables. If set to # NO a bullet list will be used. HTML_ALIGN_MEMBERS = YES -# If the GENERATE_HTMLHELP tag is set to YES, additional index files -# will be generated that can be used as input for tools like the -# Microsoft HTML help workshop to generate a compressed HTML help file (.chm) +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. For this to work a browser that supports +# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox +# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). + +HTML_DYNAMIC_SECTIONS = NO + +# If the GENERATE_DOCSET tag is set to YES, additional index files +# will be generated that can be used as input for Apple's Xcode 3 +# integrated development environment, introduced with OSX 10.5 (Leopard). +# To create a documentation set, doxygen will generate a Makefile in the +# HTML output directory. Running make will produce the docset in that +# directory and running "make install" will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find +# it at startup. +# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information. + +GENERATE_DOCSET = NO + +# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the +# feed. A documentation feed provides an umbrella under which multiple +# documentation sets from a single provider (such as a company or product suite) +# can be grouped. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that +# should uniquely identify the documentation set bundle. This should be a +# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen +# will append .docset to the name. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) # of the generated HTML documentation. GENERATE_HTMLHELP = NO -# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can -# be used to specify the file name of the resulting .chm file. You -# can add a path in front of the file if the result should not be +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be # written to the html output directory. -CHM_FILE = +CHM_FILE = -# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can -# be used to specify the location (absolute path including file name) of -# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run # the HTML help compiler on the generated index.hhp. -HHC_LOCATION = +HHC_LOCATION = -# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag -# controls if a separate .chi index file is generated (YES) or that +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that # it should be included in the master .chm file (NO). GENERATE_CHI = NO -# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag -# controls whether a binary table of contents is generated (YES) or a +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING +# is used to encode HtmlHelp index (hhk), content (hhc) and project file +# content. + +CHM_INDEX_ENCODING = + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a # normal table of contents (NO) in the .chm file. BINARY_TOC = NO -# The TOC_EXPAND flag can be set to YES to add extra items for group members +# The TOC_EXPAND flag can be set to YES to add extra items for group members # to the contents of the HTML help documentation and to the tree view. TOC_EXPAND = NO -# The DISABLE_INDEX tag can be used to turn on/off the condensed index at -# top of each HTML page. The value NO (the default) enables the index and +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER +# are set, an additional index file will be generated that can be used as input for +# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated +# HTML documentation. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can +# be used to specify the file name of the resulting .qch file. +# The path specified is relative to the HTML output folder. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#namespace + +QHP_NAMESPACE = + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#virtual-folders + +QHP_VIRTUAL_FOLDER = doc + +# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to add. +# For more information please see +# http://doc.trolltech.com/qthelpproject.html#custom-filters + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the custom filter to add.For more information please see +# Qt Help Project / Custom Filters. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this project's +# filter section matches. +# Qt Help Project / Filter Attributes. + +QHP_SECT_FILTER_ATTRS = + +# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can +# be used to specify the location of Qt's qhelpgenerator. +# If non-empty doxygen will try to run qhelpgenerator on the generated +# .qhp file. + +QHG_LOCATION = + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index at +# top of each HTML page. The value NO (the default) enables the index and # the value YES disables it. DISABLE_INDEX = NO -# This tag can be used to set the number of enum values (range [1..20]) +# This tag can be used to set the number of enum values (range [1..20]) # that doxygen will group on one line in the generated HTML documentation. ENUM_VALUES_PER_LINE = 4 -# If the GENERATE_TREEVIEW tag is set to YES, a side panel will be -# generated containing a tree-like index structure (just like the one that -# is generated for HTML Help). For this to work a browser that supports -# JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+, -# Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are -# probably better off using the HTML help feature. +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. +# If the tag value is set to YES, a side panel will be generated +# containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). +# Windows users are probably better off using the HTML help feature. GENERATE_TREEVIEW = NO -# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be -# used to set the initial width (in pixels) of the frame in which the tree +# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories, +# and Class Hierarchy pages using a tree view instead of an ordered list. + +USE_INLINE_TREES = NO + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree # is shown. TREEVIEW_WIDTH = 250 +# Use this tag to change the font size of Latex formulas included +# as images in the HTML documentation. The default is 10. Note that +# when you change the font size after a successful doxygen run you need +# to manually remove any form_*.png images from the HTML output directory +# to force them to be regenerated. + +FORMULA_FONTSIZE = 10 + +# When the SEARCHENGINE tag is enable doxygen will generate a search box for the HTML output. The underlying search engine uses javascript +# and DHTML and should work on any modern browser. Note that when using HTML help (GENERATE_HTMLHELP) or Qt help (GENERATE_QHP) +# there is already a search function so this one should typically +# be disabled. + +SEARCHENGINE = YES + #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- -# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will # generate Latex output. GENERATE_LATEX = YES -# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `latex' will be used as the default path. -LATEX_OUTPUT = latex +LATEX_OUTPUT = latex-python -# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be # invoked. If left blank `latex' will be used as the default command name. LATEX_CMD_NAME = latex -# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to -# generate index for LaTeX. If left blank `makeindex' will be used as the +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the # default command name. MAKEINDEX_CMD_NAME = makeindex -# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact -# LaTeX documents. This may be useful for small projects and may help to +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_LATEX = NO -# The PAPER_TYPE tag can be used to set the paper type that is used -# by the printer. Possible values are: a4, a4wide, letter, legal and +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, a4wide, letter, legal and # executive. If left blank a4wide will be used. PAPER_TYPE = a4wide -# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX # packages that should be included in the LaTeX output. -EXTRA_PACKAGES = +EXTRA_PACKAGES = -# The LATEX_HEADER tag can be used to specify a personal LaTeX header for -# the generated latex document. The header should contain everything until -# the first chapter. If it is left blank doxygen will generate a +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a # standard header. Notice: only use this tag if you know what you are doing! -LATEX_HEADER = +LATEX_HEADER = -# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated -# is prepared for conversion to pdf (using ps2pdf). The pdf file will -# contain links (just like the HTML output) instead of page references +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references # This makes the output suitable for online browsing using a pdf viewer. PDF_HYPERLINKS = NO -# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of -# plain latex in the generated Makefile. Set this option to YES to get a +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a # higher quality PDF documentation. USE_PDFLATEX = NO -# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. -# command to the generated LaTeX files. This will instruct LaTeX to keep -# running if errors occur, instead of asking the user for help. +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. # This option is also used when generating formulas in HTML. LATEX_BATCHMODE = NO -# If LATEX_HIDE_INDICES is set to YES then doxygen will not -# include the index chapters (such as File Index, Compound Index, etc.) +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) # in the output. LATEX_HIDE_INDICES = NO +# If LATEX_SOURCE_CODE is set to YES then doxygen will include source code with syntax highlighting in the LaTeX output. Note that which sources are shown also depends on other settings such as SOURCE_BROWSER. + +LATEX_SOURCE_CODE = NO + #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- -# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output -# The RTF output is optimized for Word 97 and may not look very pretty with +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with # other RTF readers or editors. GENERATE_RTF = NO -# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `rtf' will be used as the default path. RTF_OUTPUT = rtf -# If the COMPACT_RTF tag is set to YES Doxygen generates more compact -# RTF documents. This may be useful for small projects and may help to +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_RTF = NO -# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated -# will contain hyperlink fields. The RTF file will -# contain links (just like the HTML output) instead of page references. -# This makes the output suitable for online browsing using WORD or other -# programs which support those fields. +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. # Note: wordpad (write) and others do not support links. RTF_HYPERLINKS = NO -# Load stylesheet definitions from file. Syntax is similar to doxygen's -# config file, i.e. a series of assignments. You only have to provide +# Load stylesheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide # replacements, missing definitions are set to their default value. -RTF_STYLESHEET_FILE = +RTF_STYLESHEET_FILE = -# Set optional variables used in the generation of an rtf document. +# Set optional variables used in the generation of an rtf document. # Syntax is similar to doxygen's config file. -RTF_EXTENSIONS_FILE = +RTF_EXTENSIONS_FILE = #--------------------------------------------------------------------------- # configuration options related to the man page output #--------------------------------------------------------------------------- -# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will # generate man pages GENERATE_MAN = NO -# The MAN_OUTPUT tag is used to specify where the man pages will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `man' will be used as the default path. MAN_OUTPUT = man -# The MAN_EXTENSION tag determines the extension that is added to +# The MAN_EXTENSION tag determines the extension that is added to # the generated man pages (default is the subroutine's section .3) MAN_EXTENSION = .3 -# If the MAN_LINKS tag is set to YES and Doxygen generates man output, -# then it will generate one additional man file for each entity -# documented in the real man page(s). These additional files -# only source the real man page, but without them the man command +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command # would be unable to find the correct page. The default is NO. MAN_LINKS = NO @@ -880,33 +1135,33 @@ MAN_LINKS = NO # configuration options related to the XML output #--------------------------------------------------------------------------- -# If the GENERATE_XML tag is set to YES Doxygen will -# generate an XML file that captures the structure of +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of # the code including all documentation. GENERATE_XML = NO -# The XML_OUTPUT tag is used to specify where the XML pages will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `xml' will be used as the default path. XML_OUTPUT = xml -# The XML_SCHEMA tag can be used to specify an XML schema, -# which can be used by a validating XML parser to check the +# The XML_SCHEMA tag can be used to specify an XML schema, +# which can be used by a validating XML parser to check the # syntax of the XML files. -XML_SCHEMA = +XML_SCHEMA = -# The XML_DTD tag can be used to specify an XML DTD, -# which can be used by a validating XML parser to check the +# The XML_DTD tag can be used to specify an XML DTD, +# which can be used by a validating XML parser to check the # syntax of the XML files. -XML_DTD = +XML_DTD = -# If the XML_PROGRAMLISTING tag is set to YES Doxygen will -# dump the program listings (including syntax highlighting -# and cross-referencing information) to the XML output. Note that +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that # enabling this will significantly increase the size of the XML output. XML_PROGRAMLISTING = YES @@ -915,10 +1170,10 @@ XML_PROGRAMLISTING = YES # configuration options for the AutoGen Definitions output #--------------------------------------------------------------------------- -# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will -# generate an AutoGen Definitions (see autogen.sf.net) file -# that captures the structure of the code including all -# documentation. Note that this feature is still experimental +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental # and incomplete at the moment. GENERATE_AUTOGEN_DEF = NO @@ -927,314 +1182,341 @@ GENERATE_AUTOGEN_DEF = NO # configuration options related to the Perl module output #--------------------------------------------------------------------------- -# If the GENERATE_PERLMOD tag is set to YES Doxygen will -# generate a Perl module file that captures the structure of -# the code including all documentation. Note that this -# feature is still experimental and incomplete at the +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the # moment. GENERATE_PERLMOD = NO -# If the PERLMOD_LATEX tag is set to YES Doxygen will generate -# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able # to generate PDF and DVI output from the Perl module output. PERLMOD_LATEX = NO -# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be -# nicely formatted so it can be parsed by a human reader. This is useful -# if you want to understand what is going on. On the other hand, if this -# tag is set to NO the size of the Perl module output will be much smaller +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. +# This is useful +# if you want to understand what is going on. +# On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller # and Perl will parse it just the same. PERLMOD_PRETTY = YES -# The names of the make variables in the generated doxyrules.make file -# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. -# This is useful so different doxyrules.make files included by the same +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same # Makefile don't overwrite each other's variables. -PERLMOD_MAKEVAR_PREFIX = +PERLMOD_MAKEVAR_PREFIX = #--------------------------------------------------------------------------- -# Configuration options related to the preprocessor +# Configuration options related to the preprocessor #--------------------------------------------------------------------------- -# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will -# evaluate all C-preprocessor directives found in the sources and include +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include # files. ENABLE_PREPROCESSING = YES -# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro -# names in the source code. If set to NO (the default) only conditional -# compilation will be performed. Macro expansion can be done in a controlled +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled # way by setting EXPAND_ONLY_PREDEF to YES. MACRO_EXPANSION = YES -# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES -# then the macro expansion is limited to the macros specified with the +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the # PREDEFINED and EXPAND_AS_DEFINED tags. EXPAND_ONLY_PREDEF = YES -# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files # in the INCLUDE_PATH (see below) will be search if a #include is found. SEARCH_INCLUDES = YES -# The INCLUDE_PATH tag can be used to specify one or more directories that -# contain include files that are not input files but should be processed by +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by # the preprocessor. -INCLUDE_PATH = +INCLUDE_PATH = -# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard -# patterns (like *.h and *.hpp) to filter out the header-files in the -# directories. If left blank, the patterns specified with FILE_PATTERNS will +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will # be used. -INCLUDE_FILE_PATTERNS = +INCLUDE_FILE_PATTERNS = -# The PREDEFINED tag can be used to specify one or more macro names that -# are defined before the preprocessor is started (similar to the -D option of -# gcc). The argument of the tag is a list of macros of the form: name -# or name=definition (no spaces). If the definition and the = are -# omitted =1 is assumed. To prevent a macro definition from being -# undefined via #undef or recursively expanded use the := operator +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator # instead of the = operator. -PREDEFINED = \ - HDF4 \ - HDF5 \ - NXXML +PREDEFINED = HDF4=1 \ + HDF5=1 \ + NXXML=1 \ + NXDLL_EXPORT= -# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then -# this tag can be used to specify a list of macro names that should be expanded. -# The macro definition that is found in the sources will be used. +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. # Use the PREDEFINED tag if you want to use a different macro definition. -EXPAND_AS_DEFINED = +EXPAND_AS_DEFINED = -# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then -# doxygen's preprocessor will remove all function-like macros that are alone -# on a line, have an all uppercase name, and do not end with a semicolon. Such -# function macros are typically used for boiler-plate code, and will confuse +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all function-like macros that are alone +# on a line, have an all uppercase name, and do not end with a semicolon. Such +# function macros are typically used for boiler-plate code, and will confuse # the parser if not removed. SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- -# Configuration::additions related to external references +# Configuration::additions related to external references #--------------------------------------------------------------------------- -# The TAGFILES option can be used to specify one or more tagfiles. -# Optionally an initial location of the external documentation -# can be added for each tagfile. The format of a tag file without -# this location is as follows: -# TAGFILES = file1 file2 ... -# Adding location for the tag files is done as follows: -# TAGFILES = file1=loc1 "file2 = loc2" ... -# where "loc1" and "loc2" can be relative or absolute paths or -# URLs. If a location is present for each tag, the installdox tool +# The TAGFILES option can be used to specify one or more tagfiles. +# Optionally an initial location of the external documentation +# can be added for each tagfile. The format of a tag file without +# this location is as follows: +# +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths or +# URLs. If a location is present for each tag, the installdox tool # does not have to be run to correct the links. # Note that each tag file must have a unique name # (where the name does NOT include the path) -# If a tag file is not located in the directory in which doxygen +# If a tag file is not located in the directory in which doxygen # is run, you must also specify the path to the tagfile here. -TAGFILES = +TAGFILES = -# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# When a file name is specified after GENERATE_TAGFILE, doxygen will create # a tag file that is based on the input files it reads. -GENERATE_TAGFILE = +GENERATE_TAGFILE = -# If the ALLEXTERNALS tag is set to YES all external classes will be listed -# in the class index. If set to NO only the inherited external classes +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes # will be listed. ALLEXTERNALS = NO -# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed -# in the modules index. If set to NO, only the current project's groups will +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will # be listed. EXTERNAL_GROUPS = YES -# The PERL_PATH should be the absolute path and name of the perl script +# The PERL_PATH should be the absolute path and name of the perl script # interpreter (i.e. the result of `which perl'). PERL_PATH = /usr/bin/perl #--------------------------------------------------------------------------- -# Configuration options related to the dot tool +# Configuration options related to the dot tool #--------------------------------------------------------------------------- -# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will -# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base -# or super classes. Setting the tag to NO turns the diagrams off. Note that -# this option is superseded by the HAVE_DOT option below. This is only a -# fallback. It is recommended to install and use dot, since it yields more +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option is superseded by the HAVE_DOT option below. This is only a +# fallback. It is recommended to install and use dot, since it yields more # powerful graphs. CLASS_DIAGRAMS = YES -# If set to YES, the inheritance and collaboration graphs will hide -# inheritance and usage relations if the target is undocumented +# You can define message sequence charts within doxygen comments using the \msc +# command. Doxygen will then run the mscgen tool (see +# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the +# documentation. The MSCGEN_PATH tag allows you to specify the directory where +# the mscgen tool resides. If left empty the tool is assumed to be found in the +# default search path. + +MSCGEN_PATH = + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented # or is not a class. HIDE_UNDOC_RELATIONS = YES -# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is -# available from the path. This tool is part of Graphviz, a graph visualization -# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section # have no effect if this option is set to NO (the default) HAVE_DOT = YES -# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen -# will generate a graph for each documented class showing the direct and -# indirect inheritance relations. Setting this tag to YES will force the +# By default doxygen will write a font called FreeSans.ttf to the output +# directory and reference it in all dot files that doxygen generates. This +# font does not include all possible unicode characters however, so when you need +# these (or just want a differently looking font) you can specify the font name +# using DOT_FONTNAME. You need need to make sure dot is able to find the font, +# which can be done by putting it in a standard location or by setting the +# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory +# containing the font. + +DOT_FONTNAME = FreeSans + +# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. +# The default size is 10pt. + +DOT_FONTSIZE = 10 + +# By default doxygen will tell dot to use the output directory to look for the +# FreeSans.ttf font (which doxygen will put there itself). If you specify a +# different font using DOT_FONTNAME you can set the path where dot +# can find it using this tag. + +DOT_FONTPATH = + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the # the CLASS_DIAGRAMS tag to NO. CLASS_GRAPH = YES -# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen -# will generate a graph for each documented class showing the direct and -# indirect implementation dependencies (inheritance, containment, and +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and # class references variables) of the class with other documented classes. COLLABORATION_GRAPH = YES -# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen # will generate a graph for groups, showing the direct groups dependencies GROUP_GRAPHS = YES -# If the UML_LOOK tag is set to YES doxygen will generate inheritance and -# collaboration diagrams in a style similar to the OMG's Unified Modeling +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling # Language. UML_LOOK = YES -# If set to YES, the inheritance and collaboration graphs will show the +# If set to YES, the inheritance and collaboration graphs will show the # relations between templates and their instances. TEMPLATE_RELATIONS = NO -# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT -# tags are set to YES then doxygen will generate a graph for each documented -# file showing the direct and indirect include dependencies of the file with +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with # other documented files. INCLUDE_GRAPH = YES -# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and -# HAVE_DOT tags are set to YES then doxygen will generate a graph for each -# documented header file showing the documented files that directly or +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or # indirectly include this file. INCLUDED_BY_GRAPH = YES -# If the CALL_GRAPH and HAVE_DOT tags are set to YES then doxygen will -# generate a call dependency graph for every global function or class method. -# Note that enabling this option will significantly increase the time of a run. -# So in most cases it will be better to enable call graphs for selected -# functions only using the \callgraph command. +# If the CALL_GRAPH and HAVE_DOT options are set to YES then +# doxygen will generate a call dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable call graphs +# for selected functions only using the \callgraph command. CALL_GRAPH = YES -# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then +# doxygen will generate a caller dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable caller +# graphs for selected functions only using the \callergraph command. + +CALLER_GRAPH = NO + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen # will graphical hierarchy of all classes instead of a textual one. GRAPHICAL_HIERARCHY = YES -# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES -# then doxygen will show the dependencies a directory has on other directories +# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories # in a graphical way. The dependency relations are determined by the #include # relations between the files in the directories. DIRECTORY_GRAPH = YES -# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images # generated by dot. Possible values are png, jpg, or gif # If left blank png will be used. DOT_IMAGE_FORMAT = png -# The tag DOT_PATH can be used to specify the path where the dot tool can be +# The tag DOT_PATH can be used to specify the path where the dot tool can be # found. If left blank, it is assumed the dot tool can be found in the path. -DOT_PATH = +DOT_PATH = -# The DOTFILE_DIRS tag can be used to specify one or more directories that -# contain dot files that are included in the documentation (see the +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the # \dotfile command). -DOTFILE_DIRS = - -# The MAX_DOT_GRAPH_WIDTH tag can be used to set the maximum allowed width -# (in pixels) of the graphs generated by dot. If a graph becomes larger than -# this value, doxygen will try to truncate the graph, so that it fits within -# the specified constraint. Beware that most browsers cannot cope with very -# large images. - -MAX_DOT_GRAPH_WIDTH = 1024 +DOTFILE_DIRS = -# The MAX_DOT_GRAPH_HEIGHT tag can be used to set the maximum allows height -# (in pixels) of the graphs generated by dot. If a graph becomes larger than -# this value, doxygen will try to truncate the graph, so that it fits within -# the specified constraint. Beware that most browsers cannot cope with very -# large images. +# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of +# nodes that will be shown in the graph. If the number of nodes in a graph +# becomes larger than this value, doxygen will truncate the graph, which is +# visualized by representing a node as a red box. Note that doxygen if the +# number of direct children of the root node in a graph is already larger than +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note +# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. -MAX_DOT_GRAPH_HEIGHT = 1024 +DOT_GRAPH_MAX_NODES = 50 -# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the -# graphs generated by dot. A depth value of 3 means that only nodes reachable -# from the root by following a path via at most 3 edges will be shown. Nodes -# that lay further from the root node will be omitted. Note that setting this -# option to 1 or 2 may greatly reduce the computation time needed for large -# code bases. Also note that a graph may be further truncated if the graph's -# image dimensions are not sufficient to fit the graph (see MAX_DOT_GRAPH_WIDTH -# and MAX_DOT_GRAPH_HEIGHT). If 0 is used for the depth value (the default), -# the graph is not depth-constrained. +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that the size of a graph can be further restricted by +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. MAX_DOT_GRAPH_DEPTH = 0 -# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent -# background. This is disabled by default, which results in a white background. -# Warning: Depending on the platform used, enabling this option may lead to -# badly anti-aliased labels on the edges of a graph (i.e. they become hard to -# read). +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, because dot on Windows does not +# seem to support this out of the box. Warning: Depending on the platform used, +# enabling this option may lead to badly anti-aliased labels on the edges of +# a graph (i.e. they become hard to read). DOT_TRANSPARENT = NO -# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output -# files in one run (i.e. multiple -o and -T options on the command line). This -# makes dot run faster, but since only newer versions of dot (>1.8.10) +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) # support this, this feature is disabled by default. DOT_MULTI_TARGETS = NO -# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will -# generate a legend page explaining the meaning of the various boxes and +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and # arrows in the dot generated graphs. GENERATE_LEGEND = YES -# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will -# remove the intermediate dot files that are used to generate +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate # the various graphs. DOT_CLEANUP = YES - -#--------------------------------------------------------------------------- -# Configuration::additions related to the search engine -#--------------------------------------------------------------------------- - -# The SEARCHENGINE tag specifies whether or not a search engine should be -# used. If set to NO the values of all tags below this one will be ignored. - -SEARCHENGINE = YES diff --git a/doc/doxygen/Makefile.am b/doc/doxygen/Makefile.am index a731044e..d63832a3 100644 --- a/doc/doxygen/Makefile.am +++ b/doc/doxygen/Makefile.am @@ -14,41 +14,62 @@ doxy.remove_me_to_remake : if HAVE_DOXYGEN if HAVE_PDFLATEX if HAVE_DOT - rm -fr latex html - $(DOXYGEN) Doxyfile - ( cd latex; make pdf ) + rm -fr latex html latex-* html-* + env TOPSRC=$(top_srcdir) $(DOXYGEN) $(srcdir)/Doxyfile_c + ( cd latex-c; ) # ( cd latex-c; make pdf ) + env TOPSRC=$(top_srcdir) $(DOXYGEN) $(srcdir)/Doxyfile_cpp + ( cd latex-cpp; ) # ( cd latex-cpp; make pdf ) + env TOPSRC=$(top_srcdir) $(DOXYGEN) $(srcdir)/Doxyfile_java + ( cd latex-java; ) # ( cd latex-java; make pdf ) + env TOPSRC=$(top_srcdir) $(DOXYGEN) $(srcdir)/Doxyfile_python + ( cd latex-python; ) # ( cd latex-python; make pdf ) + env TOPSRC=$(top_srcdir) $(DOXYGEN) $(srcdir)/Doxyfile_f90 + ( cd latex-f90; ) # ( cd latex-f90; make pdf ) + env TOPSRC=$(top_srcdir) $(DOXYGEN) $(srcdir)/Doxyfile_f77 + ( cd latex-f77; ) # ( cd latex-f77; make pdf ) rm -f refman.pdf - ln -s latex/refman.pdf . + ln -s latex-c/refman.pdf . endif endif endif touch doxy.remove_me_to_remake +dist-hook : if HAVE_DOXYGEN if HAVE_PDFLATEX if HAVE_DOT -dist-hook : - test -f $(srcdir)/refman.pdf && cp $(srcdir)/refman.pdf $(distdir) - if test -d $(srcdir)/html; then \ - cp -r $(srcdir)/html $(distdir); \ - find $(distdir)/html -depth -type d -name '.svn' -exec rm -fr {} \; ;\ + if test -f $(srcdir)/refman.pdf; then \ + cp $(srcdir)/refman.pdf $(distdir); \ fi - -install-data-local : - $(mkinstalldirs) $(DESTDIR)$(nxdoxydir) - test -f $(srcdir)/refman.pdf && cp $(srcdir)/refman.pdf $(DESTDIR)$(nxdoxydir) - if test -d $(srcdir)/html; then \ - cp -r $(srcdir)/html $(DESTDIR)$(nxdoxydir); \ - find $(DESTDIR)$(nxdoxydir) -type f -exec chmod 0644 {} \; ;\ - find $(DESTDIR)$(nxdoxydir) -type d -exec chmod 0755 {} \; ;\ + if test -d $(srcdir)/html-c; then \ + for i in $(srcdir)/html-*; do \ + if test -d $$i; then \ + cp -r $$i $(distdir); \ + fi; \ + done; \ + find $(distdir)/html-* -depth -type d -name '.svn' -exec rm -fr {} \; ; \ fi endif endif endif +install-data-local : + $(mkinstalldirs) $(DESTDIR)$(nxdoxydir) + if test -f $(srcdir)/refman.pdf; then \ + cp $(srcdir)/refman.pdf $(DESTDIR)$(nxdoxydir); \ + fi + if test -d $(srcdir)/html-c; then \ + for i in $(srcdir)/html-*; do \ + cp -r $$i $(DESTDIR)$(nxdoxydir); \ + done; \ + find $(DESTDIR)$(nxdoxydir) -type f -exec chmod 0644 {} \; ;\ + find $(DESTDIR)$(nxdoxydir) -type d -exec chmod 0755 {} \; ;\ + fi + clean-local : - rm -fr html latex refman.pdf + rm -fr html-* latex-* refman.pdf uninstall-local : rm -fr $(DESTDIR)$(nxdoxydir) +EXTRA_DIST=$(srcdir)/Doxyfile_* diff --git a/doc/tech_ref/NeXus_definitions.docbook b/doc/tech_ref/NeXus_definitions.docbook index 0abd3451..e2b0b8fc 100644 --- a/doc/tech_ref/NeXus_definitions.docbook +++ b/doc/tech_ref/NeXus_definitions.docbook @@ -1,7 +1,7 @@ - + @@ -9,11 +9,11 @@ NXtranslate"> napi"> - NXS:mime_type"> + NXS:mime_type"> NXS:source"> NXS:location"> - target"> - NAPIlink"> + target"> + NAPIlink"> ]> @@ -60,7 +60,7 @@ discussed in detail. &methods -&base_classes +&base-classes Definitions diff --git a/doc/tech_ref/base_classes.docbook b/doc/tech_ref/base_classes.docbook index 4ad23870..ad1b0ec2 100644 --- a/doc/tech_ref/base_classes.docbook +++ b/doc/tech_ref/base_classes.docbook @@ -1,5 +1,5 @@ -Base Classes +Base Classes This chapter will list all of the base classes and their contents. @@ -58,7 +58,7 @@ Template of a beamline attenuator.--> -<filename>NXbeam_stop.xml</filename> +<filename>NXbeam_stop.xml</filename> -<filename>NXdisk_chopper.xml</filename> +<filename>NXdisk_chopper.xml</filename> -<filename>NXevent_data.xml</filename> +<filename>NXevent_data.xml</filename> -<filename>NXfermi_chopper.xml</filename> +<filename>NXfermi_chopper.xml</filename> -<filename>NXvelocity_selector.xml</filename> +<filename>NXvelocity_selector.xml</filename> The NIAC will construct the XML definition. -Write a sample NeXus file +Write a sample NeXus file conforming to the instrument definition (for example, using NXtranslate). Test the file, repeating steps and as appropriate. +linkend="method.ol.write-file"> as appropriate. Request ratification once the testing phase is complete. diff --git a/doc/tech_ref/tofnpd.docbook b/doc/tech_ref/tofnpd.docbook index f7303801..40d0130a 100644 --- a/doc/tech_ref/tofnpd.docbook +++ b/doc/tech_ref/tofnpd.docbook @@ -44,7 +44,7 @@ detector pixel identifier -<filename>TOFNPD:time_focus.xml</filename> +<filename>TOFNPD:time_focus.xml</filename> #endif /* _WIN32 */ +#ifdef __VMS +#include +#else #include +#endif /* __VMS */ + /* * Integer type definitions @@ -15,6 +20,8 @@ */ #if HAVE_STDINT_H #include +#elif HAVE_INTTYPES_H +#include #endif /* HAVE_STDINT_H */ diff --git a/include/nxconfig_vms.h b/include/nxconfig_vms.h new file mode 100644 index 00000000..94acd669 --- /dev/null +++ b/include/nxconfig_vms.h @@ -0,0 +1,201 @@ +/* include/nxconfig.h. Generated from nxconfig_h.in by configure. */ +/* include/nxconfig_h.in. Generated from configure.ac by autoheader. */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_DLFCN_H */ + +/* Define to 1 if you have the `ftime' function. */ +#define HAVE_FTIME 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the `df' library (-ldf). */ +/* #undef HAVE_LIBDF */ + +/* Define to 1 if you have the `dl' library (-ldl). */ +/* #undef HAVE_LIBDL */ + +/* Define to 1 if you have the `hdf5' library (-lhdf5). */ +/* #undef HAVE_LIBHDF5 */ + +/* Define to 1 if you have the `jpeg' library (-ljpeg). */ +/* #undef HAVE_LIBJPEG */ + +/* Define to 1 if you have the `m' library (-lm). */ +/* #undef HAVE_LIBM */ + +/* Define to 1 if you have the `mfhdf' library (-lmfhdf). */ +/* #undef HAVE_LIBMFHDF */ + +/* Define to 1 if you have the `rpc' library (-lrpc). */ +/* #undef HAVE_LIBRPC */ + +/* Define to 1 if you have the `SystemStubs' library (-lSystemStubs). */ +/* #undef HAVE_LIBSYSTEMSTUBS */ + +/* Define to 1 if you have the `sz' library (-lsz). */ +/* #undef HAVE_LIBSZ */ + +/* Define to 1 if you have the `xml2' library (-lxml2). */ +/* #undef HAVE_LIBXML2 */ + +/* Define to 1 if you have the `z' library (-lz). */ +#define HAVE_LIBZ 1 + +/* Define to 1 if the system has the type `long long int'. */ +#define HAVE_LONG_LONG_INT 1 + +/* Define to 1 if your system has a GNU libc compatible `malloc' function, and + to 0 otherwise. */ +#define HAVE_MALLOC 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the `memset' function. */ +#define HAVE_MEMSET 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_STDINT_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the `strchr' function. */ +#define HAVE_STRCHR 1 + +/* Define to 1 if you have the `strdup' function. */ +#define HAVE_STRDUP 1 + +/* Define to 1 if you have the `strftime' function. */ +#define HAVE_STRFTIME 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the `strrchr' function. */ +#define HAVE_STRRCHR 1 + +/* Define to 1 if you have the `strstr' function. */ +#define HAVE_STRSTR 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the `tzset' function. */ +#define HAVE_TZSET 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if the system has the type `unsigned long long int'. */ +#define HAVE_UNSIGNED_LONG_LONG_INT 1 + +/* Define to 1 if your C compiler doesn't accept -c and -o together. */ +/* #undef NO_MINUS_C_MINUS_O */ + +/* Name of package */ +#define PACKAGE "nexus" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "nexus-developers@nexusformat.org" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "NeXus Library" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "NeXus Library trunk_r1077" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "nexus" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "trunk_r1077" + +/* Set to printf format for int64_t */ +#define PRINTF_INT64 "lld" + +/* Set to printf format for uint64_t */ +#define PRINTF_UINT64 "llu" + +/* The size of `int', as computed by sizeof. */ +#define SIZEOF_INT 4 + +/* The size of `long int', as computed by sizeof. */ +#define SIZEOF_LONG_INT 4 + +/* The size of `long long int', as computed by sizeof. */ +#define SIZEOF_LONG_LONG_INT 8 + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define to 1 if your declares `struct tm'. */ +/* #undef TM_IN_SYS_TIME */ + +/* Version number of package */ +#define VERSION "trunk_r1077" + +/* Define for Solaris 2.5.1 so the uint32_t typedef from , + , or is not used. If the typedef was allowed, the + #define below would cause a syntax error. */ +/* #undef _UINT32_T */ + +/* Define for Solaris 2.5.1 so the uint64_t typedef from , + , or is not used. If the typedef was allowed, the + #define below would cause a syntax error. */ +/* #undef _UINT64_T */ + +/* Define for Solaris 2.5.1 so the uint8_t typedef from , + , or is not used. If the typedef was allowed, the + #define below would cause a syntax error. */ +/* #undef _UINT8_T */ + +/* Define to empty if `const' does not conform to ANSI C. */ +/* #undef const */ + +/* Define to the type of a signed integer type of width exactly 16 bits if + such a type exists and the standard includes do not define it. */ +/* #undef int16_t */ + +/* Define to the type of a signed integer type of width exactly 32 bits if + such a type exists and the standard includes do not define it. */ +/* #undef int32_t */ + +/* Define to the type of a signed integer type of width exactly 64 bits if + such a type exists and the standard includes do not define it. */ +/* #undef int64_t */ + +/* Define to the type of a signed integer type of width exactly 8 bits if such + a type exists and the standard includes do not define it. */ +/* #undef int8_t */ + +/* Define to rpl_malloc if the replacement function should be used. */ +/* #undef malloc */ + +/* Define to `unsigned int' if does not define. */ +/* #undef size_t */ + +/* Define to the type of an unsigned integer type of width exactly 16 bits if + such a type exists and the standard includes do not define it. */ +/* #undef uint16_t */ + +/* Define to the type of an unsigned integer type of width exactly 32 bits if + such a type exists and the standard includes do not define it. */ +/* #undef uint32_t */ + +/* Define to the type of an unsigned integer type of width exactly 64 bits if + such a type exists and the standard includes do not define it. */ +/* #undef uint64_t */ + +/* Define to the type of an unsigned integer type of width exactly 8 bits if + such a type exists and the standard includes do not define it. */ +/* #undef uint8_t */ + diff --git a/macosx_install_kit/Makefile.am b/macosx_install_kit/Makefile.am new file mode 100644 index 00000000..619a65c4 --- /dev/null +++ b/macosx_install_kit/Makefile.am @@ -0,0 +1,37 @@ +## Process this file with automake to produce Makefile.in +#==================================================================== +# NeXus - Neutron & X-ray Common Data Format +# +# $Id: Makefile.am 1251 2009-05-01 15:41:53Z Freddie Akeroyd $ +# +# Makefile for building NeXus applications +# +# Copyright (C) 2004 Freddie Akeroyd +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# +# For further information, see +# +#==================================================================== +EXTRA_DIST=build_mac_kit.sh pkg.config.in ReadMe.txt \ + $(srcdir)/bin/*.sh \ + Resources/postflight Resources/preflight \ + Resources/English.lproj/background.jpg \ + Resources/English.lproj/Conclusion.txt \ + Resources/English.lproj/Description.plist \ + Resources/English.lproj/License.txt \ + Resources/English.lproj/ReadMe.txt \ + Resources/English.lproj/Welcome.txt diff --git a/macosx_install_kit/ReadMe.txt b/macosx_install_kit/ReadMe.txt new file mode 100644 index 00000000..843bd1db --- /dev/null +++ b/macosx_install_kit/ReadMe.txt @@ -0,0 +1,11 @@ +NeXus is a common data format for neutron, x-ray, and muon science. It is being developed as an international standard by scientists and programmers representing major scientific facilities in Europe, Asia, Australia, and North America in order to facilitate greater cooperation in the analysis and visualization of neutron, x-ray, and muon data. + +This package provides libraries for interacting with NeXus files, with bindings for C, C++, Fortran, Python, Java and IDL. + +NeXus is distributed under the LGPL licence; this binary is linked to +other packages that have different, but compatible, licences. For more +information see the files in /usr/local/share/nexus + +For futher information on NeXus see http://www.nexusformat.org/ + +To begin the install, just double click on NeXus.pkg diff --git a/macosx_install_kit/Resources/English.lproj/Conclusion.txt b/macosx_install_kit/Resources/English.lproj/Conclusion.txt new file mode 100644 index 00000000..a5d08335 --- /dev/null +++ b/macosx_install_kit/Resources/English.lproj/Conclusion.txt @@ -0,0 +1,9 @@ +A note on pre-10.5 Macintosh + +You may need to add /Library/Python/2.5/site-packages to your python path. +If you are using the python.org distribution of python-2.5 this is already +done for you. Otherwise, add the following file to your site-packages +directory: + +--Library_Python.pth-- +/Library/Python/2.5/site-packages diff --git a/macosx_install_kit/Resources/English.lproj/Description.plist b/macosx_install_kit/Resources/English.lproj/Description.plist new file mode 100644 index 00000000..5b708759 --- /dev/null +++ b/macosx_install_kit/Resources/English.lproj/Description.plist @@ -0,0 +1,12 @@ + + + + + IFPkgDescriptionDescription + NeXus is a common data format for neutron, x-ray, and muon science. It is being developed as an international standard by scientists and programmers representing major scientific facilities in Europe, Asia, Australia, and North America in order to facilitate greater cooperation in the analysis and visualization of neutron, x-ray, and muon data. + +This package provides libraries for interacting with NeXus files, with bindings for C, C++, Fortran, Python, Java and IDL. + IFPkgDescriptionTitle + NeXus + + diff --git a/macosx_install_kit/Resources/English.lproj/License.txt b/macosx_install_kit/Resources/English.lproj/License.txt new file mode 100644 index 00000000..a12246d5 --- /dev/null +++ b/macosx_install_kit/Resources/English.lproj/License.txt @@ -0,0 +1,526 @@ +License Information +------------------- + +The NeXus library and utilities are distributed under the terms on the GNU Lesser General Public License (LGPL) - see the enclosed COPYING_NeXus.txt file or http://www.opensource.org/licenses/lgpl-license.php for further details. The NeXus library is linked statically against several other libraries and these are detailed below. All licence files are installed in /usr/local/share/nexus + +* Michael Sweet's Mini-XML parsing library (http://www.easysw.com/~mike/mxml/) which is also governed by the LGPL. + +* HDF4 libraries developed at the National Center for Supercomputing Applications (NCSA) at the University of Illinois at Urbana-Champaign (http://hdf.ncsa.uiuc.edu/). Their distribution is covered by the license detailed in the enclosed COPYING_hdf4.txt file and at ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF_Current/src/unpacked/COPYING + +* HDF5 library developed at the National Center for Supercomputing Applications (NCSA) at the University of Illinois at Urbana-Champaign (http://hdf.ncsa.uiuc.edu/). Distribution is covered by the license detailed in the enclosed COPYING_hdf5.txt file and at ftp://ftp.ncsa.uiuc.edu/HDF/HDF5/current/src/unpacked/COPYING + + + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! + + + diff --git a/macosx_install_kit/Resources/English.lproj/ReadMe.txt b/macosx_install_kit/Resources/English.lproj/ReadMe.txt new file mode 100644 index 00000000..f05fe8cb --- /dev/null +++ b/macosx_install_kit/Resources/English.lproj/ReadMe.txt @@ -0,0 +1,379 @@ +Version 4.2.0 +============= + +For the latest information see + + http://www.nexusformat.org/Nexus_42_Release_Notes + +==System Requirements== +'''MXML XML Parsing Library''' + +Version 2.2.2 or higher of mxml is required. Earlier versions have a bug and the XML API will not work. This package can be downloded in [http://www.easysw.com/~mike/mxml/software.php both source and binary rpm form] and is also available as part of [http://fedoraproject.org/wiki/Extras/UsingExtras Fedora Extras]. IMPORTANT NOTE: Debian also provides the mxml package, but it based on 2.0 and will not work properly. + +'''Python Interface''' +You will need both the numpy and ctypes modules to be available. These are provided in both the Fedora and EPEL repositories. + +==Building Notes== +===NAG F90/F95 Compiler=== +The NAG compiler needs the '''-mismatch''' flag to be specified or else it will not compile NXmodule.f90 This is achieve by running configure with the '''FCFLAGS''' environment variable set to contain the flag e.g. +
+env FCFLAGS="-mismatch" ./configure --with-f90=f95
+
+===HDF4 on Intel Macs=== +There is a problem with the include file, hdfi.h (normally in /usr/local/include). See http://coastwatch.noaa.gov/helparc/software/msg00069.html for details of the modifications necessary to fix it. + +==New Features== +===C++ Interface=== +See the [http://download.nexusformat.org/doxygen/html/classNeXus_1_1File.html doxygen documentation] and +[http://svn.nexusformat.org/code/branches/4.2/test/napi_test_cpp.cxx NeXus API test program] + +===C++ Stream Like interface=== +The idea is to provide an IOSteam like interface and allow you to type +
+    // create an entry and a data item
+    File nf(fname, NXACC_CREATE);
+    nf << Group("entry1", "NXentry") << Data("dat1", w, "int_attr", 3);
+    nf.close();
+
+    File nf1(fname, NXACC_RDWR);
+    // add a double_attr to an existing setup
+    nf1 >> Group("entry1", "NXentry") >> Data("dat1") << Attr("double_attr", 6.0);
+    nf1.close();
+
+    // read back data items
+    File nf2(fname, NXACC_READ);
+    nf2 >> Group("entry1", "NXentry") >> Data("dat1", w1, "int_attr", i, "double_attr", d);
+    // alternative way to read d1
+    nf2 >> Data("dat1") >> Attr("double_attr", d1);
+
+See also the [http://svn.nexusformat.org/code/branches/4.2/test/napi_test_cpp.cxx NeXus API test program] + +===IDL Interface=== +There is a new interface to RSI's Interactive Data Language, IDL for NeXus. This +interface has to be considered beta. Nevertheless it is working most of the time. +Known issues include: +* Compressed reading and writing do not work for HDF-4 files, probably because of a library version conflict on libz. +* There is an issue using NXgetslab on 64 bit operating systems; expect a fix for this pretty soon. + +===Python Interface=== +There is now, thanks to David Kienzle, a supported interface for the python scripting language. Arrays are stored in numpy arrays and thus allow for efficient data manipulations. + +==Changed Features== + +==Known Issues== +See the comments on the IDL interface. + +==Miscellaneous bug fixes== +The following items are bugs reported in previous releases and resolved in +the 4.2 release. + +==Upcoming Features== + +Version 4.1.0 +============= + +For the latest information see + + http://www.nexusformat.org/Nexus_41_Release_Notes + +==System Requirements== +'''MXML XML Parsing Library''' + +Version 2.2.2 or higher of mxml is required. Earlier versions have a bug and the XML API will not work. This package can be downloded in [http://www.easysw.com/~mike/mxml/software.php both source and binary rpm form] and is also available as part of [http://fedoraproject.org/wiki/Extras/UsingExtras Fedora Extras]. IMPORTANT NOTE: Debian also provides the mxml package, but it based on 2.0 and will not work properly. + +==Building Notes== +===NAG F90/F95 Compiler=== +The NAG compiler needs the '''-mismatch''' flag to be specified or else it will not compile NXmodule.f90 This is achieve by running configure with the '''FCFLAGS''' environment variable set to contain the flag e.g. +
+env FCFLAGS="-mismatch" ./configure --with-f90=f95
+
+===HDF4 on Intel Macs=== +There is a problem with the include file, hdfi.h (normally in /usr/local/include). See http://coastwatch.noaa.gov/helparc/software/msg00069.html for details of the modifications necessary to fix it. + +==New Features== +* New types NX_INT64 and NX_UINT64 to suppport 64 bit integers (only available in HDF5 and XML) [http://trac.nexusformat.org/code/ticket/87 details]. +* Python bindings are now included in the Windows install kit [http://trac.nexusformat.org/code/ticket/86 details] + +==Miscellaneous bug fixes== +The following items are bugs reported in previous releases and resolved in +the 4.1 release. +* The Fortran 90 part of testsuite failed with the Absoft compiler on MacOSX (it passed with g95 and gfortran (4.2)) [http://trac.nexusformat.org/code/ticket/68 details here] +* NXputattr assumed NULL termination of NX_CHAR attributes, which is usually the case in C but not true for JAVA. A workaround is to add '\0' manually [http://trac.nexusformat.org/code/ticket/83 bug report] +* pkgconfig issue [http://trac.nexusformat.org/code/ticket/84 bug report] +* Build issue with MXML-2.3 [http://trac.nexusformat.org/code/ticket/91 bug report] +* XML buffer resizing performance issue [http://trac.nexusformat.org/code/ticket/92 bug report] +* Documentation is now installed to "datadir" (/usr/share) [http://trac.nexusformat.org/code/ticket/93 bug report] + +Version 4.0.0 +============= + +For the latest information see + + http://www.nexusformat.org/Nexus_4_Release_Notes + +==System Requirements== +'''MXML XML Parsing Library''' + +Version 2.2.2 of mxml is required. Earlier versions have a bug and the XML API will not work. This package can be downloded in [http://www.easysw.com/~mike/mxml/software.php both source and binary rpm form] and is also available as part of [http://fedoraproject.org/wiki/Extras/UsingExtras Fedora Extras]. IMPORTANT NOTE: Debian also provides the mxml package, but it based on 2.0 and will not work properly. + +==Building Notes== +===NAG F90/F95 Compiler=== +The NAG compiler needs the '''-mismatch''' flag to be specified or else it will not compile NXmodule.f90 This is achieve by running configure with the '''FCFLAGS''' environment variable set to contain the flag e.g. +
+env FCFLAGS="-mismatch" ./configure --with-f90=f95
+
+==New Features== +The following items are features added to the NeXus API to provide new +functionality to the core library or to assist in the build process. +*Extended XML-API to handle unlimited dimensions +*Add building of Doxygen documentation +*Add support for two dimensional character arrays (HDF4 and HDF5 only) +*Added group attribute support to HDF4 (2006/05/02). Requires HDF4 version (???) +*Add NXmakenamedlink (2007/01/09) to all three file formats (external linking) +*Add NXprintlink +*Improved link testing in test suite +*API can now read generic HDF5 files, such as those produced by matlab +*Add facility to enable/disable error reporting +*New NXsummary tool for summarising contentes of a NeXus file +*Fortran 90 API now works with gfortran 4.2 and above as well as with G95 +*PYTHON and TCL bindings provided via a [http://www.swig.org/ SWIG interface] +*Additional NXtranslate translators: SPEC, ESRF-EDF + +==Changed Features== +The following aspects of the API have changed in a potentially non-backward compatible way +*The JAVA API now uses org.nexusformat rather than gov.anl.neutron.nexus + +==Known Issues== +* The Fortran 90 part of testsuite fails with the Absoft compiler on MacOSX (it passes with g95 and gfortran (4.2)) [http://trac.nexusformat.org/code/ticket/68 details here] + +==Miscellaneous bug fixes== +The following items are bugs reported in the 3.x releases and resolved for +the 4.0 release. +*Leading and trailing whitespace is stripped from char data on a read; this can be disabled by passing the NXACC_NOSTRIP option to NXopen +*Fix problems with MXML (what problems?) +*Improve test procedures when not all libraries are present +*Correct sourcepath for javadoc +*Updated makefiles for swig bindings (python, tcl) + +Changes in Version 3.0.0 +======================== + +- GNU Autotools are now used for building the API and programs + +- XML files can be written by the NeXus API by specifying NXACC_XML to NXopen + +- The NXtoXML, NXtoNX4 and NXtoNX5 utilities have been combined into a single utility nxconvert. To make a DTD definition file use nxtodtd + +- New utilities nxdir and nxtranslate + +- g95 compiler supported by FORTRAN90 bindings. To specify another + compiler use the --with-f90 option of configure + +Changes in Version 2.0.0 +======================== + +- NeXus library updated to allow the reading and writing of HDF5 files + using the same API calls. In creating a file, use NXACC_CREATE4 for + HDF4 and NXACC_CREATE5 for HDF5. As long as both HDF4 and HDF5 + libraries are linked, the API will read both HDF4 and HDF5 files + transparently. + +- The Makefiles have been reorganized to allow HDF4 and/or HDF5 files to + be linked into the NeXus library, with compile and link options stored + in "makefile_options". + +- Rearranged the NeXus libraries so that libNeXus.a contains the standard + C and F77 interfaces and libNeXus90.a contains the C and F90 interfaces. + +- Added the routine NXsameID to the C interface to compare the ID of + NeXus groups and data sets. + +- Added NXtoXML and NXtoDTD, utilities that translate a NeXus file to + XML, respectively with and without the data. Note that NXtoDTD does not + produce a true XML DTD file. Instead, it produces a metaDTD as defined + on the NeXus web pages (although it will lack proper annotation). + +- Changed NXUmodule.f90 so that NXUfindaxis uses the two accepted methods + of defining dimension scales, i.e. adding the "axis" attribute to the + axis data or adding the "axes" attribute to the signal data + +Changes in Version 1.3.3 +======================== + +- Added NXflush routine to flush data to the output file. + +- Added support for unlimited dimensions. + +- Used the NX_EXTERNAL macro to prefix callable NeXus functions and defined + this to do the appropriate DLL import/export operation on Windows. + README.WIN32 has been updated with instructions on how to make and + use a NEXUS.DLL. + +- NeXus errors now directed to MessageBox() in a Windows DLL. + +- Modified timezone selection to use difftime/gmtime method on all + systems except VMS 6.2 (where gmtime() always returns NULL). + +- Corrected spurious overflow errors in NXGETCHARDATA. + +- Added some unix-style commands, e.g. ls, cd, cat, as equivalents of + standard commands in NXbrowse. + +Changes in Version 1.3.2 +======================== + +- NXbrowse now reads a filename as command line argument and only prompts if + none is specified. + +- Added "dump " command to NXbrowse, which dumps a + NeXus data array into an ASCII file. + +- Added a toggle command to NXbrowse, called "byteaschar", which forces + NX_INT8, NX_UINT8 variables to be printed as character strings. This is + for backward compatibility with files created before the definition of the + NX_CHAR data type. 8-byte global attributes will be treated as characters + when the program begins, but, after that, the default is to treat NX_INT8 + and NX_UINT8's as integers. + +- Introduced proper typecasts for dimensions in data access routines. This + is to correct problems with systems that do not have 4-byte int's. + +- Added in the CALLING_STYLE macro to napi.h to allow correct calling of the + FORTRAN interface under WINDOWS. Corrected definition of NXcompress() on + PC. + +- Added README.WIN32 to distribution discussing WINDOWS-specific compilation. + + +Changes in Version 1.3.1 +======================== + +- Added NXgetgroupinfo, NXinitgroupdir, NXgetattrinfo, and NXinitattrdir + to the core C and F77 API's. They were already present in the F90 API. + +- Updated the above routines in NXmodule.f90 so that they called the C + versions directly. This removes the need for the F90 code to know the + internal details of the NXhandle C struct. + +- Released a new version of NXbrowse written in ISO C. It is the version + that is now installed with the "make NXbrowse" command (on unix systems). + The ordering of array indices uses the C convention i.e. it is reversed + from the original F90 version. + +- Corrected the calculation of time zone offsets when compiled by + Metrowerks CodeWarrior for PowerPC Macs. + +Changes in Version 1.3.0 +======================== + +- Added NXcompress to the C, F77, and F90 API's. Compression works only with + Release 3 of the HDF-4.1 libraries or better. Note: on my DigitalUnix 4.0D + installation I had to link against the jpeg library supplied with HDF + directly due to a conflict with a system shared library. Replace -ljpeg + by $HDFROOT/lib/libjpeg.a. + +- Added NXUsetcompress to F90 utility API to set default compression + parameters, and added call to NXcompress in NXUwritedata. + +- Changed attribute arguments in the F90 routine NXUwriteglobals to optional. + +Changes in Version 1.2.1 +======================== + +- Released NeXus API under the terms of the GNU Lesser General Public + License. + +Changes in Version 1.2.0 +======================== + +- NXGETCHARDATA, NXGETCHARATTR, NXPUTCHARDATA and NXPUTCHARATTR added + to Fortran 77 interface to correct problems with handling character data + and attributes. + +- Reversed dimension order and adjusted starting indices in NXGETSLAB + and NXPUTSLAB in Fortran 77 interface for improved compatibility with the + C interface. + +- All SDSes created with the DFTAG_NDG tag, rather than DFTAG_SDG, + which is now deprecated by HDF. + +- Expanded number of NeXus routines and data types checked by the test + programs "napi_test.c", "napif_test.f" and "NXtest.f90". + +- Excluded null terminator from string length check in REPLACE_STRING to + prevent error messages when the string is exactly the right length. + +- Added definitions of NX_MAXRANK (max. no. of dataset dimensions = 32) to + and NX_MAXNAMELEN (max. length of dataset name = 64) to header files. + +- Made NXIReportError globally visible. + +- Improved determination of local time zone when writing the global file + attribute "file_time". + +- Added option to NXbrowse.f90 to allow display of individual array elements + of the specified index. + +- Added check for __ABSOFT macro in "napi.h" to make compatible with + Absoft Pro Fortran for Linux. + +- Add __stdcall definition to C prototypes under WIN32 so they can link + to FORTRAN. + +Changes in Version 1.1.0 +======================== + +- First appearance of the Fortran 90 API. + +- Added reading and writing of non-character attributes to the Fortran 77 + interface. + +- Corrected problems with linking groups by making NXgetgroupID + and NXmakelink use the HDF tag/ref pair in NXlink structures. + +- Added VMS build file MAKE_VMS.COM. + +- Added NEXUS_VERSION CHARACTER constant to NAPIF.INC, with value as defined + in napi.h. + +- Made the Fortran 77 interface treat both NX_UINT8 and NX_CHAR as strings, for + consistency with the C implementation and also for backward compatability + reasons. + +- Fixed memory leak on Fortran 77 side on NXclose. + +- NXdict added to the normal distribution. + +- Added casts to HDF API calling parameters to eliminate type-mismatch + compiler warnings. + +- Modified time creation functions to handle non-working gmtime() + function on VMS 6.2. + + +Changes in Version 1.0.0 +======================== + +- Reversed array dimensions on going from C to FORTRAN, so that the + "fastest varying index" is kept consistent. + +- Incorporated fixes suggested by Markus Zolliker (markus.zolliker@psi.ch) + for the following problems with the FORTRAN interface: + + (1) NXopen ends with a "Segmentation fault" if the file is not HDF. + (2) NXgetentry gives an error message when NAME and CLASS are not + initialised to blank. + +- Changed "data" from char* to void* in NXgetattr. + +- Changed value for NXACC_CREATE to be DFACC_CREATE rather than DFACC_ALL + in NAPIF.INC for consistency with C interface. + +- Added the following global attributes : + NeXus_version - updated whenever a file is opened "read/write", so it + will always contain the latest version of the interface + the file was written with + file_name - set on file creation, then left unchanged + file_time - set on file creation, then left unchanged + +$Id: NEWS 1228 2009-04-14 17:41:25Z Freddie Akeroyd $ diff --git a/macosx_install_kit/Resources/English.lproj/Welcome.txt b/macosx_install_kit/Resources/English.lproj/Welcome.txt new file mode 100644 index 00000000..bb1e86c4 --- /dev/null +++ b/macosx_install_kit/Resources/English.lproj/Welcome.txt @@ -0,0 +1,10 @@ +This installer will guide you through the steps necessary to +install the NeXus API for Mac OS 10.4 or higher on your machine. +This version is able to access HDF4, HDF5 and XML NeXus files. + +NeXus file utilities will be placed in /usr/local/bin, libraries +in /usr/local/include and /usr/local/lib, documentation and +examples in /usr/local/share and python bindings +in /Library/Python/2.5/site-packages. + +Licence information will be placed in /usr/local/share/nexus diff --git a/macosx_install_kit/Resources/English.lproj/background.jpg b/macosx_install_kit/Resources/English.lproj/background.jpg new file mode 100644 index 00000000..18636031 Binary files /dev/null and b/macosx_install_kit/Resources/English.lproj/background.jpg differ diff --git a/macosx_install_kit/Resources/postflight b/macosx_install_kit/Resources/postflight new file mode 100755 index 00000000..d2d164cf --- /dev/null +++ b/macosx_install_kit/Resources/postflight @@ -0,0 +1,8 @@ +#!/bin/sh + +# Add /Library/Python/2.5/site-packages to the python site-packages path +# This is necessary for pre-10.5 OS X where python is installed differently +SITEPKGS=/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages +if test -d $SITEPKGS; then + echo /Library/Python/2.5/site-packages > $SITEPKGS/Library_Python.pth +fi diff --git a/macosx_install_kit/Resources/preflight b/macosx_install_kit/Resources/preflight new file mode 100755 index 00000000..bd5932d3 --- /dev/null +++ b/macosx_install_kit/Resources/preflight @@ -0,0 +1,13 @@ +#!/bin/sh + +# Xcode 2.5+ installer is broken and will create an infinite symlink +# in /usr/local/lib. We try to detect and fix this, becuase it +# caused just too many failed installations. + +if [ -L /usr/local/lib -a -d /usr/local/lib\ 1 ]; then + # excuse me for being paranoid, but I want to make sure it's + # not some other (intentional) symlink that we are about to remove + if ls -l /usr/local/lib|grep '/usr/local/lib -> /usr/local/lib$' >/dev/null; then + rm -f /usr/local/lib && mv /usr/local/lib\ 1 /usr/.local/lib + fi +fi diff --git a/macosx_install_kit/bin/dmgpack.sh b/macosx_install_kit/bin/dmgpack.sh new file mode 100755 index 00000000..ac39f29b --- /dev/null +++ b/macosx_install_kit/bin/dmgpack.sh @@ -0,0 +1,65 @@ +#! /bin/bash + +# dmgpack diskname [file|dir]+ +# +# Copy a group of files/directories to a compressed disk image. +# The resulting image is stored in diskname.dmg +# +# Files are copied with 'ditto' to preserve resource forks. For +# convenience we also call FixupResourceForks after copying. This +# allows you to use /Developer/Tools/SplitFork on your tree and +# manipulate it with CVS, tar, etc. Don't forget the -kb option +# when adding or committing app and ._app files to CVS! +# +# This command will fail if a volume of the given name is already +# mounted. It could also fail if the size of the resource forks +# is large compared to the size of the data forks. Change the +# scale factor internally from 11/10 to a more appropriate number +# if it complains it is running out of space. +# +# It is possible to add a license agreement to a dmg file. See +# the "Software License Agreements for UDIFs" sdk available at +# http://developer.apple.com/sdk/index.html + +test $# -lt 2 && echo "usage: $0 diskname [file|dir]+" && exit 1 +#set -x +NAME="${1%.dmg}" ; shift +DISK=/tmp/dmgpack$$.dmg +COMPRESSED="$NAME.dmg" +VOLUME="$NAME" + +# compute needed image size; scale it by 10% +SIZE=$(du -ck "$@" | tail -1 | sed -e 's/ *total//') +SIZE=$(echo $SIZE*11/10 | bc) +test $SIZE -lt 4200 && SIZE=4200 + +# create the disk +rm -f $DISK +hdiutil create -size ${SIZE}k $DISK -layout NONE + +# create a file system on the disk; last line of output is +# the device on which the disk was attached. +DEVICE=$(hdiutil attach $DISK -nomount | tail -1) +newfs_hfs -v "$VOLUME" $DEVICE + +# mount the file system +mkdir $DISK-mount +mount -t hfs $DEVICE $DISK-mount || (echo "mount $DISK-mount failed" && exit 1) + +# copy stuff to the disk and fixup resource forks +for f in "$@"; do + f=${f%/} ;# strip trailing / + dest="$DISK-mount/${f##*/}" + ditto -rsrc "$f" "$dest" + test -d "$f" && /System/Library/CoreServices/FixupResourceForks "$dest" +done + +# eject the disk +umount $DISK-mount +rmdir $DISK-mount +hdiutil eject $DEVICE + +# compress the disk and make it read only +rm -f "$COMPRESSED" +hdiutil convert -format UDZO $DISK -imagekey zlib-level=9 -o "$COMPRESSED" +rm -f $DISK diff --git a/macosx_install_kit/bin/makepkg.sh b/macosx_install_kit/bin/makepkg.sh new file mode 100755 index 00000000..68b499ee --- /dev/null +++ b/macosx_install_kit/bin/makepkg.sh @@ -0,0 +1,272 @@ +#!/bin/sh + +if test "$1" = "-?"; then + cat < + + + + IFPkgDescriptionTitle + insert title here + IFPkgDescriptionDescription + insert description here + + + +=== References === + + Software Delivery Guide - Managed Installs + http://developer.apple.com/documentation/DeveloperTools/Conceptual/SoftwareDistribution/Managed_Installs/Managed_Installs.htm + + PackageMaker How-to + http://s.sudre.free.fr/Stuff/PackageMaker_Howto.html + + Installer Keys + http://developer.apple.com/documentation/DeveloperTools/Conceptual/SoftwareDistribution4/Concepts/sd_pkg_flags.html + +EOF + exit +fi + + +function err { echo $* && exit; } +test -n "$1" || err "usage: makepkg [-? | pkg.config]" +source $1 +test -n "$PACKAGE" -a -n "$VERSION" -a -n "$BUNDLE" || err "required keywords missing. use 'makepkg -?' for help" + +# Check that sources exist +: ${ROOT:=Root} +: ${RESOURCES:=Resources} + +test -d "$ROOT" -a -d "$RESOURCES" || err "need to create $ROOT and $RESOURCES" + +# Prepare package directory, removing existing package directory first +test -d "$PACKAGE.pkg" && rm -rf "$PACKAGE.pkg" +target="$PACKAGE.pkg/Contents" +echo "creating $target" +mkdir -p "$target" +cp -Rpv $RESOURCES "$target/Resources" +echo "Purging .svn directories from $target" +find -d "$target" -type d -name ".svn" -exec rm -fr "{}" \; -print + +# Purge .DS_STORE; protect against spaces if filename +echo "Purging .DS_Store files from install files (requires root) ..." +find "$ROOT" -name ".DS_Store" | sed '-es/^/sudo rm -f "/;s/$/"/' | sh + +# Reset permissions on the distribution files +echo "Setting permissions on install files (requires root) ..." +set -x +# Files readable by everybody, writable by ownder +sudo chmod -R a+r,go-w $ROOT/* +# Extend executable bit to all users; protect against spaces in filename +find "$ROOT" -perm +u=x | sed '-es/^/sudo chmod a+x "/;s/$/"/' | sh +# Most directories are owned by root:admin +sudo chown -R root:admin $ROOT/* +# /usr directory is owned by root:wheel +test -d $ROOT/usr && sudo chown -R root:wheel $ROOT/usr +# Turn on sticky bit for /Library directory +test -d $ROOT/Library && sudo chmod u+t $ROOT/Library +set +x + +# Build the archives and bill of materials +echo "building archives" +( cd $ROOT; pax -w . | gzip -9 -c ) > "$target/Archive.pax.gz" || err "Could not create pax" +mkbom $ROOT "$target/Archive.bom" || err "Could not create bom" + +SIZE=`du -sk $ROOT | sed -e"s,^\([0-9]*\)[^0-9].*$,\1,"` +# Build the Info.plist file +: ${RELEASE:=} +: ${BundleIdentifier:=$BUNDLE} +: ${BackgroundAlignment:=left} +: ${BackgroundScaling:=none} +: ${AllowBackRev:=false} +: ${AuthorizationAction:=NoAuthorization} +: ${DefaultLocation:=/} +: ${Relocatable:=false} +: ${FollowLinks:=true} +: ${InstallFat:=false} +: ${IsRequired:=false} +: ${RestartAction:=NoRestart} +: ${OverwritePermissions:=false} +: ${RootVolumeOnly:=false} +: ${UpdateInstalledLanguages:=false} +if test -z "$InfoString"; then + : ${YEAR:=`date +%Y`} + InfoString="$VERSION$RELEASE, (c) $YEAR $COPYRIGHT" + test -z "$YEAR" -a -z "$COPYRIGHT" && InfoString="$VERSION$RELEASE" +fi +: ${InstalledSize:=${SIZE}} +: ${MajorVersion:=${VERSION%.*}} +: ${MinorVersion:=${VERSION#*.}} +: ${ShortVersionString:=$VERSION$RELEASE} + +cat <"$target/Info.plist" + + + + + CFBundleGetInfoString + $InfoString + CFBundleIdentifier + $BundleIdentifier + CFBundleShortVersionString + $ShortVersionString + IFMajorVersion + $MajorVersion + IFMinorVersion + $MinorVersion + IFPkgFlagAllowBackRev + <$AllowBackRev/> + IFPkgFlagAuthorizationAction + $AuthorizationAction + IFPkgFlagBackgroundAlignment + $BackgroundAlignment + IFPkgFlagBackgroundScaling + $BackgroundScaling + IFPkgFlagDefaultLocation + $DefaultLocation + IFPkgFlagFollowLinks + <$FollowLinks/> + IFPkgFlagInstallFat + <$InstallFat/> + IFPkgFlagInstalledSize + $InstalledSize + IFPkgFlagIsRequired + <$IsRequired/> + IFPkgFlagOverwritePermissions + <$OverwritePermissions/> + IFPkgFlagRelocatable + <$Relocatable/> + IFPkgFlagRestartAction + $RestartAction + IFPkgFlagRootVolumeOnly + <$RootVolumeOnly/> + IFPkgFlagUpdateInstalledLanguages + <$UpdateInstalledLanguages/> + IFPkgFormatVersion + 0.10000000149011612 + + +EOF + +# Create PkgInfo file, etc +echo pmkrpkg1 > "$target/PkgInfo" +cat < "$target/Resources/package_version" +major: $MajorVersion +minor: $MinorVersion +EOF +cat < "$target/Resources/BundleVersions.plist" + + + + + +EOF + +# Set permissions on the package files +chmod -R a+r,a-w "$target" +(cd "$target" && find . -perm +u=x | xargs chmod a+x) +(cd "$target" && find . -type d | xargs chmod u+w) diff --git a/macosx_install_kit/build_mac_kit.sh b/macosx_install_kit/build_mac_kit.sh new file mode 100755 index 00000000..3b12f446 --- /dev/null +++ b/macosx_install_kit/build_mac_kit.sh @@ -0,0 +1,48 @@ +#!/bin/sh +# at the moment hdf4 only support -arch i386 -arch ppc +# and nexus tests fail if hdf5 is build with -arch x86_64 -arch ppc64 +# so leave as just "-arch i386 -arch ppc" for the moment + + +echo "Removing old package root (require root privileges)" +test -d package_root && sudo rm -fr package_root + +cd .. +echo "Building NeXus" +make distclean # needed as we disable dependency tracking +arch_flags="-arch i386 -arch ppc -arch x86_64 -arch ppc64" +export MACOSX_DEPLOYMENT_TARGET=10.4 +env CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $arch_flags" \ + CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $arch_flags" \ + LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk $arch_flags" \ + ./configure --with-hdf4=/usr/local/hdf4.2r4 \ + --with-hdf5=/usr/local/hdf5-1.8.2 --with-python \ + --with-java-home=/usr --without-opengenie \ + --disable-dependency-tracking +make +make install DESTDIR=`pwd`/macosx_install_kit/package_root +cp InstallerBits/Licences/*.txt macosx_install_kit/package_root/usr/local/share/nexus + +cd macosx_install_kit + +# Use pkg.config to fetch the package name and version number +. pkg.config +rm -rf "$PACKAGE.pkg" "$PACKAGE-$VERSION$RELEASE" + +cp ../NEWS Resources/English.lproj/ReadMe.txt + +echo "Building the package (requires root to set permissions)" +ROOT=package_root bin/makepkg.sh pkg.config + +echo "Building the disk image" +bin/dmgpack.sh "$PACKAGE-$VERSION$RELEASE" ReadMe.txt "$PACKAGE.pkg" + +echo "Enabling internet install" +hdiutil internet-enable -yes "$PACKAGE-$VERSION$RELEASE.dmg" + +echo "Cleaning NeXus build (as we configured without dependency tracing)" +( cd ..; make distclean; ) > /dev/null + +echo "Removing temporary files (requires root to clear)" +#sudo rm -fr package_root +#rm -rf "$PACKAGE.pkg" diff --git a/macosx_install_kit/pkg.config.in b/macosx_install_kit/pkg.config.in new file mode 100644 index 00000000..ab279340 --- /dev/null +++ b/macosx_install_kit/pkg.config.in @@ -0,0 +1,16 @@ +# This file contains definitions required to fill out the +# Info.plist of the NeXus package. It is sourced as part +# of bin/makepkg.sh during build_mac_kit.sh +PACKAGE="NeXus" +BUNDLE="org.nexusformat.napi" +COPYRIGHT="NeXus International Advisory Committee" +YEAR="1999-`date +%Y`" +AuthorizationAction="AdminAuthorization" +InstallFat="true" +BackgroundAlignment="bottomleft" + +# The following grabs VERSION=x.y and RELEASE=.z +nx_version=@PACKAGE_VERSION@ +RELEASE=.${nx_version#*.*.} +VERSION=${nx_version%.*} +AllowBackRev="true" diff --git a/nexus_spec.in b/nexus_spec.in index 8719d209..77f40803 100644 --- a/nexus_spec.in +++ b/nexus_spec.in @@ -1,7 +1,7 @@ # @configure_input@ # $Id$ # Template for NeXus RPM SPEC file -# Copyright (C) 2004 Freddie Akeroyd +# Copyright (C) 2004 Freddie Akeroyd # Summary: Libraries and utilities for using NeXus format data files Name: @PACKAGE_TARNAME@ @@ -23,7 +23,7 @@ Vendor: NeXus International Advisory Committee (NIAC) Packager: NeXus Developers # Prefix allows our package to be relocatable i.e. installable in # other than just the /usr/local directory -Prefix: /usr/local +#Prefix: /usr # BuildRoot is the root for software installation # this value will not usually be used, but something must # be specified here to allow rpm --buildroot to be used later @@ -36,6 +36,51 @@ among Neutron, Muon and X-ray science facilities. The underlying data is stored using the HDF format from NCSA. This package provides access routines, documentation, examples and a basic NeXus file browser. +%package devel +Summary: Libraries and utilities for using NeXus format data files +Group: Development/Libraries + +%description devel +NeXus is an international standard for exchanging data files +among Neutron, Muon and X-ray science facilities. The underlying +data is stored using the HDF format from NCSA. This package provides + +%package tools +Summary: Libraries and utilities for using NeXus format data files +Group: Development/Libraries + +%description tools +NeXus is an international standard for exchanging data files +among Neutron, Muon and X-ray science facilities. The underlying +data is stored using the HDF format from NCSA. This package provides + +%package doc +Summary: Libraries and utilities for using NeXus format data files +Group: Development/Libraries + +%description doc +NeXus is an international standard for exchanging data files +among Neutron, Muon and X-ray science facilities. The underlying +data is stored using the HDF format from NCSA. This package provides + +%package python +Summary: Libraries and utilities for using NeXus format data files +Group: Development/Libraries + +%description python +NeXus is an international standard for exchanging data files +among Neutron, Muon and X-ray science facilities. The underlying +data is stored using the HDF format from NCSA. This package provides + +%package java +Summary: Libraries and utilities for using NeXus format data files +Group: Development/Libraries + +%description java +NeXus is an international standard for exchanging data files +among Neutron, Muon and X-ray science facilities. The underlying +data is stored using the HDF format from NCSA. This package provides + %prep %setup -q @@ -44,7 +89,7 @@ access routines, documentation, examples and a basic NeXus file browser. if ! test -z "$RPM_INSTALL_PREFIX"; then ./configure --prefix="$RPM_INSTALL_PREFIX" $NEXUS_CONFIG_OPTIONS else - ./configure --prefix=/usr/local $NEXUS_CONFIG_OPTIONS + ./configure --prefix=%{_prefix} --libdir=%{_libdir} $NEXUS_CONFIG_OPTIONS fi make @@ -52,28 +97,56 @@ make # RPM_BUILD_ROOT is where to install software to if test "$RPM_BUILD_ROOT" != "/"; then rm -fr "$RPM_BUILD_ROOT"; fi make DESTDIR="$RPM_BUILD_ROOT" install +find "$RPM_BUILD_ROOT" -name '*.la' -exec rm -f {} \; %files %defattr(-,root,root) %doc README NEWS ChangeLog AUTHORS COPYING INSTALL # %docdir /usr/local/doc -/usr/local/lib -/usr/local/bin -/usr/local/include -/usr/local/share +%{_libdir}/libNeXus*.so* +#%ifarch x86_64 +#/usr/lib/*.so* +#%endif + +%files devel +%defattr(-,root,root) +%{_libdir}/libNeXus*.a +%{_libdir}/pkgconfig +%{_includedir}/* + +%files tools +%defattr(-,root,root) +%{_bindir}/* + +%files doc +%defattr(-,root,root) +%{_datadir}/nexus + +%files python +%defattr(-,root,root) +/usr/lib/python*/site-packages/nxs + +%files java +%defattr(-,root,root) +%{_datadir}/java +%{_libdir}/libjnexus.so* +%{_libdir}/libjnexus.a %clean if test "$RPM_BUILD_ROOT" != "/"; then rm -fr "$RPM_BUILD_ROOT"; fi %post +if test `whoami` = root; then ldconfig; fi + +%post tools if [ "$RPM_INSTALL_PREFIX" != "" ]; then INSTALL_PREFIX=$RPM_INSTALL_PREFIX else - INSTALL_PREFIX=/usr/local + INSTALL_PREFIX=%{_prefix} fi + ( cd $INSTALL_PREFIX/bin; for i in nxbuild; do \ sed -i -e "s|^prefix=.*|prefix=$INSTALL_PREFIX|" $i; done ) -if test `whoami` = root; then ldconfig; fi %postun if test `whoami` = root; then ldconfig; fi @@ -81,6 +154,8 @@ if test `whoami` = root; then ldconfig; fi # %changelog date format as per `date +"%a %d %b %Y"` # first line should be date user email %changelog +* Sat Oct 22 2011 Freddie Akeroyd - 4.3.0 +- Split into subpackages * Thu May 24 2007 Freddie Akeroyd - 4.0.0 - Tag and build 4.0.0 * Wed May 16 2007 Freddie Akeroyd - 4.0rc3 diff --git a/src/Makefile.am b/src/Makefile.am index 885d3e4a..024b3a85 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -29,6 +29,7 @@ #==================================================================== AM_CPPFLAGS=-I$(top_srcdir)/include @HDF4_CPPFLAGS@ @HDF5_CPPFLAGS@ @XML_CPPFLAGS@ -DIN_NEXUS_LIBRARY +AM_LDFLAGS=-version-info $(NXLTVERSINFO) AM_CFLAGS=-prefer-pic if HAVE_HDF4 @@ -75,7 +76,7 @@ endif #SUBDIRS=nxdict -libNeXus_la_SOURCES = napi.c napiu.c nxstack.c nxstack.h stptok.c nxdataset.c nxdataset.h nx_stptok.h $(H4SRC) $(H5SRC) $(XMLSRC) $(MINGW_SRC) +libNeXus_la_SOURCES = napi.c napiu.c nxstack.c nxstack.h stptok.c nxdataset.c nxdataset.h nx_stptok.h $(H4SRC) $(H5SRC) $(XMLSRC) $(MINGW_SRC) libNeXus_la_LDFLAGS = -export-symbols nexus_symbols.sym @SHARED_LDFLAGS@ @HDF4_LDFLAGS@ @HDF5_LDFLAGS@ @XML_LDFLAGS@ $(LDFLAGS) libNeXus_la_DEPENDENCIES = nexus_symbols.sym diff --git a/src/napi.c b/src/napi.c index 90214f35..4648ee26 100644 --- a/src/napi.c +++ b/src/napi.c @@ -35,6 +35,38 @@ static const char* rscid = "$Id$"; /* Revision inserted by CVS */ #include "napi.h" #include "nxstack.h" +/** + * \mainpage NeXus API documentation + * \section sec_purpose Purpose of API + * The NeXus Application Program Interface is a suite of subroutines, written in C but with wrappers in Fortran 77 and 90. + * The subroutines call HDF routines to read and write the NeXus files with the correct structure. + * An API serves a number of useful purposes: + * - It simplifies the reading and writing of NeXus files. + * - It ensures a certain degree of compliance with the NeXus standard. + * - It allows the development of sophisticated input/output features such as automatic unit conversion. This has not been implemented yet. + * - It hides the implementation details of the format. In particular, the API can read and write HDF4, + HDF5 (and shortly XML) files using the same routines. + * For these reasons, we request that all NeXus files are written using the supplied API. We cannot be + * sure that anything written using the underlying HDF API will be recognized by NeXus-aware utilities. + * + * \section sec_core Core API + * The core API provides the basic routines for reading, writing and navigating NeXus files. It is designed to be modal; + * there is a hidden state that determines which groups and data sets are open at any given moment, and + * subsequent operations are implicitly performed on these entities. This cuts down the number of parameters + * to pass around in API calls, at the cost of forcing a certain pre-approved mode d'emploi. This mode d'emploi + * will be familiar to most: it is very similar to navigating a directory hierarchy; in our case, NeXus groups are the + * directories, which contain data sets and/or other directories. + * + * The core API comprises several functional groups which are listed on the \b Modules tab + * + * C programs that call the above routines should include the following header file: + * \code + * #include "napi.h" + * \endcode + */ + + + /*--------------------------------------------------------------------- Recognized and handled napimount URLS -----------------------------------------------------------------------*/ @@ -145,21 +177,53 @@ static NXstatus NXisXML(CONSTCHAR *filename) /*-------------------------------------------------------------------------*/ static void NXNXNXReportError(void *pData, char *string) { - printf("%s \n",string); + fprintf(stderr, "%s \n", string); } /*---------------------------------------------------------------------*/ + void *NXpData = NULL; - void (*NXIReportError)(void *pData, char *string) = NXNXNXReportError; + void *NXEHpData = NULL; + void (*NXEHIReportError)(void *pData, char *string) = NXNXNXReportError; +#ifdef HAVE_TLS + __thread void *NXEHpTData = NULL; + __thread void (*NXEHIReportTError)(void *pData, char *string) = NULL; +#endif + + void NXIReportError(void *pData, char *string) { +#ifdef HAVE_TLS + if (NXEHIReportTError) { + (*NXEHIReportTError)(NXEHpTData, string); + return; + } +#endif + + (*NXEHIReportError)(NXEHpData, string); + } + /*---------------------------------------------------------------------*/ - extern void NXMSetError(void *pData, - void (*NewError)(void *pD, char *text)) + extern void NXMSetError(void *pData, void (*NewError)(void *pD, char *text)) { - NXpData = pData; - NXIReportError = NewError; + NXEHpData = pData; + NXEHIReportError = NewError; + } +/*----------------------------------------------------------------------*/ + extern void NXMSetTError(void *pData, void (*NewError)(void *pD, char *text)) + { +#ifdef HAVE_TLS + NXEHpTData = pData; + NXEHIReportTError = NewError; +#else + NXMSetError(pData, NewError); +#endif } /*----------------------------------------------------------------------*/ extern ErrFunc NXMGetError(){ - return NXIReportError; +#ifdef HAVE_TLS + if (NXEHIReportTError) { + return NXEHIReportTError; + } +#endif + return NXEHIReportError; } /*----------------------------------------------------------------------*/ @@ -168,17 +232,35 @@ void NXNXNoReport(void *pData, char *string){ } /*----------------------------------------------------------------------*/ -static ErrFunc last_errfunc = NXNXNXReportError; +ErrFunc last_global_errfunc = NXNXNXReportError; +#ifdef HAVE_TLS +__thread ErrFunc last_thread_errfunc = NULL; +#endif extern void NXMDisableErrorReporting() { - last_errfunc = NXMGetError(); - NXMSetError(NXpData, NXNXNoReport); +#ifdef HAVE_TLS + if (NXEHIReportTError) { + last_thread_errfunc = NXEHIReportTError; + NXEHIReportTError = NXNXNoReport; + return; + } + last_thread_errfunc = NULL; +#endif + last_global_errfunc = NXEHIReportError; + NXEHIReportError = NXNXNoReport; } extern void NXMEnableErrorReporting() { - NXMSetError(NXpData, last_errfunc); +#ifdef HAVE_TLS + if (last_thread_errfunc) { + NXEHIReportTError = last_thread_errfunc; + last_thread_errfunc = NULL; + return; + } +#endif + NXEHIReportError = last_global_errfunc; } /*----------------------------------------------------------------------*/ @@ -199,8 +281,7 @@ extern void NXMEnableErrorReporting() static int determineFileType(CONSTCHAR *filename) { FILE *fd = NULL; - int iRet, fapl; - NXhandle handle; + int iRet; /* this is for reading, check for existence first @@ -250,7 +331,6 @@ static NXstatus NXinternalopen(CONSTCHAR *userfilename, NXaccess am, NXstatus NXopen(CONSTCHAR *userfilename, NXaccess am, NXhandle *gHandle){ int status; pFileStack fileStack = NULL; - NXhandle hfile; *gHandle = NULL; fileStack = makeFileStack(); @@ -501,21 +581,22 @@ static int analyzeNapimount(char *napiMount, char *extFile, int extFileLen, NXstatus NXopengroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass) { int status, attStatus, type = NX_CHAR, length = 1023; - NXaccess access = NXACC_RDWR; + NXaccess access = NXACC_READ; NXlink breakID; pFileStack fileStack; char nxurl[1024], exfile[512], expath[512]; - ErrFunc oldError; pNexusFunction pFunc = NULL; fileStack = (pFileStack)fid; pFunc = handleToNexusFunc(fid); status = pFunc->nxopengroup(pFunc->pNexusData, name, nxclass); - oldError = NXMGetError(); - NXIReportError = NXNXNoReport; + if(status == NX_OK){ + pushPath(fileStack,name); + } + NXMDisableErrorReporting(); attStatus = NXgetattr(fid,"napimount",nxurl,&length, &type); - NXIReportError = oldError; + NXMEnableErrorReporting(); if(attStatus == NX_OK){ /* this is an external linking group @@ -524,7 +605,7 @@ static int analyzeNapimount(char *napiMount, char *extFile, int extFileLen, if(status == NXBADURL){ return NX_ERROR; } - status = NXinternalopen(exfile,access, fileStack); + status = NXinternalopen(exfile, access, fileStack); if(status == NX_ERROR){ return status; } @@ -547,7 +628,11 @@ static int analyzeNapimount(char *napiMount, char *extFile, int extFileLen, pNexusFunction pFunc = handleToNexusFunc(fid); fileStack = (pFileStack)fid; if(fileStackDepth(fileStack) == 0){ - return pFunc->nxclosegroup(pFunc->pNexusData); + status = pFunc->nxclosegroup(pFunc->pNexusData); + if(status == NX_OK){ + popPath(fileStack); + } + return status; } else { /* we have to check for leaving an external file */ NXgetgroupID(fid,¤tID); @@ -557,6 +642,9 @@ static int analyzeNapimount(char *napiMount, char *extFile, int extFileLen, status = NXclosegroup(fid); } else { status = pFunc->nxclosegroup(pFunc->pNexusData); + if(status == NX_OK){ + popPath(fileStack); + } } return status; } @@ -595,17 +683,76 @@ static int analyzeNapimount(char *napiMount, char *extFile, int extFileLen, NXstatus NXopendata (NXhandle fid, CONSTCHAR *name) { - pNexusFunction pFunc = handleToNexusFunc(fid); - return pFunc->nxopendata(pFunc->pNexusData, name); - } + int status, attStatus, type = NX_CHAR, length = 1023; + NXaccess access = NXACC_READ; + NXlink breakID; + pFileStack fileStack; + char nxurl[1024], exfile[512], expath[512]; + pNexusFunction pFunc = NULL; + + fileStack = (pFileStack)fid; + pFunc = handleToNexusFunc(fid); + status = pFunc->nxopendata(pFunc->pNexusData, name); + + if(status == NX_OK){ + pushPath(fileStack,name); + } + + NXMDisableErrorReporting(); + attStatus = NXgetattr(fid,"napimount",nxurl,&length, &type); + NXMEnableErrorReporting(); + if(attStatus == NX_OK){ + /* + this is an external linking group + */ + status = analyzeNapimount(nxurl,exfile,511,expath,511); + if(status == NXBADURL){ + return NX_ERROR; + } + status = NXinternalopen(exfile, access, fileStack); + if(status == NX_ERROR){ + return status; + } + status = NXopenpath(fid,expath); + NXgetdataID(fid,&breakID); + setCloseID(fileStack,breakID); + } + return status; + } /* ----------------------------------------------------------------- */ - NXstatus NXclosedata (NXhandle fid) + NXstatus NXclosedata (NXhandle fid) { + int status; + pFileStack fileStack = NULL; + NXlink closeID, currentID; + pNexusFunction pFunc = handleToNexusFunc(fid); - return pFunc->nxclosedata(pFunc->pNexusData); + fileStack = (pFileStack)fid; + + if(fileStackDepth(fileStack) == 0){ + status = pFunc->nxclosedata(pFunc->pNexusData); + if(status == NX_OK){ + popPath(fileStack); + } + return status; + } else { + /* we have to check for leaving an external file */ + NXgetdataID(fid,¤tID); + peekIDOnStack(fileStack,&closeID); + if(NXsameID(fid,&closeID,¤tID) == NX_OK){ + NXclose(&fid); + status = NXclosedata(fid); + } else { + status = pFunc->nxclosedata(pFunc->pNexusData); + if(status == NX_OK){ + popPath(fileStack); + } + } + return status; + } } /* ------------------------------------------------------------------- */ @@ -824,7 +971,17 @@ char *nxitrim(char *str) } return status; } - +/*---------------------------------------------------------------------------*/ + NXstatus NXgetrawinfo (NXhandle fid, int *rank, + int dimension[], int *iType) + { + int status; + char *pPtr = NULL; + + pNexusFunction pFunc = handleToNexusFunc(fid); + status = pFunc->nxgetinfo(pFunc->pNexusData, rank, dimension, iType); + return status; + } /*-------------------------------------------------------------------------*/ NXstatus NXgetinfo (NXhandle fid, int *rank, @@ -983,10 +1140,9 @@ NXstatus NXisexternalgroup(NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass, if(status != NX_OK){ return status; } - oldError = NXMGetError(); - NXIReportError = NXNXNoReport; + NXMDisableErrorReporting(); attStatus = NXgetattr(fid,"napimount",nxurl,&length, &type); - NXIReportError = oldError; + NXMEnableErrorReporting(); pFunc->nxclosegroup(pFunc->pNexusData); if(attStatus == NX_OK){ length = strlen(nxurl); @@ -1019,7 +1175,7 @@ NXstatus NXlinkexternal(NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass, return NX_OK; } /*------------------------------------------------------------------------ - Implementation of NXopenpath. + Implementation of NXopenpath --------------------------------------------------------------------------*/ static int isDataSetOpen(NXhandle hfil) { @@ -1142,7 +1298,6 @@ static NXstatus moveOneDown(NXhandle hfil) static char *moveDown(NXhandle hfil, char *path, int *code) { int status; - NXname pathElem; char *pPtr; *code = NX_OK; @@ -1171,7 +1326,7 @@ static char *moveDown(NXhandle hfil, char *path, int *code) /*--------------------------------------------------------------------*/ static NXstatus stepOneUp(NXhandle hfil, char *name) { - int status, datatype; + int datatype; NXname name2, xclass; char pBueffel[256]; @@ -1207,7 +1362,7 @@ static NXstatus stepOneUp(NXhandle hfil, char *name) /*--------------------------------------------------------------------*/ static NXstatus stepOneGroupUp(NXhandle hfil, char *name) { - int status, datatype; + int datatype; NXname name2, xclass; char pBueffel[256]; @@ -1314,18 +1469,29 @@ NXstatus NXopengrouppath(NXhandle hfil, CONSTCHAR *path) } return NX_OK; } - +/*---------------------------------------------------------------------*/ NXstatus NXIprintlink(NXhandle fid, NXlink* link) { pNexusFunction pFunc = handleToNexusFunc(fid); return pFunc->nxprintlink(pFunc->pNexusData, link); } +/*----------------------------------------------------------------------*/ +NXstatus NXgetpath(NXhandle fid, char *path, int pathlen){ + int status; + pFileStack fileStack = NULL; + + fileStack = (pFileStack)fid; + status = buildPath(fileStack,path,pathlen); + if(status != 1){ + return NX_ERROR; + } + return NX_OK; +} /*-------------------------------------------------------------------- format NeXus time. Code needed in every NeXus file driver ---------------------------------------------------------------------*/ char *NXIformatNeXusTime(){ - char *timeData; time_t timer; char* time_buffer = NULL; struct tm *time_info; @@ -1403,18 +1569,18 @@ char *NXIformatNeXusTime(){ * instead, but that would mean writing far more wrappers */ NXstatus NXfopen(char * filename, NXaccess* am, - NexusFunction* pHandle) + NXhandle pHandle) { NXstatus ret; NXhandle fileid = NULL; ret = NXopen(filename, *am, &fileid); if (ret == NX_OK) { - memcpy(pHandle, fileid, sizeof(NexusFunction)); + memcpy(pHandle, fileid, getFileStackSize()); } else { - memset(pHandle, 0, sizeof(NexusFunction)); + memset(pHandle, 0, getFileStackSize()); } if (fileid != NULL) { @@ -1427,26 +1593,26 @@ char *NXIformatNeXusTime(){ * array holding the NexusFunction structure. We need to malloc() * a temporary copy as NXclose will try to free() this */ - NXstatus NXfclose (NexusFunction* pHandle) + NXstatus NXfclose (NXhandle pHandle) { NXhandle h; NXstatus ret; - h = (NXhandle)malloc(sizeof(NexusFunction)); - memcpy(h, pHandle, sizeof(NexusFunction)); + h = (NXhandle)malloc(getFileStackSize()); + memcpy(h, pHandle, getFileStackSize()); ret = NXclose(&h); /* does free(h) */ - memset(pHandle, 0, sizeof(NexusFunction)); + memset(pHandle, 0, getFileStackSize()); return ret; } /*---------------------------------------------------------------------*/ - NXstatus NXfflush(NexusFunction* pHandle) + NXstatus NXfflush(NXhandle pHandle) { NXhandle h; NXstatus ret; - h = (NXhandle)malloc(sizeof(NexusFunction)); - memcpy(h, pHandle, sizeof(NexusFunction)); + h = (NXhandle)malloc(getFileStackSize()); + memcpy(h, pHandle, getFileStackSize()); ret = NXflush(&h); /* modifies and reallocates h */ - memcpy(pHandle, h, sizeof(NexusFunction)); + memcpy(pHandle, h, getFileStackSize()); return ret; } /*----------------------------------------------------------------------*/ @@ -1477,7 +1643,7 @@ char *NXIformatNeXusTime(){ return ret; } - +/*-----------------------------------------------------------------------*/ NXstatus NXfcompmakedata(NXhandle fid, char *name, int *pDatatype, int *pRank, int dimensions[], @@ -1536,3 +1702,13 @@ char *NXIformatNeXusTime(){ return ret; } +/*--------------------------------------------------------------------------*/ +NXstatus NXfgetpath(NXhandle fid, char *path, int *pathlen) +{ + return NXgetpath(fid,path,*pathlen); +} + +const char* NXgetversion() +{ + return NEXUS_VERSION ; +} diff --git a/src/napi4.c b/src/napi4.c index 21c2f46d..dee65bb1 100644 --- a/src/napi4.c +++ b/src/napi4.c @@ -24,6 +24,9 @@ $Id$ ----------------------------------------------------------------------------*/ + +#ifdef HDF4 + #include #include #include @@ -109,7 +112,7 @@ static int findNapiClass(pNexusFile pFile, int groupRef, NXname nxclass) static int32 NXIFindVgroup (pNexusFile pFile, CONSTCHAR *name, CONSTCHAR *nxclass) { int32 iNew, iRef, iTag; - int iN, i, status; + int iN, i; int32 *pArray = NULL; NXname pText; @@ -1144,6 +1147,7 @@ static int findNapiClass(pNexusFile pFile, int groupRef, NXname nxclass) /* actually write */ iRet = SDwritedata (pFile->iCurrentSDS, iStart, iStride, iSize, data); if (iRet < 0) { + /* HEprint(stdout,0); */ sprintf (pError, "ERROR: failure to write data to %s", pBuffer); NXIReportError (NXpData, pError); return NX_ERROR; @@ -1287,7 +1291,6 @@ static int findNapiClass(pNexusFile pFile, int groupRef, NXname nxclass) NXstatus NX4getdataID (NXhandle fid, NXlink* sRes) { pNexusFile pFile; - ErrFunc oldErr; int datalen, type = NX_CHAR; pFile = NXIassert (fid); @@ -1298,15 +1301,14 @@ static int findNapiClass(pNexusFile pFile, int groupRef, NXname nxclass) } else { sRes->iTag = DFTAG_NDG; sRes->iRef = SDidtoref (pFile->iCurrentSDS); - oldErr = NXMGetError(); - NXMSetError(NXpData, ignoreError); + NXMDisableErrorReporting(); datalen = 1024; memset(&sRes->targetPath,0,1024); if(NX4getattr(fid,"target",&sRes->targetPath,&datalen,&type) != NX_OK) { NXIbuildPath(pFile,sRes->targetPath,1024); } - NXMSetError(NXpData,oldErr); + NXMEnableErrorReporting(); return NX_OK; } sRes->iTag = NX_ERROR; @@ -1320,7 +1322,7 @@ static int findNapiClass(pNexusFile pFile, int groupRef, NXname nxclass) NXstatus NX4makelink (NXhandle fid, NXlink* sLink) { pNexusFile pFile; - int32 iVG, iRet, dataID, type = DFNT_CHAR8, length; + int32 dataID, type = DFNT_CHAR8, length; char name[] = "target"; pFile = NXIassert (fid); @@ -1352,7 +1354,7 @@ static int findNapiClass(pNexusFile pFile, int groupRef, NXname nxclass) NXstatus NX4makenamedlink (NXhandle fid, CONSTCHAR* newname, NXlink* sLink) { pNexusFile pFile; - int32 iVG, iRet, dataID, type = DFNT_CHAR8, length, dataType = NX_CHAR, + int32 dataID, type = DFNT_CHAR8, length, dataType = NX_CHAR, rank = 1, attType = NX_INT32; int iDim[1]; char name[] = "target"; @@ -1811,6 +1813,9 @@ static int findNapiClass(pNexusFile pFile, int groupRef, NXname nxclass) } *iType = (int)iType32; iLen = iLen * DFKNTsize (*iType); + if(*iType == NX_CHAR){ + iLen += 1; + } pData = (void *) malloc (iLen); if (!pData) { NXIReportError (NXpData, "ERROR: allocating memory in NXgetattr"); @@ -2004,3 +2009,5 @@ void NX4assignFunctions(pNexusFunction fHandle) fHandle->nxinitattrdir=NX4initattrdir; fHandle->nxprintlink=NX4printlink; } + +#endif /*HDF4*/ diff --git a/src/napi5.c b/src/napi5.c index 98e5f34a..da5f25ce 100644 --- a/src/napi5.c +++ b/src/napi5.c @@ -22,6 +22,9 @@ For further information, see ----------------------------------------------------------------------------*/ + +#ifdef HDF5 + #include #include #include @@ -93,7 +96,6 @@ static void ignoreError(void *data, char *text){ /*---------------------------------------------------------------------*/ static void buildCurrentPath(pNexusFile5 self, char *pathBuffer, int pathBufferLen){ - int length; memset(pathBuffer,0,pathBufferLen); if(self->iCurrentG != 0) { @@ -178,15 +180,15 @@ static void buildCurrentPath(pNexusFile5 self, char *pathBuffer, H5Pset_fclose_degree(fapl,H5F_CLOSE_STRONG); pNew->iFID = H5Fopen (filename, am1, fapl); } + if(fapl != -1) { + H5Pclose(fapl); + } if (pNew->iFID <= 0) { sprintf (pBuffer, "ERROR: cannot open file: %s", filename); NXIReportError (NXpData, pBuffer); free (pNew); return NX_ERROR; } - if(fapl != -1) { - H5Pclose(fapl); - } /* * need to create global attributes file_name file_time NeXus_version @@ -772,17 +774,13 @@ static int nxToHDF5Type(int datatype) { pNexusFile5 pFile; int chunk_size[H5S_MAX_RANK]; - int i; - + pFile = NXI5assert (fid); memset(chunk_size,0,H5S_MAX_RANK*sizeof(int)); - if (dimensions[0] == NX_UNLIMITED) - { - for (i = 0; i < H5S_MAX_RANK; i++) - { - chunk_size[i]= 1; - } - } + memcpy(chunk_size,dimensions,rank*sizeof(int)); + if (dimensions[0] == NX_UNLIMITED){ + chunk_size[0]= 1; + } return NX5compmakedata (fid, name, datatype, rank, dimensions, NX_COMP_NONE, chunk_size); return NX_OK; @@ -1051,7 +1049,6 @@ static void killAttVID(pNexusFile5 pFile, int vid){ NXstatus NX5getdataID (NXhandle fid, NXlink* sRes) { pNexusFile5 pFile; - ErrFunc oldErr; int datalen, type = NX_CHAR; pFile = NXI5assert (fid); @@ -1067,15 +1064,14 @@ static void killAttVID(pNexusFile5 pFile, int vid){ this means: if the item is already linked: use the target attribute else, the path to the current node */ - oldErr = NXMGetError(); - NXMSetError(NXpData, ignoreError); + NXMDisableErrorReporting(); datalen = 1024; memset(&sRes->targetPath,0,datalen*sizeof(char)); if(NX5getattr(fid,"target",&sRes->targetPath,&datalen,&type) != NX_OK) { buildCurrentPath(pFile, sRes->targetPath, 1024); } - NXMSetError(NXpData,oldErr); + NXMEnableErrorReporting(); sRes->linkType = 1; return NX_OK; } @@ -1145,7 +1141,7 @@ NXstatus NX5makenamedlink(NXhandle fid, CONSTCHAR *name, NXlink *sLink) { pNexusFile5 pFile; char linkTarget[1024]; - int type = NX_CHAR, length; + int type = NX_CHAR; int status; pFile = NXI5assert (fid); @@ -1180,7 +1176,7 @@ NXstatus NX5makenamedlink(NXhandle fid, CONSTCHAR *name, NXlink *sLink) { pNexusFile5 pFile; char linkTarget[1024]; - int type = NX_CHAR, length; + int type = NX_CHAR; char *itemName = NULL; int status; @@ -1281,20 +1277,19 @@ NXstatus NX5makenamedlink(NXhandle fid, CONSTCHAR *name, NXlink *sLink) herr_t group_info1(hid_t loc_id, const char *name, void *opdata) { - NexusFile5 self; H5G_stat_t statbuf; - self.iNX = *((int*)opdata); + int iNX = *((int*)opdata); H5Gget_objinfo(loc_id, name, 0, &statbuf); switch (statbuf.type) { case H5G_GROUP: - self.iNX++; - *((int*)opdata)=self.iNX; + iNX++; + *((int*)opdata)=iNX; break; case H5G_DATASET: - self.iNX++; - *((int*)opdata)=self.iNX; + iNX++; + *((int*)opdata)=iNX; break; default: break; @@ -1304,7 +1299,7 @@ NXstatus NX5makenamedlink(NXhandle fid, CONSTCHAR *name, NXlink *sLink) /*-------------------------------------------------------------------------*/ - NXstatus NX5getgroupinfo (NXhandle fid, int *iN, NXname pName, NXname pClass) + NXstatus NX5getgroupinfo_recurse (NXhandle fid, int *iN, NXname pName, NXname pClass) { pNexusFile5 pFile; hid_t atype,attr_id; @@ -1338,139 +1333,212 @@ NXstatus NX5makenamedlink(NXhandle fid, CONSTCHAR *name, NXlink *sLink) } return NX_OK; } - -/*------------------------------------------------------------------------*/ -static int hdf5ToNXType(int data_id, hid_t atype) +/*---------------------------------------------------------------------------*/ +static int countObjectsInGroup(hid_t loc_id) { - int iPtype = -1; - hid_t sign_id, size_id; + int count = 0, type; + hsize_t numobj, i; + + herr_t status; - if (data_id==H5T_STRING) - { - iPtype=NX_CHAR; - } - if (data_id==H5T_INTEGER) - { - size_id=H5Tget_size(atype); - sign_id=H5Tget_sign(atype); - if (size_id==1) - { - if (sign_id==H5T_SGN_2) - { - iPtype=NX_INT8; - } else { - iPtype=NX_UINT8; - } - } - else if (size_id==2) - { - if (sign_id==H5T_SGN_2) - { - iPtype=NX_INT16; - } else { - iPtype=NX_UINT16; - } - } - else if (size_id==4) - { - if (sign_id==H5T_SGN_2) - { - iPtype=NX_INT32; - } else { - iPtype=NX_UINT32; - } - } - else if(size_id == 8) - { - if (sign_id==H5T_SGN_2) - { - iPtype=NX_INT64; - } else { - iPtype=NX_UINT64; - } - } - } else if (data_id==H5T_FLOAT) - { - size_id=H5Tget_size(atype); - if (size_id==4) - { - iPtype=NX_FLOAT32; - } - else if (size_id==8) - { - iPtype=NX_FLOAT64; - } - } - if (iPtype == -1) - { - NXIReportError (NXpData, "ERROR: hdf5ToNXtype: invalid type"); - } + status = H5Gget_num_objs(loc_id, &numobj); + if(status < 0) { + NXIReportError(NXpData,"Internal error, failed to retrive no of objects"); + return 0; + } - return iPtype; + for(i = 0; i < numobj; i++){ + type = H5Gget_objtype_by_idx(loc_id,i); + if(type == H5G_GROUP || type == H5G_DATASET){ + count++; + } + } + return count; } +/*----------------------------------------------------------------------------*/ + NXstatus NX5getgroupinfo (NXhandle fid, int *iN, NXname pName, NXname pClass) + { + pNexusFile5 pFile; + hid_t atype, attr_id, gid; + char data[64]; + int iRet; + + pFile = NXI5assert (fid); + /* check if there is a group open */ + if (pFile->iCurrentG == 0) { + strcpy (pName, "root"); + strcpy (pClass, "NXroot"); + gid = H5Gopen(pFile->iFID,"/"); + *iN = countObjectsInGroup(gid); + H5Gclose(gid); + } + else { + strcpy (pName,pFile->name_ref); + attr_id = H5Aopen_name(pFile->iCurrentG,"NX_class"); + if (attr_id<0) { + strcpy(pClass, NX_UNKNOWN_GROUP); + } else { + atype=H5Tcopy(H5T_C_S1); + H5Tset_size(atype,sizeof(data)); + H5Aread(attr_id, atype, data); + strcpy(pClass,data); + pFile->iNX=0; + *iN = countObjectsInGroup(pFile->iCurrentG); + H5Aclose(attr_id); + } + } + return NX_OK; + } + + +/*------------------------------------------------------------------------- + * Function: hdf5ToNXType + * + * Purpose: Convert a HDF5 class to a NeXus "type"; it handles the following HDF5 classes + * H5T_STRING + * H5T_INTEGER + * H5T_FLOAT + * + * Return: the NeXus "type" + * + *------------------------------------------------------------------------- + */ + static int hdf5ToNXType(H5T_class_t tclass, hid_t atype) + { + int iPtype = -1; + size_t size_id; + H5T_sign_t sign_id; + + if (tclass==H5T_STRING) + { + iPtype=NX_CHAR; + } + else if (tclass==H5T_INTEGER) + { + size_id=H5Tget_size(atype); + sign_id=H5Tget_sign(atype); + if (size_id==1) + { + if (sign_id==H5T_SGN_2) + { + iPtype=NX_INT8; + } else { + iPtype=NX_UINT8; + } + } + else if (size_id==2) + { + if (sign_id==H5T_SGN_2) + { + iPtype=NX_INT16; + } else { + iPtype=NX_UINT16; + } + } + else if (size_id==4) + { + if (sign_id==H5T_SGN_2) + { + iPtype=NX_INT32; + } else { + iPtype=NX_UINT32; + } + } + else if(size_id == 8) + { + if (sign_id==H5T_SGN_2) + { + iPtype=NX_INT64; + } else { + iPtype=NX_UINT64; + } + } + } + else if (tclass==H5T_FLOAT) + { + size_id=H5Tget_size(atype); + if (size_id==4) + { + iPtype=NX_FLOAT32; + } + else if (size_id==8) + { + iPtype=NX_FLOAT64; + } + } + if (iPtype == -1) + { + NXIReportError (NXpData, "ERROR: hdf5ToNXtype: invalid type"); + } + + return iPtype; + } /*--------------------------------------------------------------------------*/ -static int h5MemType(hid_t atype) -{ - hid_t data_id, size_id, sign_id, memtype_id = -1; - - data_id = H5Tget_class(atype); + static int h5MemType(hid_t atype) + { + hid_t memtype_id = -1; + size_t size_id; + H5T_sign_t sign_id; + H5T_class_t data_id; - if (data_id==H5T_INTEGER) - { - size_id=H5Tget_size(atype); - sign_id=H5Tget_sign(atype); - if (size_id==1) - { - if (sign_id==H5T_SGN_2) - { - memtype_id = H5T_NATIVE_INT8; - } else { - memtype_id = H5T_NATIVE_UINT8; - } - } - else if (size_id==2) - { - if (sign_id==H5T_SGN_2) - { - memtype_id = H5T_NATIVE_INT16; - } else { - memtype_id = H5T_NATIVE_UINT16; - } - } - else if (size_id==4) - { - if (sign_id==H5T_SGN_2) - { - memtype_id = H5T_NATIVE_INT32; - } else { - memtype_id = H5T_NATIVE_UINT32; - } - } - else if (size_id==8) - { - if (sign_id==H5T_SGN_2) - { - memtype_id = H5T_NATIVE_INT64; - } else { - memtype_id = H5T_NATIVE_UINT64; - } - } + data_id = H5Tget_class(atype); + + if (data_id==H5T_INTEGER) + { + size_id=H5Tget_size(atype); + sign_id=H5Tget_sign(atype); + if (size_id==1) + { + if (sign_id==H5T_SGN_2) + { + memtype_id = H5T_NATIVE_INT8; + } else { + memtype_id = H5T_NATIVE_UINT8; + } + } + else if (size_id==2) + { + if (sign_id==H5T_SGN_2) + { + memtype_id = H5T_NATIVE_INT16; + } else { + memtype_id = H5T_NATIVE_UINT16; + } + } + else if (size_id==4) + { + if (sign_id==H5T_SGN_2) + { + memtype_id = H5T_NATIVE_INT32; + } else { + memtype_id = H5T_NATIVE_UINT32; + } + } + else if (size_id==8) + { + if (sign_id==H5T_SGN_2) + { + memtype_id = H5T_NATIVE_INT64; + } else { + memtype_id = H5T_NATIVE_UINT64; + } + } } else if (data_id==H5T_FLOAT) - { - size_id=H5Tget_size(atype); - if (size_id==4) - { - memtype_id = H5T_NATIVE_FLOAT; - } else if (size_id==8) { - memtype_id = H5T_NATIVE_DOUBLE; - } + { + size_id=H5Tget_size(atype); + if (size_id==4) + { + memtype_id = H5T_NATIVE_FLOAT; + } else if (size_id==8) { + memtype_id = H5T_NATIVE_DOUBLE; + } } if (memtype_id == -1) { - NXIReportError (NXpData, "ERROR: h5MemType: invalid type"); + NXIReportError (NXpData, "ERROR: h5MemType: invalid type"); } return memtype_id; -} + } /*-------------------------------------------------------------------------*/ NXstatus NX5getnextentry (NXhandle fid,NXname name, NXname nxclass, int *datatype) @@ -1478,7 +1546,8 @@ static int h5MemType(hid_t atype) pNexusFile5 pFile; hid_t grp, attr1,type,atype; int iRet,iPtype, i; - int idx,data_id,size_id, sign_id; + int idx; + H5T_class_t data_id; char data[128]; char ph_name[1024]; info_type op_data; @@ -1601,7 +1670,8 @@ static int h5MemType(hid_t atype) { pNexusFile5 pFile; int iStart[H5S_MAX_RANK], status; - hid_t data_id, memtype_id, size_id, sign_id; + hid_t memtype_id; + H5T_class_t data_id; int dims; pFile = NXI5assert (fid); @@ -1648,7 +1718,7 @@ static int h5MemType(hid_t atype) pNexusFile5 pFile; int i, iRank, mType, iRet; hsize_t myDim[H5S_MAX_RANK]; - hid_t data_id,size_id,sign_id; + H5T_class_t data_id; pFile = NXI5assert (fid); /* check if there is an Dataset open */ @@ -1683,8 +1753,9 @@ static int h5MemType(hid_t atype) hsize_t myStart[H5S_MAX_RANK]; hsize_t mySize[H5S_MAX_RANK]; hsize_t mStart[H5S_MAX_RANK]; - hid_t memspace, iRet, data_id; - hid_t memtype_id, size_id, sign_id; + hid_t memspace, iRet; + H5T_class_t data_id; + hid_t memtype_id; char *tmp_data = NULL; char *data1; int i, dims, iRank, mtype = 0; @@ -1739,7 +1810,7 @@ static int h5MemType(hid_t atype) return NX_ERROR; } /* map datatypes of other plateforms */ - if (data_id==H5T_STRING) + if (data_id == H5T_STRING) { dims = H5Tget_size(pFile->iCurrentT); memtype_id = H5Tcopy(H5T_C_S1); @@ -1761,8 +1832,14 @@ static int h5MemType(hid_t atype) iRet = H5Dread(pFile->iCurrentD, memtype_id, memspace, pFile->iCurrentS, H5P_DEFAULT,data); } + /* cleanup */ + if (data_id == H5T_STRING) { /* we used H5Tcopy */ + H5Tclose(memtype_id); + } + H5Sclose(memspace); if (iRet < 0) + { NXIReportError (NXpData, "ERROR: Reading slab failed"); return NX_ERROR; @@ -1784,7 +1861,7 @@ static int h5MemType(hid_t atype) int *iLength, int *iType) { pNexusFile5 pFile; - hid_t attr_id,size_id,sign_id; + hid_t attr_id; hid_t iRet, atype, aspace; int iPType,rank; char *iname = NULL; @@ -1797,6 +1874,7 @@ static int h5MemType(hid_t atype) vid = getAttVID(pFile); + pName[0] = '\0'; idx=pFile->iAtt5.iCurrentIDX; iRet=0; intern_idx=H5Aget_num_attrs(vid); @@ -1923,8 +2001,7 @@ static int h5MemType(hid_t atype) char *iname = NULL; unsigned int idx; int vid; - herr_t iRet; - + pFile = NXI5assert (fid); idx=0; *iN = idx; @@ -1950,9 +2027,7 @@ static int h5MemType(hid_t atype) NXstatus NX5getgroupID (NXhandle fileid, NXlink* sRes) { pNexusFile5 pFile; - int u, datalen, type = NX_CHAR; - char group_name[64], class_name[64]; - ErrFunc oldErr; + int datalen, type = NX_CHAR; pFile = NXI5assert (fileid); if (pFile->iCurrentG == 0) { @@ -1963,14 +2038,13 @@ static int h5MemType(hid_t atype) this means: if the item is already linked: use the target attribute, else the path to the current node */ - oldErr = NXMGetError(); - NXMSetError(NXpData, ignoreError); + NXMDisableErrorReporting(); datalen = 1024; memset(sRes->targetPath,0,datalen*sizeof(char)); if(NX5getattr(fileid,"target",sRes->targetPath,&datalen,&type) != NX_OK){ buildCurrentPath(pFile,sRes->targetPath,1024); } - NXMSetError(NXpData,oldErr); + NXMEnableErrorReporting(); sRes->linkType = 0; return NX_OK; } @@ -2047,3 +2121,5 @@ void NX5assignFunctions(pNexusFunction fHandle) fHandle->nxinitattrdir=NX5initattrdir; fHandle->nxprintlink=NX5printlink; } + +#endif /* HDF5 */ diff --git a/src/napi_exports.h b/src/napi_exports.h index fc835446..a8df8c26 100644 --- a/src/napi_exports.h +++ b/src/napi_exports.h @@ -255,3 +255,9 @@ NXstatus CALL_MODE NXIMAKENAMEDLINK(NXhandle fid, CONSTCHAR *newname, NXlink* pL { return NXmakenamedlink(fid, newname, pLink); } + +NXstatus CALL_MODE NXIGETRAWINFO(NXhandle handle, int* rank, int dimension[], int* datatype) +{ + return NXgetrawinfo(handle, rank, dimension, datatype); +} + diff --git a/src/nexus_symbols.txt b/src/nexus_symbols.txt index 6a54933f..4c769c49 100644 --- a/src/nexus_symbols.txt +++ b/src/nexus_symbols.txt @@ -12,6 +12,7 @@ nxifmakedata_ nxifopen_ nxifputattr_ nxifree_ +nxifgetpath_ nxigetattr_ nxigetattrinfo_ nxigetdata_ @@ -33,6 +34,7 @@ nxiopendata_ nxiopengroup_ nxiopengrouppath_ nxiopenpath_ +nxigetpath_ nxiopensourcegroup_ nxiputattr_ nxiputdata_ @@ -44,6 +46,7 @@ nxilinkexternal_ nxiinquirefile_ nxiisexternalgroup_ NXMSetError +NXMSetTError NXIReportError NXIprintlink nxiinquirefile_ @@ -66,3 +69,4 @@ getNXDatasetValue getNXDatasetValueAt putNXDatasetValue putNXDatasetValueAt +nxigetrawinfo_ diff --git a/src/nexus_symbols_win.txt b/src/nexus_symbols_win.txt index a444db7b..d6682f0a 100755 --- a/src/nexus_symbols_win.txt +++ b/src/nexus_symbols_win.txt @@ -21,6 +21,7 @@ NXIGETGROUPINFO@16 NXIGETINFO@16 NXIGETNEXTATTR@16 NXIGETNEXTENTRY@16 +NXIGETRAWINFO@16 NXIGETSLAB@16 NXIINITATTRDIR@4 NXIINITGROUPDIR@4 diff --git a/src/nxdataset.c b/src/nxdataset.c index 90e47fe3..51c2dd7e 100644 --- a/src/nxdataset.c +++ b/src/nxdataset.c @@ -46,7 +46,8 @@ pNXDS createNXDataset(int rank, int typecode, int dim[]){ for(i = 0, length = 1; i < rank; i++){ length *= dim[i]; } - pNew->u.ptr = malloc(length*getTypeSize(typecode)); + /* add +1 in case of string NULL termination */ + pNew->u.ptr = malloc(length*getTypeSize(typecode)+1); if(pNew->dim == NULL || pNew->u.ptr == NULL){ free(pNew); @@ -59,7 +60,8 @@ pNXDS createNXDataset(int rank, int typecode, int dim[]){ pNew->dim[i] = dim[i]; } pNew->magic = MAGIC; - memset(pNew->u.ptr,0,length*getTypeSize(typecode)); + /* add +1 in case of string NULL termination - see above */ + memset(pNew->u.ptr,0,length*getTypeSize(typecode)+1); return pNew; } /*---------------------------------------------------------------------*/ @@ -176,8 +178,7 @@ static int calculateAddress(pNXDS dataset, int pos[]){ /*-----------------------------------------------------------------------*/ double getNXDatasetValue(pNXDS dataset, int pos[]){ int address; - double value; - + if(dataset == NULL){ return 0; } @@ -227,7 +228,7 @@ double getNXDatasetValueAt(pNXDS dataset, int address){ /*-----------------------------------------------------------------------*/ char *getNXDatasetText(pNXDS dataset){ char *resultBuffer = NULL; - int length, status = 1; + int status = 1; if(dataset == NULL){ return strdup("NULL"); diff --git a/src/nxio.c b/src/nxio.c index c4b91c30..c2aae00a 100644 --- a/src/nxio.c +++ b/src/nxio.c @@ -23,7 +23,10 @@ * * For further information, see */ -#include + +#ifdef NXXML + +#include #include #include "napi.h" #include "nxio.h" @@ -227,6 +230,11 @@ extern char *stptok(char *s, char *tok, size_t toklen, char *brk); /*===================================================================== actual stuff for implementing the callback functions =====================================================================*/ + +/* + * if passed NX_CHAR, then returns dimension of -1 and the caller + * needs to do a strlen() or equivalent + */ void analyzeDim(const char *typeString, int *rank, int *iDim, int *type){ char dimString[132]; @@ -236,6 +244,7 @@ void analyzeDim(const char *typeString, int *rank, int myRank; if(strchr(typeString,(int)'[') == NULL){ + *rank = 1; switch(*type){ case NX_INT8: case NX_UINT8: @@ -250,7 +259,10 @@ void analyzeDim(const char *typeString, int *rank, iDim[0] = 1; break; case NX_CHAR: - iDim[0] = -1; + iDim[0] = -1; /* length unknown, caller needs to determine later */ + break; + default: + mxml_error("ERROR: (analyzeDim) unknown type code %d for typeString %s", *type, typeString); break; } } else { @@ -317,8 +329,7 @@ static int analyzeDataType(mxml_node_t *parent, int *rank, int *type, int *iDim){ const char *typeString; mxml_node_t* tnode; - mxml_type_t myType; - int i, nx_type = -1; + int nx_type = -1; int table_mode = 0; *rank = 1; @@ -393,7 +404,6 @@ static char *getNextNumber(char *pStart, char pNumber[80]){ /*--------------------------------------------------------------------*/ mxml_type_t nexusTypeCallback(mxml_node_t *parent){ const char *typeString; - mxml_node_t * tnode; if(strstr(parent->value.element.name,"?xml") != NULL || !strncmp(parent->value.element.name,"NX",2) || @@ -433,7 +443,7 @@ int nexusLoadCallback(mxml_node_t *node, const char *buffer){ char pNumber[80], *pStart; long address, maxAddress; pNXDS dataset = NULL; - int i, table_mode; + int table_mode; parent = node->parent; table_mode = analyzeDataType(parent,&rank,&type,iDim); @@ -469,7 +479,7 @@ int nexusLoadCallback(mxml_node_t *node, const char *buffer){ /*---------------------------------------------------------------------*/ static void stringIntoBuffer(char **buffer, char **bufPtr, int *bufSize, char *string){ - int i; + size_t i; for(i = 0; i < strlen(string); i++){ myxml_add_char(string[i],bufPtr,buffer,bufSize); @@ -624,7 +634,6 @@ int isDataNode(mxml_node_t *node){ /*--------------------------------------------------------------------*/ static int isTextData(mxml_node_t *node){ const char *attr = NULL; - int rank, type = 0, iDim[NX_MAXRANK]; if(!isDataNode(node)){ return 0; @@ -636,8 +645,7 @@ static int isTextData(mxml_node_t *node){ if(attr == NULL){ return 1; } - analyzeDim(attr,&rank,iDim,&type); - if(type == NX_CHAR){ + if(strstr(attr,"NX_CHAR") != NULL){ return 1; } else { return 0; @@ -729,3 +737,6 @@ int main(int argc, char *argv[]){ } #endif + + +#endif /*NXXML*/ \ No newline at end of file diff --git a/src/nxstack.c b/src/nxstack.c index e73ab1b6..caccbb0e 100644 --- a/src/nxstack.c +++ b/src/nxstack.c @@ -19,6 +19,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA For further information, see + + Added code to support the path stack for NXgetpath, + Mark Koennecke, October 2009 */ #include #include @@ -39,6 +42,8 @@ typedef struct { typedef struct __fileStack { int fileStackPointer; fileStackEntry fileStack[MAXEXTERNALDEPTH]; + int pathPointer; + char pathStack[NXMAXSTACK][NX_MAXNAMELEN]; }fileStack; /*---------------------------------------------------------------------*/ pFileStack makeFileStack(){ @@ -50,6 +55,7 @@ pFileStack makeFileStack(){ } memset(pNew,0,sizeof(fileStack)); pNew->fileStackPointer = -1; + pNew->pathPointer = -1; return pNew; } /*---------------------------------------------------------------------*/ @@ -58,6 +64,10 @@ void killFileStack(pFileStack self){ free(self); } } +/*---------------------------------------------------------------------*/ +int getFileStackSize(){ + return sizeof(fileStack); +} /*----------------------------------------------------------------------*/ void pushFileStack(pFileStack self, pNexusFunction pDriv, char *file){ int length; @@ -98,3 +108,37 @@ void setCloseID(pFileStack self, NXlink id){ int fileStackDepth(pFileStack self){ return self->fileStackPointer; } +/*----------------------------------------------------------------------*/ +void pushPath(pFileStack self, const char *name){ + self->pathPointer++; + strncpy(self->pathStack[self->pathPointer],name,NX_MAXNAMELEN-1); +} +/*-----------------------------------------------------------------------*/ +void popPath(pFileStack self){ + self->pathPointer--; + if(self->pathPointer < -1){ + self->pathPointer = -1; + } +} +/*-----------------------------------------------------------------------*/ +int buildPath(pFileStack self, char *path, int pathlen){ + int i, totalPathLength; + char *totalPath; + + for(i = 0, totalPathLength = 5; i <= self->pathPointer; i++){ + totalPathLength += strlen(self->pathStack[i]) + 1; + } + totalPath = malloc(totalPathLength*sizeof(char)); + if(totalPath == NULL){ + return 0; + } + memset(totalPath,0,totalPathLength*sizeof(char)); + for(i = 0; i <= self->pathPointer; i++){ + strcat(totalPath,"/"); + strcat(totalPath,self->pathStack[i]); + } + + strncpy(path,totalPath,pathlen-1); + free(totalPath); + return 1; +} diff --git a/src/nxstack.h b/src/nxstack.h index e7a9568b..1676f843 100644 --- a/src/nxstack.h +++ b/src/nxstack.h @@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA For further information, see + + Added functions to deal with the path stack for NXgetpath + Mark Koennecke, October 2009 + */ #ifndef NEXUSFILESTACK #define NEXUSFILESTACK @@ -28,6 +32,7 @@ typedef struct __fileStack *pFileStack; pFileStack makeFileStack(); void killFileStack(pFileStack self); +int getFileStackSize(); void pushFileStack(pFileStack self, pNexusFunction pDriv, char *filename); void popFileStack(pFileStack self); @@ -39,5 +44,9 @@ void setCloseID(pFileStack self, NXlink id); int fileStackDepth(pFileStack self); +void pushPath(pFileStack self, const char *name); +void popPath(pFileStack self); +int buildPath(pFileStack self, char *path, int pathlen); + #endif diff --git a/src/nxxml.c b/src/nxxml.c index c4bb711b..7f11613f 100644 --- a/src/nxxml.c +++ b/src/nxxml.c @@ -20,6 +20,10 @@ * * For further information, see */ + + +#ifdef NXXML + #include #include #include @@ -70,13 +74,6 @@ typedef struct { */ #define XMLSTACK_OPTION_TABLE 0x1 /**< indicates table option in xmlStack */ -/** - * Freddie Akeroyd 14/7/2008 - * Add NeXus schema support - this uses BASE.xsd as the initial file - */ -#define NEXUS_SCHEMA_VERSION "3.0" /**< version of NeXus definition schema */ -#define NEXUS_SCHEMA_NAMESPACE "http://definition.nexusformat.org/schema/" NEXUS_SCHEMA_VERSION /**< XML schema namespace specified by xmlns */ -#define NEXUS_SCHEMA_FILE NEXUS_SCHEMA_NAMESPACE "/BASE.xsd" /**< location of default schema file for namespace */ /*---------------------------------------------------------------------*/ typedef struct { @@ -183,7 +180,7 @@ NXstatus NXXopen(CONSTCHAR *filename, NXaccess am, mxmlElementSetAttr(current,"xmlns", NEXUS_SCHEMA_NAMESPACE); mxmlElementSetAttr(current,"xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"); mxmlElementSetAttr(current,"xsi:schemaLocation", - NEXUS_SCHEMA_NAMESPACE " " NEXUS_SCHEMA_FILE); + NEXUS_SCHEMA_NAMESPACE " " NEXUS_SCHEMA_URL); time_buffer = NXIformatNeXusTime(); if(time_buffer != NULL){ mxmlElementSetAttr(current,"file_time",time_buffer); @@ -348,7 +345,6 @@ NXstatus NXXopengroup (NXhandle fid, CONSTCHAR *name, NXstatus NXXclosegroup (NXhandle fid){ pXMLNexus xmlHandle = NULL; mxml_node_t *newGroup = NULL; - char error[1024]; xmlHandle = (pXMLNexus)fid; assert(xmlHandle); @@ -394,7 +390,7 @@ static char *buildTypeString(int datatype, int rank, int dimensions[]){ memset(typestring,0,132*sizeof(char)); getNumberText(datatype,typestring,130); - if(rank > 1 || dimensions[0] > 1) { + if(rank > 1 || datatype == NX_CHAR || dimensions[0] > 1) { strcat(typestring,"["); snprintf(pNumber,19,"%d",dimensions[0]); strncat(typestring,pNumber,130-strlen(typestring)); @@ -726,7 +722,7 @@ NXstatus NXXputdatatable (NXhandle fid, void *data){ mxml_node_t *dataNode = NULL; const char* name; pNXDS dataset; - int i, offset, length, type, rank, dim[NX_MAXRANK]; + int i, offset, length; char *pPtr = NULL; xmlHandle = (pXMLNexus)fid; assert(xmlHandle); @@ -825,7 +821,7 @@ NXstatus NXXgetdatatable (NXhandle fid, void *data){ mxml_node_t *dataNode = NULL; const char* name; pNXDS dataset; - int i, offset, length, type, rank, dim[NX_MAXRANK]; + int i, offset, length; xmlHandle = (pXMLNexus)fid; assert(xmlHandle); @@ -938,6 +934,11 @@ NXstatus NXXgetinfo (NXhandle fid, int *rank, } else { *iType = translateTypeCode(attr); analyzeDim(attr,rank,dimension,iType); + if (dimension[0] == -1) /* 1D strings are NX_CHAR not NX_CHAR[] so length will not be correct */ + { + dimension[0] = strlen(userData->value.opaque); + } + } } else { dataset = (pNXDS)userData->value.custom.data; @@ -1294,8 +1295,7 @@ NXstatus NXXgetattr (NXhandle fid, char *name, const char *attribute = NULL; char error[1024]; const char *attData = NULL; - int iValue, nx_type; - float fValue; + int nx_type; xmlHandle = (pXMLNexus)fid; assert(xmlHandle); @@ -1665,7 +1665,7 @@ NXstatus NXXgetgroupinfo (NXhandle fid, int *iN, NXstatus NXXgetattrinfo (NXhandle fid, int *iN){ pXMLNexus xmlHandle = NULL; mxml_node_t *current = NULL; - int stackPtr, currentAtt; + int stackPtr, skip; xmlHandle = (pXMLNexus)fid; assert(xmlHandle); @@ -1677,15 +1677,15 @@ NXstatus NXXgetattrinfo (NXhandle fid, int *iN){ /* hide type and group name attributes */ - if(!isDataNode(current)) { - *iN = current->value.element.num_attrs -1; - return NX_OK; - } - if(mxmlElementGetAttr(current,TYPENAME) != NULL){ - *iN = current->value.element.num_attrs -1; + skip=0; + if(isDataNode(current)) { + /* data nodes may have type */ + if(mxmlElementGetAttr(current,TYPENAME) != NULL) skip=1; } else { - *iN = current->value.element.num_attrs; + /* group nodes (except root) have name */ + if(mxmlElementGetAttr(current,"name") != NULL) skip=1; } + *iN = current->value.element.num_attrs - skip; return NX_OK; } /*================= Linking functions =================================*/ @@ -1741,11 +1741,10 @@ static char *findLinkPath(mxml_node_t *node){ int stackPtr; mxml_node_t *current = NULL; char *pathString = NULL, *result = NULL; - int count; path = (mxml_node_t **)malloc(NXMAXSTACK*sizeof(mxml_node_t *)); if(path == NULL){ - NXIReportError(NXpData,"ERROR: out of memory follwoing link path"); + NXIReportError(NXpData,"ERROR: out of memory following link path"); return NULL; } memset(path,0,NXMAXSTACK*sizeof(mxml_node_t *)); @@ -1899,7 +1898,8 @@ NXstatus NXXsameID (NXhandle fileid, NXlink* pFirstID, } /*--------------------------------------------------------------------*/ int NXXcompress(NXhandle fid, int comp){ - NXIReportError(NXpData,"NXcompress is deprecated, IGNORED"); + /* that will throw an exception in the Java API, errors have to be fatal */ + /* NXIReportError(NXpData,"NXcompress is deprecated, IGNORED"); */ return NX_OK; } /*----------------------------------------------------------------------*/ @@ -1936,3 +1936,6 @@ void NXXassignFunctions(pNexusFunction fHandle){ fHandle->nxprintlink=NXXprintlink; } + + +#endif /*NXXML*/ diff --git a/test/Makefile.am b/test/Makefile.am index 247731d6..78307b3f 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -40,7 +40,8 @@ AM_FFLAGS=-I$(top_srcdir)/bindings/f77 AM_FCFLAGS=-I$(top_builddir)/bindings/f90 CLEANFILES=NXtest.nx4 NXtest.nx5 NXtest.nxs NXtest.xml NXtest-table.xml \ leak_test.nxs leak_test1.nxs leak_test2_*.nxs \ - nxtranslate nxsummary nxconvert nxvalidate nxdir nxbrowse + nxtranslate nxsummary nxconvert nxvalidate nxdir nxbrowse \ + NXtest.h4 NXtest.h5 ## testdir=$(prefix)/nexus/test @@ -117,25 +118,25 @@ nxtranslate: # this sets the test running environment - in case we # have got built with shared HDF libraries we need to set LD_LIBRARY_PATH -TESTS_ENVIRONMENT=env LD_LIBRARY_PATH=$${LD_LIBRARY_PATH}:$(H4ROOT)/lib:$(H5ROOT)/lib:/usr/local/lib DYLD_LIBRARY_PATH=$${DYLD_LIBRARY_PATH}:$(H4ROOT)/lib:$(H5ROOT)/lib:/usr/local/lib +TESTS_ENVIRONMENT=env PYTHON=$(PYTHON) IDL_PATH="@abs_top_srcdir@/bindings/idl:" IDL_DLM_PATH="@abs_top_builddir@/bindings/idl:" LD_LIBRARY_PATH=@abs_top_builddir@/src/.libs:@abs_top_builddir@/bindings/cpp/.libs:@abs_top_builddir@/bindings/idl:$${LD_LIBRARY_PATH}:@EXTRA_LD_LIBRARY_PATH@:/usr/local/lib DYLD_LIBRARY_PATH=@abs_top_builddir@/src/.libs:@abs_top_builddir@/bindings/cpp/.libs:@abs_top_builddir@/bindings/idl:$${DYLD_LIBRARY_PATH}:@EXTRA_LD_LIBRARY_PATH@:/usr/local/lib run_test_SOURCES=run_test.c -run_test_LDFLAGS=-static $(LDFLAGS) +run_test_LDFLAGS=-static $(HDF4_LDFLAGS) $(HDF5_LDFLAGS) $(XML_LDFLAGS) $(LDFLAGS) skip_test_SOURCES=skip_test.c -skip_test_LDFLAGS=-static $(LDFLAGS) +skip_test_LDFLAGS=-static $(HDF4_LDFLAGS) $(HDF5_LDFLAGS) $(XML_LDFLAGS) $(LDFLAGS) leak_test1_SOURCES=leak_test1.c leak_test1_LDADD=$(LIBNEXUS) -leak_test1_LDFLAGS=-static $(LDFLAGS) +leak_test1_LDFLAGS=-static $(HDF4_LDFLAGS) $(HDF5_LDFLAGS) $(XML_LDFLAGS) $(LDFLAGS) leak_test2_SOURCES=leak_test2.cxx leak_test2_LDADD=$(LIBNEXUS) -leak_test2_LDFLAGS=-static $(LDFLAGS) +leak_test2_LDFLAGS=-static $(HDF4_LDFLAGS) $(HDF5_LDFLAGS) $(XML_LDFLAGS) $(LDFLAGS) leak_test3_SOURCES=leak_test3.cxx leak_test3_LDADD=$(LIBNEXUS) -leak_test3_LDFLAGS=-static $(LDFLAGS) +leak_test3_LDFLAGS=-static $(HDF4_LDFLAGS) $(HDF5_LDFLAGS) $(XML_LDFLAGS) $(LDFLAGS) if HAVE_XML @@ -145,11 +146,11 @@ napi_test_xml_LDADD = $(LIBNEXUS) @XML_LDFLAGS@ napi_test_xml_static_SOURCES = napi_test.c napi_test_xml_static_CPPFLAGS = -I$(top_srcdir)/include @XML_CPPFLAGS@ napi_test_xml_static_LDADD = $(LIBNEXUS) @XML_LDFLAGS@ -napi_test_xml_static_LDFLAGS = -static $(LDFLAGS) +napi_test_xml_static_LDFLAGS = -static $(HDF4_LDFLAGS) $(HDF5_LDFLAGS) $(XML_LDFLAGS) $(LDFLAGS) napi_test_xml_table_static_SOURCES = napi_test.c napi_test_xml_table_static_CPPFLAGS = -I$(top_srcdir)/include @XML_CPPFLAGS@ napi_test_xml_table_static_LDADD = $(LIBNEXUS) @XML_LDFLAGS@ -napi_test_xml_table_static_LDFLAGS = -static $(LDFLAGS) +napi_test_xml_table_static_LDFLAGS = -static $(HDF4_LDFLAGS) $(HDF5_LDFLAGS) $(XML_LDFLAGS) $(LDFLAGS) napi_test_cpp_xml_SOURCES = napi_test_cpp.cxx napi_test_cpp_xml_LDADD = $(LIBNEXUSCPP) napi_test_cpp_xml_table_SOURCES = napi_test_cpp.cxx @@ -170,14 +171,14 @@ napi_test_hdf4_LDADD = $(LIBNEXUS) @HDF4_LDFLAGS@ napi_test_hdf4_static_SOURCES = napi_test.c napi_test_hdf4_static_CPPFLAGS = -I$(top_srcdir)/include @HDF4_CPPFLAGS@ napi_test_hdf4_static_LDADD = $(LIBNEXUS) @HDF4_LDFLAGS@ -napi_test_hdf4_static_LDFLAGS = -static $(LDFLAGS) +napi_test_hdf4_static_LDFLAGS = -static $(HDF4_LDFLAGS) $(HDF5_LDFLAGS) $(XML_LDFLAGS) $(LDFLAGS) napi_test_cpp_hdf4_SOURCES = napi_test_cpp.cxx napi_test_cpp_hdf4_LDADD = $(LIBNEXUSCPP) if HAVE_F77 napif_test_hdf4_SOURCES = napif4_test.f napif_test_hdf4_LDADD = $(LIBNEXUS77) # $(FLIBS) napif_test_hdf4_LINK = $(F77LINK) -napif_test_hdf4_LDFLAGS = -static $(LDFLAGS) +napif_test_hdf4_LDFLAGS = -static $(HDF4_LDFLAGS) $(HDF5_LDFLAGS) $(XML_LDFLAGS) $(LDFLAGS) else napif_test_hdf4_SOURCES = dummy.c napif_test_hdf4_LINK = $(LINK) @@ -198,14 +199,14 @@ napi_test_hdf5_LDADD = $(LIBNEXUS) @HDF5_LDFLAGS@ napi_test_hdf5_static_SOURCES = napi_test.c napi_test_hdf5_static_CPPFLAGS = -I$(top_srcdir)/include @HDF5_CPPFLAGS@ napi_test_hdf5_static_LDADD = $(LIBNEXUS) @HDF5_LDFLAGS@ -napi_test_hdf5_static_LDFLAGS = -static $(LDFLAGS) +napi_test_hdf5_static_LDFLAGS = -static $(HDF4_LDFLAGS) $(HDF5_LDFLAGS) $(XML_LDFLAGS) $(LDFLAGS) napi_test_cpp_hdf5_SOURCES = napi_test_cpp.cxx napi_test_cpp_hdf5_LDADD=$(LIBNEXUSCPP) if HAVE_F77 napif_test_hdf5_SOURCES = napif5_test.f napif_test_hdf5_LDADD = $(LIBNEXUS77) # $(FLIBS) napif_test_hdf5_LINK = $(F77LINK) -napif_test_hdf5_LDFLAGS = -static $(LDFLAGS) +napif_test_hdf5_LDFLAGS = -static $(HDF4_LDFLAGS) $(HDF5_LDFLAGS) $(XML_LDFLAGS) $(LDFLAGS) else napif_test_hdf5_SOURCES = dummy.c napif_test_hdf5_LINK = $(LINK) @@ -223,7 +224,7 @@ if HAVE_F90 NXtest_SOURCES = NXtest.f90 NXtest_LDADD = $(LIBNEXUS90) NXtest_LINK = $(FCLINK) -NXtest_LDFLAGS = -static $(LDFLAGS) +NXtest_LDFLAGS = -static $(HDF4_LDFLAGS) $(HDF5_LDFLAGS) $(XML_LDFLAGS) $(LDFLAGS) else NXtest_SOURCES = dummy.c NXtest_LINK = $(LINK) diff --git a/test/atlocal.in b/test/atlocal.in index 679c46d5..f8ba1d33 100644 --- a/test/atlocal.in +++ b/test/atlocal.in @@ -28,14 +28,14 @@ else fi export HAVE_XML # -if test ! -z "@F77@"; then +if test "@WITH_F77@" = "yes"; then HAVE_F77=run_test else HAVE_F77=skip_test fi export HAVE_F77 # -if test ! -z "@FC@"; then +if test "@WITH_F90@" = "yes"; then HAVE_F90=run_test else HAVE_F90=skip_test @@ -70,3 +70,17 @@ else fi export HAVE_XMLLINT # +if test ! -z "@PYTHONROOT@"; then + HAVE_PYTHON=run_test +else + HAVE_PYTHON=skip_test +fi +export HAVE_PYTHON +# +if test ! -z "@IDLROOT@"; then + HAVE_IDL=run_test +else + HAVE_IDL=skip_test +fi +export HAVE_IDL +# diff --git a/test/data/dmc01.h5 b/test/data/dmc01.h5 index 1127b1ac..f0649bd0 100644 Binary files a/test/data/dmc01.h5 and b/test/data/dmc01.h5 differ diff --git a/test/data/dmc01.hdf b/test/data/dmc01.hdf index 9b3a8b8d..64247e4f 100644 Binary files a/test/data/dmc01.hdf and b/test/data/dmc01.hdf differ diff --git a/test/data/dmc01.xml b/test/data/dmc01.xml index 221a0141..601b1286 100644 --- a/test/data/dmc01.xml +++ b/test/data/dmc01.xml @@ -16,230 +16,422 @@ owner_email="UNKNOWN" owner_address="UNKNOWN"> Pyrolithic Graphite 002 - 22.430000 - 44.869999 - 2.566600 - 14.000000 - 0.940000 - 0.210000 - 0.356000 - -0.002000 - 3.353700 + + 22.4300 + + + 44.8700 + + + 2.5666 + + + 14.0000 + + + 0.9400 + + + 0.2100 + + + 0.3560 + + + -0.0020 + + + 3.3537 + - 1094713344 + + 1094713344 + monitor - - 2368697 - 12000 - 33077902 - 18.299999 - 0.200000 - 400 - - 18.299999 18.499998 18.699999 18.900000 19.099998 19.299999 19.499998 19.699999 - 19.900000 20.099998 20.299999 20.499998 20.699999 20.900000 21.099998 21.299999 - 21.499998 21.699999 21.900000 22.099998 22.299999 22.499998 22.699999 22.900000 - 23.099998 23.299999 23.499998 23.699999 23.900000 24.099998 24.299999 24.499998 - 24.699999 24.900000 25.099998 25.299999 25.499998 25.699999 25.900000 26.099998 - 26.299999 26.499998 26.699999 26.900000 27.099998 27.299999 27.499998 27.699999 - 27.900000 28.099998 28.299999 28.499998 28.699999 28.900000 29.099998 29.299999 - 29.499998 29.699999 29.900000 30.099998 30.299999 30.499998 30.699999 30.900000 - 31.099998 31.299999 31.499998 31.699999 31.900000 32.099998 32.299999 32.500000 - 32.700001 32.899998 33.099998 33.299999 33.500000 33.700001 33.899998 34.099998 - 34.299999 34.500000 34.700001 34.899998 35.099998 35.299999 35.500000 35.700001 - 35.899998 36.099998 36.299999 36.500000 36.700001 36.899998 37.099998 37.299999 - 37.500000 37.700001 37.899998 38.099998 38.299999 38.500000 38.700001 38.899998 - 39.099998 39.299999 39.500000 39.700001 39.899998 40.099998 40.299999 40.500000 - 40.700001 40.899998 41.099998 41.299999 41.500000 41.700001 41.899998 42.099998 - 42.299999 42.500000 42.700001 42.899998 43.099998 43.299999 43.500000 43.700001 - 43.899998 44.099998 44.299999 44.500000 44.700001 44.899998 45.099998 45.299999 - 45.500000 45.700001 45.899998 46.099998 46.299999 46.500000 46.700001 46.899998 - 47.099998 47.299999 47.500000 47.700001 47.899998 48.099998 48.299999 48.500000 - 48.700001 48.899998 49.099998 49.299999 49.500000 49.700001 49.899998 50.099998 - 50.299999 50.500000 50.700001 50.899998 51.099998 51.299999 51.500000 51.700001 - 51.899998 52.099998 52.299999 52.500000 52.700001 52.899998 53.099998 53.299999 - 53.500000 53.700001 53.899998 54.099998 54.299999 54.500000 54.700001 54.899998 - 55.099998 55.299999 55.500000 55.700001 55.899998 56.099998 56.299999 56.500000 - 56.700001 56.899998 57.099998 57.299999 57.500000 57.700001 57.899998 58.099998 - 58.299999 58.500000 58.700001 58.899998 59.099998 59.299999 59.500000 59.700001 - 59.899998 60.099998 60.299999 60.500000 60.700001 60.899998 61.099998 61.299999 - 61.500000 61.700001 61.899998 62.099998 62.299999 62.500000 62.700001 62.899998 - 63.099998 63.299999 63.500000 63.700001 63.899998 64.099998 64.299995 64.500000 - 64.699997 64.900002 65.099998 65.299995 65.500000 65.699997 65.900002 66.099998 - 66.299995 66.500000 66.699997 66.900002 67.099998 67.299995 67.500000 67.699997 - 67.900002 68.099998 68.299995 68.500000 68.699997 68.900002 69.099998 69.299995 - 69.500000 69.699997 69.900002 70.099998 70.299995 70.500000 70.699997 70.900002 - 71.099998 71.299995 71.500000 71.699997 71.900002 72.099998 72.299995 72.500000 - 72.699997 72.900002 73.099998 73.299995 73.500000 73.699997 73.900002 74.099998 - 74.299995 74.500000 74.699997 74.900002 75.099998 75.299995 75.500000 75.699997 - 75.900002 76.099998 76.299995 76.500000 76.699997 76.900002 77.099998 77.299995 - 77.500000 77.699997 77.900002 78.099998 78.299995 78.500000 78.699997 78.900002 - 79.099998 79.299995 79.500000 79.699997 79.900002 80.099998 80.299995 80.500000 - 80.699997 80.900002 81.099998 81.299995 81.500000 81.699997 81.900002 82.099998 - 82.299995 82.500000 82.699997 82.900002 83.099998 83.299995 83.500000 83.699997 - 83.900002 84.099998 84.299995 84.500000 84.699997 84.900002 85.099998 85.299995 - 85.500000 85.699997 85.900002 86.099998 86.299995 86.500000 86.699997 86.900002 - 87.099998 87.299995 87.500000 87.699997 87.900002 88.099998 88.299995 88.500000 - 88.699997 88.900002 89.099998 89.299995 89.500000 89.699997 89.900002 90.099998 - 90.299995 90.500000 90.699997 90.900002 91.099998 91.299995 91.500000 91.699997 - 91.900002 92.099998 92.299995 92.500000 92.699997 92.900002 93.099998 93.299995 - 93.500000 93.699997 93.900002 94.099998 94.299995 94.500000 94.699997 94.900002 - 95.099998 95.299995 95.500000 95.699997 95.900002 96.099998 96.299995 96.500000 - 96.699997 96.900002 97.099998 97.299995 97.500000 97.699997 97.900002 98.099998 - - - 94 103 86 84 88 106 92 87 95 104 - 96 114 99 89 102 89 120 93 101 97 - 94 84 102 116 98 92 77 90 111 89 - 90 125 86 90 97 111 85 81 108 96 - 101 95 95 119 91 103 95 97 75 105 - 68 95 101 102 107 102 105 96 116 107 - 98 115 113 90 92 78 70 89 107 106 - 84 100 107 102 112 104 107 98 102 105 - 102 94 107 94 91 99 101 94 119 108 - 110 105 107 106 93 102 109 104 102 109 - 102 94 91 88 94 99 116 101 110 104 - 98 110 108 99 99 108 135 146 251 315 - 484 2049 3541 2935 901 178 134 110 137 132 - 120 89 121 107 92 104 115 111 114 89 - 91 113 120 100 93 110 92 104 115 127 - 117 108 94 109 118 101 152 198 199 188 - 135 117 109 102 112 102 113 104 93 96 - 100 119 135 124 121 96 93 108 100 97 - 105 88 92 101 114 101 118 104 73 98 - 76 104 85 93 86 90 98 88 96 111 - 81 94 86 97 86 96 102 116 99 112 - 114 105 89 99 106 115 90 83 103 87 - 113 78 89 82 94 92 106 97 85 117 - 92 96 106 90 92 101 73 76 102 98 - 111 104 109 84 108 99 105 99 93 88 - 85 88 92 105 100 109 115 136 130 114 - 113 116 102 108 99 111 107 106 97 144 - 249 827 1588 2159 2201 2225 1557 606 269 152 - 156 126 97 100 112 100 132 122 85 108 - 96 130 115 110 93 92 96 76 100 93 - 94 104 80 86 96 69 107 91 84 106 - 105 99 91 106 93 102 82 103 87 95 - 106 92 93 106 96 101 112 103 134 103 - 93 103 96 129 100 86 100 95 96 98 - 128 105 109 138 126 146 191 450 807 1423 - 1648 1986 1839 1614 1162 634 296 190 139 122 - 125 130 104 109 98 121 142 128 105 138 - 119 92 104 98 147 132 116 112 124 112 - 104 113 107 100 87 105 86 117 92 110 - 86 98 82 107 105 119 105 107 101 105 - + + + 2368697 + + + 12000 + + + 33077902 + + + 18.3000 + + + 0.2000 + + + 400 + + + 18.3000 18.5000 18.7000 18.9000 19.1000 + 19.3000 19.5000 19.7000 19.9000 20.1000 + 20.3000 20.5000 20.7000 20.9000 21.1000 + 21.3000 21.5000 21.7000 21.9000 22.1000 + 22.3000 22.5000 22.7000 22.9000 23.1000 + 23.3000 23.5000 23.7000 23.9000 24.1000 + 24.3000 24.5000 24.7000 24.9000 25.1000 + 25.3000 25.5000 25.7000 25.9000 26.1000 + 26.3000 26.5000 26.7000 26.9000 27.1000 + 27.3000 27.5000 27.7000 27.9000 28.1000 + 28.3000 28.5000 28.7000 28.9000 29.1000 + 29.3000 29.5000 29.7000 29.9000 30.1000 + 30.3000 30.5000 30.7000 30.9000 31.1000 + 31.3000 31.5000 31.7000 31.9000 32.1000 + 32.3000 32.5000 32.7000 32.9000 33.1000 + 33.3000 33.5000 33.7000 33.9000 34.1000 + 34.3000 34.5000 34.7000 34.9000 35.1000 + 35.3000 35.5000 35.7000 35.9000 36.1000 + 36.3000 36.5000 36.7000 36.9000 37.1000 + 37.3000 37.5000 37.7000 37.9000 38.1000 + 38.3000 38.5000 38.7000 38.9000 39.1000 + 39.3000 39.5000 39.7000 39.9000 40.1000 + 40.3000 40.5000 40.7000 40.9000 41.1000 + 41.3000 41.5000 41.7000 41.9000 42.1000 + 42.3000 42.5000 42.7000 42.9000 43.1000 + 43.3000 43.5000 43.7000 43.9000 44.1000 + 44.3000 44.5000 44.7000 44.9000 45.1000 + 45.3000 45.5000 45.7000 45.9000 46.1000 + 46.3000 46.5000 46.7000 46.9000 47.1000 + 47.3000 47.5000 47.7000 47.9000 48.1000 + 48.3000 48.5000 48.7000 48.9000 49.1000 + 49.3000 49.5000 49.7000 49.9000 50.1000 + 50.3000 50.5000 50.7000 50.9000 51.1000 + 51.3000 51.5000 51.7000 51.9000 52.1000 + 52.3000 52.5000 52.7000 52.9000 53.1000 + 53.3000 53.5000 53.7000 53.9000 54.1000 + 54.3000 54.5000 54.7000 54.9000 55.1000 + 55.3000 55.5000 55.7000 55.9000 56.1000 + 56.3000 56.5000 56.7000 56.9000 57.1000 + 57.3000 57.5000 57.7000 57.9000 58.1000 + 58.3000 58.5000 58.7000 58.9000 59.1000 + 59.3000 59.5000 59.7000 59.9000 60.1000 + 60.3000 60.5000 60.7000 60.9000 61.1000 + 61.3000 61.5000 61.7000 61.9000 62.1000 + 62.3000 62.5000 62.7000 62.9000 63.1000 + 63.3000 63.5000 63.7000 63.9000 64.1000 + 64.3000 64.5000 64.7000 64.9000 65.1000 + 65.3000 65.5000 65.7000 65.9000 66.1000 + 66.3000 66.5000 66.7000 66.9000 67.1000 + 67.3000 67.5000 67.7000 67.9000 68.1000 + 68.3000 68.5000 68.7000 68.9000 69.1000 + 69.3000 69.5000 69.7000 69.9000 70.1000 + 70.3000 70.5000 70.7000 70.9000 71.1000 + 71.3000 71.5000 71.7000 71.9000 72.1000 + 72.3000 72.5000 72.7000 72.9000 73.1000 + 73.3000 73.5000 73.7000 73.9000 74.1000 + 74.3000 74.5000 74.7000 74.9000 75.1000 + 75.3000 75.5000 75.7000 75.9000 76.1000 + 76.3000 76.5000 76.7000 76.9000 77.1000 + 77.3000 77.5000 77.7000 77.9000 78.1000 + 78.3000 78.5000 78.7000 78.9000 79.1000 + 79.3000 79.5000 79.7000 79.9000 80.1000 + 80.3000 80.5000 80.7000 80.9000 81.1000 + 81.3000 81.5000 81.7000 81.9000 82.1000 + 82.3000 82.5000 82.7000 82.9000 83.1000 + 83.3000 83.5000 83.7000 83.9000 84.1000 + 84.3000 84.5000 84.7000 84.9000 85.1000 + 85.3000 85.5000 85.7000 85.9000 86.1000 + 86.3000 86.5000 86.7000 86.9000 87.1000 + 87.3000 87.5000 87.7000 87.9000 88.1000 + 88.3000 88.5000 88.7000 88.9000 89.1000 + 89.3000 89.5000 89.7000 89.9000 90.1000 + 90.3000 90.5000 90.7000 90.9000 91.1000 + 91.3000 91.5000 91.7000 91.9000 92.1000 + 92.3000 92.5000 92.7000 92.9000 93.1000 + 93.3000 93.5000 93.7000 93.9000 94.1000 + 94.3000 94.5000 94.7000 94.9000 95.1000 + 95.3000 95.5000 95.7000 95.9000 96.1000 + 96.3000 96.5000 96.7000 96.9000 97.1000 + 97.3000 97.5000 97.7000 97.9000 98.1000 + + + 94 103 86 84 88 + 106 92 87 95 104 + 96 114 99 89 102 + 89 120 93 101 97 + 94 84 102 116 98 + 92 77 90 111 89 + 90 125 86 90 97 + 111 85 81 108 96 + 101 95 95 119 91 + 103 95 97 75 105 + 68 95 101 102 107 + 102 105 96 116 107 + 98 115 113 90 92 + 78 70 89 107 106 + 84 100 107 102 112 + 104 107 98 102 105 + 102 94 107 94 91 + 99 101 94 119 108 + 110 105 107 106 93 + 102 109 104 102 109 + 102 94 91 88 94 + 99 116 101 110 104 + 98 110 108 99 99 + 108 135 146 251 315 + 484 2049 3541 2935 901 + 178 134 110 137 132 + 120 89 121 107 92 + 104 115 111 114 89 + 91 113 120 100 93 + 110 92 104 115 127 + 117 108 94 109 118 + 101 152 198 199 188 + 135 117 109 102 112 + 102 113 104 93 96 + 100 119 135 124 121 + 96 93 108 100 97 + 105 88 92 101 114 + 101 118 104 73 98 + 76 104 85 93 86 + 90 98 88 96 111 + 81 94 86 97 86 + 96 102 116 99 112 + 114 105 89 99 106 + 115 90 83 103 87 + 113 78 89 82 94 + 92 106 97 85 117 + 92 96 106 90 92 + 101 73 76 102 98 + 111 104 109 84 108 + 99 105 99 93 88 + 85 88 92 105 100 + 109 115 136 130 114 + 113 116 102 108 99 + 111 107 106 97 144 + 249 827 1588 2159 2201 + 2225 1557 606 269 152 + 156 126 97 100 112 + 100 132 122 85 108 + 96 130 115 110 93 + 92 96 76 100 93 + 94 104 80 86 96 + 69 107 91 84 106 + 105 99 91 106 93 + 102 82 103 87 95 + 106 92 93 106 96 + 101 112 103 134 103 + 93 103 96 129 100 + 86 100 95 96 98 + 128 105 109 138 126 + 146 191 450 807 1423 + 1648 1986 1839 1614 1162 + 634 296 190 139 122 + 125 130 104 109 98 + 121 142 128 105 138 + 119 92 104 98 147 + 132 116 112 124 112 + 104 113 107 100 87 + 105 86 117 92 110 + 86 98 82 107 105 + 119 105 107 101 105 + Ga0.94Mn0.04Sb_8mm - 297.209991 - 4.001700 + + 297.2100 + + + 4.0017 + ccr4k - 4.000000 - 0.000000 - 0.000000 + + 4.0000 + + + 0.0000 + + + 0.0000 + - - 94 103 86 84 88 106 92 87 95 104 - 96 114 99 89 102 89 120 93 101 97 - 94 84 102 116 98 92 77 90 111 89 - 90 125 86 90 97 111 85 81 108 96 - 101 95 95 119 91 103 95 97 75 105 - 68 95 101 102 107 102 105 96 116 107 - 98 115 113 90 92 78 70 89 107 106 - 84 100 107 102 112 104 107 98 102 105 - 102 94 107 94 91 99 101 94 119 108 - 110 105 107 106 93 102 109 104 102 109 - 102 94 91 88 94 99 116 101 110 104 - 98 110 108 99 99 108 135 146 251 315 - 484 2049 3541 2935 901 178 134 110 137 132 - 120 89 121 107 92 104 115 111 114 89 - 91 113 120 100 93 110 92 104 115 127 - 117 108 94 109 118 101 152 198 199 188 - 135 117 109 102 112 102 113 104 93 96 - 100 119 135 124 121 96 93 108 100 97 - 105 88 92 101 114 101 118 104 73 98 - 76 104 85 93 86 90 98 88 96 111 - 81 94 86 97 86 96 102 116 99 112 - 114 105 89 99 106 115 90 83 103 87 - 113 78 89 82 94 92 106 97 85 117 - 92 96 106 90 92 101 73 76 102 98 - 111 104 109 84 108 99 105 99 93 88 - 85 88 92 105 100 109 115 136 130 114 - 113 116 102 108 99 111 107 106 97 144 - 249 827 1588 2159 2201 2225 1557 606 269 152 - 156 126 97 100 112 100 132 122 85 108 - 96 130 115 110 93 92 96 76 100 93 - 94 104 80 86 96 69 107 91 84 106 - 105 99 91 106 93 102 82 103 87 95 - 106 92 93 106 96 101 112 103 134 103 - 93 103 96 129 100 86 100 95 96 98 - 128 105 109 138 126 146 191 450 807 1423 - 1648 1986 1839 1614 1162 634 296 190 139 122 - 125 130 104 109 98 121 142 128 105 138 - 119 92 104 98 147 132 116 112 124 112 - 104 113 107 100 87 105 86 117 92 110 - 86 98 82 107 105 119 105 107 101 105 - - - 18.299999 18.499998 18.699999 18.900000 19.099998 19.299999 19.499998 19.699999 - 19.900000 20.099998 20.299999 20.499998 20.699999 20.900000 21.099998 21.299999 - 21.499998 21.699999 21.900000 22.099998 22.299999 22.499998 22.699999 22.900000 - 23.099998 23.299999 23.499998 23.699999 23.900000 24.099998 24.299999 24.499998 - 24.699999 24.900000 25.099998 25.299999 25.499998 25.699999 25.900000 26.099998 - 26.299999 26.499998 26.699999 26.900000 27.099998 27.299999 27.499998 27.699999 - 27.900000 28.099998 28.299999 28.499998 28.699999 28.900000 29.099998 29.299999 - 29.499998 29.699999 29.900000 30.099998 30.299999 30.499998 30.699999 30.900000 - 31.099998 31.299999 31.499998 31.699999 31.900000 32.099998 32.299999 32.500000 - 32.700001 32.899998 33.099998 33.299999 33.500000 33.700001 33.899998 34.099998 - 34.299999 34.500000 34.700001 34.899998 35.099998 35.299999 35.500000 35.700001 - 35.899998 36.099998 36.299999 36.500000 36.700001 36.899998 37.099998 37.299999 - 37.500000 37.700001 37.899998 38.099998 38.299999 38.500000 38.700001 38.899998 - 39.099998 39.299999 39.500000 39.700001 39.899998 40.099998 40.299999 40.500000 - 40.700001 40.899998 41.099998 41.299999 41.500000 41.700001 41.899998 42.099998 - 42.299999 42.500000 42.700001 42.899998 43.099998 43.299999 43.500000 43.700001 - 43.899998 44.099998 44.299999 44.500000 44.700001 44.899998 45.099998 45.299999 - 45.500000 45.700001 45.899998 46.099998 46.299999 46.500000 46.700001 46.899998 - 47.099998 47.299999 47.500000 47.700001 47.899998 48.099998 48.299999 48.500000 - 48.700001 48.899998 49.099998 49.299999 49.500000 49.700001 49.899998 50.099998 - 50.299999 50.500000 50.700001 50.899998 51.099998 51.299999 51.500000 51.700001 - 51.899998 52.099998 52.299999 52.500000 52.700001 52.899998 53.099998 53.299999 - 53.500000 53.700001 53.899998 54.099998 54.299999 54.500000 54.700001 54.899998 - 55.099998 55.299999 55.500000 55.700001 55.899998 56.099998 56.299999 56.500000 - 56.700001 56.899998 57.099998 57.299999 57.500000 57.700001 57.899998 58.099998 - 58.299999 58.500000 58.700001 58.899998 59.099998 59.299999 59.500000 59.700001 - 59.899998 60.099998 60.299999 60.500000 60.700001 60.899998 61.099998 61.299999 - 61.500000 61.700001 61.899998 62.099998 62.299999 62.500000 62.700001 62.899998 - 63.099998 63.299999 63.500000 63.700001 63.899998 64.099998 64.299995 64.500000 - 64.699997 64.900002 65.099998 65.299995 65.500000 65.699997 65.900002 66.099998 - 66.299995 66.500000 66.699997 66.900002 67.099998 67.299995 67.500000 67.699997 - 67.900002 68.099998 68.299995 68.500000 68.699997 68.900002 69.099998 69.299995 - 69.500000 69.699997 69.900002 70.099998 70.299995 70.500000 70.699997 70.900002 - 71.099998 71.299995 71.500000 71.699997 71.900002 72.099998 72.299995 72.500000 - 72.699997 72.900002 73.099998 73.299995 73.500000 73.699997 73.900002 74.099998 - 74.299995 74.500000 74.699997 74.900002 75.099998 75.299995 75.500000 75.699997 - 75.900002 76.099998 76.299995 76.500000 76.699997 76.900002 77.099998 77.299995 - 77.500000 77.699997 77.900002 78.099998 78.299995 78.500000 78.699997 78.900002 - 79.099998 79.299995 79.500000 79.699997 79.900002 80.099998 80.299995 80.500000 - 80.699997 80.900002 81.099998 81.299995 81.500000 81.699997 81.900002 82.099998 - 82.299995 82.500000 82.699997 82.900002 83.099998 83.299995 83.500000 83.699997 - 83.900002 84.099998 84.299995 84.500000 84.699997 84.900002 85.099998 85.299995 - 85.500000 85.699997 85.900002 86.099998 86.299995 86.500000 86.699997 86.900002 - 87.099998 87.299995 87.500000 87.699997 87.900002 88.099998 88.299995 88.500000 - 88.699997 88.900002 89.099998 89.299995 89.500000 89.699997 89.900002 90.099998 - 90.299995 90.500000 90.699997 90.900002 91.099998 91.299995 91.500000 91.699997 - 91.900002 92.099998 92.299995 92.500000 92.699997 92.900002 93.099998 93.299995 - 93.500000 93.699997 93.900002 94.099998 94.299995 94.500000 94.699997 94.900002 - 95.099998 95.299995 95.500000 95.699997 95.900002 96.099998 96.299995 96.500000 - 96.699997 96.900002 97.099998 97.299995 97.500000 97.699997 97.900002 98.099998 - - 18.299999 - 0.200000 - 400 - 2.566600 + + 94 103 86 84 88 + 106 92 87 95 104 + 96 114 99 89 102 + 89 120 93 101 97 + 94 84 102 116 98 + 92 77 90 111 89 + 90 125 86 90 97 + 111 85 81 108 96 + 101 95 95 119 91 + 103 95 97 75 105 + 68 95 101 102 107 + 102 105 96 116 107 + 98 115 113 90 92 + 78 70 89 107 106 + 84 100 107 102 112 + 104 107 98 102 105 + 102 94 107 94 91 + 99 101 94 119 108 + 110 105 107 106 93 + 102 109 104 102 109 + 102 94 91 88 94 + 99 116 101 110 104 + 98 110 108 99 99 + 108 135 146 251 315 + 484 2049 3541 2935 901 + 178 134 110 137 132 + 120 89 121 107 92 + 104 115 111 114 89 + 91 113 120 100 93 + 110 92 104 115 127 + 117 108 94 109 118 + 101 152 198 199 188 + 135 117 109 102 112 + 102 113 104 93 96 + 100 119 135 124 121 + 96 93 108 100 97 + 105 88 92 101 114 + 101 118 104 73 98 + 76 104 85 93 86 + 90 98 88 96 111 + 81 94 86 97 86 + 96 102 116 99 112 + 114 105 89 99 106 + 115 90 83 103 87 + 113 78 89 82 94 + 92 106 97 85 117 + 92 96 106 90 92 + 101 73 76 102 98 + 111 104 109 84 108 + 99 105 99 93 88 + 85 88 92 105 100 + 109 115 136 130 114 + 113 116 102 108 99 + 111 107 106 97 144 + 249 827 1588 2159 2201 + 2225 1557 606 269 152 + 156 126 97 100 112 + 100 132 122 85 108 + 96 130 115 110 93 + 92 96 76 100 93 + 94 104 80 86 96 + 69 107 91 84 106 + 105 99 91 106 93 + 102 82 103 87 95 + 106 92 93 106 96 + 101 112 103 134 103 + 93 103 96 129 100 + 86 100 95 96 98 + 128 105 109 138 126 + 146 191 450 807 1423 + 1648 1986 1839 1614 1162 + 634 296 190 139 122 + 125 130 104 109 98 + 121 142 128 105 138 + 119 92 104 98 147 + 132 116 112 124 112 + 104 113 107 100 87 + 105 86 117 92 110 + 86 98 82 107 105 + 119 105 107 101 105 + + + 18.3000 18.5000 18.7000 18.9000 19.1000 + 19.3000 19.5000 19.7000 19.9000 20.1000 + 20.3000 20.5000 20.7000 20.9000 21.1000 + 21.3000 21.5000 21.7000 21.9000 22.1000 + 22.3000 22.5000 22.7000 22.9000 23.1000 + 23.3000 23.5000 23.7000 23.9000 24.1000 + 24.3000 24.5000 24.7000 24.9000 25.1000 + 25.3000 25.5000 25.7000 25.9000 26.1000 + 26.3000 26.5000 26.7000 26.9000 27.1000 + 27.3000 27.5000 27.7000 27.9000 28.1000 + 28.3000 28.5000 28.7000 28.9000 29.1000 + 29.3000 29.5000 29.7000 29.9000 30.1000 + 30.3000 30.5000 30.7000 30.9000 31.1000 + 31.3000 31.5000 31.7000 31.9000 32.1000 + 32.3000 32.5000 32.7000 32.9000 33.1000 + 33.3000 33.5000 33.7000 33.9000 34.1000 + 34.3000 34.5000 34.7000 34.9000 35.1000 + 35.3000 35.5000 35.7000 35.9000 36.1000 + 36.3000 36.5000 36.7000 36.9000 37.1000 + 37.3000 37.5000 37.7000 37.9000 38.1000 + 38.3000 38.5000 38.7000 38.9000 39.1000 + 39.3000 39.5000 39.7000 39.9000 40.1000 + 40.3000 40.5000 40.7000 40.9000 41.1000 + 41.3000 41.5000 41.7000 41.9000 42.1000 + 42.3000 42.5000 42.7000 42.9000 43.1000 + 43.3000 43.5000 43.7000 43.9000 44.1000 + 44.3000 44.5000 44.7000 44.9000 45.1000 + 45.3000 45.5000 45.7000 45.9000 46.1000 + 46.3000 46.5000 46.7000 46.9000 47.1000 + 47.3000 47.5000 47.7000 47.9000 48.1000 + 48.3000 48.5000 48.7000 48.9000 49.1000 + 49.3000 49.5000 49.7000 49.9000 50.1000 + 50.3000 50.5000 50.7000 50.9000 51.1000 + 51.3000 51.5000 51.7000 51.9000 52.1000 + 52.3000 52.5000 52.7000 52.9000 53.1000 + 53.3000 53.5000 53.7000 53.9000 54.1000 + 54.3000 54.5000 54.7000 54.9000 55.1000 + 55.3000 55.5000 55.7000 55.9000 56.1000 + 56.3000 56.5000 56.7000 56.9000 57.1000 + 57.3000 57.5000 57.7000 57.9000 58.1000 + 58.3000 58.5000 58.7000 58.9000 59.1000 + 59.3000 59.5000 59.7000 59.9000 60.1000 + 60.3000 60.5000 60.7000 60.9000 61.1000 + 61.3000 61.5000 61.7000 61.9000 62.1000 + 62.3000 62.5000 62.7000 62.9000 63.1000 + 63.3000 63.5000 63.7000 63.9000 64.1000 + 64.3000 64.5000 64.7000 64.9000 65.1000 + 65.3000 65.5000 65.7000 65.9000 66.1000 + 66.3000 66.5000 66.7000 66.9000 67.1000 + 67.3000 67.5000 67.7000 67.9000 68.1000 + 68.3000 68.5000 68.7000 68.9000 69.1000 + 69.3000 69.5000 69.7000 69.9000 70.1000 + 70.3000 70.5000 70.7000 70.9000 71.1000 + 71.3000 71.5000 71.7000 71.9000 72.1000 + 72.3000 72.5000 72.7000 72.9000 73.1000 + 73.3000 73.5000 73.7000 73.9000 74.1000 + 74.3000 74.5000 74.7000 74.9000 75.1000 + 75.3000 75.5000 75.7000 75.9000 76.1000 + 76.3000 76.5000 76.7000 76.9000 77.1000 + 77.3000 77.5000 77.7000 77.9000 78.1000 + 78.3000 78.5000 78.7000 78.9000 79.1000 + 79.3000 79.5000 79.7000 79.9000 80.1000 + 80.3000 80.5000 80.7000 80.9000 81.1000 + 81.3000 81.5000 81.7000 81.9000 82.1000 + 82.3000 82.5000 82.7000 82.9000 83.1000 + 83.3000 83.5000 83.7000 83.9000 84.1000 + 84.3000 84.5000 84.7000 84.9000 85.1000 + 85.3000 85.5000 85.7000 85.9000 86.1000 + 86.3000 86.5000 86.7000 86.9000 87.1000 + 87.3000 87.5000 87.7000 87.9000 88.1000 + 88.3000 88.5000 88.7000 88.9000 89.1000 + 89.3000 89.5000 89.7000 89.9000 90.1000 + 90.3000 90.5000 90.7000 90.9000 91.1000 + 91.3000 91.5000 91.7000 91.9000 92.1000 + 92.3000 92.5000 92.7000 92.9000 93.1000 + 93.3000 93.5000 93.7000 93.9000 94.1000 + 94.3000 94.5000 94.7000 94.9000 95.1000 + 95.3000 95.5000 95.7000 95.9000 96.1000 + 96.3000 96.5000 96.7000 96.9000 97.1000 + 97.3000 97.5000 97.7000 97.9000 98.1000 + + + 18.3000 + + + 0.2000 + + + 400 + + + 2.5666 +
diff --git a/test/data/dmc02.h5 b/test/data/dmc02.h5 index 138a8176..cb01760c 100644 Binary files a/test/data/dmc02.h5 and b/test/data/dmc02.h5 differ diff --git a/test/data/dmc02.hdf b/test/data/dmc02.hdf index cc315f75..be78445c 100644 Binary files a/test/data/dmc02.hdf and b/test/data/dmc02.hdf differ diff --git a/test/data/dmc02.xml b/test/data/dmc02.xml index b89a67d9..dc7dc435 100644 --- a/test/data/dmc02.xml +++ b/test/data/dmc02.xml @@ -16,27 +16,27 @@ owner_email="UNKNOWN" owner_address="UNKNOWN"> Pyrolithic Graphite 002 - 22.430000 - 44.869999 - 2.566600 - 14.000000 - 0.940000 - 0.210000 - 0.356000 - -0.002000 - 3.353700 + 22.430000 + 44.869999 + 2.566600 + 14.000000 + 0.940000 + 0.210000 + 0.356000 + -0.002000 + 3.353700 - 1094713344 + 1094713344 monitor - - 2328990 - 12000 - 32704151 - 18.400000 - 0.200000 - 400 - + + 2328990 + 12000 + 32704151 + 18.400000 + 0.200000 + 400 + 18.400000 18.600000 18.799999 19.000000 19.200001 19.400000 19.600000 19.799999 20.000000 20.200001 20.400000 20.600000 20.799999 21.000000 21.200001 21.400000 21.600000 21.799999 22.000000 22.200001 22.400000 22.600000 22.799999 23.000000 @@ -88,7 +88,7 @@ owner_email="UNKNOWN" owner_address="UNKNOWN"> 95.199997 95.400002 95.599998 95.800003 96.000000 96.199997 96.400002 96.599998 96.800003 97.000000 97.199997 97.400002 97.599998 97.800003 98.000000 98.199997 - + 114 102 107 106 90 102 99 95 80 104 119 101 100 109 101 98 90 93 102 112 104 84 87 98 95 86 100 104 90 99 @@ -134,15 +134,15 @@ owner_email="UNKNOWN" owner_address="UNKNOWN"> Ga0.94Mn0.04Sb_8mm - 297.209991 - 4.001050 + 297.209991 + 4.001050 ccr4k - 4.000000 - 0.000000 - 0.000000 + 4.000000 + 0.000000 + 0.000000 - + 114 102 107 106 90 102 99 95 80 104 119 101 100 109 101 98 90 93 102 112 104 84 87 98 95 86 100 104 90 99 @@ -184,7 +184,7 @@ owner_email="UNKNOWN" owner_address="UNKNOWN"> 125 104 123 102 126 112 85 114 115 102 103 116 101 130 106 99 99 112 105 116 - + 18.400000 18.600000 18.799999 19.000000 19.200001 19.400000 19.600000 19.799999 20.000000 20.200001 20.400000 20.600000 20.799999 21.000000 21.200001 21.400000 21.600000 21.799999 22.000000 22.200001 22.400000 22.600000 22.799999 23.000000 @@ -236,10 +236,10 @@ owner_email="UNKNOWN" owner_address="UNKNOWN"> 95.199997 95.400002 95.599998 95.800003 96.000000 96.199997 96.400002 96.599998 96.800003 97.000000 97.199997 97.400002 97.599998 97.800003 98.000000 98.199997 - 18.400000 - 0.200000 - 400 - 2.566600 + 18.400000 + 0.200000 + 400 + 2.566600
diff --git a/test/leak_test2.cxx b/test/leak_test2.cxx index 73555fb5..abdf17ca 100644 --- a/test/leak_test2.cxx +++ b/test/leak_test2.cxx @@ -1,5 +1,6 @@ #include #include +#include #include #include diff --git a/test/napi_test.c b/test/napi_test.c index 961ae311..e046161a 100644 --- a/test/napi_test.c +++ b/test/napi_test.c @@ -1,9 +1,9 @@ /*--------------------------------------------------------------------------- NeXus - Neutron & X-ray Common Data Format - Test program for C API (HDF4 Version) + Test program for C API - Copyright (C) 1997-2002 Freddie Akeroyd + Copyright (C) 1997-2011 Freddie Akeroyd This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -64,6 +64,8 @@ int main (int argc, char *argv[]) char nxFile[80]; char filename[256]; int64_t grossezahl[4]; + const char* ch_test_data = "NeXus ><}&{'\\&\" Data"; + char path[512]; grossezahl[0] = 12; grossezahl[2] = 23; @@ -96,10 +98,10 @@ int main (int argc, char *argv[]) if (NXopengroup (fileid, "entry", "NXentry") != NX_OK) return 1; if(NXputattr(fileid,"hugo","namenlos",strlen("namenlos"), NX_CHAR) != NX_OK) return 1; if(NXputattr(fileid,"cucumber","passion",strlen("passion"), NX_CHAR) != NX_OK) return 1; - NXlen = 10; + NXlen = strlen(ch_test_data); if (NXmakedata (fileid, "ch_data", NX_CHAR, 1, &NXlen) != NX_OK) return 1; if (NXopendata (fileid, "ch_data") != NX_OK) return 1; - if (NXputdata (fileid, "NeXus data") != NX_OK) return 1; + if (NXputdata (fileid, ch_test_data) != NX_OK) return 1; if (NXclosedata (fileid) != NX_OK) return 1; if (NXmakedata (fileid, "c1_data", NX_CHAR, 2, array_dims) != NX_OK) return 1; if (NXopendata (fileid, "c1_data") != NX_OK) return 1; @@ -127,7 +129,7 @@ int main (int argc, char *argv[]) if (NXputslab (fileid, (double*)r8_array + 16, slab_start, slab_size) != NX_OK) return 1; slab_start[0] = 0; slab_start[1] = 0; slab_size[0] = 4; slab_size[1] = 4; if (NXputslab (fileid, r8_array, slab_start, slab_size) != NX_OK) return 1; - if (NXputattr (fileid, "ch_attribute", "NeXus", strlen ("NeXus"), NX_CHAR) != NX_OK) return 1; + if (NXputattr (fileid, "ch_attribute", ch_test_data, strlen (ch_test_data), NX_CHAR) != NX_OK) return 1; i = 42; if (NXputattr (fileid, "i4_attribute", &i, 1, NX_INT32) != NX_OK) return 1; r = 3.14159265; @@ -242,6 +244,8 @@ int main (int argc, char *argv[]) if (NXopengroup (fileid, "entry", "NXentry") != NX_OK) return 1; NXgetattrinfo(fileid,&i); printf("Number of group attributes: %d\n", i); + if(NXgetpath(fileid,path,512) != NX_OK)return 1; + printf("NXentry path %s\n", path); do { attr_status = NXgetnextattr (fileid, name, NXdims, &NXtype); if (attr_status == NX_ERROR) return 1; @@ -268,7 +272,9 @@ int main (int argc, char *argv[]) } else { if (entry_status == NX_OK) { if (NXopendata (fileid, name) != NX_OK) return 1; - if (NXgetinfo (fileid, &NXrank, NXdims, &NXtype) != NX_OK) return 1; + if(NXgetpath(fileid,path,512) != NX_OK)return 1; + printf("Data path %s\n", path); + if (NXgetinfo (fileid, &NXrank, NXdims, &NXtype) != NX_OK) return 1; printf (" %s(%d)", name, NXtype); if (NXmalloc ((void **) &data_buffer, NXrank, NXdims, NXtype) != NX_OK) return 1; n = 1; @@ -363,6 +369,8 @@ int main (int argc, char *argv[]) if (NXopengroup (fileid, "link", "NXentry") != NX_OK) return 1; if (NXopengroup (fileid, "sample", "NXsample") != NX_OK) return 1; + if(NXgetpath(fileid,path,512) != NX_OK)return 1; + printf("Group path %s\n", path); if (NXgetgroupID (fileid, &blink) != NX_OK) return 1; if (NXsameID(fileid, &glink, &blink) != NX_OK) { @@ -451,6 +459,9 @@ static int testExternal(char *progName){ char nxfile[255], ext[5], testFile[80], time[132], filename[256]; int create; NXhandle hfil; + int dummylen = 1; + float dummyfloat = 1; + float temperature; if(strstr(progName,"hdf4") != NULL){ strcpy(ext,"hdf"); @@ -488,6 +499,17 @@ static int testExternal(char *progName){ if(NXlinkexternal(hfil,"entry2","NXentry",nxfile) != NX_OK){ return 1; } + if(NXmakegroup(hfil,"entry3","NXentry") != NX_OK){ + return 1; + } + if(NXopengroup(hfil,"entry3","NXentry") != NX_OK){ + return 1; + } + if (NXmakedata (hfil, "extlinkdata", NX_FLOAT32, 1, &dummylen) != NX_OK) return 1; + if (NXopendata (hfil, "extlinkdata") != NX_OK) return 1; + if (NXputdata (hfil, &dummyfloat) != NX_OK) return 1; + sprintf(nxfile,"nxfile://data/dmc01.%s#/entry1/sample/temperature_mean",ext); + if(NXputattr(hfil,"napimount",nxfile,strlen(nxfile), NX_CHAR) != NX_OK) return 1; if(NXclose(&hfil) != NX_OK){ return 1; } @@ -498,7 +520,6 @@ static int testExternal(char *progName){ if(NXopen(testFile,NXACC_RDWR,&hfil) != NX_OK){ return 1; } - if(NXopenpath(hfil,"/entry1/start_time") != NX_OK){ return 1; } @@ -541,6 +562,17 @@ static int testExternal(char *progName){ printf("entry1 external URL = %s\n", filename); } + printf("testing link to external data set\n"); + if(NXopenpath(hfil,"/entry3") != NX_OK){ + return 1; + } + if (NXopendata (hfil, "extlinkdata") != NX_OK) return 1; + memset(&temperature,0,4); + if(NXgetdata(hfil,&temperature) != NX_OK){ + return 1; + } + printf("value retrieved: %4.2f\n", temperature); + NXclose(&hfil); printf("External File Linking tested OK\n"); return 0; diff --git a/test/napi_test_cpp.cxx b/test/napi_test_cpp.cxx index 12c12777..a0614350 100644 --- a/test/napi_test_cpp.cxx +++ b/test/napi_test_cpp.cxx @@ -3,6 +3,7 @@ #include #include #include +#include #include #include "napiconfig.h" #include "NeXusFile.hpp" @@ -273,11 +274,13 @@ int readTest(const string & filename) { file.getData(result); cout << toString(result); } + cout << endl; + cout << " Path = " << file.getPath() << endl; + file.closeData(); } else { - cout << ":" << it->second; + cout << ":" << it->second << endl; } - cout << endl; } file.closeGroup(); diff --git a/test/napif4_test.f b/test/napif4_test.f index 92db18c1..616d6aca 100644 --- a/test/napif4_test.f +++ b/test/napif4_test.f @@ -26,7 +26,7 @@ INCLUDE 'napif.inc' INTEGER NXRANK, NXDIMS(NX_MAXRANK), NXTYPE, NXLEN - INTEGER ENTRY_STATUS, ATTR_STATUS + INTEGER ENTRY_STATUS, ATTR_STATUS, STAT INTEGER*4 I, J REAL*4 R INTEGER*1 I1_ARRAY(4) @@ -40,7 +40,7 @@ CHARACTER*64 NAME, CLASS CHARACTER*128 CHAR_BUFFER INTEGER*1 CHAR_BUFFER_B(128) - CHARACTER*64 GROUP_NAME, CLASS_NAME + CHARACTER*64 GROUP_NAME, CLASS_NAME, PATH INTEGER FILEID(NXHANDLESIZE) INTEGER GLINK(NXLINKSIZE), DLINK(NXLINKSIZE), BLINK(NXLINKSIZE) INTEGER*4 COMP_ARRAY(20,100) @@ -140,6 +140,7 @@ IF (NXOPENDATA(FILEID, 'flush_data') .NE. NX_OK) STOP IF (NXPUTSLAB(FILEID, U_BUFFER(I), SLAB_START, + SLAB_SIZE) .NE. NX_OK) STOP + STAT = NXCLOSEDATA(FILEID) IF (NXFLUSH(FILEID) .NE. NX_OK) STOP END DO IF (NXCLOSEGROUP(FILEID) .NE. NX_OK) STOP @@ -195,6 +196,8 @@ END IF ELSE IF (ENTRY_STATUS .EQ. NX_OK) THEN IF (NXOPENDATA(FILEID,NAME) .NE. NX_OK) STOP + IF(NXGETPATH(FILEID,PATH) .NE. NX_OK) STOP + WRITE(*,FMT='(1X,A,A)') 'Path = ', PATH(1:LEN_TRIM(PATH)) IF (NXGETINFO(FILEID,NXRANK,NXDIMS,NXTYPE) .NE. NX_OK) STOP WRITE(*,FMT='(4X,A,I2,A)') NAME(1:LEN_TRIM(NAME))//'(', + NXTYPE,')' diff --git a/test/napif5_test.f b/test/napif5_test.f index b30abd51..b404e8af 100644 --- a/test/napif5_test.f +++ b/test/napif5_test.f @@ -26,7 +26,7 @@ INCLUDE 'napif.inc' INTEGER NXRANK, NXDIMS(NX_MAXRANK), NXTYPE, NXLEN - INTEGER ENTRY_STATUS, ATTR_STATUS + INTEGER ENTRY_STATUS, ATTR_STATUS, STAT INTEGER*4 I, J REAL*4 R INTEGER*1 I1_ARRAY(4) @@ -41,6 +41,7 @@ CHARACTER*128 CHAR_BUFFER INTEGER*1 CHAR_BUFFER_B(128) CHARACTER*64 GROUP_NAME, CLASS_NAME + CHARACTER*70 PATH INTEGER FILEID(NXHANDLESIZE) INTEGER GLINK(NXLINKSIZE), DLINK(NXLINKSIZE), BLINK(NXLINKSIZE) INTEGER*4 COMP_ARRAY(20,100) @@ -140,6 +141,7 @@ IF (NXOPENDATA(FILEID, 'flush_data') .NE. NX_OK) STOP IF (NXPUTSLAB(FILEID, U_BUFFER(I), SLAB_START, + SLAB_SIZE) .NE. NX_OK) STOP + STAT = NXCLOSEDATA(FILEID) IF (NXFLUSH(FILEID) .NE. NX_OK) STOP END DO IF (NXCLOSEGROUP(FILEID) .NE. NX_OK) STOP @@ -195,6 +197,8 @@ END IF ELSE IF (ENTRY_STATUS .EQ. NX_OK) THEN IF (NXOPENDATA(FILEID,NAME) .NE. NX_OK) STOP + IF(NXGETPATH(FILEID,PATH) .NE. NX_OK) STOP + WRITE(*,FMT='(1X,A,A)') 'Path = ', PATH(1:LEN_TRIM(PATH)) IF (NXGETINFO(FILEID,NXRANK,NXDIMS,NXTYPE) .NE. NX_OK) STOP WRITE(*,FMT='(4X,A,I2,A)') NAME(1:LEN_TRIM(NAME))//'(', + NXTYPE,')' diff --git a/test/napif_test.f b/test/napif_test.f index 3cff6b6e..866eefd6 100644 --- a/test/napif_test.f +++ b/test/napif_test.f @@ -41,6 +41,7 @@ CHARACTER*128 CHAR_BUFFER INTEGER*1 CHAR_BUFFER_B(128) CHARACTER*64 GROUP_NAME, CLASS_NAME + CHARACTER*70 PATH INTEGER FILEID(NXHANDLESIZE) INTEGER GLINK(NXLINKSIZE), DLINK(NXLINKSIZE), BLINK(NXLINKSIZE) INTEGER*4 COMP_ARRAY(20,100) @@ -195,6 +196,8 @@ END IF ELSE IF (ENTRY_STATUS .EQ. NX_OK) THEN IF (NXOPENDATA(FILEID,NAME) .NE. NX_OK) STOP + IF (NXGETPATH(FILEID,PATH) .NE. NX_OK)STOP + WRITE(*,FMT='(1X,A,A)') 'Path = ', PATH(1:LEN_TRIM(PATH)) IF (NXGETINFO(FILEID,NXRANK,NXDIMS,NXTYPE) .NE. NX_OK) STOP WRITE(*,FMT='(4X,A,I2,A)') NAME(1:LEN_TRIM(NAME))//'(', + NXTYPE,')' diff --git a/test/testsuite.at b/test/testsuite.at index 5d38f57d..a9c18b73 100644 --- a/test/testsuite.at +++ b/test/testsuite.at @@ -30,23 +30,31 @@ AT_SETUP([Check the HDF4 binding]) AT_CHECK([ $HAVE_HDF4 && $SETUP_TEST && napi_test-hdf4 | sed -e 's/\r$//' ], [], [[NXinquirefile found: NXtest.hdf Number of global attributes: 4 - NeXus_version = 4.1.0 + NeXus_version = 4.2.1 file_name = NXtest.hdf Number of group attributes: 2 +NXentry path /entry hugo = namenlos cucumber = passion Group: entry(NXentry) contains 9 items - ch_data(4) = NeXus data +Data path /entry/ch_data + ch_data(4) = NeXus ><}&{'\&" Data +Data path /entry/c1_data c1_data(4) = abcdefghijklmnopqrst +Data path /entry/i1_data i1_data(20) = 1 2 3 4 +Data path /entry/i2_data i2_data(22) = 1000 2000 3000 4000 +Data path /entry/i4_data i4_data(24) = 1000000 2000000 3000000 4000000 +Data path /entry/r4_data r4_data(5) 1.000000 2.000000 3.000000 4.000000 5.000000 6.000000 7.000000 8.000000 9.000000 10.000000 11.000000 12.000000 13.000000 14.000000 15.000000 16.000000 17.000000 18.000000 19.000000 20.000000 +Data path /entry/r8_data r8_data(6) 1.000000 2.000000 3.000000 4.000000 5.000000 6.000000 7.000000 8.000000 @@ -54,12 +62,13 @@ Group: entry(NXentry) contains 9 items 13.000000 14.000000 15.000000 16.000000 17.000000 18.000000 19.000000 20.000000 Number of attributes : 4 - ch_attribute : NeXus + ch_attribute : NeXus ><}&{'\&" Data i4_attribute : 42 r4_attribute : 3.141593 target : /entry/r8_data Subgroup: data(NXdata) Subgroup: sample(NXsample) +Group path /link/sample Link check OK NXopenpath checks OK First file time: 2005-05-27 05:44:13 @@ -68,6 +77,8 @@ Second file sample: Ga0.94Mn0.04Sb_8mm NXinquirefile found: data/dmc02.hdf Second file time: 2005-05-27 05:48:56 entry1 external URL = nxfile://data/dmc01.hdf#/entry1 +testing link to external data set +value retrieved: 4.00 External File Linking tested OK ]]) AT_CLEANUP @@ -76,25 +87,34 @@ AT_SETUP([Check the HDF5 binding]) AT_CHECK([ $HAVE_HDF5 && $SETUP_TEST && napi_test-hdf5 | sed -e 's/\r$//' ], [], [[NXinquirefile found: NXtest.h5 Number of global attributes: 4 - NeXus_version = 4.1.0 + NeXus_version = 4.2.1 file_name = NXtest.h5 Number of group attributes: 2 +NXentry path /entry hugo = namenlos cucumber = passion Group: entry(NXentry) contains 10 items +Data path /entry/c1_data c1_data(4) = abcdefghijklmnopqrst - ch_data(4) = NeXus data +Data path /entry/ch_data + ch_data(4) = NeXus ><}&{'\&" Data Subgroup: data(NXdata) +Data path /entry/grosse_zahl grosse_zahl(26) = 12 555555555555 23 777777777777 +Data path /entry/i1_data i1_data(20) = 1 2 3 4 +Data path /entry/i2_data i2_data(22) = 1000 2000 3000 4000 +Data path /entry/i4_data i4_data(24) = 1000000 2000000 3000000 4000000 +Data path /entry/r4_data r4_data(5) 1.000000 2.000000 3.000000 4.000000 5.000000 6.000000 7.000000 8.000000 9.000000 10.000000 11.000000 12.000000 13.000000 14.000000 15.000000 16.000000 17.000000 18.000000 19.000000 20.000000 +Data path /entry/r8_data r8_data(6) 1.000000 2.000000 3.000000 4.000000 5.000000 6.000000 7.000000 8.000000 @@ -102,11 +122,12 @@ Group: entry(NXentry) contains 10 items 13.000000 14.000000 15.000000 16.000000 17.000000 18.000000 19.000000 20.000000 Number of attributes : 4 - ch_attribute : NeXus + ch_attribute : NeXus ><}&{'\&" Data i4_attribute : 42 r4_attribute : 3.141593 target : /entry/r8_data Subgroup: sample(NXsample) +Group path /link/sample Link check OK NXopenpath checks OK First file time: 2005-05-27 05:44:13 @@ -115,6 +136,8 @@ Second file sample: Ga0.94Mn0.04Sb_8mm NXinquirefile found: data/dmc02.h5 Second file time: 2005-05-27 05:48:56 entry1 external URL = nxfile://data/dmc01.h5#/entry1 +testing link to external data set +value retrieved: 4.00 External File Linking tested OK ]]) AT_CLEANUP @@ -123,23 +146,31 @@ AT_SETUP([Check the HDF4 binding (static library)]) AT_CHECK([ $HAVE_HDF4 && $SETUP_TEST && napi_test-hdf4-static | sed -e 's/\r$//' ], [], [[NXinquirefile found: NXtest.hdf Number of global attributes: 4 - NeXus_version = 4.1.0 + NeXus_version = 4.2.1 file_name = NXtest.hdf Number of group attributes: 2 +NXentry path /entry hugo = namenlos cucumber = passion Group: entry(NXentry) contains 9 items - ch_data(4) = NeXus data +Data path /entry/ch_data + ch_data(4) = NeXus ><}&{'\&" Data +Data path /entry/c1_data c1_data(4) = abcdefghijklmnopqrst +Data path /entry/i1_data i1_data(20) = 1 2 3 4 +Data path /entry/i2_data i2_data(22) = 1000 2000 3000 4000 +Data path /entry/i4_data i4_data(24) = 1000000 2000000 3000000 4000000 +Data path /entry/r4_data r4_data(5) 1.000000 2.000000 3.000000 4.000000 5.000000 6.000000 7.000000 8.000000 9.000000 10.000000 11.000000 12.000000 13.000000 14.000000 15.000000 16.000000 17.000000 18.000000 19.000000 20.000000 +Data path /entry/r8_data r8_data(6) 1.000000 2.000000 3.000000 4.000000 5.000000 6.000000 7.000000 8.000000 @@ -147,12 +178,13 @@ Group: entry(NXentry) contains 9 items 13.000000 14.000000 15.000000 16.000000 17.000000 18.000000 19.000000 20.000000 Number of attributes : 4 - ch_attribute : NeXus + ch_attribute : NeXus ><}&{'\&" Data i4_attribute : 42 r4_attribute : 3.141593 target : /entry/r8_data Subgroup: data(NXdata) Subgroup: sample(NXsample) +Group path /link/sample Link check OK NXopenpath checks OK First file time: 2005-05-27 05:44:13 @@ -161,6 +193,8 @@ Second file sample: Ga0.94Mn0.04Sb_8mm NXinquirefile found: data/dmc02.hdf Second file time: 2005-05-27 05:48:56 entry1 external URL = nxfile://data/dmc01.hdf#/entry1 +testing link to external data set +value retrieved: 4.00 External File Linking tested OK ]]) AT_CLEANUP @@ -169,25 +203,34 @@ AT_SETUP([Check the HDF5 binding (static library)]) AT_CHECK([ $HAVE_HDF5 && $SETUP_TEST && napi_test-hdf5-static | sed -e 's/\r$//' ], [], [[NXinquirefile found: NXtest.h5 Number of global attributes: 4 - NeXus_version = 4.1.0 + NeXus_version = 4.2.1 file_name = NXtest.h5 Number of group attributes: 2 +NXentry path /entry hugo = namenlos cucumber = passion Group: entry(NXentry) contains 10 items +Data path /entry/c1_data c1_data(4) = abcdefghijklmnopqrst - ch_data(4) = NeXus data +Data path /entry/ch_data + ch_data(4) = NeXus ><}&{'\&" Data Subgroup: data(NXdata) +Data path /entry/grosse_zahl grosse_zahl(26) = 12 555555555555 23 777777777777 +Data path /entry/i1_data i1_data(20) = 1 2 3 4 +Data path /entry/i2_data i2_data(22) = 1000 2000 3000 4000 +Data path /entry/i4_data i4_data(24) = 1000000 2000000 3000000 4000000 +Data path /entry/r4_data r4_data(5) 1.000000 2.000000 3.000000 4.000000 5.000000 6.000000 7.000000 8.000000 9.000000 10.000000 11.000000 12.000000 13.000000 14.000000 15.000000 16.000000 17.000000 18.000000 19.000000 20.000000 +Data path /entry/r8_data r8_data(6) 1.000000 2.000000 3.000000 4.000000 5.000000 6.000000 7.000000 8.000000 @@ -195,11 +238,12 @@ Group: entry(NXentry) contains 10 items 13.000000 14.000000 15.000000 16.000000 17.000000 18.000000 19.000000 20.000000 Number of attributes : 4 - ch_attribute : NeXus + ch_attribute : NeXus ><}&{'\&" Data i4_attribute : 42 r4_attribute : 3.141593 target : /entry/r8_data Subgroup: sample(NXsample) +Group path /link/sample Link check OK NXopenpath checks OK First file time: 2005-05-27 05:44:13 @@ -208,6 +252,8 @@ Second file sample: Ga0.94Mn0.04Sb_8mm NXinquirefile found: data/dmc02.h5 Second file time: 2005-05-27 05:48:56 entry1 external URL = nxfile://data/dmc01.h5#/entry1 +testing link to external data set +value retrieved: 4.00 External File Linking tested OK ]]) AT_CLEANUP @@ -215,27 +261,35 @@ AT_CLEANUP AT_SETUP([Check the XML binding]) AT_CHECK([ $HAVE_XML && $SETUP_TEST && napi_test-xml | sed -e 's/\r$//' ], [], [[NXinquirefile found: NXtest.xml -Number of global attributes: 6 - NeXus_version = 4.1.0 +Number of global attributes: 7 + NeXus_version = 4.2.1 file_name = NXtest.xml - xmlns = http://definition.nexusformat.org/schema/3.0 + xmlns = http://definition.nexusformat.org/schema/3.1 xmlns:xsi = http://www.w3.org/2001/XMLSchema-instance - xsi:schemaLocation = http://definition.nexusformat.org/schema/3.0 http://definition.nexusformat.org/schema/3.0/BASE.xsd + xsi:schemaLocation = http://definition.nexusformat.org/schema/3.1 http://definition.nexusformat.org/schema/3.1/BASE.xsd Number of group attributes: 2 +NXentry path /entry hugo = namenlos cucumber = passion Group: entry(NXentry) contains 10 items - ch_data(4) = NeXus data +Data path /entry/ch_data + ch_data(4) = NeXus ><}&{'\&" Data +Data path /entry/c1_data c1_data(4) = abcdefghijklmnopqrst +Data path /entry/i1_data i1_data(20) = 1 2 3 4 +Data path /entry/i2_data i2_data(22) = 1000 2000 3000 4000 +Data path /entry/i4_data i4_data(24) = 1000000 2000000 3000000 4000000 +Data path /entry/r4_data r4_data(5) 1.000000 2.000000 3.000000 4.000000 5.000000 6.000000 7.000000 8.000000 9.000000 10.000000 11.000000 12.000000 13.000000 14.000000 15.000000 16.000000 17.000000 18.000000 19.000000 20.000000 +Data path /entry/r8_data r8_data(6) 1.000000 2.000000 3.000000 4.000000 5.000000 6.000000 7.000000 8.000000 @@ -243,13 +297,15 @@ Group: entry(NXentry) contains 10 items 13.000000 14.000000 15.000000 16.000000 17.000000 18.000000 19.000000 20.000000 Number of attributes : 4 - ch_attribute : NeXus + ch_attribute : NeXus ><}&{'\&" Data i4_attribute : 42 r4_attribute : 3.141593 target : /entry/r8_data +Data path /entry/grosse_zahl grosse_zahl(26) = 12 555555555555 23 777777777777 Subgroup: data(NXdata) Subgroup: sample(NXsample) +Group path /link/sample Link check OK NXopenpath checks OK First file time: 2005-05-27 05:44:13 @@ -258,6 +314,8 @@ Second file sample: Ga0.94Mn0.04Sb_8mm NXinquirefile found: data/dmc02.xml Second file time: 2005-05-27 05:48:56 entry1 external URL = nxfile://data/dmc01.xml#/entry1 +testing link to external data set +value retrieved: 4.00 External File Linking tested OK ]]) AT_CLEANUP @@ -265,27 +323,35 @@ AT_CLEANUP AT_SETUP([Check the XML binding (static library)]) AT_CHECK([ $HAVE_XML && $SETUP_TEST && napi_test-xml-static | sed -e 's/\r$//' ], [], [[NXinquirefile found: NXtest.xml -Number of global attributes: 6 - NeXus_version = 4.1.0 +Number of global attributes: 7 + NeXus_version = 4.2.1 file_name = NXtest.xml - xmlns = http://definition.nexusformat.org/schema/3.0 + xmlns = http://definition.nexusformat.org/schema/3.1 xmlns:xsi = http://www.w3.org/2001/XMLSchema-instance - xsi:schemaLocation = http://definition.nexusformat.org/schema/3.0 http://definition.nexusformat.org/schema/3.0/BASE.xsd + xsi:schemaLocation = http://definition.nexusformat.org/schema/3.1 http://definition.nexusformat.org/schema/3.1/BASE.xsd Number of group attributes: 2 +NXentry path /entry hugo = namenlos cucumber = passion Group: entry(NXentry) contains 10 items - ch_data(4) = NeXus data +Data path /entry/ch_data + ch_data(4) = NeXus ><}&{'\&" Data +Data path /entry/c1_data c1_data(4) = abcdefghijklmnopqrst +Data path /entry/i1_data i1_data(20) = 1 2 3 4 +Data path /entry/i2_data i2_data(22) = 1000 2000 3000 4000 +Data path /entry/i4_data i4_data(24) = 1000000 2000000 3000000 4000000 +Data path /entry/r4_data r4_data(5) 1.000000 2.000000 3.000000 4.000000 5.000000 6.000000 7.000000 8.000000 9.000000 10.000000 11.000000 12.000000 13.000000 14.000000 15.000000 16.000000 17.000000 18.000000 19.000000 20.000000 +Data path /entry/r8_data r8_data(6) 1.000000 2.000000 3.000000 4.000000 5.000000 6.000000 7.000000 8.000000 @@ -293,13 +359,15 @@ Group: entry(NXentry) contains 10 items 13.000000 14.000000 15.000000 16.000000 17.000000 18.000000 19.000000 20.000000 Number of attributes : 4 - ch_attribute : NeXus + ch_attribute : NeXus ><}&{'\&" Data i4_attribute : 42 r4_attribute : 3.141593 target : /entry/r8_data +Data path /entry/grosse_zahl grosse_zahl(26) = 12 555555555555 23 777777777777 Subgroup: data(NXdata) Subgroup: sample(NXsample) +Group path /link/sample Link check OK NXopenpath checks OK First file time: 2005-05-27 05:44:13 @@ -308,6 +376,8 @@ Second file sample: Ga0.94Mn0.04Sb_8mm NXinquirefile found: data/dmc02.xml Second file time: 2005-05-27 05:48:56 entry1 external URL = nxfile://data/dmc01.xml#/entry1 +testing link to external data set +value retrieved: 4.00 External File Linking tested OK ]]) AT_CLEANUP @@ -315,28 +385,37 @@ AT_CLEANUP AT_SETUP([Check the XML table binding (static library)]) AT_CHECK([ $HAVE_XML && $SETUP_TEST && napi_test-xml-table-static | sed -e 's/\r$//' ], [], [[NXinquirefile found: NXtest-table.xml -Number of global attributes: 6 - NeXus_version = 4.1.0 +Number of global attributes: 7 + NeXus_version = 4.2.1 file_name = NXtest-table.xml - xmlns = http://definition.nexusformat.org/schema/3.0 + xmlns = http://definition.nexusformat.org/schema/3.1 xmlns:xsi = http://www.w3.org/2001/XMLSchema-instance - xsi:schemaLocation = http://definition.nexusformat.org/schema/3.0 http://definition.nexusformat.org/schema/3.0/BASE.xsd + xsi:schemaLocation = http://definition.nexusformat.org/schema/3.1 http://definition.nexusformat.org/schema/3.1/BASE.xsd Number of group attributes: 2 +NXentry path /entry hugo = namenlos cucumber = passion Group: entry(NXentry) contains 10 items - ch_data(4) = NeXus data +Data path /entry/ch_data + ch_data(4) = NeXus ><}&{'\&" Data +Data path /entry/c1_data c1_data(4) = abcdefghijklmnopqrst +Data path /entry/i1_data i1_data(20) = 1 2 3 4 +Data path /entry/i2_data i2_data(22) = 1000 2000 3000 4000 +Data path /entry/i4_data i4_data(24) = 1000000 2000000 3000000 4000000 +Data path /entry/grosse_zahl grosse_zahl(26) = 12 555555555555 23 777777777777 +Data path /entry/r4_data r4_data(5) 1.000000 2.000000 3.000000 4.000000 5.000000 6.000000 7.000000 8.000000 9.000000 10.000000 11.000000 12.000000 13.000000 14.000000 15.000000 16.000000 17.000000 18.000000 19.000000 20.000000 +Data path /entry/r8_data r8_data(6) 1.000000 2.000000 3.000000 4.000000 5.000000 6.000000 7.000000 8.000000 @@ -344,12 +423,13 @@ Group: entry(NXentry) contains 10 items 13.000000 14.000000 15.000000 16.000000 17.000000 18.000000 19.000000 20.000000 Number of attributes : 4 - ch_attribute : NeXus + ch_attribute : NeXus ><}&{'\&" Data i4_attribute : 42 r4_attribute : 3.141593 target : /entry/r8_data Subgroup: data(NXdata) Subgroup: sample(NXsample) +Group path /link/sample Link check OK NXopenpath checks OK First file time: 2005-05-27 05:44:13 @@ -358,6 +438,8 @@ Second file sample: Ga0.94Mn0.04Sb_8mm NXinquirefile found: data/dmc02.xml Second file time: 2005-05-27 05:48:56 entry1 external URL = nxfile://data/dmc01.xml#/entry1 +testing link to external data set +value retrieved: 4.00 External File Linking tested OK ]]) AT_CLEANUP @@ -367,23 +449,29 @@ AT_BANNER([Check the FORTRAN binding.]) AT_SETUP([Check the F77 binding using HDF4.]) AT_CHECK([ $HAVE_F77 && $HAVE_HDF4 && $SETUP_TEST && napif_test-hdf4 | sed -e 's/\r$//' ], [], [[ Number of global attributes: 4 - NeXus_version = 4.1.0 + NeXus_version = 4.2.1 file_name = NXtest.nxs Group: entry(NXentry) contains 8 items + Path = /entry/ch_data ch_data( 4) Values : NeXus data + Path = /entry/i1_data i1_data(20) Values : 1 2 3 4 + Path = /entry/i2_data i2_data(22) Values : 1000 2000 3000 4000 + Path = /entry/i4_data i4_data(24) Values : 1000000 2000000 3000000 4000000 + Path = /entry/r4_data r4_data( 5) Values : 1.00 2.00 3.00 4.00 : 5.00 6.00 7.00 8.00 : 9.00 10.00 11.00 12.00 : 13.00 14.00 15.00 16.00 : 17.00 18.00 19.00 20.00 + Path = /entry/r8_data r8_data( 6) Values : 1.00 2.00 3.00 4.00 : 5.00 6.00 7.00 8.00 @@ -403,24 +491,30 @@ AT_CLEANUP AT_SETUP([Check the F77 binding using HDF5.]) AT_CHECK([ $HAVE_F77 && $HAVE_HDF5 && $SETUP_TEST && napif_test-hdf5 | sed -e 's/\r$//' ], [], [[ Number of global attributes: 4 - NeXus_version = 4.1.0 + NeXus_version = 4.2.1 file_name = NXtest.nxs Group: entry(NXentry) contains 8 items + Path = /entry/ch_data ch_data( 4) Values : NeXus data Subgroup: data(NXdata) + Path = /entry/i1_data i1_data(20) Values : 1 2 3 4 + Path = /entry/i2_data i2_data(22) Values : 1000 2000 3000 4000 + Path = /entry/i4_data i4_data(24) Values : 1000000 2000000 3000000 4000000 + Path = /entry/r4_data r4_data( 5) Values : 1.00 2.00 3.00 4.00 : 5.00 6.00 7.00 8.00 : 9.00 10.00 11.00 12.00 : 13.00 14.00 15.00 16.00 : 17.00 18.00 19.00 20.00 + Path = /entry/r8_data r8_data( 6) Values : 1.00 2.00 3.00 4.00 : 5.00 6.00 7.00 8.00 @@ -440,7 +534,7 @@ AT_SETUP([Check the F90 binding using HDF5.]) AT_CHECK([ $HAVE_F90 && $HAVE_HDF5 && $SETUP_TEST && NXtest | sed -e 's/\r$//' ], [], [[Writing character data Number of global attributes: 4 - NeXus_version = 4.1.0 + NeXus_version = 4.2.1 file_name = NXtest.nxs Group: entry(NXentry) contains 8 items ch_data : NX_CHAR @@ -478,20 +572,27 @@ AT_SETUP([Check the C++ binding with HDF4.]) AT_CHECK([ $HAVE_HDF4 && $SETUP_TEST && napi_test_cpp-hdf4 | sed -e 's/\r$//' ], [], [[NXinquirefile found: napi_test_cpp.hdf Number of global attributes: 4 - NeXus_version = 4.1.0 + NeXus_version = 4.2.1 file_name = napi_test_cpp.hdf Number of group attributes: 2 hugo = namenlos cucumber = passion Group contains 9 items c1_data[5,4] = 2d character array + Path = /entry/c1_data ch_data[10] = NeXus_data + Path = /entry/ch_data data:NXdata i1_data[4] = [,,,] + Path = /entry/i1_data i2_data[4] = [1000,2000,3000,4000] + Path = /entry/i2_data i4_data[4] = [1000000,2000000,3000000,4000000] + Path = /entry/i4_data r4_data[5,4] = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19] + Path = /entry/r4_data r8_data[5,4] = [20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39] + Path = /entry/r8_data sample:NXsample Link check OK NXopenpath checks OK @@ -507,21 +608,29 @@ AT_SETUP([Check the C++ binding with HDF5.]) AT_CHECK([ $HAVE_HDF5 && $SETUP_TEST && napi_test_cpp-hdf5 | sed -e 's/\r$//' ], [], [[NXinquirefile found: napi_test_cpp.h5 Number of global attributes: 4 - NeXus_version = 4.1.0 + NeXus_version = 4.2.1 file_name = napi_test_cpp.h5 Number of group attributes: 2 hugo = namenlos cucumber = passion Group contains 10 items c1_data[5,4] = 2d character array + Path = /entry/c1_data ch_data[10] = NeXus_data + Path = /entry/ch_data data:NXdata grosszahl[4] = [12,555555555555,23,777777777777] + Path = /entry/grosszahl i1_data[4] = [,,,] + Path = /entry/i1_data i2_data[4] = [1000,2000,3000,4000] + Path = /entry/i2_data i4_data[4] = [1000000,2000000,3000000,4000000] + Path = /entry/i4_data r4_data[5,4] = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19] + Path = /entry/r4_data r8_data[5,4] = [20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39] + Path = /entry/r8_data sample:NXsample Link check OK NXopenpath checks OK @@ -537,24 +646,32 @@ AT_SETUP([Check the C++ binding with xml.]) AT_CHECK([ $HAVE_XML && $SETUP_TEST && napi_test_cpp-xml | sed -e 's/\r$//' ], [], [[NXinquirefile found: napi_test_cpp.xml Number of global attributes: 7 - NeXus_version = 4.1.0 + NeXus_version = 4.2.1 file_name = napi_test_cpp.xml - xmlns = http://definition.nexusformat.org/schema/3.0 + xmlns = http://definition.nexusformat.org/schema/3.1 xmlns:xsi = http://www.w3.org/2001/XMLSchema-instance - xsi:schemaLocation = http://definition.nexusformat.org/schema/3.0 http://definition.nexusformat.org/schema/3.0/BASE.xsd + xsi:schemaLocation = http://definition.nexusformat.org/schema/3.1 http://definition.nexusformat.org/schema/3.1/BASE.xsd Number of group attributes: 2 hugo = namenlos cucumber = passion Group contains 10 items c1_data[5,4] = 2d character array + Path = /entry/c1_data ch_data[10] = NeXus_data + Path = /entry/ch_data data:NXdata grosszahl[4] = [12,555555555555,23,777777777777] + Path = /entry/grosszahl i1_data[4] = [,,,] + Path = /entry/i1_data i2_data[4] = [1000,2000,3000,4000] + Path = /entry/i2_data i4_data[4] = [1000000,2000000,3000000,4000000] + Path = /entry/i4_data r4_data[5,4] = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19] + Path = /entry/r4_data r8_data[5,4] = [20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39] + Path = /entry/r8_data sample:NXsample Link check OK NXopenpath checks OK @@ -567,6 +684,1288 @@ entry1 external URL = nxfile://data/dmc01.xml#entry1 ]]) AT_CLEANUP +AT_BANNER([[Testing the Python bindings.]]) +AT_SETUP([Checking HDF4 test file]) +AT_CHECK([skip_test && $HAVE_HDF4 && $HAVE_PYTHON && $PYTHON $abs_srcdir/../bindings/python/nxstest.py -q hdf4 | sed -e 's/\r$//' ],[], +[[]]) +AT_CLEANUP +AT_SETUP([Checking HDF5 test file]) +AT_CHECK([$HAVE_HDF5 && $HAVE_PYTHON && $PYTHON $abs_srcdir/../bindings/python/nxstest.py -q hdf5 | sed -e 's/\r$//' ],[], +[[]]) +AT_CLEANUP +AT_SETUP([Checking XML test file]) +AT_CHECK([$HAVE_XML && $HAVE_PYTHON && $PYTHON $abs_srcdir/../bindings/python/nxstest.py -q xml | sed -e 's/\r$//' ],[], +[[]]) +AT_CLEANUP + +AT_BANNER([[Testing the IDL bindings.]]) +AT_SETUP([Checking HDF4 test file]) +AT_CHECK([skip_test && $HAVE_HDF4 && $HAVE_IDL && $SETUP_TEST && $SHELL $abs_srcdir/../bindings/idl/testidlnapi "'hdf4'" | sed -e 's/\r$//' ],[], +[['hdf4' +NeXus IDL Api Write test +Using HDF4 +% Loaded DLM: NEXUSIDL-API. +nxopen status: 1 +nxsetnumberformat status: 1 +nxmakegroup status: 1 +nxopengroup status: 1 +nxputattr status: 1 +nxputattr status: 1 +nxmakedata status: 1 +opendata status: 1 +nxputdata status: 1 +nxclosedata status: 1 +nxmakedata status: 1 +opendata status: 1 +nxputdata status: 1 +nxclosedata status: 1 +nxmakedata status: 1 +opendata status: 1 +nxputdata status: 1 +nxclosedata status: 1 +nxmakedata status: 1 +opendata status: 1 +nxputdata status: 0 +nxclosedata status: 1 +nxmakedata status: 1 +opendata status: 1 +nxputslab status: 1 +nxputattr status : 1 +nxputattr status : 1 +nxputattr status : 1 +nxgetdataid status: 1 +nxclosedata status: 1 +nxmakegroup status: 1 +nxopengroup status: 1 +nxmakelink status: 1 +nxmakecompdata status: 1 +opendata status: 1 +nxputdata status: 0 +nxclosedata status: 1 +nxflush status: 1 +nxmakedata status: 1 +opendata status: 1 +nxputslab 1 status: 1 +nxflush status: 1 +opendata status: 1 +nxputslab 2 status: 1 +nxflush status: 1 +opendata status: 1 +nxputslab 3 status: 1 +nxflush status: 1 +opendata status: 1 +nxputslab 4 status: 1 +nxflush status: 1 +opendata status: 1 +nxputslab 5 status: 1 +nxflush status: 1 +opendata status: 1 +nxputslab 6 status: 1 +nxflush status: 1 +opendata status: 1 +nxputslab 7 status: 1 +nxflush status: 1 +nxclosegroup status: 1 +nxmakegroup status: 1 +nxopengroup status: 1 +nxmakedata status: 1 +opendata status: 1 +nxputdata status: 1 +nxclosedata status: 1 +nxgetgroupid status: 1 +groupid handle: 2 +nxclosegroup status: 1 +nxclosegroup status: 1 +nxmakegroup status: 1 +nxopengroup status: 1 +nxmakelink status: 1 +groupid handle 2 +nxmakenamedlink status : 1 +dataid handle 1 +nxmakenamedlink status : 1 +nxclosegroup status: 1 +nxclose status: 1 + + #################### Test external linking ###################### + +nxopen status: 1 +nxmakegroup status: 1 +nxlinkexternal: 1 +nxmakegroup status: 1 +nxlinkexternal: 1 +nxclose status: 1 +nxopen status: 1 +nxopenpath status 1 + +nxget data status: 1 +First file time : +2005-05-27 05:44:13 + +nxinquirefile status: 1 +current file: data/dmc01.hdf +nxopenpath status 1 +nxget data status: 1 +Second file sample : +Ga0.94Mn0.04Sb_8mm + +nxinquirefile status: 1 +current file: data/dmc01.hdf +nxopenpath status 1 +nxget data status: 1 +Second file time : +2005-05-27 05:44:13 + +nxisexternalgroup status 1 +entry1 external URL = +nxclose status: 1 +% Compiled module: READ_TEST. +Opening file: NXtest.hdf +nxopen status: 1 +nxinquirefile status: 1 +nxinquirefile found: NXtest.hdf +nxgetattrinfo status: 1 +Number of global attributes: 4 + +NXgetnextattr status: 1 + +attribute name: NeXus_version +attribute value: 4.2.1 + +NXgetnextattr status: 1 + +attribute name: HDF_version +attribute value: NCSA HDF Version 4.2 Release 2, October 4, 2007 + +NXgetnextattr status: 1 + +attribute name: file_name +attribute value: NXtest.hdf + +NXgetnextattr status: 1 + + +NXgetnextattr status: -1 + +nxopengroup status: 1 +nxgetattrinfo status: 1 +Number of group attributes: 2 +NXgetnextattr status: 1 +nxgetattr status 1 +attribute name: hugo +attrubute lenght: 8 +attribute type: 4 +attribute value: namenlos + +NXgetnextattr status: 1 +nxgetattr status 1 +attribute name: cucumber +attrubute lenght: 7 +attribute type: 4 +attribute value: passion + +NXgetnextattr status: -1 +nxgetgroupinfo status 1 +current group name: entry +current group class: NXentry +number of items in group: 7 + +nxgetnextentry status: 1 +nxgetnextentry name: ch_data +nxgetnextentry class: SDS +nxgetnextentry data_type 4 + +opening data: ch_data +nxopendata status: 1 + +nxgetinfo Status: 1 +Rank: 1 +Dim [ 0]: 10 +Data Type: 4 + +nxget data status: 1 +data : +NeXus Data + +nxgetattrinfo status: 1 +Number of group attributes: 0 +nxgetnextattr status: -1 +nxclosedata status: 1 +nxgetnextentry status: 1 +nxgetnextentry name: i1_data +nxgetnextentry class: SDS +nxgetnextentry data_type 21 + +opening data: i1_data +nxopendata status: 1 + +nxgetinfo Status: 1 +Rank: 2 +Dim [ 0]: 4 +Dim [ 1]: 4 +Data Type: 21 + +nxgetslab status: 1 +data : + 0 4 8 12 + +nxgetslab status: 1 +data : + 1 5 9 13 + +nxgetslab status: 1 +data : + 2 6 10 14 + +nxgetslab status: 1 +data : + 4 7 11 15 + +nxgetattrinfo status: 1 +Number of group attributes: 0 +nxgetnextattr status: -1 +nxclosedata status: 1 +nxgetnextentry status: 1 +nxgetnextentry name: i4_data +nxgetnextentry class: SDS +nxgetnextentry data_type 24 + +opening data: i4_data +nxopendata status: 1 + +nxgetinfo Status: 1 +Rank: 2 +Dim [ 0]: 4 +Dim [ 1]: 4 +Data Type: 24 + +nxgetslab status: 1 +data : + 0 4 8 12 + +nxgetslab status: 1 +data : + 1 5 9 13 + +nxgetslab status: 1 +data : + 2 6 10 14 + +nxgetslab status: 1 +data : + 3 7 11 15 + +nxgetattrinfo status: 1 +Number of group attributes: 0 +nxgetnextattr status: -1 +nxclosedata status: 1 +nxgetnextentry status: 1 +nxgetnextentry name: r4_data +nxgetnextentry class: SDS +nxgetnextentry data_type 5 + +opening data: r4_data +nxopendata status: 1 + +nxgetinfo Status: 1 +Rank: 2 +Dim [ 0]: 4 +Dim [ 1]: 4 +Data Type: 5 + +nxgetslab status: 1 +data : + 9.96921e+36 9.96921e+36 9.96921e+36 9.96921e+36 + +nxgetslab status: 1 +data : + 9.96921e+36 9.96921e+36 9.96921e+36 9.96921e+36 + +nxgetslab status: 1 +data : + 9.96921e+36 9.96921e+36 9.96921e+36 9.96921e+36 + +nxgetslab status: 1 +data : + 9.96921e+36 9.96921e+36 9.96921e+36 9.96921e+36 + +nxgetattrinfo status: 1 +Number of group attributes: 0 +nxgetnextattr status: -1 +nxclosedata status: 1 +nxgetnextentry status: 1 +nxgetnextentry name: r8_data +nxgetnextentry class: SDS +nxgetnextentry data_type 6 + +opening data: r8_data +nxopendata status: 1 + +nxgetinfo Status: 1 +Rank: 2 +Dim [ 0]: 4 +Dim [ 1]: 4 +Data Type: 6 + +nxgetslab status: 1 +data : + 9.9692100e+36 9.9692100e+36 9.9692100e+36 9.9692100e+36 + +nxgetslab status: 1 +data : + 9.9692100e+36 9.9692100e+36 9.9692100e+36 9.9692100e+36 + +nxgetslab status: 1 +data : + 0.011111200 0.021222220 0.23333333 0.34444444 + +nxgetslab status: 1 +data : + 9.9692100e+36 9.9692100e+36 9.9692100e+36 9.9692100e+36 + +nxgetattrinfo status: 1 +Number of group attributes: 4 +Number of global attributes: 4 +nxgetnextattr status: 1 +nxgetattr status 1 +attribute name: ch_attribute +attribute value: NeXus + +nxgetnextattr status: 1 +nxgetattr status 1 +attribute name: i4_attribute +attribute value: 42 + +nxgetnextattr status: 1 +nxgetattr status 1 +attribute name: r4_attribute +attribute value: 3.14159 + +nxgetnextattr status: 1 +nxgetattr status 1 +attribute name: target +attribute value: /entry/r8_data + +nxgetnextattr status: -1 +nxclosedata status: 1 +nxgetnextentry status: 1 +nxgetnextentry name: data +nxgetnextentry class: NXdata +nxgetnextentry data_type 1965 + +nxgetnextentry status: 1 +nxgetnextentry name: sample +nxgetnextentry class: NXsample +nxgetnextentry data_type 1965 + +nxgetnextentry status: -1 +nxclosegroup status: 1 + +####################### Checking Links ########################### + +nxopengroup status: 1 + +nxopengroup status: 1 + +nxgetgroupid status: 1 +groupid handle: 1 + +nxclosegroup status: 1 + +nxopengroup status: 1 + +nxopendata status: 1 + +nxgetdataid status: 1 +nxclosedata status: 1 +nxclosegroup status: 1 + +nxopendata status: 1 + +nxgetdataid status: 1 +nxclosedata status: 1 +debug +nxsamid status: 1 +Data id: Link check succesfull +nxclosegroup status: 1 + +nxopengroup status: 1 + +nxopengroup status: 1 + +nxgetgroupid status: 1 + +Group Id: Link check succesfull +nxclosegroup status: 1 + +nxopengroup status: 1 + +nxgetgroupid status: 1 + +Group Id Named: Link check succesfull + +nxclosegroup status: 1 + +nxopendata status: 1 + +nxgetdataid status: 1 +Data Id Named: Link check succesfull +nxclosedata status: 1 +Openpath succesfull (/entry/data/comp_data) +Openpath on a relative path (../r8_data) succesfull +nxclose status: 1 +finished napi test +]]) +AT_CLEANUP +AT_SETUP([Checking HDF5 test file]) +AT_CHECK([$HAVE_HDF5 && $HAVE_IDL && $SETUP_TEST && $SHELL $abs_srcdir/../bindings/idl/testidlnapi "'hdf5'" | sed -e 's/\r$//' ],[], +[['hdf5' +NeXus IDL Api Write test +Using HDF5 +% Loaded DLM: NEXUSIDL-API. +nxopen status: 1 +nxsetnumberformat status: 1 +nxmakegroup status: 1 +nxopengroup status: 1 +nxputattr status: 1 +nxputattr status: 1 +nxmakedata status: 1 +opendata status: 1 +nxputdata status: 1 +nxclosedata status: 1 +nxmakedata status: 1 +opendata status: 1 +nxputdata status: 1 +nxclosedata status: 1 +nxmakedata status: 1 +opendata status: 1 +nxputdata status: 1 +nxclosedata status: 1 +nxmakedata status: 1 +opendata status: 1 +nxputdata status: 1 +nxclosedata status: 1 +nxmakedata status: 1 +opendata status: 1 +nxputslab status: 1 +nxputattr status : 1 +nxputattr status : 1 +nxputattr status : 1 +nxgetdataid status: 1 +nxclosedata status: 1 +nxmakegroup status: 1 +nxopengroup status: 1 +nxmakelink status: 1 +nxmakecompdata status: 1 +opendata status: 1 +nxputdata status: 1 +nxclosedata status: 1 +nxflush status: 1 +nxmakedata status: 1 +opendata status: 1 +nxputslab 1 status: 1 +nxflush status: 1 +opendata status: 1 +nxputslab 2 status: 1 +nxflush status: 1 +opendata status: 1 +nxputslab 3 status: 1 +nxflush status: 1 +opendata status: 1 +nxputslab 4 status: 1 +nxflush status: 1 +opendata status: 1 +nxputslab 5 status: 1 +nxflush status: 1 +opendata status: 1 +nxputslab 6 status: 1 +nxflush status: 1 +opendata status: 1 +nxputslab 7 status: 1 +nxflush status: 1 +nxclosegroup status: 1 +nxmakegroup status: 1 +nxopengroup status: 1 +nxmakedata status: 1 +opendata status: 1 +nxputdata status: 1 +nxclosedata status: 1 +nxgetgroupid status: 1 +groupid handle: 2 +nxclosegroup status: 1 +nxclosegroup status: 1 +nxmakegroup status: 1 +nxopengroup status: 1 +nxmakelink status: 1 +groupid handle 2 +nxmakenamedlink status : 1 +dataid handle 1 +nxmakenamedlink status : 1 +nxclosegroup status: 1 +nxclose status: 1 + + #################### Test external linking ###################### + +nxopen status: 1 +nxmakegroup status: 1 +nxlinkexternal: 1 +nxmakegroup status: 1 +nxlinkexternal: 1 +nxclose status: 1 +nxopen status: 1 +nxopenpath status 1 + +nxget data status: 1 +First file time : +2005-05-27 05:44:13 + +nxinquirefile status: 1 +current file: data/dmc01.h5 +nxopenpath status 1 +nxget data status: 1 +Second file sample : +Ga0.94Mn0.04Sb_8mm + +nxinquirefile status: 1 +current file: data/dmc01.h5 +nxopenpath status 1 +nxget data status: 1 +Second file time : +2005-05-27 05:44:13 + +nxisexternalgroup status 1 +entry1 external URL = +nxclose status: 1 +% Compiled module: READ_TEST. +Opening file: NXtest.h5 +nxopen status: 1 +nxinquirefile status: 1 +nxinquirefile found: NXtest.h5 +nxgetattrinfo status: 1 +Number of global attributes: 4 + +NXgetnextattr status: 1 + +attribute name: NeXus_version +attribute value: 4.2.1 + +NXgetnextattr status: 1 + +attribute name: file_name +attribute value: NXtest.h5 + +NXgetnextattr status: 1 + +attribute name: HDF5_Version +attribute value: 1.6.8 + +NXgetnextattr status: 1 + + +NXgetnextattr status: -1 + +nxopengroup status: 1 +nxgetattrinfo status: 1 +Number of group attributes: 2 +NXgetnextattr status: 1 +nxgetattr status 1 +attribute name: hugo +attrubute lenght: 8 +attribute type: 4 +attribute value: namenlos + +NXgetnextattr status: 1 +nxgetattr status 1 +attribute name: cucumber +attrubute lenght: 7 +attribute type: 4 +attribute value: passion + +NXgetnextattr status: -1 +nxgetgroupinfo status 1 +current group name: entry +current group class: NXentry +number of items in group: 7 + +nxgetnextentry status: 1 +nxgetnextentry name: ch_data +nxgetnextentry class: SDS +nxgetnextentry data_type 4 + +opening data: ch_data +nxopendata status: 1 + +nxgetinfo Status: 1 +Rank: 1 +Dim [ 0]: 10 +Data Type: 4 + +nxget data status: 1 +data : +NeXus Data + +nxgetattrinfo status: 1 +Number of group attributes: 0 +nxgetnextattr status: -1 +nxclosedata status: 1 +nxgetnextentry status: 1 +nxgetnextentry name: data +nxgetnextentry class: NXdata +nxgetnextentry data_type 0 + +nxgetnextentry status: 1 +nxgetnextentry name: i1_data +nxgetnextentry class: SDS +nxgetnextentry data_type 21 + +opening data: i1_data +nxopendata status: 1 + +nxgetinfo Status: 1 +Rank: 2 +Dim [ 0]: 4 +Dim [ 1]: 4 +Data Type: 21 + +nxgetslab status: 1 +data : + 0 4 8 12 + +nxgetslab status: 1 +data : + 1 5 9 13 + +nxgetslab status: 1 +data : + 2 6 10 14 + +nxgetslab status: 1 +data : + 4 7 11 15 + +nxgetattrinfo status: 1 +Number of group attributes: 0 +nxgetnextattr status: -1 +nxclosedata status: 1 +nxgetnextentry status: 1 +nxgetnextentry name: i4_data +nxgetnextentry class: SDS +nxgetnextentry data_type 24 + +opening data: i4_data +nxopendata status: 1 + +nxgetinfo Status: 1 +Rank: 2 +Dim [ 0]: 4 +Dim [ 1]: 4 +Data Type: 24 + +nxgetslab status: 1 +data : + 0 4 8 12 + +nxgetslab status: 1 +data : + 1 5 9 13 + +nxgetslab status: 1 +data : + 2 6 10 14 + +nxgetslab status: 1 +data : + 3 7 11 15 + +nxgetattrinfo status: 1 +Number of group attributes: 0 +nxgetnextattr status: -1 +nxclosedata status: 1 +nxgetnextentry status: 1 +nxgetnextentry name: r4_data +nxgetnextentry class: SDS +nxgetnextentry data_type 5 + +opening data: r4_data +nxopendata status: 1 + +nxgetinfo Status: 1 +Rank: 2 +Dim [ 0]: 4 +Dim [ 1]: 4 +Data Type: 5 + +nxgetslab status: 1 +data : + 0.0111112 0.344333 0.666669 -12.2000 + +nxgetslab status: 1 +data : + 0.0212222 0.555556 1.00000 -13.4444 + +nxgetslab status: 1 +data : + 0.233333 0.666667 10.1000 -14.2222 + +nxgetslab status: 1 +data : + 0.344444 0.777773 11.2222 -15.4444 + +nxgetattrinfo status: 1 +Number of group attributes: 0 +nxgetnextattr status: -1 +nxclosedata status: 1 +nxgetnextentry status: 1 +nxgetnextentry name: r8_data +nxgetnextentry class: SDS +nxgetnextentry data_type 6 + +opening data: r8_data +nxopendata status: 1 + +nxgetinfo Status: 1 +Rank: 2 +Dim [ 0]: 4 +Dim [ 1]: 4 +Data Type: 6 + +nxgetslab status: 1 +data : + 0.0000000 0.0000000 0.0000000 0.0000000 + +nxgetslab status: 1 +data : + 0.0000000 0.0000000 0.0000000 0.0000000 + +nxgetslab status: 1 +data : + 0.011111200 0.021222220 0.23333333 0.34444444 + +nxgetslab status: 1 +data : + 0.0000000 0.0000000 0.0000000 0.0000000 + +nxgetattrinfo status: 1 +Number of group attributes: 4 +Number of global attributes: 4 +nxgetnextattr status: 1 +nxgetattr status 1 +attribute name: ch_attribute +attribute value: NeXus + +nxgetnextattr status: 1 +nxgetattr status 1 +attribute name: i4_attribute +attribute value: 42 + +nxgetnextattr status: 1 +nxgetattr status 1 +attribute name: r4_attribute +attribute value: 3.14159 + +nxgetnextattr status: 1 +nxgetattr status 1 +attribute name: target +attribute value: /entry/r8_data + +nxgetnextattr status: -1 +nxclosedata status: 1 +nxgetnextentry status: 1 +nxgetnextentry name: sample +nxgetnextentry class: NXsample +nxgetnextentry data_type 0 + +nxgetnextentry status: -1 +nxclosegroup status: 1 + +####################### Checking Links ########################### + +nxopengroup status: 1 + +nxopengroup status: 1 + +nxgetgroupid status: 1 +groupid handle: 1 + +nxclosegroup status: 1 + +nxopengroup status: 1 + +nxopendata status: 1 + +nxgetdataid status: 1 +nxclosedata status: 1 +nxclosegroup status: 1 + +nxopendata status: 1 + +nxgetdataid status: 1 +nxclosedata status: 1 +debug +nxsamid status: 1 +Data id: Link check succesfull +nxclosegroup status: 1 + +nxopengroup status: 1 + +nxopengroup status: 1 + +nxgetgroupid status: 1 + +Group Id: Link check succesfull +nxclosegroup status: 1 + +nxopengroup status: 1 + +nxgetgroupid status: 1 + +Group Id Named: Link check succesfull + +nxclosegroup status: 1 + +nxopendata status: 1 + +nxgetdataid status: 1 +Data Id Named: Link check succesfull +nxclosedata status: 1 +Openpath succesfull (/entry/data/comp_data) +Openpath on a relative path (../r8_data) succesfull +nxclose status: 1 +finished napi test +]]) +AT_CLEANUP +AT_SETUP([Checking XML test file]) +AT_CHECK([$HAVE_XML && $HAVE_IDL && $SETUP_TEST && $SHELL $abs_srcdir/../bindings/idl/testidlnapi "'xml'" | sed -e 's/\r$//' ],[], +[['xml' +NeXus IDL Api Write test +Using XML +% Loaded DLM: NEXUSIDL-API. +nxopen status: 1 +nxsetnumberformat status: 1 +nxmakegroup status: 1 +nxopengroup status: 1 +nxputattr status: 1 +nxputattr status: 1 +nxmakedata status: 1 +opendata status: 1 +nxputdata status: 1 +nxclosedata status: 1 +nxmakedata status: 1 +opendata status: 1 +nxputdata status: 1 +nxclosedata status: 1 +nxmakedata status: 1 +opendata status: 1 +nxputdata status: 1 +nxclosedata status: 1 +nxmakedata status: 1 +opendata status: 1 +nxputdata status: 1 +nxclosedata status: 1 +nxmakedata status: 1 +opendata status: 1 +nxputslab status: 1 +nxputattr status : 1 +nxputattr status : 1 +nxputattr status : 1 +nxgetdataid status: 1 +nxclosedata status: 1 +nxmakegroup status: 1 +nxopengroup status: 1 +nxmakelink status: 1 +nxmakecompdata status: 1 +opendata status: 1 +nxputdata status: 1 +nxclosedata status: 1 +nxflush status: 1 +nxmakedata status: 1 +opendata status: 1 +nxputslab 1 status: 1 +nxflush status: 1 +opendata status: 1 +nxputslab 2 status: 1 +nxflush status: 1 +opendata status: 1 +nxputslab 3 status: 1 +nxflush status: 1 +opendata status: 1 +nxputslab 4 status: 1 +nxflush status: 1 +opendata status: 1 +nxputslab 5 status: 1 +nxflush status: 1 +opendata status: 1 +nxputslab 6 status: 1 +nxflush status: 1 +opendata status: 1 +nxputslab 7 status: 1 +nxflush status: 1 +nxclosegroup status: 1 +nxmakegroup status: 1 +nxopengroup status: 1 +nxmakedata status: 1 +opendata status: 1 +nxputdata status: 1 +nxclosedata status: 1 +nxgetgroupid status: 1 +groupid handle: 2 +nxclosegroup status: 1 +nxclosegroup status: 1 +nxmakegroup status: 1 +nxopengroup status: 1 +nxmakelink status: 1 +groupid handle 2 +nxmakenamedlink status : 1 +dataid handle 1 +nxmakenamedlink status : 1 +nxclosegroup status: 1 +nxclose status: 1 + + #################### Test external linking ###################### + +nxopen status: 1 +nxmakegroup status: 1 +nxlinkexternal: 1 +nxmakegroup status: 1 +nxlinkexternal: 1 +nxclose status: 1 +nxopen status: 1 +nxopenpath status 1 + +nxget data status: 1 +First file time : +2005-05-27 05:44:13 + +nxinquirefile status: 1 +current file: data/dmc01.xml +nxopenpath status 1 +nxget data status: 1 +Second file sample : +Ga0.94Mn0.04Sb_8mm + +nxinquirefile status: 1 +current file: data/dmc01.xml +nxopenpath status 1 +nxget data status: 1 +Second file time : +2005-05-27 05:44:13 + +nxisexternalgroup status 1 +entry1 external URL = +nxclose status: 1 +% Compiled module: READ_TEST. +Opening file: NXtest.xml +nxopen status: 1 +nxinquirefile status: 1 +nxinquirefile found: NXtest.xml +nxgetattrinfo status: 1 +Number of global attributes: 7 + +NXgetnextattr status: 1 + +attribute name: NeXus_version +attribute value: 4.2.1 + +NXgetnextattr status: 1 + +attribute name: XML_version +attribute value: mxml + +NXgetnextattr status: 1 + +attribute name: file_name +attribute value: NXtest.xml + +NXgetnextattr status: 1 + +attribute name: xmlns +attribute value: http://definition.nexusformat.org/schema/3.1 + +NXgetnextattr status: 1 + +attribute name: xmlns:xsi +attribute value: http://www.w3.org/2001/XMLSchema-instance + +NXgetnextattr status: 1 + +attribute name: xsi:schemaLocation +attribute value: http://definition.nexusformat.org/schema/3.1 http://definition.nexusformat.org/schema/3.0/BASE.xsd + +NXgetnextattr status: 1 + + +NXgetnextattr status: -1 + +nxopengroup status: 1 +nxgetattrinfo status: 1 +Number of group attributes: 2 +NXgetnextattr status: 1 +nxgetattr status 1 +attribute name: hugo +attrubute lenght: 8 +attribute type: 4 +attribute value: namenlos + +NXgetnextattr status: 1 +nxgetattr status 1 +attribute name: cucumber +attrubute lenght: 7 +attribute type: 4 +attribute value: passion + +NXgetnextattr status: -1 +nxgetgroupinfo status 1 +current group name: entry +current group class: NXentry +number of items in group: 7 + +nxgetnextentry status: 1 +nxgetnextentry name: ch_data +nxgetnextentry class: SDS +nxgetnextentry data_type 4 + +opening data: ch_data +nxopendata status: 1 + +nxgetinfo Status: 1 +Rank: 1 +Dim [ 0]: 10 +Data Type: 4 + +nxget data status: 1 +data : +NeXus Data + +nxgetattrinfo status: 1 +Number of group attributes: 0 +nxgetnextattr status: -1 +nxclosedata status: 1 +nxgetnextentry status: 1 +nxgetnextentry name: i1_data +nxgetnextentry class: SDS +nxgetnextentry data_type 21 + +opening data: i1_data +nxopendata status: 1 + +nxgetinfo Status: 1 +Rank: 2 +Dim [ 0]: 4 +Dim [ 1]: 4 +Data Type: 21 + +nxgetslab status: 1 +data : + 0 4 8 12 + +nxgetslab status: 1 +data : + 1 5 9 13 + +nxgetslab status: 1 +data : + 2 6 10 14 + +nxgetslab status: 1 +data : + 4 7 11 15 + +nxgetattrinfo status: 1 +Number of group attributes: 0 +nxgetnextattr status: -1 +nxclosedata status: 1 +nxgetnextentry status: 1 +nxgetnextentry name: i4_data +nxgetnextentry class: SDS +nxgetnextentry data_type 24 + +opening data: i4_data +nxopendata status: 1 + +nxgetinfo Status: 1 +Rank: 2 +Dim [ 0]: 4 +Dim [ 1]: 4 +Data Type: 24 + +nxgetslab status: 1 +data : + 0 4 8 12 + +nxgetslab status: 1 +data : + 1 5 9 13 + +nxgetslab status: 1 +data : + 2 6 10 14 + +nxgetslab status: 1 +data : + 3 7 11 15 + +nxgetattrinfo status: 1 +Number of group attributes: 0 +nxgetnextattr status: -1 +nxclosedata status: 1 +nxgetnextentry status: 1 +nxgetnextentry name: r4_data +nxgetnextentry class: SDS +nxgetnextentry data_type 5 + +opening data: r4_data +nxopendata status: 1 + +nxgetinfo Status: 1 +Rank: 2 +Dim [ 0]: 4 +Dim [ 1]: 4 +Data Type: 5 + +nxgetslab status: 1 +data : + 0.0110000 0.344000 0.667000 -12.2000 + +nxgetslab status: 1 +data : + 0.0210000 0.556000 1.00000 -13.4440 + +nxgetslab status: 1 +data : + 0.233000 0.667000 10.1000 -14.2220 + +nxgetslab status: 1 +data : + 0.344000 0.778000 11.2220 -15.4440 + +nxgetattrinfo status: 1 +Number of group attributes: 0 +nxgetnextattr status: -1 +nxclosedata status: 1 +nxgetnextentry status: 1 +nxgetnextentry name: r8_data +nxgetnextentry class: SDS +nxgetnextentry data_type 6 + +opening data: r8_data +nxopendata status: 1 + +nxgetinfo Status: 1 +Rank: 2 +Dim [ 0]: 4 +Dim [ 1]: 4 +Data Type: 6 + +nxgetslab status: 1 +data : + 0.0000000 0.0000000 0.0000000 0.0000000 + +nxgetslab status: 1 +data : + 0.0000000 0.0000000 0.0000000 0.0000000 + +nxgetslab status: 1 +data : + 0.011110000 0.021220000 0.23333000 0.34444000 + +nxgetslab status: 1 +data : + 0.0000000 0.0000000 0.0000000 0.0000000 + +nxgetattrinfo status: 1 +Number of group attributes: 4 +Number of global attributes: 4 +nxgetnextattr status: 1 +nxgetattr status 1 +attribute name: ch_attribute +attribute value: NeXus + +nxgetnextattr status: 1 +nxgetattr status 1 +attribute name: i4_attribute +attribute value: 42 + +nxgetnextattr status: 1 +nxgetattr status 1 +attribute name: r4_attribute +attribute value: 3.14159 + +nxgetnextattr status: 1 +nxgetattr status 1 +attribute name: target +attribute value: /entry/r8_data + +nxgetnextattr status: -1 +nxclosedata status: 1 +nxgetnextentry status: 1 +nxgetnextentry name: data +nxgetnextentry class: NXdata +nxgetnextentry data_type 0 + +nxgetnextentry status: 1 +nxgetnextentry name: sample +nxgetnextentry class: NXsample +nxgetnextentry data_type 0 + +nxgetnextentry status: -1 +nxclosegroup status: 1 + +####################### Checking Links ########################### + +nxopengroup status: 1 + +nxopengroup status: 1 + +nxgetgroupid status: 1 +groupid handle: 1 + +nxclosegroup status: 1 + +nxopengroup status: 1 + +nxopendata status: 1 + +nxgetdataid status: 1 +nxclosedata status: 1 +nxclosegroup status: 1 + +nxopendata status: 1 + +nxgetdataid status: 1 +nxclosedata status: 1 +debug +nxsamid status: 1 +Data id: Link check succesfull +nxclosegroup status: 1 + +nxopengroup status: 1 + +nxopengroup status: 1 + +nxgetgroupid status: 1 + +Group Id: Link check succesfull +nxclosegroup status: 1 + +nxopengroup status: 1 + +nxgetgroupid status: 1 + +Group Id Named: Link check succesfull + +nxclosegroup status: 1 + +nxopendata status: 1 + +nxgetdataid status: 1 +Data Id Named: Link check succesfull +nxclosedata status: 1 +Openpath succesfull (/entry/data/comp_data) +Openpath on a relative path (../r8_data) succesfull +nxclose status: 1 +finished napi test +]]) +AT_CLEANUP + AT_BANNER([[Testing the NeXus File Converter.]]) AT_SETUP([Checking HDF4 -> HDF4 ]) AT_CHECK([$HAVE_HDF4 && nxconvert -h4 NXtest.hdf a.a | sed -e 's/\r$//' ],[], @@ -642,9 +2041,9 @@ AT_CLEANUP AT_BANNER([[Testing NXbrowse Tool.]]) AT_SETUP([Checking HDF4 test file]) -AT_CHECK([$HAVE_HDF4 && nxbrowse NXtest.hdf < ${abs_srcdir}/nxbrowse.txt | grep -v 'HDF_version = ' | grep -v 'file_time = ' | sed -e 's/\r$//' | sed -e 's/[ ]*$//' ],[], -[[NXBrowse 4.1.0 Copyright (C) 2000 R. Osborn, M. Koennecke, P. Klosowski - NeXus_version = 4.1.0 +AT_CHECK([$HAVE_HDF4 && env NO_READLINE=1 nxbrowse NXtest.hdf < ${abs_srcdir}/nxbrowse.txt | grep -v 'HDF_version = ' | grep -v 'file_time = ' | sed -e 's/\r$//' | sed -e 's/[ ]*$//' ],[], +[[NXBrowse 4.2.1 Copyright (C) 2009 NeXus Data Format + NeXus_version = 4.2.1 file_name = NXtest.hdf NX> NX Group : entry (NXentry) entry attribute: hugo = namenlos @@ -654,9 +2053,9 @@ NX> ]]) AT_CLEANUP AT_SETUP([Checking HDF5 test file]) -AT_CHECK([$HAVE_HDF5 && nxbrowse NXtest.h5 < ${abs_srcdir}/nxbrowse.txt | grep -v 'HDF5_Version = ' | grep -v 'file_time = ' | sed -e 's/\r$//' | sed -e 's/[ ]*$//' ],[], -[[NXBrowse 4.1.0 Copyright (C) 2000 R. Osborn, M. Koennecke, P. Klosowski - NeXus_version = 4.1.0 +AT_CHECK([$HAVE_HDF5 && env NO_READLINE=1 nxbrowse NXtest.h5 < ${abs_srcdir}/nxbrowse.txt | grep -v 'HDF5_Version = ' | grep -v 'file_time = ' | sed -e 's/\r$//' | sed -e 's/[ ]*$//' ],[], +[[NXBrowse 4.2.1 Copyright (C) 2009 NeXus Data Format + NeXus_version = 4.2.1 file_name = NXtest.h5 NX> NX Group : entry (NXentry) entry attribute: hugo = namenlos @@ -666,13 +2065,13 @@ NX> ]]) AT_CLEANUP AT_SETUP([Checking XML test file]) -AT_CHECK([$HAVE_XML && nxbrowse NXtest.xml < ${abs_srcdir}/nxbrowse.txt | grep -v 'file_time = ' | grep -v 'XML_version = ' | sed -e 's/\r$//' | sed -e 's/[ ]*$//' ],[], -[[NXBrowse 4.1.0 Copyright (C) 2000 R. Osborn, M. Koennecke, P. Klosowski - NeXus_version = 4.1.0 +AT_CHECK([$HAVE_XML && env NO_READLINE=1 nxbrowse NXtest.xml < ${abs_srcdir}/nxbrowse.txt | grep -v 'file_time = ' | grep -v 'XML_version = ' | sed -e 's/\r$//' | sed -e 's/[ ]*$//' ],[], +[[NXBrowse 4.2.1 Copyright (C) 2009 NeXus Data Format + NeXus_version = 4.2.1 file_name = NXtest.xml - xmlns = http://definition.nexusformat.org/schema/3.0 + xmlns = http://definition.nexusformat.org/schema/3.1 xmlns:xsi = http://www.w3.org/2001/XMLSchema-instance - xsi:schemaLocation = http://definition.nexusformat.org/schema/3.0 http://definition.nexusformat.org/schema/3.0/BASE.xsd + xsi:schemaLocation = http://definition.nexusformat.org/schema/3.1 http://definition.nexusformat.org/schema/3.1/BASE.xsd NX> NX Group : entry (NXentry) entry attribute: hugo = namenlos entry attribute: cucumber = passion @@ -700,17 +2099,3 @@ AT_CHECK([$HAVE_XML && nxdir NXtest.xml | sed -e 's/\r$//' ],[], /link/ ]]) AT_CLEANUP - -AT_BANNER([[Testing validating files with the nxvalidate tool.]]) -AT_SETUP([Checking HDF4 test file via web (wget)]) -AT_CHECK([$HAVE_HDF4 && $HAVE_WGET && $SETUP_TEST && napi_test-hdf4 -q && nxvalidate -q -w NXtest.hdf | sed -e 's/\r$//' ],[], -[[]]) -AT_CLEANUP -AT_SETUP([Checking HDF5 test file via web (wget)]) -AT_CHECK([$HAVE_HDF4 && $HAVE_WGET && $SETUP_TEST && napi_test-hdf5 -q && nxvalidate -q -w NXtest.h5 | sed -e 's/\r$//' ],[], -[[]]) -AT_CLEANUP -AT_SETUP([Checking XML test file via web (wget)]) -AT_CHECK([$HAVE_HDF4 && $HAVE_WGET && $SETUP_TEST && napi_test-xml -q && nxvalidate -q -w NXtest.xml | sed -e 's/\r$//' ],[], -[[]]) -AT_CLEANUP