Library: RemotingNG
Package: ORB
Header: Poco/RemotingNG/AttributedObject.h
Description
A AttributedObject can hold any number of attributes in the form of name-value pairs.
Inheritance
Known Derived Classes: EventSubscriber, Poco::RemotingNG::JSONRPC::Transport, Poco::RemotingNG::REST::Transport, Poco::RemotingNG::SOAP::Transport, ServerTransport, Skeleton, Poco::RemotingNG::TCP::Connection, Poco::RemotingNG::TCP::ServerTransport, Poco::RemotingNG::TCP::Transport, Transport, Poco::UPnP::GENA::Transport, Poco::UPnP::SOAP::Transport
Member Summary
Member Functions: getAttribute, hasAttribute, operator =, setAttribute
Types
NameValueMap
typedef std::map < std::string, std::string > NameValueMap;
Ptr
typedef Poco::AutoPtr < AttributedObject > Ptr;
Constructors
AttributedObject
Creates an AttributedObject.
AttributedObject
AttributedObject(
const AttributedObject & other
);
Creates an AttributedObject by copying the attributes from another one.
Destructor
~AttributedObject
virtual ~AttributedObject();
Destroys the AttributedObject.
Member Functions
getAttribute
const std::string & getAttribute(
const std::string & name
) const;
Returns the value of the attribute with the given name. Throws a Poco::NotFoundException if no such attribute exists.
getAttribute
const std::string & getAttribute(
const std::string & name,
const std::string & deflt
) const;
Returns the value of the attribute with the given name, or the given default value if no such attribute exists.
hasAttribute
bool hasAttribute(
const std::string & name
) const;
Returns true if and only if an attribute with the given name exists.
operator =
AttributedObject & operator = (
const AttributedObject & other
);
Assigns the attributes from another AttributedObject.
setAttribute
void setAttribute(
const std::string & name,
const std::string & value
);
Adds or modifies the attribute with the given name.