html::link Class Reference
[Html Document preparation]

#include <link.hh>

Inheritance diagram for html::link:

html::compound html::object

List of all members.

Public Member Functions

 link (void)
 link (const std::string &txt, const std::string &target)
 ~link (void)
linkclone (void) const
const char * getTag (void) const
void setAddr (const std::string &addr)
void setText (const std::string &txt)


Detailed Description

The link class represents a reference to another html page. The link is displayed a a text object which when click on links to the specified target address. If the text field is left blank, the target address is used both for the text field and the reference address. If the target address is empty, the HLINE is treated as an ordinary text field. No other check is made on the validity of the target address by the link class. brief Link to another HTML page.
Author:
J. Zweizig
Version:
1.1; Modified May 29, 2001

Constructor & Destructor Documentation

html::link::link ( void   ) 

Construct an empty link. brief Default constructor.

html::link::link ( const std::string &  txt,
const std::string &  target 
)

Construct a link containing descriptive text and an address string. brief Data constructor.

Parameters:
txt Text describing the link width.
target Target URL

html::link::~link ( void   ) 

Destroy the link object. brief Destructor.


Member Function Documentation

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

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

Returns:
Pointer to the link clone.

Reimplemented from html::compound.

const char* html::link::getTag ( void   )  const [virtual]

Get the tag string.

Reimplemented from html::compound.

void html::link::setAddr ( const std::string &  addr  ) 

Set the link target address to the specified value. brief Set the link address.

Parameters:
addr New link address.

void html::link::setText ( const std::string &  txt  ) 

Set the link text to the specified value. brief Set the link text.

Parameters:
txt New link text.


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