summaryrefslogtreecommitdiff
path: root/modules/CIAO/ciao/Cookies.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/CIAO/ciao/Cookies.h')
-rw-r--r--modules/CIAO/ciao/Cookies.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/modules/CIAO/ciao/Cookies.h b/modules/CIAO/ciao/Cookies.h
new file mode 100644
index 00000000000..72cad6f5744
--- /dev/null
+++ b/modules/CIAO/ciao/Cookies.h
@@ -0,0 +1,73 @@
+// $Id$
+
+/**
+ * @file Cookies.h
+ *
+ * A CIAO implementation of Cookie valuetype.
+ *
+ * @author Nanbor Wang <nanbor@cs.wustl.edu>
+ */
+
+#ifndef CIAO_COOKIES_H
+#define CIAO_COOKIES_H
+#include /**/ "ace/pre.h"
+
+#include "CCM_CookieC.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "CIAO_Container_Export.h"
+#include "ace/Active_Map_Manager.h"
+
+namespace CIAO
+{
+ /**
+ * @class Map_Key_Cookie
+ *
+ * @brief A internal cookie valuetype implementation.
+ */
+ class CIAO_CONTAINER_Export Map_Key_Cookie
+ : public virtual OBV_Components::Cookie
+ {
+ public:
+ Map_Key_Cookie (void);
+
+ virtual ~Map_Key_Cookie (void);
+
+ /// Initialize a @c Cookie with an @c ACE_Active_Map_Manager_Key
+ Map_Key_Cookie (const ACE_Active_Map_Manager_Key &key);
+
+ /// Insert the @c ACE_Active_Map_Manager_Key
+ bool insert (ACE_Active_Map_Manager_Key &key);
+
+ /// Operation on the valuetype
+ CORBA::OctetSeq * get_cookie (void);
+
+ /// Extract the @c ACE_Active_Map_Manager_Key
+ static bool extract (::Components::Cookie *c,
+ ACE_Active_Map_Manager_Key &key);
+ };
+
+ /**
+ * @class Map_Key_Cookie_init
+ *
+ * @brief Valuefactory implementation for Cookies.
+ */
+ class CIAO_CONTAINER_Export Map_Key_Cookie_init :
+ public virtual ::Components::Cookie_init
+ {
+ public:
+ virtual ~Map_Key_Cookie_init (void);
+
+ virtual CORBA::ValueBase *create_for_unmarshal ();
+ };
+}
+
+#if defined (__ACE_INLINE__)
+#include "Cookies.inl"
+#endif /* !defined INLINE */
+
+#include /**/ "ace/post.h"
+#endif /* CIAO_COOKIES_H */