blob: f7d64d08a1eab09447de8549e9e64bade3ac4f34 (
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
76
|
/* -*- C++ -*- */
// $Id$
// ============================================================================
//
// = LIBRARY
// ipp_ace
//
// = FILENAME
// CLASSIX/Port_Default.h
//
// = AUTHOR
// Wei Chiang
//
// = COPYRIGHT
// Copyright 1998 Nokia Telecommunications
//
// ============================================================================
#if !defined (ACE_CLASSIX_PORT_DEFAULT_H)
#define ACE_CLASSIX_PORT_DEFAULT_H
#include "ace/Singleton.h"
#include "CLASSIX/Port.h"
class ACE_CLASSIX_Port_Default : public ACE_CLASSIX_Port
{
// = TITLE
// Implements the address wrapper of an actor's default port.
//
// = DESCRIPTION
// This corresponds to the address of an actor's default port
// which does not change
// in the life time of the actor. Therefore the address information
// in this class can not be modified once it is created.
//
// Each actor has one and only one default port. Therefore an instance
// of this class is a singleton. The protected constructor and the
// friendship with the ACE_Singleton preventys this class from being
// instantiated by other classes.
//
// = NOTE
//
// = SEE ALSO
// <ACE_CLASSIX_PORT>
//
friend class ACE_Singleton<ACE_CLASSIX_Port_Default, ACE_SYNCH_NULL_MUTEX>;
/* -----------------------------------------------------*/
// = Access
virtual void set_addr(void*, int);
ACE_CLASSIX_Port const& operator =(ACE_CLASSIX_Port const&);
ACE_CLASSIX_Port const& operator =(ACE_Addr const&);
// Does nothing...The default port's address cannot be changed
ACE_ALLOC_HOOK_DECLARE;
// Declare the dynamic allocation hooks.
protected:
/* -----------------------------------------------------*/
// = Initialization methods.
ACE_CLASSIX_Port_Default ();
// Wrapper for the Actor's default port
};
#if defined (__ACE_INLINE__)
#include "CLASSIX/Port_Default.i"
#endif /* __ACE_INLINE__ */
/* ------------------------------------------------------------------------- */
typedef ACE_Singleton<ACE_CLASSIX_Port_Default, ACE_SYNCH_NULL_MUTEX>
ACE_CLASSIX_DEFAULT_PORT;
/* ------------------------------------------------------------------------- */
#endif /* ACE_CLASSIX_PORT_DEFAULT_H */
|