mmsfile.h File Reference

Header file for MMSFile class. More...

#include <curl/curl.h>
#include <sys/stat.h>
#include "mmstools/mmserror.h"

Include dependency graph for mmsfile.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Classes

class  MMSFile
 A file class. More...

Enumerations

enum  MMSFileType { MMSFT_NOTSET = 0, MMSFT_FILE = 1, MMSFT_URL = 2 }
 Specifies supported types of files. More...
enum  MMSFileMode {
  MMSFM_READ = 0, MMSFM_WRITE = 1, MMSFM_APPEND = 2, MMSFM_READWRITE = 3,
  MMSFM_WRITEREAD = 4, MMSFM_APPENDREAD = 5
}
 Specifies supported modes for working with files. More...
enum  MMSFilePosOrigin { MMSFPO_SET = 0, MMSFPO_CUR = 1, MMSFPO_END = 2 }
 Specifies the origins for function setFilePos(). More...

Functions

 MMS_CREATEERROR (MMSFileError)

Detailed Description

Header file for MMSFile class.

Definition in file mmsfile.h.


Enumeration Type Documentation

Specifies supported modes for working with files.

Enumerator:
MMSFM_READ  read binary (file must exist)
MMSFM_WRITE  write binary (file size will be set to 0)
MMSFM_APPEND  append binary (always writing to the end of the file)
MMSFM_READWRITE  read & write binary (file must exist)
MMSFM_WRITEREAD  write & read binary (file size will be set to 0)
MMSFM_APPENDREAD  append & read binary (always writing to the end of the file)

Definition at line 64 of file mmsfile.h.

Specifies the origins for function setFilePos().

Enumerator:
MMSFPO_SET  from beginning of file
MMSFPO_CUR  from current position of file pointer
MMSFPO_END  from end of file

Definition at line 80 of file mmsfile.h.

Specifies supported types of files.

Enumerator:
MMSFT_NOTSET  not set
MMSFT_FILE  normal file
MMSFT_URL  url

Definition at line 54 of file mmsfile.h.


Function Documentation

MMS_CREATEERROR ( MMSFileError   )