Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
18 #include "Teuchos_ConfigDefs.hpp"
20 
21 
22 namespace Teuchos
23 {
24 
25  using std::string;
26 
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 
XMLInputSource represents a source of XML input that can be parsed to produce an XMLObject.
Teuchos header file which uses auto-configuration information to include necessary C++ headers...
A base class for defining a source of XML input.
#define TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT
virtual ~StringInputSource()
Destructor.
Smart reference counting pointer class for automatic garbage collection.
Instantiation of XMLInputSource class for reading XML from a std::string.