fileInfo Class Reference

Stores information about a file attachment. More...

Collaboration diagram for fileInfo:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 fileInfo ()
 ~fileInfo ()
bool hasFilename () const
const wordgetFilename () const
void setFilename (const string &name)
void setFilename (const word &name)
bool hasCreationDate () const
const datetimegetCreationDate () const
void setCreationDate (const datetime &date)
bool hasModificationDate () const
const datetimegetModificationDate () const
void setModificationDate (const datetime &date)
bool hasReadDate () const
const datetimegetReadDate () const
void setReadDate (const datetime &date)
bool hasSize () const
unsigned int getSize () const
void setSize (const unsigned int &size)

Detailed Description

Stores information about a file attachment.


Constructor & Destructor Documentation

fileInfo (  ) 
~fileInfo (  ) 

Member Function Documentation

const datetime & getCreationDate (  )  const

Return the value of the 'creation-date' property.

Returns:
file creation time
const word & getFilename (  )  const

Return the value of the 'filename' property.

Returns:
file name
const datetime & getModificationDate (  )  const

Return the value of the 'modification-date' property.

Returns:
file modification time
const datetime & getReadDate (  )  const

Return the value of the 'read-date' property.

Returns:
file access time
unsigned int getSize (  )  const

Return the value of the 'size' property.

Returns:
file size
bool hasCreationDate (  )  const

Check whether the 'creation-date' property is present.

Returns:
true if the 'creation-date' property is set, false otherwise
bool hasFilename (  )  const

Check whether the 'filename' property is present.

Returns:
true if the 'filename' property is set, false otherwise
bool hasModificationDate (  )  const

Check whether the 'modification-date' property is present.

Returns:
true if the 'modification-date' property is set, false otherwise
bool hasReadDate (  )  const

Check whether the 'read-date' property is set.

Returns:
true if the 'read-date' property is set, false otherwise
bool hasSize (  )  const

Check whether the value of the 'size' property is set.

Returns:
true if the 'size' property is set, false otherwise
void setCreationDate ( const datetime date  ) 

Set the value of the 'creation-date' property.

Parameters:
date file creation time
void setFilename ( const word name  ) 

Set the value of the 'filename' property.

Parameters:
name file name
void setFilename ( const string name  ) 

Set the value of the 'filename' property.

Parameters:
name file name
void setModificationDate ( const datetime date  ) 

Set the value of the 'modification-date' property.

Parameters:
date file modification time
void setReadDate ( const datetime date  ) 

Set the value of the 'read-date' property.

Parameters:
date file access time
void setSize ( const unsigned int &  size  ) 

Set the value of the 'size' property.

Parameters:
size file size

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

Generated by  doxygen 1.6.2