|
Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
A datatype for describing the type of application that a Service provides. More...
#include <service_metadata.h>
Public Member Functions | |
| ServiceMetadata * | AllocateServiceMetadata (SchemaTerm *category_p, SchemaTerm *subcategory_p) |
| Allocate a ServiceMetadata object. More... | |
| void | FreeServiceMetadata (ServiceMetadata *metadata_p) |
| Free a ServiceMetadata object. More... | |
| void | ClearServiceMetadata (ServiceMetadata *metadata_p) |
| Clear any data within a ServiceMetadata object. More... | |
| void | SetServiceMetadataValues (ServiceMetadata *metadata_p, SchemaTerm *category_p, SchemaTerm *subcategory_p) |
| Set the values of a ServiceMetadata object. More... | |
| bool | AddServiceMetadataToJSON (const ServiceMetadata *metadata_p, json_t *service_json_p) |
| Add the information from a ServiceMetadata object to a JSON fragment describing a Service. More... | |
| ServiceMetadata * | GetServiceMetadataFromJSON (const json_t *service_json_p) |
| Get a ServiceMetadata object from a JSON fragment. More... | |
Data Fields | |
| SchemaTerm * | sm_application_category_p |
| This is the value used for defining the category of the Service. More... | |
| SchemaTerm * | sm_application_subcategory_p |
| This is the value used for defining the sub-category of the Service. More... | |
| LinkedList * | sm_input_types_p |
| A LinkedList of SchemaTermNodes defining the types of input that the Service can take. More... | |
| LinkedList * | sm_output_types_p |
| A LinkedList of SchemaTermNodes defining the types of output that the Service can generate. More... | |
A datatype for describing the type of application that a Service provides.
| ServiceMetadata * AllocateServiceMetadata | ( | SchemaTerm * | category_p, |
| SchemaTerm * | subcategory_p | ||
| ) |
Allocate a ServiceMetadata object.
| category_p | The top-level application category to use. |
| subcategory_p | The application subcategory to use. |
NULL upon error. | void FreeServiceMetadata | ( | ServiceMetadata * | metadata_p | ) |
Free a ServiceMetadata object.
| metadata_p | The ServiceMetadata to free. |
| void ClearServiceMetadata | ( | ServiceMetadata * | metadata_p | ) |
Clear any data within a ServiceMetadata object.
| metadata_p | The ServiceMetadata to clear. |
| void SetServiceMetadataValues | ( | ServiceMetadata * | metadata_p, |
| SchemaTerm * | category_p, | ||
| SchemaTerm * | subcategory_p | ||
| ) |
Set the values of a ServiceMetadata object.
| metadata_p | The ServiceMetadata to set. |
| category_p | The top-level application category to use. |
| subcategory_p | The application subcategory to use. |
| bool AddServiceMetadataToJSON | ( | const ServiceMetadata * | metadata_p, |
| json_t * | service_json_p | ||
| ) |
Add the information from a ServiceMetadata object to a JSON fragment describing a Service.
| metadata_p | The ServiceMetadata to get the values from. |
| service_json_p | The JSON fragment where the metadata information will be added. |
true if the ServiceMetadata information was added successfully, false if it was not. | ServiceMetadata * GetServiceMetadataFromJSON | ( | const json_t * | service_json_p | ) |
Get a ServiceMetadata object from a JSON fragment.
| service_json_p | The JSON fragment for a Service to get the ServiceMetadata from. |
NULL upon error. | SchemaTerm* sm_application_category_p |
This is the value used for defining the category of the Service.
| SchemaTerm* sm_application_subcategory_p |
This is the value used for defining the sub-category of the Service.
| LinkedList* sm_input_types_p |
A LinkedList of SchemaTermNodes defining the types of input that the Service can take.
| LinkedList* sm_output_types_p |
A LinkedList of SchemaTermNodes defining the types of output that the Service can generate.