KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
Public Member Functions | Friends | List of all members
Kratos::Testing::ScopedFile Class Referencefinal

Class representing a file that follows RAII. More...

#include <scoped_file.h>

Inheritance diagram for Kratos::Testing::ScopedFile:
Collaboration diagram for Kratos::Testing::ScopedFile:

Public Member Functions

 ScopedFile (const std::filesystem::path &rPath)
 
 ~ScopedFile () override
 
- Public Member Functions inherited from Kratos::Testing::ScopedEntry
 ScopedEntry (const std::filesystem::path &rPath)
 
 ScopedEntry (ScopedEntry &&rOther)=default
 
 ScopedEntry (const ScopedEntry &rOther)=delete
 
ScopedEntryoperator= (ScopedEntry &&rOther)=delete
 
ScopedEntryoperator= (const ScopedEntry &rOther)=delete
 
virtual ~ScopedEntry ()
 
 operator const std::filesystem::path & () const
 

Friends

template<class T >
ScopedFileoperator<< (ScopedFile &rFile, const T &rContent)
 

Detailed Description

Class representing a file that follows RAII.

Constructor & Destructor Documentation

◆ ScopedFile()

Kratos::Testing::ScopedFile::ScopedFile ( const std::filesystem::path &  rPath)

◆ ~ScopedFile()

Kratos::Testing::ScopedFile::~ScopedFile ( )
override

Friends And Related Function Documentation

◆ operator<<

template<class T >
ScopedFile& operator<< ( ScopedFile rFile,
const T &  rContent 
)
friend

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