|
sipxportlib
Version 3.3
|
#include <OsFileLinux.h>


Public Member Functions | |
| OsFileLinux (const OsPathBase &filename) | |
| virtual | ~OsFileLinux () |
| OsStatus | filelock (const bool wait) |
| OsStatus | fileunlock () |
| OsStatus | setLength (unsigned long newLength) |
| OsStatus | setReadOnly (UtlBoolean isReadOnly) |
| OsStatus | touch () |
| UtlBoolean | isReadonly () const |
| virtual OsStatus | getFileInfo (OsFileInfoBase &rFileinfo) const |
Public Member Functions inherited from OsFileBase | |
| OsFileBase (const OsPathBase &filename) | |
| enumcode: Start - Set position relative to start of file. enumcode: Current - Set position relative to current file position. enumcode: End - Set position relative to end of file. More... | |
| virtual | ~OsFileBase () |
| virtual OsStatus | open (const int mode=READ_WRITE) |
| virtual OsStatus | flush () |
| virtual OsStatus | write (const void *pBuf, unsigned long bufLen, unsigned long &rBytesWritten) |
| virtual OsStatus | setPosition (long pos, FilePositionOrigin origin=START) |
| virtual OsStatus | remove (UtlBoolean bForce=FALSE) |
| virtual OsStatus | rename (const OsPathBase &rNewFilename) |
| virtual OsStatus | copy (const OsPathBase &rNewFilename) |
| virtual OsStatus | getPosition (unsigned long &pos) |
| virtual void | getFileName (OsPathBase &rOsPath) const |
| virtual OsStatus | read (void *pBuf, unsigned long bufLen, unsigned long &rBytesRead) |
| virtual OsStatus | readLine (UtlString &str) |
| virtual UtlBoolean | close () |
| OsStatus | getLength (unsigned long &length) |
| FILE * | getFileDescriptor () |
| OsConfigDb * | getFileLocks () |
| UtlBoolean | isReadonly () const |
| UtlBoolean | exists () |
| UtlBoolean | isEOF () |
Protected Member Functions | |
| OsFileLinux (const OsFileLinux &rOsFileLinux) | |
| OsFileLinux & | operator= (const OsFileLinux &rhs) |
Protected Member Functions inherited from OsFileBase | |
| OsFileBase (const OsFileBase &rOsFile) | |
| OsFileBase & | operator= (const OsFileBase &rhs) |
Additional Inherited Members | |
Public Types inherited from OsFileBase | |
| enum | Mode { READ_ONLY = 1, WRITE_ONLY = 2, READ_WRITE = 4, CREATE = 8, TRUNCATE = 16, APPEND = 32, FSLOCK = 64, FSLOCK_WAIT = 128 } |
| enum | FilePositionOrigin { START = 0, CURRENT = 1, END = 2 } |
| enumcode: FSLOCK - Opens the file exclusively (advisory locking). enumcode: FSLOCK_WAIT - Waits to open the file locked rather than fail. More... | |
Static Public Member Functions inherited from OsFileBase | |
| static long | openAndRead (const char *filename, UtlString &fileContentsRead) |
| Opens and reads the contents of the named file into the given UtlString. More... | |
| static long | openAndWrite (const char *filename, const UtlString &fileContentsToWrite) |
| Opens and write the given UtlString to the named file. More... | |
| static long | openAndWrite (const char *filename, const char *fileContentsToWrite, unsigned int contentLength) |
| Opens and write the given data to the named file. More... | |
Protected Attributes inherited from OsFileBase | |
| OsMutex | fileMutex |
| FILE * | mOsFileHandle |
| OsPathBase | mFilename |
| int | mMode |
| OsFileLinux | ( | const OsPathBase & | filename | ) |
|
virtual |
|
protected |
|
virtual |
Reimplemented from OsFileBase.
|
virtual |
Reimplemented from OsFileBase.
|
virtual |
Reimplemented from OsFileBase.
|
virtual |
Reimplemented from OsFileBase.
|
virtual |
Reimplemented from OsFileBase.
| UtlBoolean isReadonly | ( | ) | const |
|
virtual |
Implements OsFileBase.
|
protected |
1.8.11