ACE_FILE
abstraction.
#include <ace/FILE.h>
class ACE_FILE : public ACE_IO_SAP {
public:
int close (void);
int remove (void);
int unlink (void);
int get_info (ACE_FILE_Info *finfo);
int get_info (ACE_FILE_Info &finfo);
int truncate (off_t length);
off_t seek (off_t offset, int whence = SEEK_CUR);
off_t position (long offset, int startpos);
off_t tell (void);
off_t position (void);
int disable (int signum) const;
int get_local_addr (ACE_Addr &) const;
int get_remote_addr (ACE_Addr &) const;
void dump (void) const;
ACE_ALLOC_HOOK_DECLARE;
protected:
ACE_FILE (void);
ACE_FILE_Addr addr_;
};
int close (void);
ACE_FILE
handle without removing the ACE_FILE
from
the file system.
int remove (void);
ACE_FILE
from the file system.
int unlink (void);
ACE_FILE
from the file system without closing the
ACE_FILE
handle.
int get_info (ACE_FILE_Info *finfo);
ACE_FILE
.
int get_info (ACE_FILE_Info &finfo);
ACE_FILE
.
int truncate (off_t length);
off_t seek (off_t offset, int whence = SEEK_CUR);
whence
is SEEK_SET
, the pointer is set to offset
bytes.
o If whence
is SEEK_CUR
, the pointer is set to its
current location plus offset
.
o If whence
is SEEK_END
, the pointer is set to the size
of the file plus offset.
off_t position (long offset, int startpos);
seek
, but position
is deprecated.
off_t tell (void);
off_t position (void);
tell
, but position
is deprecated.
int disable (int signum) const;
signum
This is here to prevent Win32 from
disabling SPIPE using socket calls
int get_local_addr (ACE_Addr &) const;
ACE_Addr
.
Returns 0 if successful, else -1.
int get_remote_addr (ACE_Addr &) const;
get_local_addr
.
void dump (void) const;
ACE_ALLOC_HOOK_DECLARE;
ACE_FILE (void);
ACE_FILE_Connector
.
ACE_FILE_Addr addr_;