|
| CPosixShmFile (const char *shmname, int flags=__MyBase::kFlagsDefault, mode_t mode=__MyBase::kModeDefault) |
|
| CPosixShmFile (const std::string &shmname, int flags=__MyBase::kFlagsDefault, mode_t mode=__MyBase::kModeDefault) |
|
| CPosixShmFile (const CPosixShmFile &other) |
|
CPosixShmFile & | operator= (const CPosixShmFile &other) |
|
int | fdType () const |
| Get type id of this object. More...
|
|
const char * | fdTypeName () const |
| Get readable description of this object. More...
|
|
std::string | shmname () const |
|
bool | open (const char *shmname, int flags=kFlagsDefault, mode_t mode=kModeDefault) |
|
bool | open (const std::string &shmname, int flags=kFlagsDefault, mode_t mode=kModeDefault) |
|
bool | unlink () |
| Remove file. More...
|
|
std::string | toString () const |
| Get readable description of this object. More...
|
|
| CFile () |
| Default constructor.
|
|
bool | rename (const std::string &newfile) |
| Rename file. More...
|
|
| CFile (const char *pathname, int flags=kFlagsDefault, mode_t mode=kModeDefault) |
|
| CFile (const std::string &pathname, int flags=kFlagsDefault, mode_t mode=kModeDefault) |
|
| CFile (const CFile &other) |
|
CFile & | operator= (const CFile &other) |
|
ssize_t | read (char *buf, size_t size) |
|
bool | read (std::vector< char > &buf, size_t size, bool append) |
|
bool | read (std::string &buf, size_t size, bool append) |
|
ssize_t | write (const char *buf, size_t size) |
|
ssize_t | write (const std::vector< char > &buf) |
|
ssize_t | write (const std::string &buf) |
|
bool | seek (off_t offset, int whence) |
|
bool | seek64 (off64_t offset, int whence) |
|
off_t | tell () const |
|
off64_t | tell64 () const |
|
| IFileDesc () |
| Construct a default object.
|
|
virtual | ~IFileDesc () |
| Destroy this object. More...
|
|
bool | valid () const |
| Test if this object is a valid file descriptor. More...
|
|
int | fd () const |
| Get fd (file descriptor). More...
|
|
std::string | filename () const |
| Get file name opened by this object. More...
|
|
off_t | length () const |
| Get byte size of file opened by this object. More...
|
|
bool | deleted () const |
| Test if file is deleted. More...
|
|
bool | block (bool on) |
| Set block/non-block for operations. More...
|
|
void | close () |
| Close this fd.
|
|