Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

OS_Log_Msg_Attributes.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    OS_Log_Msg_Attributes.h
00006  *
00007  *  $Id: OS_Log_Msg_Attributes.h,v 1.1.1.1 2001/12/04 14:33:04 chad Exp $
00008  *
00009  *  @author Carlos O'Ryan
00010  */
00011 //=============================================================================
00012 
00013 
00014 #ifndef ACE_OS_LOG_MSG_ATTRIBUTES_H
00015 #define ACE_OS_LOG_MSG_ATTRIBUTES_H
00016 #include "ace/pre.h"
00017 
00018 #include "ace/config-all.h"
00019 #include "ace/streams.h"
00020 #include /**/ <stdarg.h> // LynxOS requires this before stdio.h
00021 #include /**/ <stdio.h>
00022 
00023 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00024 # pragma once
00025 #endif /* ACE_LACKS_PRAGMA_ONCE */
00026 
00027 #if !defined (ACE_OSTREAM_TYPE)
00028 # if defined (ACE_LACKS_IOSTREAM_TOTALLY)
00029 #   define ACE_OSTREAM_TYPE FILE
00030 # else  /* ! ACE_LACKS_IOSTREAM_TOTALLY */
00031 #   define ACE_OSTREAM_TYPE ostream
00032 # endif /* ! ACE_LACKS_IOSTREAM_TOTALLY */
00033 #endif /* ! ACE_OSTREAM_TYPE */
00034 
00035 
00036 #include "ace/OS_Export.h"
00037 
00038 /// The attributes required by ACE_Log_Msg.
00039 /**
00040  * When a new thread is created the TSS resources for the Log_Msg
00041  * class in the new thread may be inherited by the creator thread.
00042  * The base_attributes are encapsulated in this class to simplify their
00043  * manipulation and destruction.
00044  *
00045  * The contents of the class must be made available to the OS layer,
00046  * because they are part of the thread descriptor.
00047  */
00048 class ACE_OS_Export ACE_OS_Log_Msg_Attributes
00049 {
00050 public:
00051   /// Constructor
00052   ACE_OS_Log_Msg_Attributes (void);
00053 
00054 protected:
00055   friend class ACE_Log_Msg;
00056 
00057   /// Ostream where the new TSS Log_Msg will use.
00058   ACE_OSTREAM_TYPE *ostream_;
00059 
00060   /// Priority_mask to be used in new TSS Log_Msg.
00061   unsigned long priority_mask_;
00062 
00063   /// Are we allowing tracing in this thread?
00064   int tracing_enabled_;
00065 
00066   /// Indicates whether we should restart system calls that are
00067   /// interrupted.
00068   int restart_;
00069 
00070   /// Depth of the nesting for printing traces.
00071   int trace_depth_;
00072 
00073 #   if defined (ACE_HAS_WIN32_STRUCTURAL_EXCEPTIONS)
00074   /// Structured exception handling Callbacks, only used under Win32
00075   ACE_SEH_EXCEPT_HANDLER seh_except_selector_;
00076   ACE_SEH_EXCEPT_HANDLER seh_except_handler_;
00077 #   endif /* ACE_HAS_WIN32_STRUCTURAL_EXCEPTIONS */
00078 };
00079 
00080 # if defined (ACE_HAS_INLINED_OSCALLS)
00081 #   if defined (ACE_INLINE)
00082 #     undef ACE_INLINE
00083 #   endif /* ACE_INLINE */
00084 #   define ACE_INLINE inline
00085 #   include "ace/OS_Log_Msg_Attributes.inl"
00086 # endif /* ACE_HAS_INLINED_OSCALLS */
00087 
00088 #include "ace/post.h"
00089 #endif /* ACE_OS_LOG_MSG_ATTRIBUTES_H */

Generated on Mon Jun 16 11:20:44 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002