sipxportlib  Version 3.3
OsSysLogMsg.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 
12 #ifndef _OsSysLogMsg_h_
13 #define _OsSysLogMsg_h_
14 
15 // SYSTEM INCLUDES
16 
17 // APPLICATION INCLUDES
18 #include "os/OsDefs.h"
19 #include "os/OsSysLog.h"
20 #include "os/OsMsg.h"
21 
22 // DEFINES
23 // MACROS
24 // EXTERNAL FUNCTIONS
25 // EXTERNAL VARIABLES
26 // CONSTANTS
27 // STRUCTS
28 // TYPEDEFS
29 // FORWARD DECLARATIONS
30 
31 //:Base class for message queue buffers
32 
33 class OsSysLogMsg : public OsMsg
34 {
35 /* //////////////////////////// PUBLIC //////////////////////////////////// */
36 public:
37 
39  {
40  LOG = 0, // Log Message
41  ENABLE_CONSOLE, // Enable console output
42  DISABLE_CONSOLE, // Disable console output
43  HEAD, // Head the log
44  TAIL, // Tail the log
45  SET_FILE, // Set the target output file
46  ADD_SOCKET, // Add a target output socket
47  SET_FLUSH_PERIOD, // Set the flush period
48  FLUSH_LOG, // Flush the log (write to disk)
49  SET_CALLBACK // Set the callback function
50  } ;
51  //: Defines the various SysLog Msg Subtypes
52  //
53  //
63 
64 
65 /* ============================ CREATORS ================================== */
66 
67  OsSysLogMsg(const unsigned char msgSubType, const void* pData = NULL) ;
68  //:Constructor
69 
70  OsSysLogMsg(const OsSysLogMsg& rOsSysLogMsg);
71  //:Copy constructor
72 
73  virtual OsMsg* createCopy(void) const;
74  //:Create a copy of this msg object (which may be of a derived type)
75 
76  virtual
77  ~OsSysLogMsg();
78  //:Destructor
79 
80 /* ============================ MANIPULATORS ============================== */
81 
82  OsSysLogMsg& operator=(const OsSysLogMsg& rhs);
83  //:Assignment operator
84 
85 /* ============================ ACCESSORS ================================= */
86 
87  const void* getData() const ;
88  //:Get data associated with this message
89 
90 /* ============================ INQUIRY =================================== */
91 
92 /* //////////////////////////// PROTECTED ///////////////////////////////// */
93 protected:
94 
95 /* //////////////////////////// PRIVATE /////////////////////////////////// */
96 private:
97  const void* mpData;
98 
99 };
100 
101 /* ============================ INLINE METHODS ============================ */
102 
103 #endif /* _OsSysLogMsg_h_ */
104 
Definition: OsSysLogMsg.h:46
const void * getData() const
Definition: OsSysLogMsg.cpp:72
Definition: OsSysLogMsg.h:45
Definition: OsSysLogMsg.h:49
#define NULL
Definition: UtlDefs.h:29
Definition: OsSysLogMsg.h:33
Definition: OsSysLogMsg.h:44
Definition: OsSysLogMsg.h:48
Definition: OsSysLogMsg.h:47
OsSysLogMsg(const unsigned char msgSubType, const void *pData=NULL)
enumcode: LOG - Log Message enumcode: ENABLE_CONSOLE - Enable console output enumcode: DISABLE_CONSOL...
Definition: OsSysLogMsg.cpp:28
SubMsgTypes
Definition: OsSysLogMsg.h:38
Definition: OsSysLogMsg.h:43
virtual OsMsg * createCopy(void) const
Definition: OsSysLogMsg.cpp:43
Definition: OsSysLogMsg.h:41
OsSysLogMsg & operator=(const OsSysLogMsg &rhs)
Definition: OsSysLogMsg.cpp:57
Definition: OsSysLogMsg.h:42
Definition: OsMsg.h:36
virtual ~OsSysLogMsg()
Definition: OsSysLogMsg.cpp:50
Definition: OsSysLogMsg.h:40