os_meta_info


A piece of page meta-information not defined by other head elements.

An os_meta_info is specialized page meta-information that can be added to an os_head . os_meta_info specifies whether its information must be implicitly understood by the receiver, such as an HTTP server or a browser, or whether the information should be used as the content for a defined HTTP response header, such as " Keywords ".

An os_meta_info is described by a name and a content. The name and content are specified in the constructor and can be modified through the name() , content() , and http_equiv() member functions. Through its name/content pair, an os_meta_info provides a means to discover that data exists within a page, how it might be accessed, and its content, quality, and features. The method by which meta-information is extracted and how it is used are left strictly to the HTTP server or a browser.

An os_meta_info should not be used within an os_head when a specific element like an os_title would be more appropriate.

Declaration

#include <ospace/web/metainfo.h>
class os_meta_info : public os_element

Interface

Constructor
os_meta_info( const string& name , const string& content , bool make_http_equiv )
Constructs a meta-information element with name name and content content . If make_http_equiv (default false ) is true , name and content are converted to an HTTP response header.
clone
/* virtual */ os_element* clone() const
Returns a pointer to a copy of the meta-information.
content
string content() const
Returns the content.
content
os_meta_info& content( const string& content )
Sets the content to content , and returns a reference to the meta-information.
http_equiv
os_meta_info& http_equiv( const string& field )
Converts the meta-information to an HTTP response header field field , and returns a reference to the meta-information.
http_equiv
string http_equiv() const
Returns the HTTP response header name, or the empty string if not set.
name
string name() const
Returns the name, or the empty string if not set.
name
os_meta_info& name( const string& name )
Sets the name to name , cancels any conversion to an HTTP response header, and returns a reference to the meta-information.
print
/* virtual */ void print( ostream& os ) const
Prints the meta-information to os .

Copyright©1994-2026 Recursion Software LLC
All Rights Reserved