Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress C++ API Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

rwsf::Attribute

Group:  Core Generic Object


rwsf::Attributerwsf::HandleBase

Local Index

Members

Header File

#include rwsf/core/Attribute.h

Description

rwsf::Attribute provides a wrapper around objects of any type. rwsf::Attribute contains a single object by value. The contained object must provide a default constructor, a copy constructor, and an assignment operator. The copy constructor must not invalidate the original object. The class provides an inserter template to copy values into an instance and an extractor template to copy values out of an instance.

An instance of rwsf::Attribute is the value of the key/value pair in several HydraSCA Core and Web Services Fabrication classes, such as rwsf::CallInfo and rwsf::NamedObject.

rwsf::Attribute makes use of the handle/body idiom in which rwsf::Attribute is the handle, and rwsf::AttributeImp is the body.

Templatized insertion and extraction operators are provided for moving typed objects into and out of an rwsf::Attribute instance.

Public Enums

Lifetime { Transient, Persistent }

Public Constructors

Attribute(Lifetime l = Transient);
Attribute(const Attribute & rhs);

Public Destructors

virtual
~Attribute();

Public Static Member Functions

T &
value(Attribute & attr);
const T &
value(const Attribute & attr);

Public Member Functions

bool
isTransient() const;
void
setTransient(bool isTransient);

Public Operators

Attribute &
operator=(const Attribute & rhs);


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.