Rosetta
Public Member Functions | Private Attributes | List of all members
utility::io::GeneralFileContents Class Reference

#include <GeneralFileManager.hh>

Inheritance diagram for utility::io::GeneralFileContents:
Inheritance graph
[legend]

Public Member Functions

 GeneralFileContents ()=delete
 Default constructor is explicitly deleted. More...
 
 GeneralFileContents (std::string const &filename)
 File contents constructor. More...
 
 ~GeneralFileContents () override
 Destructor. More...
 
GeneralFileContentsOP clone () const
 Clone function: make a copy of this object and return an owning pointer to the copy. More...
 
std::string const & get_file_contents () const
 
- Public Member Functions inherited from utility::VirtualBase
 VirtualBase ()=default
 Default constructor. More...
 
virtual ~VirtualBase ()=default
 The virtual destructor is one of the main reasons for the VirtualBase class. More...
 
 VirtualBase (VirtualBase const &)=default
 
 VirtualBase (VirtualBase &&)=default
 
VirtualBaseoperator= (VirtualBase const &)=default
 
VirtualBaseoperator= (VirtualBase &&)=default
 

Private Attributes

std::string file_contents_
 

Constructor & Destructor Documentation

◆ GeneralFileContents() [1/2]

utility::io::GeneralFileContents::GeneralFileContents ( )
delete

Default constructor is explicitly deleted.

◆ GeneralFileContents() [2/2]

utility::io::GeneralFileContents::GeneralFileContents ( std::string const &  filename)

File contents constructor.

References utility::file_contents(), file_contents_, and utility::filename().

◆ ~GeneralFileContents()

utility::io::GeneralFileContents::~GeneralFileContents ( )
override

Destructor.

Member Function Documentation

◆ clone()

GeneralFileContentsOP utility::io::GeneralFileContents::clone ( ) const

Clone function: make a copy of this object and return an owning pointer to the copy.

◆ get_file_contents()

std::string const& utility::io::GeneralFileContents::get_file_contents ( ) const
inline

References file_contents_.

Member Data Documentation

◆ file_contents_

std::string utility::io::GeneralFileContents::file_contents_
private

The documentation for this class was generated from the following files: