12#include "Teuchos_StaticSetupMacro.hpp" 
   22  getConverterMap().insert(
 
 
   29  ConverterMap::const_iterator 
it =
 
   30    getConverterMap().find(
condition.getTypeAttributeValue());
 
   33    "Could not find a ConditionXMLConverter for a condition of type " <<
 
   34    condition.getTypeAttributeValue() << 
" when writing out a condition to " <<
 
   35    "xml." << std::endl << std::endl
 
 
   46  ConverterMap::const_iterator 
it = getConverterMap().find(
conditionType);
 
   49    "Could not find a ConditionXMLConverter for a condition of type " <<
 
   51    "xml." << std::endl << std::endl
 
 
   71ConditionXMLConverterDB::ConverterMap&
 
   72ConditionXMLConverterDB::getConverterMap()
 
A database for ConditionXMLConverters.
 
#define TEUCHOS_ADD_NUMBERCONDITION_CONVERTER(T)
Adds a NumberCondition of type T.
 
A collection of Exceptions thrown when converting Conditions to and from XML.
 
Thrown when an appropriate Condition Converter can't be found.
 
static RCP< const ConditionXMLConverter > getConverter(const Condition &condition)
Get an appropriate ConditionXMLConverter given a Condition.
 
static RCP< Condition > convertXML(const XMLObject &xmlObject, const XMLParameterListReader::EntryIDsMap &entryIDsMap)
Given an XMLObject and IDtoConditionMap, converts the XMLObject to a Condition.
 
static void addConverter(RCP< const Condition > condition, RCP< ConditionXMLConverter > converterToAdd)
Add a converter to the database.
 
static XMLObject convertCondition(RCP< const Condition > condition, const XMLParameterListWriter::EntryIDsMap &entryIDsMap)
Given a condition and ConditiontoIDMap, converts the condition to XML.
 
static const std::string & getTypeAttributeName()
Returns the string to be used for the type attribute.
 
A Condition determines whether or not a particular set of conditions are currently occuring.
 
Smart reference counting pointer class for automatic garbage collection.
 
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object,...
 
std::map< ParameterEntry::ParameterEntryID, RCP< ParameterEntry > > EntryIDsMap
Convenience typedef.
 
std::map< RCP< const ParameterEntry >, ParameterEntry::ParameterEntryID, RCPConstComp > EntryIDsMap
 
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Macro for throwing an exception with breakpointing to ease debugging.
 
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
 
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.