#include <Flat_File_Persistence.h>
Inheritance diagram for TAO_NS_FlatFileStream:


Public Member Functions | |
| TAO_NS_FlatFileStream (const ACE_CString &file, const char *mode) | |
| virtual | ~TAO_NS_FlatFileStream () |
| virtual void | remove () |
| Remove a file by name (file is not open). | |
| virtual int | exists () |
| Check if a file exists on disk (file is not open). | |
| virtual int | open () |
| Open a file (the remaining methods below all require an open file). | |
| virtual int | close () |
| Close an open file. | |
| virtual int | flock (int whence, int start, int len) |
| Acquire a file lock. | |
| virtual int | funlock (int whence, int start, int len) |
| Release a file lock. | |
| virtual time_t | last_changed (void) |
| Returns the last time an open file was changed. | |
| virtual TAO_Storable_Base & | operator<< (const TAO_NS_Persistence_Header &header) |
| Write a header to disk. | |
| virtual TAO_Storable_Base & | operator>> (TAO_NS_Persistence_Header &header) |
| Read a header from disk. | |
| virtual TAO_Storable_Base & | operator<< (const TAO_NS_Persistence_Record &record) |
| Write a record to disk. | |
| virtual TAO_Storable_Base & | operator>> (TAO_NS_Persistence_Record &record) |
| Read a record from disk. | |
| virtual TAO_Storable_Base & | operator<< (const TAO_NS_Persistence_Global &global) |
| Write the global data to disk. | |
| virtual TAO_Storable_Base & | operator>> (TAO_NS_Persistence_Global &global) |
| Read the global data from disk. | |
Private Attributes | |
| ACE_OS::ace_flock_t | filelock_ |
| FILE * | fl_ |
| ACE_CString | file_ |
| ACE_CString | mode_ |
|
||||||||||||
|
|
|
|
|
|
|
Close an open file.
Implements TAO_Storable_Base. |
|
|
Check if a file exists on disk (file is not open).
Implements TAO_Storable_Base. |
|
||||||||||||||||
|
Acquire a file lock.
Implements TAO_Storable_Base. |
|
||||||||||||||||
|
Release a file lock.
Implements TAO_Storable_Base. |
|
|
Returns the last time an open file was changed.
Implements TAO_Storable_Base. |
|
|
Open a file (the remaining methods below all require an open file).
Implements TAO_Storable_Base. |
|
|
Write the global data to disk.
Implements TAO_Storable_Base. |
|
|
Write a record to disk.
Implements TAO_Storable_Base. |
|
|
Write a header to disk.
Implements TAO_Storable_Base. |
|
|
Read the global data from disk.
Implements TAO_Storable_Base. |
|
|
Read a record from disk.
Implements TAO_Storable_Base. |
|
|
Read a header from disk.
Implements TAO_Storable_Base. |
|
|
Remove a file by name (file is not open).
Implements TAO_Storable_Base. |
|
|
|
|
|
|
|
|
|
|
|
|
1.3.9.1