CCAFFEINE  0.8.8
DefaultKeyValuePort.h
00001 #ifndef __DEFAULTKEYVALUEPORT_H__
00002 #define __DEFAULTKEYVALUEPORT_H__
00003 
00004 
00016 class DefaultKeyValuePort 
00017 #ifdef HAVE_CLASSIC
00018 : public virtual classic::gov::cca::KeyValuePort
00019 #endif // HAVE_CLASSIC
00020 {
00021 
00022 private:
00023         ::ccafeopq::TypeMap_shared tm;
00024 
00025 public:
00026 
00027   DefaultKeyValuePort( ::ccafeopq::TypeMap_shared tm);
00028   DefaultKeyValuePort();
00029   void setMap( ::ccafeopq::TypeMap_shared tm);
00030 
00031   virtual ~DefaultKeyValuePort();
00032 
00034   virtual const ::std::string getValue(const ::std::string & key);
00035 
00039   virtual void setValue( const ::std::string & key, const ::std::string & value) ;
00040 
00043   virtual const ::std::string remove( const ::std::string & key) ;
00044 
00046   virtual ::std::vector< ::std::string > getKeys(); 
00047 
00048 };
00049 #endif //__DEFAULTKEYVALUEPORT_H__