Teuchos - Trilinos Tools Package Version of the Day
Loading...
Searching...
No Matches
Teuchos_FileInputSource.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
12
13using namespace Teuchos;
14
15
17 : XMLInputSource(), filename_(filename)
18{;}
19
21{
22 return rcp(new FileInputStream(filename_), true);
23}
24
Definition of XMLInputSource derived class for reading XML from a file.
Definition of XMLInputStream derived class for reading XML from a file.
FileInputSource(const std::string &filename)
Constructor.
virtual RCP< XMLInputStream > stream() const
Create a FileInputStream.
Instantiation of XMLInputStream class for reading an entire document from a file.
Smart reference counting pointer class for automatic garbage collection.
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,...
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.