os_parameter
|
 |
An applet parameter.
An os_parameter
is a parameter to an os_applet . An os_parameter
is passed to an applet by inserting it within an os_applet
object.
A parameter is described by a
name and a value, which are specified in the constructor and can be modified
through the name() and value()
member functions. Both the name and value are entirely applet-specific.
Declaration
#include <ospace/web/param.h>
class os_parameter : public os_element
Interface
Constructor
os_parameter(
const string& name ,
const string& value )
Constructs a parameter
with name name and value value
.
clone
/*
virtual */ os_element* clone() const
Returns a base class
pointer to a heap-based deep copy of the parameter.
name
os_parameter&
name( const string& name )
Sets the name to name
and returns a reference to the parameter.
name
string
name() const
Returns the name.
print
/*
virtual */ void print( ostream& os )
const
Prints the parameter to os
.
value
string
value() const
Returns the value.
value
os_parameter&
value( const string& value )
Sets the value to value
and returns a reference to the parameter.
Copyright©1994-2026 Recursion
Software LLC
All Rights Reserved