Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

FileBase Class Reference

FileBase is used for window independent file operations. More...

#include <File.h>

Inheritance diagram for FileBase:

File< W > List of all members.

Public Member Functions

 FileBase (const std::string &path)
 FileBase constructor.

virtual ~FileBase ()
std::string getFileName ()
 FileBase getFileName().

virtual void open (const std::string &path)=0
virtual bool isOpen ()=0
virtual bool hasChanged ()
virtual void setWindowTitle (const CFStringRef aTitle)=0
virtual void prepChange ()
 when the file is to be changed for the first time copy it to a temporary file//////////////////////////////////////////////////////////////////////////////

void closeFile ()
 Close the current file - force derived class to define close (see also closeWindow() ).

OSErr save ()
 Save changed file.

OSErr deleteDirtyFile ()
 delete changed file

void startSaveChanges ()
 Save most current file as determined by Nav dialog.

void startSaveAs ()
void completeSaveAs (NavReplyRecord *reply)

Static Public Member Functions

OSErr stringPathToFSRef (const std::string &aPath, FSRef &aFileRef)
OSErr FSRefToStringPath (const FSRef &aFileRef, std::string &aPath)

Public Attributes

std::string path_

Protected Member Functions

void activated_ ()
 update file menus to indicate associated window is activated

void deActivated_ ()
 update file menus to indicate associated window is deactivated


Protected Attributes

bool dirty_
std::string dirtyPath_

Detailed Description

FileBase is used for window independent file operations.


Constructor & Destructor Documentation

FileBase::FileBase const std::string &  path  ) 
 

FileBase constructor.

virtual FileBase::~FileBase  )  [inline, virtual]
 


Member Function Documentation

void FileBase::activated_  )  [protected]
 

update file menus to indicate associated window is activated

void FileBase::closeFile  ) 
 

Close the current file - force derived class to define close (see also closeWindow() ).

void FileBase::completeSaveAs NavReplyRecord *  reply  ) 
 

void FileBase::deActivated_  )  [protected]
 

update file menus to indicate associated window is deactivated

OSErr FileBase::deleteDirtyFile  ) 
 

delete changed file

OSErr FileBase::FSRefToStringPath const FSRef &  aFileRef,
std::string &  aPath
[static]
 

std::string FileBase::getFileName  ) 
 

FileBase getFileName().

virtual bool FileBase::hasChanged  )  [inline, virtual]
 

virtual bool FileBase::isOpen  )  [pure virtual]
 

virtual void FileBase::open const std::string &  path  )  [pure virtual]
 

void FileBase::prepChange  )  [virtual]
 

when the file is to be changed for the first time copy it to a temporary file//////////////////////////////////////////////////////////////////////////////

OSErr FileBase::save  ) 
 

Save changed file.

virtual void FileBase::setWindowTitle const CFStringRef  aTitle  )  [pure virtual]
 

void FileBase::startSaveAs  ) 
 

void FileBase::startSaveChanges  ) 
 

Save most current file as determined by Nav dialog.

OSErr FileBase::stringPathToFSRef const std::string &  aPath,
FSRef &  aFileRef
[static]
 


Member Data Documentation

bool FileBase::dirty_ [protected]
 

std::string FileBase::dirtyPath_ [protected]
 

std::string FileBase::path_
 


The documentation for this class was generated from the following files:
Generated on Mon Mar 22 20:51:55 2004 for test Doxygen by doxygen 1.3.4