OWLNext 6.32
Public Types | Public Member Functions | Protected Member Functions | Friends
owl::TFileDocument Class Reference

#include <filedoc.h>

Inheritance diagram for owl::TFileDocument:
owl::TDocument owl::TStreamableBase

List of all members.

Public Types

enum  TFileDocProp { PrevProperty = TDocument::NextProperty-1, CreateTime, ModifyTime, AccessTime, StorageSize, FileHandle, NextProperty }

Public Member Functions

bool Open (int mode, LPCTSTR path=0)
bool Close ()
TInStreamInStream (int mode, LPCTSTR strmId=0)
TOutStreamOutStream (int mode, LPCTSTR strmId=0)
bool Commit (bool force=false)
bool Revert (bool clear=false)
int FindProperty (LPCTSTR name)
int PropertyFlags (int index)
LPCTSTR PropertyName (int index)
int GetProperty (int index, void *dest, int textlen=0)
bool SetProperty (int index, const void *src)
bool Open (HFILE fhdl)
 TFileDocument (TDocument *parent=0)
 ~TFileDocument ()
bool IsOpen ()
int PropertyCount ()

Protected Member Functions

HFILE OpenThisFile (int omode, const tstring &fileName, std::streampos *pseekpos)
void CloseThisFile (HFILE fhdl, int omode)

Friends

class TFileInStream
class TFileOutStream

Detailed Description

Derived from TDocument, TFileDocument opens and closes views and provides stream support for views. TFileDocument has member functions that continue to process FileNew and FileOpen messages after a view is constructed. You can add support for specialized file types by deriving classes from TFileDocument. TFileDocument makes this process easy by hiding the actual process of storing file types.


Member Enumeration Documentation

Contains constants that define the following properties of the document:

Enumerator:
PrevProperty 

Index of last property in base class (none in this case)

CreateTime 

The time the view or document was created (FILETIME)

ModifyTime 

The time the view or document was modified (FILETIME)

AccessTime 

The time the view or document was last accessed (FILETIME)

StorageSize 

An unsigned long containing the storage size (ulong)

FileHandle 

The platform file handle (HFILE if Windows)

NextProperty 

Next index to be used by derived class.


The documentation for this class was generated from the following files: