Teuchos - Trilinos Tools Package
Version of the Day
Loading...
Searching...
No Matches
parameterlist
src
Teuchos_StringInputSource.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_StringInputSource.hpp
"
11
#include "
Teuchos_StringInputStream.hpp
"
12
13
using namespace
Teuchos
;
14
15
16
StringInputSource::StringInputSource
(
const
std::string& text)
17
:
XMLInputSource
(), text_(text)
18
{;}
19
20
RCP<XMLInputStream>
StringInputSource::stream
()
const
21
{
22
return
rcp
(
new
StringInputStream
(text_),
true
);
23
}
24
Teuchos_StringInputSource.hpp
Definition of XMLInputSource derived class for reading XML from a std::string.
Teuchos_StringInputStream.hpp
Definition of XMLInputStream derived class for reading XML from a std::string.
Teuchos::RCP
Smart reference counting pointer class for automatic garbage collection.
Definition
Teuchos_RCPDecl.hpp:397
Teuchos::StringInputSource::stream
virtual RCP< XMLInputStream > stream() const
Create a StringInputStream.
Definition
Teuchos_StringInputSource.cpp:20
Teuchos::StringInputSource::StringInputSource
StringInputSource(const std::string &text)
Constructor.
Definition
Teuchos_StringInputSource.cpp:16
Teuchos::StringInputStream
Instantiation of XMLInputStream for reading an entire document from a std::string.
Definition
Teuchos_StringInputStream.hpp:33
Teuchos::XMLInputSource
XMLInputSource represents a source of XML input that can be parsed to produce an XMLObject.
Definition
Teuchos_XMLInputSource.hpp:40
Teuchos
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
Teuchos::rcp
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
Definition
Teuchos_RCPDecl.hpp:1234
Generated on Thu Oct 9 2025 20:59:56 for Teuchos - Trilinos Tools Package by
1.9.8