| Home | Trees | Indices | Help |
|
|---|
|
|
shlex.shlex --+
|
BaseParser --+
|
DDSParser
A parser for Dataset Descriptor Structure.
First we create a dataset and get its DDS:>>> dataset = DatasetType(name='test') >>> dataset['a'] = BaseType(name='a', data=1) >>> from dap.server import SimpleHandler >>> headers, output = SimpleHandler(dataset).dds() >>> dds = ''.join(output) >>> print dds Dataset { Int32 a; } test; <BLANKLINE>Now we try to parse it. We'll get a second dataset that should have the same DDS:
>>> dataset2 = DDSParser(dds, '').parse() >>> headers, output = SimpleHandler(dataset2).dds() >>> print ''.join(output) Dataset { Int32 a; } test; <BLANKLINE>QED.
|
|||
| __init__(self, dds, url, cache=None, username=None, password=None) | ||
|
parse(self) Parse the DDS and return a ``DatasetType`` object. |
||
| _dataset(self) | ||
| _declaration(self) | ||
| _base_declaration(self) | ||
| _dimensions(self) | ||
| _sequence(self) | ||
| _structure(self) | ||
| _grid(self) | ||
|
Inherited from Inherited from |
|||
|
|||
|
|
|
|
|
|
|
|
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0alpha3 on Mon Nov 13 21:49:07 2006 | http://epydoc.sourceforge.net |