class image : public object

Image object.

Inheritance:


Public Methods

image(void)
Default constructor.
image(const std::string& src)
Data constructor.
image(const image& x)
Copy constructor.
~image(void)
Destructor.
object* clone(void) const
Clone the image object.
void write(writer& out) const
Write the image.
void setWidth(const std::string& w)
Set the image width.
void setSource(const std::string& src)
Specify the image source.

Inherited from object:

Public Methods

virtual dim_t getXSize(void) const
virtual dim_t getYSize(void) const

Documentation

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.).
image(void)
Construct an empty image.

image(const std::string& src)
Construct an image object referring to the specified source file.
Parameters:
txt - Image source file name.

image(const image& x)
Construct an image identical to the argument.
Parameters:
x - Image pobject to be copied.

~image(void)
Destroy the image object.

object* clone(void) const
Create an identical image object and return a pointer.
Returns:
Pointer to the image clone.

void write(writer& out) const
Write the image reference to the specified html writer.
Parameters:
out - HTML writer to which the line is to be written.

void setWidth(const std::string& w)
Set the width (horizontal dimension) of the image to the specified value.
Parameters:
addr - New image width.

void setSource(const std::string& src)
Specify the location of the image source file.
Parameters:
src - Image source file location.


This class has no child classes.
Author:
J. Zweizig
Version:
1.0; Modified May 29, 2001

alphabetic index hierarchy of classes


generated by doc++