owcimomd_main.cpp File Reference

#include "OW_config.h"
#include "OW_CIMOMEnvironment.hpp"
#include "OW_ConfigOpts.hpp"
#include "OW_Platform.hpp"
#include "OW_PlatformSignal.hpp"
#include "OW_Assertion.hpp"
#include "OW_Format.hpp"
#include "OW_Logger.hpp"
#include "OW_CerrLogger.hpp"
#include "OW_CmdLineParser.hpp"
#include <exception>
#include <iostream>
#include <new>

Include dependency graph for owcimomd_main.cpp:

Go to the source code of this file.

Defines

#define STRINGIFY_ARGUMENT(x)   #x
#define STRINGIFY_DEFINITION_VALUE(x)   STRINGIFY_ARGUMENT(x)

Enumerations

enum  {
  E_HELP_OPT, E_VERSION_OPT, E_LIBRARY_VERSION_OPT, E_DEBUG_MODE_OPT,
  E_CONFIG_FILE_OPT
}

Functions

void processCommandLine (int argc, char *argv[], CIMOMEnvironmentRef env)
void printUsage (std::ostream &ostrm)
const String COMPONENT_NAME ("ow.owcimomd")
void owcimomd_new_handler ()
int main (int argc, char *argv[])
void processCommandLine (int argc, char *argv[], CIMOMEnvironmentRef env)
void printUsage (std::ostream &ostrm)

Variables

const CmdLineParser::Option g_options []


Define Documentation

#define STRINGIFY_ARGUMENT  )     #x
 

#define STRINGIFY_DEFINITION_VALUE  )     STRINGIFY_ARGUMENT(x)
 


Enumeration Type Documentation

anonymous enum
 

Enumerator:
E_HELP_OPT 
E_VERSION_OPT 
E_LIBRARY_VERSION_OPT 
E_DEBUG_MODE_OPT 
E_CONFIG_FILE_OPT 

Definition at line 61 of file owcimomd_main.cpp.


Function Documentation

const String @0::COMPONENT_NAME "ow.owcimomd"   )  [static]
 

int main int  argc,
char *  argv[]
 

Definition at line 89 of file owcimomd_main.cpp.

References OW_NAMESPACE::COMPONENT_NAME, OW_NAMESPACE::Platform::daemonize(), OW_NAMESPACE::ConfigOpts::DEBUGFLAG_opt, env, OW_NAMESPACE::Platform::installFatalSignalHandlers(), logger, OW_DAEMON_NAME, OW_DEFAULT_DEBUGFLAG, OW_DEFAULT_RESTART_ON_ERROR, OW_LOG_FATAL_ERROR, OW_LOG_INFO, owcimomd_new_handler(), processCommandLine(), OW_NAMESPACE::Platform::rerunDaemon(), and OW_NAMESPACE::ConfigOpts::RESTART_ON_ERROR_opt.

void owcimomd_new_handler  ) 
 

Definition at line 328 of file owcimomd_main.cpp.

References OW_NAMESPACE::Platform::restartDaemon().

Referenced by main().

void @1::printUsage std::ostream &  ostrm  )  [static]
 

Definition at line 320 of file owcimomd_main.cpp.

References g_options, and OW_DAEMON_NAME.

void @0::printUsage std::ostream &  ostrm  )  [static]
 

Referenced by processCommandLine().

void @1::processCommandLine int  argc,
char *  argv[],
CIMOMEnvironmentRef  env
[static]
 

Definition at line 256 of file owcimomd_main.cpp.

References OW_NAMESPACE::Platform::daemonInit(), E_HELP_OPT, E_VERSION_OPT, g_options, OW_DAEMON_NAME, and printUsage().

void @0::processCommandLine int  argc,
char *  argv[],
CIMOMEnvironmentRef  env
[static]
 

Referenced by main().


Variable Documentation

const CmdLineParser::Option g_options[] [static]
 

Initial value:

      {
         {E_HELP_OPT, 'h', "help", CmdLineParser::E_NO_ARG, 0, "Show help about options and exit"},
         {E_VERSION_OPT, 'v', "version", CmdLineParser::E_NO_ARG, 0, "Show version information and exit"},
         {E_LIBRARY_VERSION_OPT, 'l', "libversion", CmdLineParser::E_NO_ARG, 0, "Show the required OpenWBEM library version and exit"},
         {E_DEBUG_MODE_OPT, 'd', "debug", CmdLineParser::E_NO_ARG, 0, "Use debug mode (does not detach from terminal)"},
         {E_CONFIG_FILE_OPT, 'c', "config", CmdLineParser::E_REQUIRED_ARG, 0, "Use <arg> instead of the default config file"},
         {0, 0, 0, CmdLineParser::E_NO_ARG, 0, 0}
      }

Definition at line 69 of file owcimomd_main.cpp.

Referenced by printUsage(), and processCommandLine().


Generated on Thu Feb 9 09:11:01 2006 for openwbem by  doxygen 1.4.6