Sierra Toolkit Version of the Day
product_registry.h File Reference
#include <stddef.h>
Include dependency graph for product_registry.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void product_registry_add (const char *name)
 Extern "C" function product_registry_add provides a means for c programs to register a product. The arguments are passed on to ProductRegistry::addProduct()/.
void product_registry_add_tpl (const char *name, const char *version, const char *qualifier)
 Extern "C" function product_registry_add_tpl provides a means for c programs to register a tpl. The arguments are passed on to ProductRegistry::addTpl()/.
size_t product_registry_size ()
 Extern "C" function product_registry_size returns the number of products in the registry.

Detailed Description

Author:
H. Carter Edwards
Date:
October 2002
Product Registry
These 'C' functions support a registry of products that are linked into an application. Each product has a name, version, and optional qualifier. Re-registration of products is permitted; however, the second and subsequent registrations must be identical to the first registration. The product registry may be searched and iterated.
Why 'C' instead of 'C++'
As a general utility this simple product registry may be called from C++, C, or even FORTRAN.

Definition in file product_registry.h.


Function Documentation

void product_registry_add ( const char *  name)

Extern "C" function product_registry_add provides a means for c programs to register a product. The arguments are passed on to ProductRegistry::addProduct()/.

Parameters:
namea char const pointer to the product's name.

Definition at line 176 of file ProductRegistry.cpp.

void product_registry_add_tpl ( const char *  name,
const char *  version,
const char *  qualifier 
)

Extern "C" function product_registry_add_tpl provides a means for c programs to register a tpl. The arguments are passed on to ProductRegistry::addTpl()/.

Parameters:
namea char const pointer to the product's name.
versiona char const pointer to the product's version string.
qualifiera char const pointer to the product's qualifier string.

Definition at line 184 of file ProductRegistry.cpp.

size_t product_registry_size ( )

Extern "C" function product_registry_size returns the number of products in the registry.

Returns:
an int value of the number of products in the registry.

Definition at line 194 of file ProductRegistry.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends