Library: RemotingNG
Package: ORB
Header: Poco/RemotingNG/AttributedObject.h
A AttributedObject can hold any number of attributes in the form of name-value pairs.
Direct Base Classes: Poco::RefCountedObject
All Base Classes: Poco::RefCountedObject
Known Derived Classes: Poco::RemotingNG::JSONRPC::Transport, Poco::RemotingNG::SOAP::Transport, Poco::RemotingNG::TCP::Connection, Poco::RemotingNG::TCP::Transport, EventSubscriber, Transport, Skeleton, Poco::UPnP::GENA::Transport, Poco::UPnP::SOAP::Transport
Member Functions: getAttribute, hasAttribute, setAttribute
Inherited Functions: duplicate, referenceCount, release
typedef std::map < std::string, std::string > NameValueMap;
typedef Poco::AutoPtr < AttributedObject > Ptr;
Creates a AttributedObject.
virtual ~AttributedObject();
Destroys the AttributedObject.
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.
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.
bool hasAttribute(
const std::string & name
) const;
Returns true if and only if an attribute with the given name exists.
void setAttribute(
const std::string & name,
const std::string & value
);
Adds or modifies the attribute with the given name.