'Classic' CCA c++ binding (ccaffeine-only) 0.5.7
KeyValuePort.h
1#ifndef KeyValuePort_h_seen
2#define KeyValuePort_h_seen
3
4
5#include <string>
6#include <vector>
7
8namespace classic {
9
10namespace gov {
11namespace cca {
12
56class KeyValuePort : public virtual Port {
57
58public:
59
61 virtual ~KeyValuePort() {}
62
66 virtual const ::std::string getValue(const ::std::string & key) CLASSIC_CCA_PURE;
67
72 virtual void setValue(const ::std::string & key, const ::std::string & value) CLASSIC_CCA_PURE;
73
76 virtual const ::std::string remove( const ::std::string & key) CLASSIC_CCA_PURE;
77
81 virtual ::std::vector< ::std::string > getKeys() CLASSIC_CCA_PURE;
82
83};
84
85} ENDSEMI // end namespace cca
86} ENDSEMI // end namespace gov
87} ENDSEMI // end namespace classic
88
89#endif //KeyValuePort_h_seen
UNADOPTED Standard: KeyValuePort for use decorating components with strings external to the implement...
Definition KeyValuePort.h:56
virtual void setValue(const ::std::string &key, const ::std::string &value) CLASSIC_CCA_PURE
Store the value for the given key, possibly replacing previous.
virtual const ::std::string remove(const ::std::string &key) CLASSIC_CCA_PURE
Delete a key and associated value.
virtual ::std::vector< ::std::string > getKeys() CLASSIC_CCA_PURE
Return NULL-terminated list of all known keys.
virtual ~KeyValuePort()
obligatory vdtor
Definition KeyValuePort.h:61
virtual const ::std::string getValue(const ::std::string &key) CLASSIC_CCA_PURE
Return the value of the requested key.
A tag interface to identify an interface capable of being exported to or imported from a CCA componen...
Definition cca.h:92
To deal with babel taking over this same namespace we name this one "classic.
Definition SimpleStamper.h:7