Teuchos - Trilinos Tools Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
11 
12 namespace Teuchos{
13 
14 
16  return "any";
17 }
18 
20  RCP<const ParameterEntry> entry) const
21 {
22  return toString(entry->getAny(false));
23 }
24 
26  return any(xmlObj.getRequired(getValueAttributeName()));
27 }
28 
29 
30 } //namespace Teuchos
31 
A collection of standard ParameterEntryXMLConverters.
Modified boost::any class, which is a container for a templated value.
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object...
const std::string getValueAttributeValue(RCP< const ParameterEntry > entry) const
Smart reference counting pointer class for automatic garbage collection.
const std::string & getRequired(const std::string &name) const
Get an attribute, throwing an std::exception if it is not found.