summaryrefslogtreecommitdiff
path: root/ACE/ace/Flag_Manip.h
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:30 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:30 +0000
commitc44379cc7d9c7aa113989237ab0f56db12aa5219 (patch)
tree66a84b20d47f2269d8bdc6e0323f338763424d3a /ACE/ace/Flag_Manip.h
parent3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (diff)
downloadATCD-c44379cc7d9c7aa113989237ab0f56db12aa5219.tar.gz
Repo restructuring
Diffstat (limited to 'ACE/ace/Flag_Manip.h')
-rw-r--r--ACE/ace/Flag_Manip.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/ACE/ace/Flag_Manip.h b/ACE/ace/Flag_Manip.h
new file mode 100644
index 00000000000..e1f3fc1d997
--- /dev/null
+++ b/ACE/ace/Flag_Manip.h
@@ -0,0 +1,58 @@
+// -*- C++ -*-
+
+//=============================================================================
+/**
+ * @file Flag_Manip.h
+ *
+ * $Id$
+ *
+ * This class includes the functions used for the Flag Manipulation.
+ *
+ * @author Priyanka Gontla <pgontla@doc.ece.uci.edu>
+ */
+//=============================================================================
+
+#ifndef ACE_FLAG_MANIP_H
+#define ACE_FLAG_MANIP_H
+
+#include /**/ "ace/pre.h"
+
+#include "ace/ACE_export.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "ace/Global_Macros.h"
+#include "ace/os_include/os_fcntl.h" /* For values passed to these methods */
+
+#if defined (ACE_EXPORT_MACRO)
+# undef ACE_EXPORT_MACRO
+#endif
+#define ACE_EXPORT_MACRO ACE_Export
+
+ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+
+namespace ACE
+{
+ // = Set/get/clear various flags related to I/O HANDLE.
+ /// Set flags associated with @a handle.
+ extern ACE_Export int set_flags (ACE_HANDLE handle,
+ int flags);
+
+ /// Clear flags associated with @a handle.
+ extern ACE_Export int clr_flags (ACE_HANDLE handle,
+ int flags);
+
+ /// Return the current setting of flags associated with @a handle.
+ ACE_NAMESPACE_INLINE_FUNCTION int get_flags (ACE_HANDLE handle);
+}
+
+ACE_END_VERSIONED_NAMESPACE_DECL
+
+#if defined (__ACE_INLINE__)
+#include "ace/Flag_Manip.inl"
+#endif /* __ACE_INLINE__ */
+
+#include /**/ "ace/post.h"
+#endif /* ACE_FLAG_MANIP_H */