Teuchos - Trilinos Tools Package
Version of the Day
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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::XMLInputSource
XMLInputSource represents a source of XML input that can be parsed to produce an XMLObject.
Definition:
Teuchos_XMLInputSource.hpp:39
Teuchos::StringInputStream
Instantiation of XMLInputStream for reading an entire document from a std::string.
Definition:
Teuchos_StringInputStream.hpp:32
Teuchos::rcp
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
Definition:
Teuchos_RCPDecl.hpp:1234
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_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
Generated on Thu Nov 21 2024 09:21:49 for Teuchos - Trilinos Tools Package by
1.8.5