kodi
Public Member Functions | List of all members
KODI::UTILS::POSIX::CFileHandle Class Reference
Inheritance diagram for KODI::UTILS::POSIX::CFileHandle:
Inheritance graph
[legend]
Collaboration diagram for KODI::UTILS::POSIX::CFileHandle:
Collaboration graph
[legend]

Public Member Functions

 CFileHandle (int fd)
 
- Public Member Functions inherited from KODI::UTILS::CScopeGuard< int, -1, decltype(close)>
 CScopeGuard (std::function< decltype(close) > del, int handle=invalid)
 
 CScopeGuard (const CScopeGuard &rhs)=delete
 
 CScopeGuard (CScopeGuard &&rhs) noexcept
 
 operator int () const
 
 operator bool () const
 
void attach (int handle)
 attach a new handle to this instance, if there's already a handle it will be closed. More...
 
int release ()
 release the managed handle so that it won't be auto closed More...
 
void reset ()
 reset the instance, closing any managed handle and setting it to invalid
 
CScopeGuardoperator= (const CScopeGuard &rhs)=delete
 
CScopeGuardoperator= (CScopeGuard &&rhs) noexcept
 

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