|
Teuchos - Trilinos Tools Package
Version of the Day
|
Go to the documentation of this file.
42 #ifndef TEUCHOS_STANDARDCONDITIONXMLCONVERTERS_HPP
43 #define TEUCHOS_STANDARDCONDITIONXMLCONVERTERS_HPP
228 virtual void addSpecificXMLTraits(
242 void convertCondition(
255 static const std::string& getParameterEntryIdAttributeName(){
256 static const std::string parameterEntryIdAttributeName =
"parameterId";
257 return parameterEntryIdAttributeName;
296 static const std::string& getValuesTagName(){
297 static const std::string valuesTagName =
"Values";
298 return valuesTagName;
302 static const std::string& getStringTagName(){
303 static const std::string stringTagName =
"String";
304 return stringTagName;
308 static const std::string& getStringValueAttributeName(){
309 static const std::string stringValueAttributeName =
"value";
310 return stringValueAttributeName;
380 if(functionTag == -1){
399 castedCondition->getFunctionObject();
400 if(!functionObject.is_null()){
412 #endif // TEUCHOS_STANDARDCONDITIONXMLCONVERTERS_HPP
virtual RCP< Condition > convertXML(const XMLObject &xmlObj, const XMLParameterListReader::EntryIDsMap &entryIDsMap) const
void addSpecificXMLTraits(RCP< const ParameterCondition > condition, XMLObject &xmlObj) const
An xml converter for EqualsConditions.
RCP< BoolLogicCondition > getSpecificBoolLogicCondition(Condition::ConstConditionList &conditions) const
RCP< BoolLogicCondition > getSpecificBoolLogicCondition(Condition::ConstConditionList &conditions) const
void addSpecificXMLTraits(RCP< const ParameterCondition > condition, XMLObject &xmlObj) const
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object,...
An xml converter for StringConditions The valid XML represntation for a StringCondition is:
virtual RCP< Condition > convertXML(const XMLObject &xmlObj, const XMLParameterListReader::EntryIDsMap &entryIDsMap) const
std::map< ParameterEntry::ParameterEntryID, RCP< ParameterEntry > > EntryIDsMap
Convenience typedef.
int findFirstChild(std::string tagName) const
Returns the index of the first child found with the given tag name. Returns -1 if no child is found.
An xml converter for NumberConditions The valid XML represntation for a NumberCondition is:
An xml converter for AndConditions.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
An xml converter for ParameterConditions.
RCP< ParameterCondition > getSpecificParameterCondition(const XMLObject &xmlObj, RCP< ParameterEntry > parameterEntry) const
Smart reference counting pointer class for automatic garbage collection.
Replacement for std::vector that is compatible with the Teuchos Memory Management classes.
std::map< RCP< const ParameterEntry >, ParameterEntry::ParameterEntryID, RCPConstComp > EntryIDsMap
An xml converter for BoolLogicConditions.
static RCP< FunctionObject > convertXML(const XMLObject &xmlObject)
Given an XMLObject, converts the XMLObject to a FunctionObject.
A Number Condition is a Parameter Condition that evaluates whether or not a number parameter is great...
An xml converter for NotConditions.
Converts back and forth between XML and Dependencies.
RCP< ParameterCondition > getSpecificParameterCondition(const XMLObject &xmlObj, RCP< ParameterEntry > parameterEntry) const
void addChild(const XMLObject &child)
Add a child node to the node.
const XMLObject & getChild(int i) const
Return the i-th child node.
An xml converter for BoolConditions.
An xml converter for OrConditions.
RCP< ParameterCondition > getSpecificParameterCondition(const XMLObject &xmlObj, RCP< ParameterEntry > parameterEntry) const
void convertCondition(const RCP< const Condition > condition, XMLObject &xmlObj, const XMLParameterListWriter::EntryIDsMap &entryIDsMap) const
void convertCondition(const RCP< const Condition > condition, XMLObject &xmlObj, const XMLParameterListWriter::EntryIDsMap &entryIDsMap) const
RCP< BoolLogicCondition > getSpecificBoolLogicCondition(Condition::ConstConditionList &conditions) const
static XMLObject convertFunctionObject(RCP< const FunctionObject > function)
Given a FunctionObject, converts the FunctionObject to XML.
void addSpecificXMLTraits(RCP< const ParameterCondition > condition, XMLObject &xmlObj) const
static const std::string & getXMLTagName()
Returns the name of the XML tag used to indicate a funciton object.
A database for FunctionObjectXMLConverters.
virtual RCP< BoolLogicCondition > getSpecificBoolLogicCondition(Condition::ConstConditionList &conditions) const =0
Gets the specific BoolLogicCondition to be returned by this conveter when converting from XML.
An abstract base class for converting Dependencies to and from XML.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
Standard Conditions to be used.