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

CP_PersistantWriter_Binary Class Reference

CP_Persistant writer class for writing our demo documents data as binary data.

List of all members.

Public Member Functions

Constructor / Destructor
 CP_PersistantWriter_Binary (CPLAT::CP_Persistant *inPersistant)
 Constructor.
virtual ~CP_PersistantWriter_Binary ()
 Destructor.
Getters
virtual CPLAT::FourCharCode GetType ()
Writing
virtual CPLAT::CP_FileSystemSpec Write (const CPLAT::CP_FileSystemSpec &inFileSpec, CPLAT::FourCharCode inType)


Constructor & Destructor Documentation

CP_PersistantWriter_Binary::CP_PersistantWriter_Binary CPLAT::CP_Persistant *  inPersistant  ) 
 

Constructor.

Exceptions:
none 

CP_PersistantWriter_Binary::~CP_PersistantWriter_Binary  )  [virtual]
 

Destructor.

Exceptions:
none 


Member Function Documentation

CPLAT::FourCharCode CP_PersistantWriter_Binary::GetType  )  [virtual]
 

Returns the type of data we are writing. In this demo we return 'BIND' for binary data.

Exceptions:
none 
Returns:
FourCharCode The type of data being written.

CPLAT::CP_FileSystemSpec CP_PersistantWriter_Binary::Write const CPLAT::CP_FileSystemSpec &  inFileSpec,
CPLAT::FourCharCode  inType
[virtual]
 

Creates a file for writing into, and then calls the WritePersistantData method to handle the actual writing of the data to the created file. In this demo we will set the files creator code to 'TTXT' to be able to be opened by SimpleText.

Parameters:
inFileSpec The CP_FileSystemSpec for the file we are going to create to save the documents data to.
inType The type of file being created.
Exceptions:
none 
Returns:
CP_FileSystemSpec The file spec of the created file. This file spec points to the file we created, as opposed to the one passed in, which points to the file specification of the file we want to create.


The documentation for this class was generated from the following files:
Generated on Tue Sep 20 20:23:20 2005 for CPLAT_MacOS by  doxygen 1.4.0