das2C
das core C utilities (v3)
Loading...
Searching...
No Matches
DasUriSegDef Struct Reference

Definition of one coordinate type for use by the URI template parser. More...

#include <das3/uri.h>

Collaboration diagram for DasUriSegDef:
Collaboration graph
[legend]

Detailed Description

Definition of one coordinate type for use by the URI template parser.

Register one or more of these with a DasUriTplt before calling DasUriTplt_pattern(). The template copies the definition and the field array into its own heap storage, so the caller's DasUriSegDef and its pFields array may be stack-allocated and may go out of scope after DasUriTplt_register() returns.

Example — Voyager spacecraft clock:

DasUriField aSclkFlds[] = {
{ 'P', "partition", 1, 0, 9 },
{ 'M', "mod64k", 5, 0, 65535 },
{ 'S', "mod60", 2, 0, 59 },
{ 'L', "line", 3, 1, 800 },
};
DasUriSegDef sclkDef = { "sclk", 4, aSclkFlds };
DasUriTplt_register(pTplt, &sclkDef);
One sub-field within a named coordinate type.
Definition uri.h:222
Definition of one coordinate type for use by the URI template parser.
Definition uri.h:254

Use das_time_uridef() to obtain the pre-built definition for the time coordinate rather than constructing it by hand.


The documentation for this struct was generated from the following file: