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.
SchemaTermNode Struct Reference

A datatype for storing SchemaTerms in a LinkedList. More...

#include <schema_term.h>

Collaboration diagram for SchemaTermNode:
[legend]

Public Member Functions

SchemaTermNodeAllocateSchemaTermNodeByParts (const char *url_s, const char *name_s, const char *description_s)
 Allocate a SchemaTermNode. More...
 
SchemaTermNodeAllocateSchemaTermNode (SchemaTerm *term_p)
 Allocate a SchemaTermNode to store the given SchemaTerm. More...
 
void FreeSchemaTermNode (ListItem *node_p)
 Free a SchemaTermNode. More...
 

Data Fields

ListItem stn_node
 The base list node. More...
 
SchemaTermstn_term_p
 The SchemaTerm to store on the node. More...
 

Detailed Description

A datatype for storing SchemaTerms in a LinkedList.

Member Function Documentation

◆ AllocateSchemaTermNodeByParts()

SchemaTermNode * AllocateSchemaTermNodeByParts ( const char *  url_s,
const char *  name_s,
const char *  description_s 
)

Allocate a SchemaTermNode.

This will create a new SchemaTerm and store it on the newly-created SchemaTermNode.

Parameters
url_sThe url for the SchemaTerm.
name_sThe name to give to the SchemaTerm.
description_sThe description to give to the SchemaTerm.
Returns
The new SchemaTermNode or NULL upon error.

◆ AllocateSchemaTermNode()

SchemaTermNode * AllocateSchemaTermNode ( SchemaTerm term_p)

Allocate a SchemaTermNode to store the given SchemaTerm.

Parameters
term_pThe SchemaTerm.
Returns
The new SchemaTermNode or NULL upon error.

◆ FreeSchemaTermNode()

void FreeSchemaTermNode ( ListItem node_p)

Free a SchemaTermNode.

The associated SchemaTerm stored on the given SchemaTermNode will also be freed.

Parameters
node_pThe SchemaTermNode to free.

Field Documentation

◆ stn_node

ListItem stn_node

The base list node.

◆ stn_term_p

SchemaTerm* stn_term_p

The SchemaTerm to store on the node.


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