blob: dd4f11407a8fa6ea134d4f5f3f117fafc4b0a628 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
// $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_BaseC.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "CIAO_Container_Export.h"
#include "CIAO_ValueC.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 (ACE_ENV_SINGLE_ARG_DECL);
};
}
#if defined (__ACE_INLINE__)
#include "Cookies.inl"
#endif /* !defined INLINE */
#include /**/ "ace/post.h"
#endif /* CIAO_COOKIES_H */
|