Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / apps / JAWS3 / jaws3 / FILE.h
blob37c7143ef511aa221a33dea18ed5d81cea4a67a3
1 // -*- c++ -*-
3 #ifndef JAWS_FILE_H
4 #define JAWS_FILE_H
6 #include "ace/FILE_IO.h"
7 #include "ace/Mem_Map.h"
9 #include "jaws3/Export.h"
11 class JAWS_Export JAWS_FILE : public ACE_FILE_IO
13 // Like ACE_FILE_IO, but support for ACE_Mem_Map;
15 public:
16 JAWS_FILE ();
18 ~JAWS_FILE ();
20 ACE_Mem_Map *mem_map (int length = -1,
21 int prot = PROT_RDWR,
22 int share = ACE_MAP_PRIVATE,
23 void *addr = 0,
24 ACE_OFF_T offset = 0,
25 LPSECURITY_ATTRIBUTES sa = 0);
26 ACE_Mem_Map *mem_map (int length = -1,
27 int prot = PROT_RDWR,
28 int share = ACE_MAP_PRIVATE,
29 void *addr = 0,
30 ACE_OFF_T offset = 0,
31 LPSECURITY_ATTRIBUTES sa = 0) const;
33 ACE_Mem_Map *map () const;
35 void can_map (int);
37 private:
38 ACE_SYNCH_MUTEX lock_;
39 ACE_Mem_Map *map_;
41 int can_map_;
44 #endif /* JAWS_FILE_H */