Syslogd.h

Go to the documentation of this file.
00001 #ifndef __SYSLOGD_H__
00002 #define __SYSLOGD_H__
00003 
00004 /*
00005 
00006 $Header$
00007 
00008 */
00009 
00010 #include "Service.h"
00011 #include "Registry.h"
00012 
00013 static const char *const NAME_SYSLOGD = "syslogd";
00014 static const char *const MAN_SYSLOGD  = "\
00015 Service <service>syslogd</service> is responsible for log message delivery via syslog protocol.\
00016 ";
00017 
00018 // Registry manuals.
00019 
00020 using namespace std;
00021 
00022 class Syslogd : public Service<Syslogd>
00023 {
00024 
00025 friend class Service<Syslogd>;
00026 
00027   PYLON_OBJECT
00028 
00029 public:
00030 
00031   inline
00032   static String NAME();
00033 
00034   inline
00035   static String MANUAL();
00036 
00037   inline
00038   static unsigned int instancesNumberLimit();
00039 
00040 protected:
00041 
00042   Syslogd(const ValueList &params);
00043   virtual ~Syslogd();
00044 
00045 private:
00046 
00047   SLOT(logDebug, const String &timestamp, const String &fileName,
00048                  const unsigned int lineNum, const String &functionName, const String &msg);
00049   SLOT(logError, const String &timestamp, const String &fileName,
00050                  const unsigned int lineNum, const String &functionName, const String &msg);
00051   SLOT(logWarning, const String &timestamp, const String &fileName,
00052                    const unsigned int lineNum, const String &functionName, const String &msg);
00053   SLOT(logInfo, const String &timestamp, const String &fileName,
00054                 const unsigned int lineNum, const String &functionName, const String &msg);
00055 
00056 };
00057 
00058 inline
00059 String Syslogd::NAME()
00060 {
00061   return NAME_SYSLOGD;
00062 }
00063 
00064 inline
00065 String Syslogd::MANUAL()
00066 {
00067   return MAN_SYSLOGD;
00068 }
00069 
00070 inline
00071 unsigned int Syslogd::instancesNumberLimit()
00072 {
00073   return 1;
00074 }
00075 
00076 #endif

Generated on Thu Sep 6 20:11:25 2007 for Pylon Application Platform by  doxygen 1.5.1