blob: 97e6ce292350345f76b92fb32ecbd3e898853288 (
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
|
/* -*- C++ -*- */
// $Id$
// ============================================================================
//
// = LIBRARY
// ace
//
// = FILENAME
// RMCast_Module_Factory.h
//
// = AUTHOR
// Carlos O'Ryan <coryan@uci.edu>
//
// ============================================================================
#ifndef ACE_RMCAST_MODULE_FACTORY_H
#define ACE_RMCAST_MODULE_FACTORY_H
#include "ace/pre.h"
#include "RMCast.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
class ACE_RMCast_Module;
class ACE_RMCast_IO_UDP;
//! Create Module stacks
/*!
* Different application will probably require different
* configurations in their Module stack, some will just want best
* effort semantics. Others will use Reliable communication with a
* maximum retransmission time. Furthermore, applications may want to
* receive messages in send order, or just as soon as they are
* received.
* Obviously most applications will want to change want happens once a
* message is completely received.
*
* To achieve all this flexibility the IO layer uses this factory to
* create the full stack of Modules corresponding to a single
* consumer.
* To keep the complexity under control the intention is to create
* helper Factories, such as Reliable_Module_Factory where
* applications only need to customize a few features.
*/
class ACE_RMCast_Export ACE_RMCast_Module_Factory
{
public:
//! Destructor
virtual ~ACE_RMCast_Module_Factory (void);
//! Create a new proxy
virtual ACE_RMCast_Module *create (void) = 0;
//! Destroy a proxy
/*!
* Some factories may allocate modules from a pool, or return the
* same module for all proxies. Consequently, only the factory
* knows how to destroy them.
*/
virtual void destroy (ACE_RMCast_Module *) = 0;
};
#if defined (__ACE_INLINE__)
#include "RMCast_Module_Factory.i"
#endif /* __ACE_INLINE__ */
#include "ace/post.h"
#endif /* ACE_RMCAST_MODULE_FACTORY_H */
|