61 ConverterMap::const_iterator
it =
65 "Could not find a FunctionObjectXMLConverter for a FuncitonObject of type " <<
66 function.getTypeAttributeValue() <<
" when writing out a condition to " <<
67 "xml." << std::endl << std::endl
81 "Could not find a FunctionObjectXMLConverter for a condition of type " <<
83 "xml." << std::endl << std::endl
A database for FunctionObjectXMLConverters.
#define TEUCHOS_ADD_SIMPLEFUNCTIONCONVERTERS(T)
Adds a SubtractionFunction, AdditionFunction, MultiplicationFunction, and DivisionFunction of type T ...
#define TEUCHOS_STATIC_SETUP()
Run setup code statically in a translation unit.
A collection of Exceptions thrown when converting FunctionObjects to and from XML.
Thrown when an appropriate FunctionObject Converter can't be found.
static RCP< const FunctionObjectXMLConverter > getConverter(const FunctionObject &function)
Get an appropriate FunctionObjectXMLConverter given a FunctionObject.
static ConverterMap & getConverterMap()
Gets the default converter to be used to convert FunctionObjects.
static void addConverter(RCP< const FunctionObject > function, RCP< FunctionObjectXMLConverter > converterToAdd)
Add a converter to the database.
std::pair< std::string, RCP< FunctionObjectXMLConverter > > ConverterPair
convience typedef.
std::map< std::string, RCP< FunctionObjectXMLConverter > > ConverterMap
convience class.
static XMLObject convertFunctionObject(RCP< const FunctionObject > function)
Given a FunctionObject, converts the FunctionObject to XML.
static RCP< FunctionObject > convertXML(const XMLObject &xmlObject)
Given an XMLObject, converts the XMLObject to a FunctionObject.
static const std::string & getTypeAttributeName()
A function object represents an arbitrary function.
Concrete serial communicator subclass.
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object,...
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Macro for throwing an exception with breakpointing to ease debugging.