Teuchos - Trilinos Tools Package
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
parameterlist
src
Teuchos_ConditionXMLConverter.cpp
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
#include "
Teuchos_ConditionXMLConverter.hpp
"
11
12
13
namespace
Teuchos
{
14
15
16
RCP<Condition>
17
ConditionXMLConverter::fromXMLtoCondition
(
const
XMLObject
&xmlObj,
18
const
XMLParameterListReader::EntryIDsMap
& entryIDsMap)
const
19
{
20
return
convertXML
(xmlObj, entryIDsMap);
21
}
22
23
XMLObject
24
ConditionXMLConverter::fromConditiontoXML
(
25
const
RCP<const Condition>
condition,
26
const
XMLParameterListWriter::EntryIDsMap
& entryIDsMap)
const
27
{
28
XMLObject
toReturn(
Condition::getXMLTagName
());
29
toReturn.
addAttribute
(
30
getTypeAttributeName
(), condition->getTypeAttributeValue());
31
convertCondition
(condition, toReturn, entryIDsMap);
32
return
toReturn;
33
}
34
35
36
}
// namespace Teuchos
37
Teuchos_ConditionXMLConverter.hpp
Converts back and forth between XML and Dependencies.
Teuchos::Condition::getXMLTagName
static const std::string & getXMLTagName()
Definition
Teuchos_Condition.hpp:86
Teuchos::ConditionXMLConverter::getTypeAttributeName
static const std::string & getTypeAttributeName()
Returns the string to be used for the type attribute.
Definition
Teuchos_ConditionXMLConverter.hpp:95
Teuchos::ConditionXMLConverter::convertXML
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.
Teuchos::ConditionXMLConverter::fromConditiontoXML
XMLObject fromConditiontoXML(const RCP< const Condition > condition, const XMLParameterListWriter::EntryIDsMap &entryIDsMap) const
Converters a given ParameterEntryValidator to XML.
Definition
Teuchos_ConditionXMLConverter.cpp:24
Teuchos::ConditionXMLConverter::fromXMLtoCondition
RCP< Condition > fromXMLtoCondition(const XMLObject &xmlObj, const XMLParameterListReader::EntryIDsMap &entryIDsMap) const
Converts a given XMLObject to a Condition.
Definition
Teuchos_ConditionXMLConverter.cpp:17
Teuchos::ConditionXMLConverter::convertCondition
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.
Teuchos::RCP
Smart reference counting pointer class for automatic garbage collection.
Definition
Teuchos_RCPDecl.hpp:397
Teuchos::XMLObject
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object,...
Definition
Teuchos_XMLObject.hpp:30
Teuchos::XMLObject::addAttribute
void addAttribute(const std::string &name, T value)
Lookup whether or not Doubles are allowed.
Definition
Teuchos_XMLObject.hpp:161
Teuchos::XMLParameterListReader::EntryIDsMap
std::map< ParameterEntry::ParameterEntryID, RCP< ParameterEntry > > EntryIDsMap
Convenience typedef.
Definition
Teuchos_XMLParameterListReader.hpp:40
Teuchos::XMLParameterListWriter::EntryIDsMap
std::map< RCP< const ParameterEntry >, ParameterEntry::ParameterEntryID, RCPConstComp > EntryIDsMap
Definition
Teuchos_XMLParameterListWriter.hpp:41
Teuchos
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
Generated by
1.17.0