diff options
Diffstat (limited to 'ACE/apps/JAWS2/JAWS/FILE.h')
-rw-r--r-- | ACE/apps/JAWS2/JAWS/FILE.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/ACE/apps/JAWS2/JAWS/FILE.h b/ACE/apps/JAWS2/JAWS/FILE.h new file mode 100644 index 00000000000..478f3271e31 --- /dev/null +++ b/ACE/apps/JAWS2/JAWS/FILE.h @@ -0,0 +1,47 @@ +// $Id$ + +/* -*- c++ -*- */ + +#ifndef JAWS_FILE_H +#define JAWS_FILE_H + +#include "ace/FILE_IO.h" +#include "ace/Mem_Map.h" + +#include "JAWS/Export.h" +#include "ace/Synch_Traits.h" +#include "ace/Thread_Mutex.h" + +class JAWS_Export JAWS_FILE : public ACE_FILE_IO +// +// Like ACE_FILE_IO, but support for ACE_Mem_Map; +{ +public: + + JAWS_FILE (void); + + ~JAWS_FILE (void); + + ACE_Mem_Map *mem_map (int length = -1, + int prot = PROT_RDWR, + int share = ACE_MAP_PRIVATE, + void *addr = 0, + off_t offset = 0, + LPSECURITY_ATTRIBUTES sa = 0); + ACE_Mem_Map *mem_map (int length = -1, + int prot = PROT_RDWR, + int share = ACE_MAP_PRIVATE, + void *addr = 0, + off_t offset = 0, + LPSECURITY_ATTRIBUTES sa = 0) const; + + ACE_Mem_Map *map (void) const; + +private: + + ACE_SYNCH_MUTEX lock_; + ACE_Mem_Map *map_; + +}; + +#endif /* JAWS_FILE_H */ |