product_registry.h File Reference


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.

#include <stddef.h>

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.
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.
size_t product_registry_size ()
 Extern "C" function product_registry_size returns the number of products in the registry.


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:
name a 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:
name a char const pointer to the product's name.
version a char const pointer to the product's version string.
qualifier a 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.


Generated on Tue Jul 13 09:27:32 2010 for Sierra Toolkit by  doxygen 1.4.7