blob: c714b8ae8fe974b55288cd0be5d878875b6bba44 (
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
|
// $Id$
// FILENAME
// ACE_Flag_Manip.h
//
// DESCRIPTION
// IPC_SAP uses only two functions in ACE and hence is linking the
// entire ACE. Splitting the functions that are used in IPC_SAP to a */
// different class and linking to that class instead of the whole
// thing would result in reduced dependency on ACE and ultimately
// reduced FP.
//
// =======================================================================
#ifndef ACE_ACE_FLAG_MANIP_H
#define ACE_ACE_FLAG_MANIP_H
#include "ace/pre.h"
#include "OS.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
class ACE_Export ACE_Flag_Manip
{
public:
// = Set/get/clear various flags related to I/O HANDLE.
static int set_flags (ACE_HANDLE handle,
int flags);
// Set flags associated with <handle>.
static int clr_flags (ACE_HANDLE handle,
int flags);
// Clear flags associated with <handle>.
static int get_flags (ACE_HANDLE handle);
// Return the current setting of flags associated with <handle>.
};
#if !defined (ACE_LACKS_INLINE_FUNCTIONS)
#include "ace/ACE_Flag_Manip.i"
#endif /* ACE_LACKS_INLINE_FUNCTIONS */
#include "ace/post.h"
#endif /* ACE_ACE_FLAG_MANIP_H */
|