html::image Class Reference
[Html Document preparation]

#include <image.hh>

Inheritance diagram for html::image:

html::object

List of all members.

Public Member Functions

 image (void)
 image (const std::string &src)
 ~image (void)
imageclone (void) const
void write (writer &out) const
void setWidth (const std::string &w)
void setSource (const std::string &src)


Detailed Description

The IMAGE class represents an image to be displayed in the HTML document. The image object points to an image file of any standard type (gif, jpeg, etc.). brief Image object.
Author:
J. Zweizig
Version:
1.0; Modified May 29, 2001

Constructor & Destructor Documentation

html::image::image ( void   ) 

Construct an empty image. brief Default constructor.

html::image::image ( const std::string &  src  ) 

Construct an image object referring to the specified source file. brief Data constructor.

Parameters:
src Image source file name.

html::image::~image ( void   ) 

Destroy the image object. brief Destructor.


Member Function Documentation

image* html::image::clone ( void   )  const [virtual]

Create an identical image object and return a pointer. brief Clone the image object.

Returns:
Pointer to the image clone.

Implements html::object.

void html::image::write ( writer out  )  const [virtual]

Write the image reference to the specified html writer. brief Write the image.

Parameters:
out HTML writer to which the line is to be written.

Reimplemented from html::object.

void html::image::setWidth ( const std::string &  w  ) 

Set the width (horizontal dimension) of the image to the specified value. brief Set the image width.

Parameters:
w New image width.

void html::image::setSource ( const std::string &  src  ) 

Specify the location of the image source file. brief Specify the image source.

Parameters:
src Image source file location.


The documentation for this class was generated from the following file:
Generated on Sun Mar 8 19:21:28 2009 for dmt by  doxygen 1.5.4