An RDMQuery represents the body of an RDM. An RDMQuery structure has one public field, soif, which is a SOIF containing a collection of attribute-value pairs. The allowable attribute names of the attribute-value pairs in the SOIF are:
scope (required)
view-attributes (optional)
view-hit (optional)
view-order (optional)
view-template (optional)
You can use the following macros to get and set the string values of these attributes:
RDMQuery_GetScope(query) RDMQuery_GetViewAttr(query) RDMQuery_GetViewHits(query) RDMQuery_GetViewOrder(query) RDMQuery_GetViewTemplate(query) RDMQuery_SetScope(query, value) RDMQuery_SetViewAttr(query,value-list) RDMQuery_SetViewHits(query,value) RDMQuery_SetViewOrder(query,value-list) RDMQuery_SetViewTemplate(query,value)
NSAPI_PUBLIC RDMQuery *RDMQuery_Parse(SOIFStream *ss);
NSAPI_PUBLIC RDMQuery *RDMQuery_Create(const char *scope);
NSAPI_PUBLIC int RDMQuery_Free(RDMQuery *);
NSAPI_PUBLIC int RDMQuery_Merge(RDMQuery *, SOIF *);
In addition to RDMHeader and RDMQuery, the file rdm.h provides definitions and functions for the following auxiliary objects. See the file rdm.h in PortalServer-base/sdk/rdm/include directory for details.
RDMRequest
RDMResponse
RDMServer
RDMView
RDMViewHits
RDMViewOrder
RDMTaxonomy
RDMClassification
RDMSchema