Teuchos - Trilinos Tools Package Version of the Day
Loading...
Searching...
No Matches
Teuchos_StringInputSource.hpp
Go to the documentation of this file.
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#ifndef Teuchos_STRINGINPUTSOURCE_H
11#define Teuchos_STRINGINPUTSOURCE_H
12
20
21
22namespace Teuchos
23{
24
25 using std::string;
26
30 class TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT StringInputSource : public XMLInputSource
31 {
32 public:
34 StringInputSource(const std::string& text);
35
37 virtual ~StringInputSource(){;}
38
40 virtual RCP<XMLInputStream> stream() const;
41
42 private:
43 std::string text_;
44 };
45
46
47}
48#endif
49
Teuchos header file which uses auto-configuration information to include necessary C++ headers.
A base class for defining a source of XML input.
Smart reference counting pointer class for automatic garbage collection.
Instantiation of XMLInputSource class for reading XML from a std::string.
XMLInputSource represents a source of XML input that can be parsed to produce an XMLObject.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...