Teuchos - Trilinos Tools Package Version of the Day
Loading...
Searching...
No Matches
Teuchos_ConditionXMLConverter.hpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// Teuchos: Common Tools Package
4//
5// Copyright 2004 NTESS and the Teuchos contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef TEUCHOS_CONDITIONXMLCONVERTER_HPP
11#define TEUCHOS_CONDITIONXMLCONVERTER_HPP
12
18#include "Teuchos_XMLObject.hpp"
19#include "Teuchos_Describable.hpp"
20#include "Teuchos_Condition.hpp"
23
24
25namespace Teuchos {
26
27
31class TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT ConditionXMLConverter : public Describable {
32
33public:
34
37
46 fromXMLtoCondition(
47 const XMLObject& xmlObj,
49
60 const XMLObject& xmlObj,
62
70 XMLObject fromConditiontoXML(
73
84 virtual void convertCondition(
88
90
92
93
95 static const std::string& getTypeAttributeName(){
96 static const std::string typeAttributeName = "type";
97 return typeAttributeName;
98 }
99
101
102};
103
104
105} // namespace Teuchos
106
107
108#endif // TEUCHOS_CONDITIONXMLCONVERTER_HPP
An object to determin if a particular set of conditions are occuring.
An object representation of a subset of XML data.
Writes an XML object to a parameter list.
Writes a ParameterList to an XML object.
An abstract base class for converting Dependencies to and from XML.
static const std::string & getTypeAttributeName()
Returns the string to be used for the type attribute.
virtual RCP< Condition > convertXML(const XMLObject &xmlObj, const XMLParameterListReader::EntryIDsMap &entryIDsMap) const =0
Preforms any and all special xml conversion that is specific to a particular Condition.
virtual void convertCondition(const RCP< const Condition > condition, XMLObject &xmlObj, const XMLParameterListWriter::EntryIDsMap &entryIDsMap) const =0
Preforms any and all special condition conversion that is specific to a particlar Condition.
Base class for all objects that can describe themselves.
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
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...