Assert close
called on open filedescriptor.
More...
#include <Fd.h>
Assert close
called on open filedescriptor.
...
try {
fd.reset(
new Fd(
"/some/file" ) );
} catch ( ... ) {
}
- Todo:
- It's dumb. Openflags and more related functions (read/write..) could be added.
Definition at line 44 of file Fd.h.
zypp::base::Fd::Fd |
( |
const Pathname & |
file_r, |
|
|
int |
open_flags, |
|
|
mode_t |
mode = 0 |
|
) |
| |
Ctor opens file.
- Exceptions
-
Definition at line 36 of file Fd.cc.
zypp::base::Fd::Fd |
( |
Fd && |
rhs | ) |
|
|
inline |
Move ctor.
Definition at line 54 of file Fd.h.
Dtor closes file.
Definition at line 63 of file Fd.h.
zypp::base::Fd::NON_COPYABLE |
( |
Fd |
| ) |
|
|
private |
Fd& zypp::base::Fd::operator= |
( |
Fd && |
rhs | ) |
|
|
inline |
Move assign.
Definition at line 59 of file Fd.h.
void zypp::base::Fd::close |
( |
| ) |
|
Explicitly close the file.
Definition at line 49 of file Fd.cc.
bool zypp::base::Fd::isOpen |
( |
| ) |
const |
|
inline |
Test for valid filedescriptor.
Definition at line 70 of file Fd.h.
int zypp::base::Fd::fd |
( |
| ) |
const |
|
inline |
Return the filedescriptor.
Definition at line 74 of file Fd.h.
int zypp::base::Fd::operator* |
( |
| ) |
const |
|
inline |
Return the filedescriptor.
Definition at line 78 of file Fd.h.
The filedescriptor.
Definition at line 83 of file Fd.h.
The documentation for this class was generated from the following files: