126 #define D2URI_ROOT "tag:das2.org,2012:"
127 #define D2URI_SITES D2URI_ROOT "site"
128 #define D2URI_SITE_UIOWA D2URI_SITES ":/uiowa"
131 #define D2FRAG_TYPE "type"
132 #define D2FRAG_NAME "name"
133 #define D2FRAG_TITLE "title"
134 #define D2FRAG_DESC "description"
135 #define D2FRAG_SUB_PATHS "catalog"
136 #define D2FRAG_PATH_SEP "separator"
137 #define D2FRAG_SOURCES "sources"
138 #define D2FRAG_URLS "urls"
141 #define D2CV_TYPE_CATALOG "Catalog"
142 #define D2CV_TYPE_COLLECTION "Collection"
143 #define D2CV_TYPE_STREAM "HttpStreamSrc"
144 #define D2CV_TYPE_TIMEAGG "FileTimeAgg"
145 #define D2CV_TYPE_SPASE "SpaseRecord"
146 #define D2Cv_TYPE_SPDF_MASTER "SpdfMasterCat"
149 typedef enum das_node_type_enum {
150 d2node_inv = 0, d2node_catalog = 1, d2node_collection = 2,
151 d2node_stream_src = 3, d2node_file_agg = 4, d2node_spdf_cat = 5,
160 typedef struct das_node {
161 das_node_type_e nType;
212 const char* sPathUri,
DasCredMngr* pMgr,
const char* sAgent
360 bool DasNode_isJson(
const DasNode* pThis);
const char * DasNode_title(const DasNode *pThis)
Get the node short description, if provided.
const DasJdo * DasNode_getJdo(const DasNode *pThis, const char *sFragment)
Get a JSON document object at a fragment location in a node.
DasNode * new_RootNode_url(const char *sUrl, const char *sPathUri, DasCredMngr *pMgr, const char *sAgent)
Create a new root catalog node via direct URL.
das_json_type_e
The various types JSON values can be.
Definition: json.h:74
Credentials manager Handles a list of login credentials and supplies these as needed for network oper...
Definition: credentials.h:94
Base type for das2 catalog nodes.
Definition: node.h:160
A dynamic buffer with multi-dimensional array style access.
const char * DasNode_srcUrl(const DasNode *pThis)
Get the location from which this catalog node was read.
bool DasNode_isSpdfCat(const DasNode *pNode)
Determine if this node is an SPDF catalog.
Sheredom's json.h parser with global symbol name changes.
bool DasNode_isCatalog(const DasNode *pNode)
Returns true this node can contain sub nodes.
bool DasNode_isSpaseRec(const DasNode *pNode)
Determine if this node is a SPASE record.
DasNode * DasNode_subNode(DasNode *pThis, const char *sRelPath, DasCredMngr *pMgr, const char *sAgent)
Get a das2 catalog node contained item.
Handle storing credentials during a Das2 session and optionally save them to a file.
const char * DasNode_pathUri(const DasNode *pThis)
Get the path URI for this catalog node.
das_node_type_e DasNode_type(const DasNode *pThis)
Get the type of node This is a more specific question than the 'is' functions below, which should probably be used instead so that application code can work in a "duck-typing" manner.
const DasJdo * DasNode_getJdoType(const DasNode *pThis, enum das_json_type_e, const char *sFragment)
Get a JSON document object of a particular type at a fragment location.
DasNode * new_RootNode(const char *sPathUri, DasCredMngr *pMgr, const char *sAgent)
Create a new root catalog node via a path URI.
JSON Dom Element.
Definition: json.h:152
void del_RootNode(DasNode *pNode)
Delete a root node freeing it's memory.
const char * DasNode_name(const DasNode *pThis)
Get the node title.
bool DasNode_isStreamSrc(const DasNode *pNode)
Determine if this node defines a das2 stream source.