foobar2000 SDK  2015-08-03
Public Member Functions | Data Fields | Private Member Functions
pfc::fileHandle

#include <filehandle.h>

Public Member Functions

 fileHandle (fileHandle_t val)
 
 fileHandle ()
 
 fileHandle (fileHandle &&other)
 
 ~fileHandle ()
 
void clear ()
 
void close ()
 
bool isValid ()
 
void operator= (fileHandle &&other)
 
void operator= (fileHandle_t other)
 

Data Fields

fileHandle_t h
 

Private Member Functions

 fileHandle (const fileHandle &)
 
void operator= (const fileHandle &)
 

Detailed Description

Definition at line 13 of file filehandle.h.

Constructor & Destructor Documentation

pfc::fileHandle::fileHandle ( fileHandle_t  val)
inline

Definition at line 15 of file filehandle.h.

15 : h(val) {}
fileHandle_t h
Definition: filehandle.h:24
pfc::fileHandle::fileHandle ( )
inline

Definition at line 16 of file filehandle.h.

16 : h ( fileHandleInvalid ) {}
fileHandle_t h
Definition: filehandle.h:24
const fileHandle_t fileHandleInvalid
Definition: filehandle.h:4
pfc::fileHandle::~fileHandle ( )
inline

Definition at line 17 of file filehandle.h.

17 { close(); }
pfc::fileHandle::fileHandle ( fileHandle &&  other)
inline

Definition at line 18 of file filehandle.h.

18 { h = other.h; other.clear(); }
fileHandle_t h
Definition: filehandle.h:24
pfc::fileHandle::fileHandle ( const fileHandle )
private

Member Function Documentation

void pfc::fileHandle::clear ( )
inline

Definition at line 22 of file filehandle.h.

22 { h = fileHandleInvalid; }
fileHandle_t h
Definition: filehandle.h:24
const fileHandle_t fileHandleInvalid
Definition: filehandle.h:4
void pfc::fileHandle::close ( )

Definition at line 28 of file filehandle.cpp.

28  {
29  fileHandleClose( h );
30  clear();
31 }
fileHandle_t h
Definition: filehandle.h:24
void fileHandleClose(fileHandle_t h)
Definition: filehandle.cpp:8
bool pfc::fileHandle::isValid ( )
inline

Definition at line 23 of file filehandle.h.

23 { return h != fileHandleInvalid; }
fileHandle_t h
Definition: filehandle.h:24
const fileHandle_t fileHandleInvalid
Definition: filehandle.h:4
void pfc::fileHandle::operator= ( fileHandle &&  other)
inline

Definition at line 19 of file filehandle.h.

19 { close(); h = other.h; other.clear(); }
fileHandle_t h
Definition: filehandle.h:24
void pfc::fileHandle::operator= ( fileHandle_t  other)
inline

Definition at line 20 of file filehandle.h.

20 { close(); h = other; }
fileHandle_t h
Definition: filehandle.h:24
void pfc::fileHandle::operator= ( const fileHandle )
private

Field Documentation

fileHandle_t pfc::fileHandle::h

Definition at line 24 of file filehandle.h.


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