|
TAO_CosNaming
2.1.3
|
#include <Flat_File_Persistence.h>


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. | |
Public Member Functions inherited from TAO_Storable_Base | |
| TAO_Storable_Base () | |
| virtual | ~TAO_Storable_Base () |
| void | clear (Storable_State state=goodbit) |
| void | setstate (Storable_State state) |
| Storable_State | rdstate (void) const |
| bool | good (void) const |
| bool | bad (void) const |
| bool | eof (void) const |
| bool | fail (void) const |
Private Attributes | |
| ACE_OS::ace_flock_t | filelock_ |
| FILE * | fl_ |
| ACE_CString | file_ |
| ACE_CString | mode_ |
Additional Inherited Members | |
Public Types inherited from TAO_Storable_Base | |
| enum | Storable_State { goodbit = 0, badbit = 1, eofbit = 2, failbit = 4 } |
| TAO_NS_FlatFileStream::TAO_NS_FlatFileStream | ( | const ACE_CString & | file, |
| const char * | mode | ||
| ) |
|
virtual |
|
virtual |
Close an open file.
Implements TAO_Storable_Base.
|
virtual |
Check if a file exists on disk (file is not open)
Implements TAO_Storable_Base.
|
virtual |
Acquire a file lock.
Implements TAO_Storable_Base.
|
virtual |
Release a file lock.
Implements TAO_Storable_Base.
|
virtual |
Returns the last time an open file was changed.
Implements TAO_Storable_Base.
|
virtual |
Open a file (the remaining methods below all require an open file)
Implements TAO_Storable_Base.
|
virtual |
Write a header to disk.
Implements TAO_Storable_Base.
|
virtual |
Write a record to disk.
Implements TAO_Storable_Base.
|
virtual |
Write the global data to disk.
Implements TAO_Storable_Base.
|
virtual |
Read a header from disk.
Implements TAO_Storable_Base.
|
virtual |
Read a record from disk.
Implements TAO_Storable_Base.
|
virtual |
Read the global data from disk.
Implements TAO_Storable_Base.
|
virtual |
Remove a file by name (file is not open)
Implements TAO_Storable_Base.
|
private |
|
private |
|
private |
|
private |
1.8.1.2