Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members  

Revision Class Reference

#include <Document.h>

List of all members.

Public Methods

 Revision ()
 Revision (NumID fileid, string mimetype, time_t date)
 ~Revision ()
NumID getFileId ()
string getMimetype ()
time_t getDate ()
DocumentError addRendition (string mimetype, NumID fileid)
DocumentError removeRendition (string mimetype)
NumID getRendition (string mimetype)
vector< string > listRenditions ()
void toXML (XMLWriter &xml, NumID revid) const


Detailed Description

Revision data.


Constructor & Destructor Documentation

Revision::Revision  
 

Constructor.

Revision::Revision NumID    fileid,
string    mimetype,
time_t    date
 

Constructor.

Revision::~Revision  
 

Destructor.


Member Function Documentation

DocumentError Revision::addRendition string    mimetype,
NumID    fileid
 

Add rendition.

Parameters:
mimetype  the MIME type for the rendition
fileid  the file ID of the rendition (file)

time_t Revision::getDate  
 

Returns the date of this revision.

NumID Revision::getFileId  
 

Returns the file ID of this revision.

string Revision::getMimetype  
 

Returns the MIME type of this revision.

NumID Revision::getRendition string    mimetype
 

Get rendition.

Parameters:
mimetype  the MIME type of the rendition
Returns:
0 if rendition is not available, file ID otherwise

vector< string > Revision::listRenditions  
 

List available renditions as MIME types.

DocumentError Revision::removeRendition string    mimetype
 

Remove rendition, which can not be the original document.

Parameters:
mimetype  the MIME type of the rendition to remove

void Revision::toXML XMLWriter   xml,
NumID    revid
const
 

Writes an XML representation of the revision.

Parameters:
xml  the XML output to write to
revid  the ID of this revision


The documentation for this class was generated from the following files:
Generated on Wed Feb 18 13:45:56 2004 for strongroom by doxygen1.2.18