summaryrefslogtreecommitdiff
path: root/CIAO/ciao/Cookies.h
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/ciao/Cookies.h')
-rw-r--r--CIAO/ciao/Cookies.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/CIAO/ciao/Cookies.h b/CIAO/ciao/Cookies.h
new file mode 100644
index 00000000000..55200008d38
--- /dev/null
+++ b/CIAO/ciao/Cookies.h
@@ -0,0 +1,66 @@
+// $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 Cookie_Impl
+ *
+ * @brief A cookie implementation using CORBA::ULong
+ */
+ class CIAO_CONTAINER_Export Cookie_Impl
+ : public virtual OBV_Components::Cookie
+ {
+ public:
+ Cookie_Impl (void);
+ virtual ~Cookie_Impl (void);
+
+ /// Initialize a @c Cookie with a @c CORBA::ULong
+ Cookie_Impl (CORBA::ULong const &key);
+
+ /// Extract the @c CORBA::ULong
+ static bool extract (Components::Cookie const * const c,
+ CORBA::ULong &key);
+ };
+
+ /**
+ * @class Cookie_Impl_init
+ *
+ * @brief Valuefactory implementation for Cookie_Impl.
+ */
+ class CIAO_CONTAINER_Export Cookie_Impl_init :
+ public virtual Components::Cookie_init
+ {
+ public:
+ virtual ~Cookie_Impl_init (void);
+
+ virtual CORBA::ValueBase *create_for_unmarshal (void);
+ };
+}
+
+#if defined (__ACE_INLINE__)
+#include "Cookies.inl"
+#endif /* !defined INLINE */
+
+#include /**/ "ace/post.h"
+#endif /* CIAO_COOKIES_H */