blob: 9f573163f6a5974ec37194ccc0f1e2d405b8dadd (
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
|
/* -*- C++ -*- */
// $Id$
// ============================================================================
//
// = LIBRARY
// ace
//
// = FILENAME
// DEV.h
//
// = AUTHOR
// Gerhard Lenzer
//
// ============================================================================
#ifndef ACE_DEV_H
#define ACE_DEV_H
#include "ace/IO_SAP.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/DEV_Addr.h"
// The following is necessary since many C++ compilers don't support
// typedef'd types inside of classes used as formal template
// arguments... ;-(. Luckily, using the C++ preprocessor I can hide
// most of this nastiness!
#if defined (ACE_HAS_TEMPLATE_TYPEDEFS)
#define ACE_DEV_CONNECTOR ACE_DEV_Connector
#define ACE_DEV_STREAM ACE_DEV_Stream
#else /* TEMPLATES are broken (must be a cfront-based compiler...) */
#define ACE_DEV_CONNECTOR ACE_DEV_Connector, ACE_DEV_Addr
#define ACE_DEV_STREAM ACE_DEV_Stream, ACE_DEV_Addr
#endif /* ACE_TEMPLATE_TYPEDEFS */
class ACE_Export ACE_DEV : public ACE_IO_SAP
{
// = TITLE
// Defines the member functions for the base class of the
// ACE_DEV abstraction.
public:
int close (void);
// Close down the DEVICE
void dump (void) const;
// Dump the state of an object.
ACE_ALLOC_HOOK_DECLARE;
// Declare the dynamic allocation hooks.
int disable (int signum) const ;
// Disable signal <signum>
// This is here to prevent Win32 from
// disabling SPIPE using socket calls
protected:
ACE_DEV (void);
// Ensure that this class is an abstract base class
};
#if !defined (ACE_LACKS_INLINE_FUNCTIONS)
#include "ace/DEV.i"
#endif
#endif /* ACE_DEV_H */
|