34 #ifndef STK_UTIL_ENVIRONMENT_PRODUCTREGISTRY_HPP 35 #define STK_UTIL_ENVIRONMENT_PRODUCTREGISTRY_HPP 102 m_registryOK =
false;
122 return m_productName;
211 const std::string &
getProductAttribute(
const std::string &name,
const std::string &attribute)
const;
243 void setProductAttribute(
const std::string &name,
const std::string &attribute,
const std::string &value);
266 std::string m_productName;
272 #ifdef STK_BUILT_IN_SIERRA 273 #undef VERSION // Nice, Trilinos leaves us this gem 280 #endif // STK_BUILT_IN_SIERRA 283 #endif // STK_UTIL_ENVIRONMENT_PRODUCTREGISTRY_HPP static const std::string BANNER_DETAIL
Product's additional banner info attribute.
ProductMap & getProductMap() const
Member function getProductMap returns a reference to the map of all products.
static const std::string TITLE
Product's title attribute.
static const std::string PRODUCT_TYPE_REGION
Region product_type value.
void setProductAttribute(const std::string &name, const std::string &attribute, const std::string &value)
Member function setAttribute sets the attribute for the named poduct to the specified value...
std::map< std::string, AttributeMap > ProductMap
Map of product name to attribute map.
static const std::string BUILD_TIME
Product's build_time attribute.
Class ProductRegistry maps product names and attributes to brief descriptive values. Each added product has at a minimum the NAME value initialized. A region type product also has the PRODUCT_TYPE set to PRODUCT_TYPE_REGION.
static const std::string CONTACT
Product's contact attribute.
bool isRegistryOK()
Member function isRegistryOK returns true if the registry has not been flagged as having an error via...
static const char * version()
Member function version returns the version number of the combined product.
static ProductRegistry & instance()
Member function instance returns a reference to the registry singleton.
void setProductName(const std::string &product_name)
Member function setProductName sets the product name.
static const std::string REGION_TITLE
Product's region_title attribute.
const std::string & getProductName() const
Member function getProductName returns the product name.
const std::string & getProductAttribute(const std::string &name, const std::string &attribute) const
Member function getAttribute returns the attribute for the named product.
AttributeMap & addTPL(const std::string &name, const std::string &version, const std::string &qualifier="")
Member function addTPL adds a product to the registry. A product always has the VERSION and QUALIFIER...
static const std::string QUALIFIER
TPL's qualifier attribute.
static const std::string EXECUTABLE
Product's executable attribute.
static const std::string COPYRIGHT
Product's copyright information.
std::map< std::string, std::string > AttributeMap
Map of attribute keyword to value.
AttributeMap & addRegion(const std::string &name)
Member function addRegion add a region as a product to the registry. A region product is a product wi...
static const std::string ERROR
Product's error attribute.
static const std::string VERSION
TPL's version attribute.
static const std::string PRODUCT_TYPE
Product's product_type attribute.
void setRegistryInvalid()
Member function setRegistryInvalid marks th registry as contain a conflict of some sort...
static const std::string NAME
Product's name attribute.
AttributeMap & addProduct(const std::string &name)
Member function addProduct adds a product to the registry.
AttributeMap & getProductAttributeMap(const std::string &name)
Member function getProduct returns a reference to the product attribute map.
const std::string & product_name()
Function product_name returns the product's name. This name is used to query the product registry for...