A low level portable directory class.
More...
#include <file.h>
Inheritance diagram for Dir:
Collaboration diagram for Dir:
Public Types
enum
Error {
errSuccess = 0,
errNotOpened,
errMapFailed,
errInitFailed,
errOpenDenied,
errOpenFailed,
errOpenInUse,
errReadInterrupted,
errReadIncomplete,
errReadFailure,
errWriteInterrupted,
errWriteIncomplete,
errWriteFailure,
errLockFailure,
errExtended
}
Public Member Functions
Dir (const char *name=NULL)
void
open (const char *name)
Static Public Member Functions
static bool
remove (const char *path)
static bool
getPrefix (char *path, size_t size=256)
static char *
getFilename (const char *path, char *buffer, size_t size=64)
static char *
getDirname (const char *path, char *buffer, size_t size=256)
static char *
getRealpath (const char *path, char *buffer, size_t size=256)
Protected Types
Private Attributes
Detailed Description
A low level portable directory class.
Used to support ccstd Directory container. This provides a basic mechanism for allocating and accessing file entries.
- Author
- David Sugar dyfet.nosp@m.@ost.nosp@m.el.co.nosp@m.m low level directory access class.
Definition at line 258 of file file.h.
Member Typedef Documentation
Member Enumeration Documentation
| Enumerator |
|---|
| accessReadOnly |
| accessWriteOnly |
| accessReadWrite |
Definition at line 139 of file file.h.
| Enumerator |
|---|
| attrInvalid |
| attrPrivate |
| attrGroup |
| attrPublic |
Definition at line 199 of file file.h.
| Enumerator |
|---|
| completionImmediate |
| completionDelayed |
| completionDeferred |
Definition at line 233 of file file.h.
| Enumerator |
|---|
| errSuccess |
| errNotOpened |
| errMapFailed |
| errInitFailed |
| errOpenDenied |
| errOpenFailed |
| errOpenInUse |
| errReadInterrupted |
| errReadIncomplete |
| errReadFailure |
| errWriteInterrupted |
| errWriteIncomplete |
| errWriteFailure |
| errLockFailure |
| errExtended |
Definition at line 120 of file file.h.
| Enumerator |
|---|
| mappedRead |
| mappedWrite |
| mappedReadWrite |
Definition at line 228 of file file.h.
| Enumerator |
|---|
| openReadOnly |
| openWriteOnly |
| openReadWrite |
| openAppend |
| openSync |
| openTruncate |
Definition at line 171 of file file.h.
Constructor & Destructor Documentation
Dir::Dir
(
const char *
name = NULL )
virtual Dir::~Dir
(
)
virtual |
Member Function Documentation
static bool Dir::create
(
const char *
path,
)
static |
static char* File::getDirname
(
const char *
path,
char *
buffer,
size_t
size = 256
)
staticinherited |
static const char* File::getExtension
(
const char *
path )
staticinherited |
static const char* File::getFilename
(
const char *
path )
staticinherited |
static char* File::getFilename
(
const char *
path,
char *
buffer,
size_t
size = 64
)
staticinherited |
const char* Dir::getName
(
void
)
static bool Dir::getPrefix
(
char *
path,
size_t
size = 256
)
static |
static char* File::getRealpath
(
const char *
path,
char *
buffer,
size_t
size = 256
)
staticinherited |
bool Dir::isValid
(
void
)
void Dir::open
(
const char *
name )
bool Dir::operator!
(
)
inline |
const char* Dir::operator*
(
)
const char* Dir::operator++
(
)
inline |
const char* Dir::operator++
(
int
)
inline |
static bool Dir::remove
(
const char *
path )
static |
bool Dir::rewind
(
void
)
static bool Dir::setPrefix
(
const char *
path )
static |
Field Documentation
struct dirent* Dir::entry
private |
The documentation for this class was generated from the following file:
Generated on Dec 21, 2017 for
commoncpp2-1.8.1,
ccrtp-1.7.2,
libzrtpcpp-2.3.4,
ccscript3-1.1.7,
ccaudio2-1.0.0 and
bayonne2-2.3.2
(after installation in /usr/local/)
by
doxygen 1.8.6