htmlParam
Plug-in/Java applet parameter class
[Previous] [Main] [Next]


Description
htmlParam encapsulates the <PARAM></PARAM> tags, used to specify general-purpose or application specific parameters of plugins (created using htmlPlugIn) and Java applets (created using htmlApplet).  
 
Declaration
#include <dcmicro/htmlpp/param.h>  
 
Hierarchy
htmlparam.gif  

See Also
htmlApplet, htmlPlugIn  
 
Related Constants/Definitions
None.  
 
Constructors
htmlParam()  
Constructs an empty parameter object.  
 
htmlParam( const String& name, const String& value )  
Constructs a parameter objec containing the specified parameter name and value strings.  
 
htmlParam( const htmlParam& rhs )  
Copy constructor.  
 
Destructor
virtual ~htmlParam()  
Destroys the object.  
 
Member Methods
NamehtmlParam& Name( const String& name )  
Sets the parameter name to name, and returns a reference to the object.  
 
NameString Name() const  
Returns the parameter name as a string.  
 
ValuehtmlParam& Name( const String& value )  
Sets the parameter value to value, and returns a reference to the object.  
 
ValueString Value() const  
Returns the parameter value as a string.  
 
Print   void Print( ostream& os ) const  
Outputs the object to os.  
 
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.