htmlLabel
Hyperlink label class
[Previous] [Main] [Next]


Description
htmlItalic encapsulates the <A NAME></A> tags. It is used to identify a location within a document that can be accessed from another hyperlink.  
 
Declaration
#include <dcmicro/htmlpp/label.h>  
 
Hierarchy
htmllabel.gif  
 
See Also
htmlHyperLink  
 
Related Constants/Definitions
None.  
 
Constructors
htmlLabel()  
Constructs an empty label object.  
 
htmlLabel( const String& name )  
Constructs a label object using the specified name.  
 
htmlLabel( const String& name, const htmlObject& element )  
Constructs a label object of the specified name, inserting element into it.  
 
htmlLabel( const String& name, const String& text )  
Constructs a label object of the specified name, inserting text into it.  
 
Destructor
virtual ~htmlLabel()  
Destroys the object.  
 
Member Methods
NamehtmlLabel& Name(const String& name )  
Sets the label to name, and returns a reference to the object.  
 
NameString Name() const  
Returns the label name as a string, or an empty string if not set.  
 
ClonehtmlObject FAR * Clone() const  
Returns a base-class pointer to a deep copy of the object.  
 
Example Use
 
#include <stdio.h>  
#include <stdlib.h>  
#include <dcmicro/htmlpp/htmlpp.h>  
 
int main( void )  
{  
   htmlCgi   server ;  
   htmlPage  page( "html++ example application" ) ;  
 
   server << page ;  
   return 0 ;  
}  
 
Program Output
 
Content-Type: text/html  
<HTML>  
<HEAD>  
<TITLE>html++ example application</TITLE>  
</HEAD>  
<BODY>  
</BODY>  
</HTML>  
 
 





©1998 DC Micro Development. All rights reserved.
No portion of this document may be c opied or reproduced without expressed written consent.
html++ is a trademark of DC Micro Development.