TAO_Storable_Naming_Context::File_Open_Lock_and_Check Class ReferenceHelper class for the TAO_Storable_Naming_Context. More...
Collaboration diagram for TAO_Storable_Naming_Context::File_Open_Lock_and_Check:
Detailed DescriptionHelper class for the TAO_Storable_Naming_Context.Guard class for the TAO_Storable_Naming_Context. It opens a file for read/write and sets a lock on it. It then checks if the file has changed and re-reads it if it has. The destructor insures that the lock gets released.
How to use this class: File_Open_Lock_and_Check flck(this, name_len > 1 ? "r" : "rw"); Member Enumeration Documentation
Constructor & Destructor Documentation
Constructor - we always need the object which we guard.
Destructor.
Default constructor.
Member Function Documentation
Releases the lock, closes the file, and deletes the I/O stream.
Returns the stream to read/write on.
Member Data DocumentationA flag to keep us from trying to close things more than once.
We need to save the pointer to our parent for cleaning up.
The pointer to the actual file I/O (bridge pattern).
The flags that we were opened with.
The documentation for this class was generated from the following files: Generated on Mon Sep 15 08:42:08 2008 for TAO_CosNaming by 1.5.5 |