Teuchos - Trilinos Tools Package
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
parameterlist
src
Teuchos_StandardParameterEntryXMLConverters.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_StandardParameterEntryXMLConverters.hpp
"
11
12
namespace
Teuchos
{
13
14
15
const
std::string
AnyParameterEntryConverter::getTypeAttributeValue
()
const
{
16
return
"any"
;
17
}
18
19
const
std::string
AnyParameterEntryConverter::getValueAttributeValue
(
20
RCP<const ParameterEntry>
entry)
const
21
{
22
return
toString(entry->getAny(
false
));
23
}
24
25
any
AnyParameterEntryConverter::getAny
(
const
XMLObject
& xmlObj)
const
{
26
return
any
(xmlObj.
getRequired
(
getValueAttributeName
()));
27
}
28
29
30
}
//namespace Teuchos
31
Teuchos_StandardParameterEntryXMLConverters.hpp
A collection of standard ParameterEntryXMLConverters.
Teuchos::AnyParameterEntryConverter::getValueAttributeValue
const std::string getValueAttributeValue(RCP< const ParameterEntry > entry) const
Definition
Teuchos_StandardParameterEntryXMLConverters.cpp:19
Teuchos::AnyParameterEntryConverter::getAny
any getAny(const XMLObject &xmlObj) const
Definition
Teuchos_StandardParameterEntryXMLConverters.cpp:25
Teuchos::AnyParameterEntryConverter::getTypeAttributeValue
const std::string getTypeAttributeValue() const
Definition
Teuchos_StandardParameterEntryXMLConverters.cpp:15
Teuchos::ParameterEntryXMLConverter::getValueAttributeName
static const std::string & getValueAttributeName()
Definition
Teuchos_ParameterEntryXMLConverter.hpp:94
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::getRequired
const std::string & getRequired(const std::string &name) const
Get an attribute, throwing an std::exception if it is not found.
Definition
Teuchos_XMLObject.cpp:61
Teuchos::any
Modified boost::any class, which is a container for a templated value.
Definition
Teuchos_any.hpp:123
Teuchos
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
Generated by
1.17.0