Jlm
Public Member Functions | Private Attributes | List of all members
jlm::util::File Class Referencefinal

#include <file.hpp>

Collaboration diagram for jlm::util::File:
Collaboration graph
[legend]

Public Member Functions

 File (const FilePath &path)
 
 ~File ()
 
 File (const File &)=delete
 
 File (File &&other) noexcept
 
Fileoperator= (const File &)=delete
 
Fileoperator= (File &&other) noexcept
 
void close () noexcept
 
void open (const char *mode)
 
bool is_open () const noexcept
 
FILE * fd () const noexcept
 
const FilePathpath () const noexcept
 

Private Attributes

FILE * fd_
 
FilePath path_
 

Detailed Description

Definition at line 326 of file file.hpp.

Constructor & Destructor Documentation

◆ File() [1/3]

jlm::util::File::File ( const FilePath path)
inlineexplicit

Definition at line 329 of file file.hpp.

◆ ~File()

jlm::util::File::~File ( )
inline

Definition at line 334 of file file.hpp.

◆ File() [2/3]

jlm::util::File::File ( const File )
delete

◆ File() [3/3]

jlm::util::File::File ( File &&  other)
inlinenoexcept

Definition at line 341 of file file.hpp.

Member Function Documentation

◆ close()

void jlm::util::File::close ( )
inlinenoexcept

Definition at line 365 of file file.hpp.

◆ fd()

FILE* jlm::util::File::fd ( ) const
inlinenoexcept

Definition at line 388 of file file.hpp.

◆ is_open()

bool jlm::util::File::is_open ( ) const
inlinenoexcept

Definition at line 382 of file file.hpp.

◆ open()

void jlm::util::File::open ( const char *  mode)
inline

Definition at line 374 of file file.hpp.

◆ operator=() [1/2]

File& jlm::util::File::operator= ( const File )
delete

◆ operator=() [2/2]

File& jlm::util::File::operator= ( File &&  other)
inlinenoexcept

Definition at line 352 of file file.hpp.

◆ path()

const FilePath& jlm::util::File::path ( ) const
inlinenoexcept

Definition at line 394 of file file.hpp.

Member Data Documentation

◆ fd_

FILE* jlm::util::File::fd_
private

Definition at line 400 of file file.hpp.

◆ path_

FilePath jlm::util::File::path_
private

Definition at line 401 of file file.hpp.


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