BUG#: 6541
authorkumpf <kumpf>
Tue, 19 Jun 2007 17:58:02 +0000 (17:58 +0000)
committerkumpf <kumpf>
Tue, 19 Jun 2007 17:58:02 +0000 (17:58 +0000)
TITLE: Some source files do not meet chksrc requirements
DESCRIPTION: Reformat according to the coding conventions.

24 files changed:
src/Clients/Cimop/Cimop.cpp
src/Clients/cimsub/CIMSubCommand.h
src/Clients/cliutils/Command.h
src/Clients/cliutils/CommandException.h
src/Pegasus/Common/Network.h
src/Pegasus/IndicationService/IndicationConstants.cpp
src/Pegasus/IndicationService/IndicationConstants.h
src/Pegasus/IndicationService/IndicationMessageConstants.h
src/Pegasus/IndicationService/IndicationService.cpp
src/Pegasus/IndicationService/IndicationService.h
src/Pegasus/IndicationService/ProviderClassList.h
src/Pegasus/IndicationService/SubscriptionRepository.cpp
src/Pegasus/IndicationService/SubscriptionTable.cpp
src/Pegasus/Server/CIMServer.cpp
src/Pegasus/getoopt/getoopt.cpp
src/Pegasus/getoopt/getoopt.h
src/Server/cimserver.cpp
src/Service/ARM_zOS.cpp
src/Service/AutoRestartMgr_ZOS_ZSERIES_IBM.h
src/Service/ServerProcess.h
src/Service/ServerProcessUnix.cpp
src/Service/ServerProcessWindows.cpp
src/Service/Service.cpp
src/Service/Service.h

index 15cb7a155c029c8ef317092d7d66cd562b30cdb5..53f052de4dbcb08e6d2174eb0bbc8fa1ed6fcb48 100644 (file)
@@ -128,7 +128,8 @@ int main(const int argc, const char **argv)
     else
     // hostname was specified; do remote connect
     {
-      if (sslContext) _c.connect(_hostName, _portNumber, *sslContext, _userName, _passWord);
+      if (sslContext)
+        _c.connect(_hostName, _portNumber, *sslContext, _userName, _passWord);
       else _c.connect(_hostName, _portNumber, _userName, _passWord);
     }
   }
@@ -717,7 +718,11 @@ cout << "value:     " << _makeValue(v,pDef).toString() << endl;
   // Now we can call setProperty()
   try
   {
-    _c.setProperty( _nameSpace, ref, pDef.getName().getString(), _makeValue(v,pDef) );
+    _c.setProperty(
+      _nameSpace,
+      ref,
+      pDef.getName().getString(),
+      _makeValue(v,pDef));
   }
   catch (Exception &e)
   {
@@ -823,7 +828,8 @@ int _createInstance(const int argc, const char **argv)
     // display the property
     CIMProperty pDef(cldef.getProperty(i));
     if (_isKey(pDef)) cout << "[ key ] ";
-    cout << cimTypeToString(pDef.getType()) << " " << pDef.getName().getString();
+    cout << cimTypeToString(pDef.getType()) << " " <<
+      pDef.getName().getString();
     if (pDef.isArray()) cout << "[]";
     if (pDef.isArray())
     {
@@ -947,7 +953,8 @@ int _modifyInstance(const int argc, const char **argv)
   Array<CIMName> pNames;
   while (true) // break when user enters escape value
   {
-    cout << "Property (1.." << cldef.getPropertyCount() << ", 0=quit, 999=all)? " << flush;
+    cout << "Property (1.." << cldef.getPropertyCount() <<
+        ", 0=quit, 999=all)? " << flush;
     cin >> n;
 
     if (n==0 || n==999) break;
@@ -961,7 +968,8 @@ int _modifyInstance(const int argc, const char **argv)
     }
 
     // Ask for value
-    cout << cimTypeToString(pDef.getType()) << " " << pDef.getName().getString() << "? " << flush;
+    cout << cimTypeToString(pDef.getType()) << " " <<
+        pDef.getName().getString() << "? " << flush;
     char v[1024];
     gets(v);
 
@@ -986,7 +994,8 @@ int _modifyInstance(const int argc, const char **argv)
     for (Uint32 i=0; i<cldef.getPropertyCount(); i++)
     {
       CIMProperty pDef(cldef.getProperty(i));
-      cout << cimTypeToString(pDef.getType()) << " " << pDef.getName().getString();
+      cout << cimTypeToString(pDef.getType()) << " " <<
+        pDef.getName().getString();
       if (pDef.isArray()) cout << "[]";
       if (pDef.isArray())
       {
@@ -1197,7 +1206,8 @@ Array<CIMKeyBinding> _inputInstanceKeys(CIMClass &cldef)
     CIMProperty prop = cldef.getProperty(i);
     if (_isKey(prop))
     {
-      cout << prop.getName().getString() << " (" << cimTypeToString(prop.getType()) << "): " << flush;
+      cout << prop.getName().getString() << " (" <<
+        cimTypeToString(prop.getType()) << "): " << flush;
       char s[1024];
       gets(s);
       enum CIMKeyBinding::Type t;
@@ -1358,24 +1368,24 @@ void _usage()
   cerr << "  enumerateInstances|ei <class>" << endl;
   cerr << "  enumerateInstanceNames|ein <class>" << endl;
   cerr << "  getProperty|gp <class> { ask | list } [ <propnam> ]" << endl;
-  // cerr << "  setProperty|sp <class>|{instanceID [prop[=value]]}" << endl;
-  // cerr << "  invokeMethod|im <class>|{instanceID [method [args...]]}" << endl;
-  // cerr << "  createClass|cc classdef" << endl;
-  // cerr << "  modifyClass|mc classdef" << endl;
+  //cerr << "  setProperty|sp <class>|{instanceID [prop[=value]]}" << endl;
+  //cerr << "  invokeMethod|im <class>|{instanceID [method [args...]]}" << endl;
+  //cerr << "  createClass|cc classdef" << endl;
+  //cerr << "  modifyClass|mc classdef" << endl;
   cerr << "  deleteClass|dc <class>" << endl;
-  // cerr << "  createInstance|ci <class>|<instancedef>" << endl;
+  //cerr << "  createInstance|ci <class>|<instancedef>" << endl;
   cerr << "  createInstance|ci <class>" << endl;
   cerr << "  modifyInstance|mi <class> [ list ]" << endl;
   cerr << "  deleteInstance|di <class> [ list ]" << endl;
-  // cerr << "  associators|a class|instanceID" << endl;
-  // cerr << "  associatorNames|an class|instanceID" << endl;
-  // cerr << "  references|r class|instanceID" << endl;
-  // cerr << "  referenceNames|rn class|instanceID" << endl;
-  // cerr << "  execQuery|exq [query]" << endl;
-  // cerr << "  getQualifier|gq qualifiername" << endl;
-  // cerr << "  setQualifier|sq qualifierdef" << endl;
-  // cerr << "  deleteQualifier|dq qualifiername" << endl;
-  // cerr << "  enumerateQualifiers|eq" << endl;
+  //cerr << "  associators|a class|instanceID" << endl;
+  //cerr << "  associatorNames|an class|instanceID" << endl;
+  //cerr << "  references|r class|instanceID" << endl;
+  //cerr << "  referenceNames|rn class|instanceID" << endl;
+  //cerr << "  execQuery|exq [query]" << endl;
+  //cerr << "  getQualifier|gq qualifiername" << endl;
+  //cerr << "  setQualifier|sq qualifierdef" << endl;
+  //cerr << "  deleteQualifier|dq qualifiername" << endl;
+  //cerr << "  enumerateQualifiers|eq" << endl;
   cerr << "Examples:" << endl;
   cerr << "  cimop ecn" << endl;
   cerr << "  cimop enumerateinstancenames pg_operatingsystem" << endl;
@@ -1383,7 +1393,8 @@ void _usage()
   cerr << "Environment variables:" << endl;
   cerr << "  CIM_HOST -- local connect if not defined" << endl;
   cerr << "  CIM_PORT -- port number (default determined by CIM_NOSSL)" << endl;
-  cerr << "  CIM_NOSSL -- if defined, connect unencrypted to 5988, else 5989" << endl;
+  cerr << "  CIM_NOSSL -- if defined, connect unencrypted to 5988, else 5989"
+       << endl;
   cerr << "  CIM_NAMESPACE -- if not defined use root/cimv2" << endl;
   cerr << "  CIM_USER -- user" << endl;
   cerr << "  CIM_PASSWORD -- password" << endl;
@@ -1395,7 +1406,8 @@ void _usage()
 
 void _giUsage()
 {
-  // cerr << "Usage: cimop getInstance|gi { <class> [list] | <instanceRef> }" << endl;
+  //cerr << "Usage: cimop getInstance|gi { <class> [list] | <instanceRef> }"
+  //     << endl;
   cerr << "Usage: cimop getInstance|gi <class> [list]" << endl;
   cerr << "  \"list\" displays list from which to choose" << endl;
   cerr << "  otherwise asks for keys (empty ok for many)" << endl;
@@ -1408,7 +1420,8 @@ void _giUsage()
 
 void _diUsage()
 {
-  // cerr << "Usage: cimop deleteInstance|di { <class> [list] | <instanceRef> }" << endl;
+  //cerr << "Usage: cimop deleteInstance|di { <class> [list] | <instanceRef> }"
+  //     << endl;
   cerr << "Usage: cimop deleteInstance|di <class> [ list ]" << endl;
   cerr << "  \"list\" displays list from which to choose" << endl;
   cerr << "  otherwise asks for keys (empty ok for many)" << endl;
@@ -1421,7 +1434,8 @@ void _diUsage()
 
 void _gpUsage()
 {
-  cerr << "Usage: cimop getProperty|gp <class> { ask | list } [<propnam>]" << endl;
+  cerr << "Usage: cimop getProperty|gp <class> { ask | list } [<propnam>]" <<
+    endl;
   cerr << "  \"list\" displays list from which to choose" << endl;
   cerr << "  \"ask\" asks for keys (empty ok for many)" << endl;
 }
@@ -1455,7 +1469,9 @@ void _ciUsage()
 
 void _spUsage()
 {
-  cerr << "Usage: cimop getProperty|gp <class> { ask | list } [ <propnam> [ <value> ] ]" << endl;
+  cerr <<
+    "Usage: cimop getProperty|gp <class> { ask | list } "
+      "[ <propnam> [ <value> ] ]" << endl;
   cerr << "  \"list\" displays list from which to choose" << endl;
   cerr << "  \"ask\" asks for keys (empty ok for many)" << endl;
 }
index 3a178040fd234485f03746a69ae8419de4629115..8f0d042c7541b661819ad84a75ae003208cbbaf5 100644 (file)
@@ -779,14 +779,11 @@ private:
     /**
         get the query string for a filter
     
-        @param  filterNamespace     The filter namespace
-    
-        @param  filterPath          The filter's object path
-
-        @param  queryString         The text string equivalent of the query string
-
-        @param queryLanString       The text string equivalent of the querylanguage
-                                    string
+        @param filterNamespace The filter namespace
+        @param filterPath The filter's object path
+        @param queryString The text string equivalent of the query string
+        @param queryLangString The text string equivalent of the querylanguage
+                   string
     */
     void _getQueryString (
         const CIMNamespaceName& filterNamespace,
index d4a113d5f6c7e9e72a37a6f2f028da06d54d9891..dab0431f895301838a9ff4a6467821c4a3a2402c 100644 (file)
@@ -63,17 +63,14 @@ public:
     virtual ~Command();
 
     /**
-
         Gets command usage string.  Usage string may be retrieved and displayed
         when a CommandFormatException is caught.
 
         @return  String containing the command usage message
-
      */
-    String& getUsage ();
+    String& getUsage();
 
     /**
-
         Parses the command line, validates the options, and sets instance
         variables based on the options and arguments.
 
@@ -82,12 +79,10 @@ public:
 
         @exception     CommandFormatException    Indicates the command line was
                                                  improperly formed
-
      */
-    virtual void setCommand (Uint32 argc, char *argv []) = 0;
+    virtual void setCommand(Uint32 argc, char *argv []) = 0;
 
     /**
-
         Executes the command and writes the results to the output streams.
 
         @param  outPrintWriter  the ostream to which output should be
@@ -98,64 +93,56 @@ public:
 
         @return  0              if the command is successful
                  1              if an error occurs in executing the command
-
      */
-    virtual Uint32 execute (PEGASUS_STD(ostream)& outPrintWriter,
-                            PEGASUS_STD(ostream)& errPrintWriter) = 0;
+    virtual Uint32 execute(
+        PEGASUS_STD(ostream)& outPrintWriter,
+        PEGASUS_STD(ostream)& errPrintWriter) = 0;
 
     //
     // Return codes
     //
     /**
-
         Return value from the execute method indicating the command executed
         successfully.
-
     */
-    static const Uint32    RC_SUCCESS;
+    static const Uint32 RC_SUCCESS;
 
     /**
-
         Return value from the execute method indicating an error occurred in
         executing the command.
-
     */
-    static const Uint32    RC_ERROR;
-
-    //l10n
-       String localizeMessage( const char *resource_path,
-                                                       const char * key,
-                                                       const char * default_msg,
-                                                       Formatter::Arg arg0 = Formatter::Arg(),
-                                                       Formatter::Arg arg1 = Formatter::Arg(),
-                                                       Formatter::Arg arg2 = Formatter::Arg(),
-                                                       Formatter::Arg arg3 = Formatter::Arg(),
-                                                       Formatter::Arg arg4 = Formatter::Arg(),
-                                                       Formatter::Arg arg5 = Formatter::Arg(),
-                                                       Formatter::Arg arg6 = Formatter::Arg(),
-                                                       Formatter::Arg arg7 = Formatter::Arg(),
-                                                       Formatter::Arg arg8 = Formatter::Arg(),
-                                                       Formatter::Arg arg9 = Formatter::Arg());
+    static const Uint32 RC_ERROR;
+
+    String localizeMessage(
+        const char *resource_path,
+        const char * key,
+        const char * default_msg,
+        Formatter::Arg arg0 = Formatter::Arg(),
+        Formatter::Arg arg1 = Formatter::Arg(),
+        Formatter::Arg arg2 = Formatter::Arg(),
+        Formatter::Arg arg3 = Formatter::Arg(),
+        Formatter::Arg arg4 = Formatter::Arg(),
+        Formatter::Arg arg5 = Formatter::Arg(),
+        Formatter::Arg arg6 = Formatter::Arg(),
+        Formatter::Arg arg7 = Formatter::Arg(),
+        Formatter::Arg arg8 = Formatter::Arg(),
+        Formatter::Arg arg9 = Formatter::Arg());
 
 protected:
     /**
-
         Sets command usage string.  Usage string should be set by Command
         subclass constructor.
 
         @param    usageMessage    the command usage message
-
      */
-    void setUsage (String& usageMessage);
+    void setUsage(String& usageMessage);
 
 private:
 
     /**
-
         The usage string for this command.  The value of the string should be
         set in the command subclass constructor.  The string may be retrieved
         and displayed when a CommandFormatException is caught.
-
      */
     String _usage;
 };
index 0533f656fa3e06f04889e7828b702774e7af3e69..9919070e2c1e8656143f8200a0d78126e607db3d 100644 (file)
 
 #include <Pegasus/Common/Exception.h>
 #include <Clients/cliutils/Linkage.h>
-#include <Pegasus/Common/MessageLoader.h> //l10n
+#include <Pegasus/Common/MessageLoader.h>
 
 PEGASUS_NAMESPACE_BEGIN
 
 /**
-  
     CommandException signals that an exception has occurred in executing the
     command.
-  
-    @author  Hewlett-Packard Company
-  
  */
 class PEGASUS_CLIUTILS_LINKAGE CommandException : public Exception 
 {
 public:
     /**
-      
         Constructs a CommandException with the specified message.
       
         @param  exceptionMessage  a string containing the exception message
-      
      */
-    CommandException (const String& exceptionMessage);
+    CommandException(const String& exceptionMessage);
     
-    CommandException (MessageLoaderParms &parms);//l10n
+    CommandException(MessageLoaderParms &parms);
 };
 
 /**
-
     CommandFormatException signals that an exception has occurred in parsing
     the command line or validating the options and arguments.
-
-    @author  Hewlett-Packard Company
-
  */
 class PEGASUS_CLIUTILS_LINKAGE CommandFormatException : public CommandException
 {
 public:
     /**
-
         Constructs a CommandFormatException with the specified message.
 
         @param  exceptionMessage  a string containing the exception message
-
      */
-    CommandFormatException (const String& exceptionMessage);
+    CommandFormatException(const String& exceptionMessage);
     
-    CommandFormatException (MessageLoaderParms &parms); //l10n
+    CommandFormatException(MessageLoaderParms &parms);
 };
 
 /**
-
     DuplicateOptionException signals that the same option appeared more than
     once in the command line.
-
-    @author  Hewlett-Packard Company
-
  */
 class PEGASUS_CLIUTILS_LINKAGE DuplicateOptionException 
     : public CommandFormatException
 {
 public:
     /**
-
         Constructs a DuplicateOptionException using the value of the duplicate
         option character.
 
         @param  duplicateOption  the character represnting the duplicate option
-
      */
-    DuplicateOptionException (char duplicateOption);
+    DuplicateOptionException(char duplicateOption);
 
 private:
     /**
-    
         First part of exception message string indicating a duplicate option
         appeared in the command line.
-    
      */
-    static const char _MESSAGE_DUPLICATE_OPTION1 [];
+    static const char _MESSAGE_DUPLICATE_OPTION1[];
     
     /**
-    
         Second part of exception message string indicating a duplicate option
         appeared in the command line.
-    
      */
-    static const char _MESSAGE_DUPLICATE_OPTION2 [];
+    static const char _MESSAGE_DUPLICATE_OPTION2[];
 };
 
 /**
-
     InvalidOptionArgumentException signals that an invalid option argument
     appeared in the command line.
-
-    @author  Hewlett-Packard Company
-
  */
 class PEGASUS_CLIUTILS_LINKAGE InvalidOptionArgumentException 
     : public CommandFormatException
 {
 public:
     /**
-
         Constructs an InvalidOptionArgumentException using the values of the
         invalid option argument string and the option character.
 
         @param  invalidArgument  the string containing the invalid option
                                  argument
-
         @param  option           the character representing the option
-
      */
-    InvalidOptionArgumentException (const String& invalidArgument, char option);
+    InvalidOptionArgumentException(
+        const String& invalidArgument,
+        char option);
 
 private:
     /**
-    
         First part of exception message string indicating an invalid option
         argument appeared in the command line.
-    
      */
-    static const char _MESSAGE_INVALID_ARG1 [];
+    static const char _MESSAGE_INVALID_ARG1[];
     
     /**
-    
         Second part of exception message string indicating an invalid option
         argument appeared in the command line.
-    
      */
-    static const char _MESSAGE_INVALID_ARG2 [];
+    static const char _MESSAGE_INVALID_ARG2[];
     
     /**
-    
         Third part of exception message string indicating an invalid option
         argument appeared in the command line.
-    
      */
-    static const char _MESSAGE_INVALID_ARG3 [];
+    static const char _MESSAGE_INVALID_ARG3[];
 };
 
 /**
-
     InvalidOptionException signals that an invalid option appeared in the
     command line.
-
-    @author  Hewlett-Packard Company
-
  */
-class PEGASUS_CLIUTILS_LINKAGE InvalidOptionException : public CommandFormatException
+class PEGASUS_CLIUTILS_LINKAGE InvalidOptionException
+    : public CommandFormatException
 {
 public:
     /**
-
         Constructs an InvalidOptionException using the value of the invalid
         option character.
 
         @param  invalidOption  the character representing the invalid option
-
      */
-    InvalidOptionException (char invalidOption);
+    InvalidOptionException(char invalidOption);
 
 private:
     /**
-    
         First part of exception message string indicating an invalid option
         appeared in the command line.
-    
      */
-    static const char _MESSAGE_INVALID_OPTION1 [];
+    static const char _MESSAGE_INVALID_OPTION1[];
     
     /**
-    
         Second part of exception message string indicating an invalid option
         appeared in the command line.
-    
      */
-    static const char _MESSAGE_INVALID_OPTION2 [];
+    static const char _MESSAGE_INVALID_OPTION2[];
 };
 
 /**
-
     MissingOptionArgumentException signals that a required option argument is
     missing from the command line.
-
-    @author  Hewlett-Packard Company
-
  */
 class PEGASUS_CLIUTILS_LINKAGE MissingOptionArgumentException 
     : public CommandFormatException
 {
 public:
     /**
-
         Constructs a MissingOptionArgumentException using the value of the
         option character whose argument is missing.
 
-        @param  option  the character representing the option whose argument is
-                       missing
-
+        @param option the character representing the option whose argument is
+                      missing
      */
-    MissingOptionArgumentException (char option);
+    MissingOptionArgumentException(char option);
 
 private:
     /**
-    
         First part of exception message string indicating a required option
         argument missing from the command line.
-    
      */
-    static const char _MESSAGE_MISSING_OPTARG1 [];
+    static const char _MESSAGE_MISSING_OPTARG1[];
     
     /**
-    
         Second part of exception message string indicating a required option
         argument missing from the command line.
-    
      */
-    static const char _MESSAGE_MISSING_OPTARG2 [];
+    static const char _MESSAGE_MISSING_OPTARG2[];
 };
 
 /**
-
     MissingOptionException signals that a required option is missing from
     the command line.
-
-    @author  Hewlett-Packard Company
-
  */
 class PEGASUS_CLIUTILS_LINKAGE MissingOptionException 
     : public CommandFormatException
@@ -276,24 +220,20 @@ class PEGASUS_CLIUTILS_LINKAGE MissingOptionException
 public:
 
     /**
-
         Constructs a MissingOptionException using the value of the missing
         required option character.
 
-        @param  missingOption  the character representing the missing required
-                               option
-
+        @param missingOption the character representing the missing required
+                             option
      */
-    MissingOptionException (char missingOption);
+    MissingOptionException(char missingOption);
 
 private:
     /**
-    
         First part of exception message string indicating a required option
         is missing from the command line.
-    
      */
-    static const char _MESSAGE_MISSING_OPTION1 [];
+    static const char _MESSAGE_MISSING_OPTION1[];
     
     /**
     
@@ -301,100 +241,78 @@ private:
         is missing from the command line.
     
      */
-    static const char _MESSAGE_MISSING_OPTION2 [];
+    static const char _MESSAGE_MISSING_OPTION2[];
 };
 
 /**
-
     UnexpectedArgumentException signals that an unexpected argument value
     appeared in the command line.
-
-    @author  Hewlett-Packard Company
-
  */
 class PEGASUS_CLIUTILS_LINKAGE UnexpectedArgumentException 
     : public CommandFormatException
 {
 public:
     /**
-
         Constructs an UnexpectedArgumentException using the value of the
         argument string.
 
         @param  argumentValue  the string containing the unexpected argument
-
      */
-    UnexpectedArgumentException (const String& argumentValue);
+    UnexpectedArgumentException(const String& argumentValue);
 
 private:
     /**
-    
         First part of exception message string indicating an unexpected
         argument appeared in the command line.
-    
      */
-    static const char _MESSAGE_UNEXPECTED_ARG1 [];
+    static const char _MESSAGE_UNEXPECTED_ARG1[];
     
     /**
-    
         Second part of exception message string indicating an unexpected
         argument appeared in the command line.
-    
      */
-    static const char _MESSAGE_UNEXPECTED_ARG2 [];
+    static const char _MESSAGE_UNEXPECTED_ARG2[];
 };
 
 /**
-
     UnexpectedOptionException signals that an unexpected option appeared
     in the command line.  An unexpected option is an option that is not
     consistent with other options already processed.
-
-    @author  Hewlett-Packard Company
-
  */
 class PEGASUS_CLIUTILS_LINKAGE UnexpectedOptionException 
     : public CommandFormatException
 {
 public:
     /**
-
         Constructs an UnexpectedOptionException using the value of the
         unexpected option character.
 
         @param  optionValue  the character representing the option that was
                              unexpected
-
      */
-    UnexpectedOptionException (char optionValue);
+    UnexpectedOptionException(char optionValue);
 
     /**
-
         Constructs an UnexpectedOptionException using the value of the
         unexpected option string.
 
-        @param  optionValue  the string representing the option that was
-                             unexpected
-
+        @param optionValue the string representing the option that was
+                           unexpected
      */
-    UnexpectedOptionException (const String& optionValue);
+    UnexpectedOptionException(const String& optionValue);
 
 private:
     /**
-    
         First part of exception message string indicating an unexpected option
         appeared in the command line.
-    
      */
-    static const char _MESSAGE_UNEXPECTED_OPT1 [];
+    static const char _MESSAGE_UNEXPECTED_OPT1[];
     
     /**
-    
         Second part of exception message string indicating an unexpected option
         appeared in the command line.
-    
      */
-    static const char _MESSAGE_UNEXPECTED_OPT2 [];
+    static const char _MESSAGE_UNEXPECTED_OPT2[];
 };
 
 PEGASUS_NAMESPACE_END
index 79ada11aa65879866d27b7281212bd7e2970d62f..7817078b635a140176c2bcab8cb16256d964b59b 100755 (executable)
@@ -63,7 +63,7 @@
              FD_SETSIZE, such as <windows.h>, <winsock.h>, or <winsock2.h>."
 #       else
 #           undef FD_SETSIZE
-#       endif                                          // PEGASUS_WMIMAPPER
+#       endif
 #   endif
 #   define FD_SETSIZE 1024
 #   include <windows.h>
index 389459e7ca304b1df8dc0c1bc930d1c9dc466a0e..28291f027c2541f58284753d1579b606922efbac 100644 (file)
@@ -29,8 +29,7 @@
 //
 //==============================================================================
 //
-//
-//%///////////////////////////////////////////////////////////////////////////////
+//%/////////////////////////////////////////////////////////////////////////////
 
 #include "IndicationConstants.h"
 
@@ -43,7 +42,7 @@ PEGASUS_NAMESPACE_BEGIN
 //  ATTN: Update once CimomShutdownAlertIndication has been defined
 //
 const CIMName _CLASS_CIMOM_SHUTDOWN_ALERT =
-    CIMName ("CIM_AlertIndication");
+    CIMName("CIM_AlertIndication");
 
 /**
     The name of the No Provider alert indication class
@@ -51,7 +50,7 @@ const CIMName _CLASS_CIMOM_SHUTDOWN_ALERT =
 //
 //  ATTN: Update once NoProviderAlertIndication has been defined
 //
-const CIMName _CLASS_NO_PROVIDER_ALERT = CIMName ("CIM_AlertIndication");
+const CIMName _CLASS_NO_PROVIDER_ALERT = CIMName("CIM_AlertIndication");
 
 /**
     The name of the CIMOM shutdown alert indication class
@@ -60,7 +59,7 @@ const CIMName _CLASS_NO_PROVIDER_ALERT = CIMName ("CIM_AlertIndication");
 //  ATTN: Update once ProviderTerminatedAlertIndication has been defined
 //
 const CIMName _CLASS_PROVIDER_TERMINATED_ALERT =
-    CIMName ("CIM_AlertIndication");
+    CIMName("CIM_AlertIndication");
 
 
 //
@@ -68,201 +67,201 @@ const CIMName _CLASS_PROVIDER_TERMINATED_ALERT =
 //
 
 /**
-    The name of the Other Subscription State property for Indication 
+    The name of the Other Subscription State property for Indication
     Subscription class
  */
-const CIMName _PROPERTY_OTHERSTATE = CIMName ("OtherSubscriptionState");
+const CIMName _PROPERTY_OTHERSTATE = CIMName("OtherSubscriptionState");
 
 /**
     The name of the Repeat Notification Policy property for indication
     subscription class
  */
 const CIMName _PROPERTY_REPEATNOTIFICATIONPOLICY =
-    CIMName ("RepeatNotificationPolicy");
+    CIMName("RepeatNotificationPolicy");
 
 /**
     The name of the Other Repeat Notification Policy property for
     indication subscription class
  */
 const CIMName _PROPERTY_OTHERREPEATNOTIFICATIONPOLICY =
-    CIMName ("OtherRepeatNotificationPolicy");
+    CIMName("OtherRepeatNotificationPolicy");
 
 /**
-    The name of the On Fatal Error Policy property for Indication Subscription 
+    The name of the On Fatal Error Policy property for Indication Subscription
     class
  */
-const CIMName _PROPERTY_ONFATALERRORPOLICY = 
-    CIMName ("OnFatalErrorPolicy");
+const CIMName _PROPERTY_ONFATALERRORPOLICY =
+    CIMName("OnFatalErrorPolicy");
 
 /**
-    The name of the Other On Fatal Error Policy property for Indication 
+    The name of the Other On Fatal Error Policy property for Indication
     Subscription class
  */
-const CIMName _PROPERTY_OTHERONFATALERRORPOLICY = 
-    CIMName ("OtherOnFatalErrorPolicy");
+const CIMName _PROPERTY_OTHERONFATALERRORPOLICY =
+    CIMName("OtherOnFatalErrorPolicy");
 
 /**
-    The name of the Failure Trigger Time Interval property for Indication 
+    The name of the Failure Trigger Time Interval property for Indication
     Subscription class
  */
-const CIMName _PROPERTY_FAILURETRIGGERTIMEINTERVAL = 
-    CIMName ("FailureTriggerTimeInterval");
+const CIMName _PROPERTY_FAILURETRIGGERTIMEINTERVAL =
+    CIMName("FailureTriggerTimeInterval");
 
 /**
-    The name of the Time Of Last State Change property for Indication 
+    The name of the Time Of Last State Change property for Indication
     Subscription class
  */
-const CIMName _PROPERTY_LASTCHANGE = CIMName ("TimeOfLastStateChange");
+const CIMName _PROPERTY_LASTCHANGE = CIMName("TimeOfLastStateChange");
 
 /**
-    The name of the Subscription Start Time property for Indication 
+    The name of the Subscription Start Time property for Indication
     Subscription class
  */
-const CIMName _PROPERTY_STARTTIME = CIMName ("SubscriptionStartTime");
+const CIMName _PROPERTY_STARTTIME = CIMName("SubscriptionStartTime");
 
 /**
-    The name of the Subscription Duration property for Indication 
+    The name of the Subscription Duration property for Indication
     Subscription class
  */
-const CIMName _PROPERTY_DURATION = CIMName ("SubscriptionDuration");
+const CIMName _PROPERTY_DURATION = CIMName("SubscriptionDuration");
 
 /**
-    The name of the Subscription Time Remaining property for Indication 
+    The name of the Subscription Time Remaining property for Indication
     Subscription class
  */
-const CIMName _PROPERTY_TIMEREMAINING = 
-    CIMName ("SubscriptionTimeRemaining");
+const CIMName _PROPERTY_TIMEREMAINING =
+    CIMName("SubscriptionTimeRemaining");
 
 /**
     The name of the Repeat Notification Interval property for indication
     subscription class
  */
-const CIMName _PROPERTY_REPEATNOTIFICATIONINTERVAL = 
-    CIMName ("RepeatNotificationInterval");
+const CIMName _PROPERTY_REPEATNOTIFICATIONINTERVAL =
+    CIMName("RepeatNotificationInterval");
 
 /**
     The name of the Repeat Notification Gap property for indication
     subscription class
  */
-const CIMName _PROPERTY_REPEATNOTIFICATIONGAP = 
-    CIMName ("RepeatNotificationGap");
+const CIMName _PROPERTY_REPEATNOTIFICATIONGAP =
+    CIMName("RepeatNotificationGap");
 
 /**
     The name of the Repeat Notification Count property for indication
     subscription class
  */
-const CIMName _PROPERTY_REPEATNOTIFICATIONCOUNT = 
-    CIMName ("RepeatNotificationCount");
+const CIMName _PROPERTY_REPEATNOTIFICATIONCOUNT =
+    CIMName("RepeatNotificationCount");
 
 /**
     The name of the TextFormatOwningEntity property for Formatted Indication
     Subscription class
 */
 const CIMName _PROPERTY_TEXTFORMATOWNINGENTITY =
-    CIMName ("TextFormatOwningEntity");
+    CIMName("TextFormatOwningEntity");
 
 /**
     The name of the TextFormatID property for Formatted Indication
     Subscription class
 */
-const CIMName _PROPERTY_TEXTFORMATID = CIMName ("TextFormatID");
+const CIMName _PROPERTY_TEXTFORMATID = CIMName("TextFormatID");
 
 /**
     The name of the Caption property for Managed Element class
  */
-const CIMName _PROPERTY_CAPTION = CIMName ("Caption");
+const CIMName _PROPERTY_CAPTION = CIMName("Caption");
 
 /**
     The name of the Description property for Managed Element class
  */
-const CIMName _PROPERTY_DESCRIPTION = CIMName ("Description");
+const CIMName _PROPERTY_DESCRIPTION = CIMName("Description");
 
 /**
     The name of the ElementName property for Managed Element class
  */
-const CIMName _PROPERTY_ELEMENTNAME = CIMName ("ElementName");
+const CIMName _PROPERTY_ELEMENTNAME = CIMName("ElementName");
 
 /**
     The name of the Source Namespace property for indication filter class
  */
-const CIMName _PROPERTY_SOURCENAMESPACE = CIMName ("SourceNamespace");
+const CIMName _PROPERTY_SOURCENAMESPACE = CIMName("SourceNamespace");
 
 /**
-    The name of the System Name property for indication filter and indications 
+    The name of the System Name property for indication filter and indications
     handler classes
  */
-const CIMName _PROPERTY_SYSTEMNAME = CIMName ("SystemName");
+const CIMName _PROPERTY_SYSTEMNAME = CIMName("SystemName");
 
 /**
-    The name of the System Creation Class Name property for indication filter 
+    The name of the System Creation Class Name property for indication filter
     and indications handler classes
  */
-const CIMName _PROPERTY_SYSTEMCREATIONCLASSNAME = 
-    CIMName ("SystemCreationClassName");
+const CIMName _PROPERTY_SYSTEMCREATIONCLASSNAME =
+    CIMName("SystemCreationClassName");
 
 /**
-    The name of the Other Persistence Type property for Indication Handler 
+    The name of the Other Persistence Type property for Indication Handler
     class
  */
-const CIMName _PROPERTY_OTHERPERSISTENCETYPE = 
-    CIMName ("OtherPersistenceType");
+const CIMName _PROPERTY_OTHERPERSISTENCETYPE =
+    CIMName("OtherPersistenceType");
 
 /**
     The name of the Owner property for Indication Handler class
  */
-const CIMName _PROPERTY_OWNER = CIMName ("Owner");
+const CIMName _PROPERTY_OWNER = CIMName("Owner");
 
 /**
-    The name of the TargetHostFormat property for SNMP Mapper Indication 
+    The name of the TargetHostFormat property for SNMP Mapper Indication
     Handler subclass
  */
-const CIMName _PROPERTY_TARGETHOSTFORMAT = CIMName ("TargetHostFormat");
+const CIMName _PROPERTY_TARGETHOSTFORMAT = CIMName("TargetHostFormat");
 
 /**
-    The name of the OtherTargetHostFormat property for SNMP Mapper Indication 
+    The name of the OtherTargetHostFormat property for SNMP Mapper Indication
     Handler subclass
  */
 const CIMName _PROPERTY_OTHERTARGETHOSTFORMAT =
-    CIMName ("OtherTargetHostFormat");
+    CIMName("OtherTargetHostFormat");
 
 /**
-    The name of the Port Number property for SNMP Mapper Indication Handler 
+    The name of the Port Number property for SNMP Mapper Indication Handler
     subclass
  */
-const CIMName _PROPERTY_PORTNUMBER = CIMName ("PortNumber");
+const CIMName _PROPERTY_PORTNUMBER = CIMName("PortNumber");
 
 /**
-    The name of the SNMP Security Name property for SNMP Mapper Indication 
+    The name of the SNMP Security Name property for SNMP Mapper Indication
     Handler subclass
  */
-const CIMName _PROPERTY_SNMPSECURITYNAME = CIMName ("SNMPSecurityName");
+const CIMName _PROPERTY_SNMPSECURITYNAME = CIMName("SNMPSecurityName");
 
 /**
-    The name of the SNMP Engine ID property for SNMP Mapper Indication Handler 
+    The name of the SNMP Engine ID property for SNMP Mapper Indication Handler
     subclass
  */
-const CIMName _PROPERTY_SNMPENGINEID = CIMName ("SNMPEngineID");
+const CIMName _PROPERTY_SNMPENGINEID = CIMName("SNMPEngineID");
 
 /**
     The name of the Alert Type property for Alert Indication class
  */
-const CIMName _PROPERTY_ALERTTYPE = CIMName ("AlertType");
+const CIMName _PROPERTY_ALERTTYPE = CIMName("AlertType");
 
 /**
     The name of the Other Alert Type property for Alert Indication class
  */
-const CIMName _PROPERTY_OTHERALERTTYPE = CIMName ("OtherAlertType");
+const CIMName _PROPERTY_OTHERALERTTYPE = CIMName("OtherAlertType");
 
 /**
     The name of the Perceived Severity property for Alert Indication class
  */
-const CIMName _PROPERTY_PERCEIVEDSEVERITY = 
-    CIMName ("PerceivedSeverity");
+const CIMName _PROPERTY_PERCEIVEDSEVERITY =
+    CIMName("PerceivedSeverity");
 
 /**
     The name of the Probable Cause property for Alert Indication class
  */
-const CIMName _PROPERTY_PROBABLECAUSE = CIMName ("ProbableCause");
+const CIMName _PROPERTY_PROBABLECAUSE = CIMName("ProbableCause");
 
 //
 //  Qualifier names
@@ -271,7 +270,7 @@ const CIMName _PROPERTY_PROBABLECAUSE = CIMName ("ProbableCause");
 /**
     The name of the Indication qualifier for classes
  */
-const CIMName _QUALIFIER_INDICATION = CIMName ("INDICATION");
+const CIMName _QUALIFIER_INDICATION = CIMName("INDICATION");
 
 
 //
index 478cd7b5b7aad1e3e39bbc1f50c1de00a27fad3f..99f8ff5342e0f182dd882c70f1124c6c83a29418 100644 (file)
 PEGASUS_NAMESPACE_BEGIN
 
 /**
-    Values for the Repeat Notification Policy property of the Subscription 
+    Values for the Repeat Notification Policy property of the Subscription
     class, as defined in the CIM Events MOF
  */
 enum RepeatNotificationPolicy {_POLICY_UNKNOWN = 0, _POLICY_OTHER = 1,
      _POLICY_NONE = 2, _POLICY_SUPPRESS = 3, _POLICY_DELAY = 4};
 
 /**
-    Values for the On Fatal Error Policy property of the Subscription 
+    Values for the On Fatal Error Policy property of the Subscription
     class, as defined in the CIM Events MOF
  */
-enum OnFatalErrorPolicy {_ERRORPOLICY_OTHER = 1, _ERRORPOLICY_IGNORE = 2, 
+enum OnFatalErrorPolicy {_ERRORPOLICY_OTHER = 1, _ERRORPOLICY_IGNORE = 2,
     _ERRORPOLICY_DISABLE = 3, _ERRORPOLICY_REMOVE = 4};
 
 /**
-    Values for the Probable Cause property of the Alert Indication 
+    Values for the Probable Cause property of the Alert Indication
     class, as defined in the CIM Events MOF
     Note: not all possible values have been included
  */
 enum ProbableCause {_CAUSE_UNKNOWN = 0, _CAUSE_OTHER = 1};
 
 /**
-    Values for the Alert Type property of the Alert Indication class, 
+    Values for the Alert Type property of the Alert Indication class,
     as defined in the CIM Events MOF
  */
 enum AlertType {_TYPE_OTHER = 1, _TYPE_COMMUNICATIONS = 2, _TYPE_QOS = 3,
@@ -80,7 +80,7 @@ enum AlertType {_TYPE_OTHER = 1, _TYPE_COMMUNICATIONS = 2, _TYPE_QOS = 3,
 //
 //  ATTN: Update once CimomShutdownAlertIndication has been defined
 //
- extern const CIMName _CLASS_CIMOM_SHUTDOWN_ALERT;
+extern const CIMName _CLASS_CIMOM_SHUTDOWN_ALERT;
 
 /**
     The name of the No Provider alert indication class
@@ -88,7 +88,7 @@ enum AlertType {_TYPE_OTHER = 1, _TYPE_COMMUNICATIONS = 2, _TYPE_QOS = 3,
 //
 //  ATTN: Update once NoProviderAlertIndication has been defined
 //
- extern const CIMName _CLASS_NO_PROVIDER_ALERT;
+extern const CIMName _CLASS_NO_PROVIDER_ALERT;
 
 /**
     The name of the CIMOM shutdown alert indication class
@@ -96,7 +96,7 @@ enum AlertType {_TYPE_OTHER = 1, _TYPE_COMMUNICATIONS = 2, _TYPE_QOS = 3,
 //
 //  ATTN: Update once ProviderTerminatedAlertIndication has been defined
 //
- extern const CIMName _CLASS_PROVIDER_TERMINATED_ALERT;
+extern const CIMName _CLASS_PROVIDER_TERMINATED_ALERT;
 
 
 //
@@ -104,187 +104,187 @@ enum AlertType {_TYPE_OTHER = 1, _TYPE_COMMUNICATIONS = 2, _TYPE_QOS = 3,
 //
 
 /**
-    The name of the Other Subscription State property for Indication 
+    The name of the Other Subscription State property for Indication
     Subscription class
  */
- extern const CIMName _PROPERTY_OTHERSTATE;
+extern const CIMName _PROPERTY_OTHERSTATE;
 
 /**
     The name of the Repeat Notification Policy property for indication
     subscription class
  */
- extern const CIMName _PROPERTY_REPEATNOTIFICATIONPOLICY;
+extern const CIMName _PROPERTY_REPEATNOTIFICATIONPOLICY;
 
 /**
     The name of the Other Repeat Notification Policy property for
     indication subscription class
  */
- extern const CIMName _PROPERTY_OTHERREPEATNOTIFICATIONPOLICY;
+extern const CIMName _PROPERTY_OTHERREPEATNOTIFICATIONPOLICY;
 
 /**
-    The name of the On Fatal Error Policy property for Indication Subscription 
+    The name of the On Fatal Error Policy property for Indication Subscription
     class
  */
- extern const CIMName _PROPERTY_ONFATALERRORPOLICY;
+extern const CIMName _PROPERTY_ONFATALERRORPOLICY;
 
 /**
-    The name of the Other On Fatal Error Policy property for Indication 
+    The name of the Other On Fatal Error Policy property for Indication
     Subscription class
  */
- extern const CIMName _PROPERTY_OTHERONFATALERRORPOLICY;
+extern const CIMName _PROPERTY_OTHERONFATALERRORPOLICY;
 
 /**
-    The name of the Failure Trigger Time Interval property for Indication 
+    The name of the Failure Trigger Time Interval property for Indication
     Subscription class
  */
- extern const CIMName _PROPERTY_FAILURETRIGGERTIMEINTERVAL;
+extern const CIMName _PROPERTY_FAILURETRIGGERTIMEINTERVAL;
 
 /**
-    The name of the Time Of Last State Change property for Indication 
+    The name of the Time Of Last State Change property for Indication
     Subscription class
  */
- extern const CIMName _PROPERTY_LASTCHANGE;
+extern const CIMName _PROPERTY_LASTCHANGE;
 
 /**
-    The name of the Subscription Start Time property for Indication 
+    The name of the Subscription Start Time property for Indication
     Subscription class
  */
- extern const CIMName _PROPERTY_STARTTIME;
+extern const CIMName _PROPERTY_STARTTIME;
 
 /**
-    The name of the Subscription Duration property for Indication 
+    The name of the Subscription Duration property for Indication
     Subscription class
  */
- extern const CIMName _PROPERTY_DURATION;
+extern const CIMName _PROPERTY_DURATION;
 
 /**
-    The name of the Subscription Time Remaining property for Indication 
+    The name of the Subscription Time Remaining property for Indication
     Subscription class
  */
- extern const CIMName _PROPERTY_TIMEREMAINING;
+extern const CIMName _PROPERTY_TIMEREMAINING;
 
 /**
     The name of the Repeat Notification Interval property for indication
     subscription class
  */
- extern const CIMName _PROPERTY_REPEATNOTIFICATIONINTERVAL;
+extern const CIMName _PROPERTY_REPEATNOTIFICATIONINTERVAL;
 
 /**
     The name of the Repeat Notification Gap property for indication
     subscription class
  */
- extern const CIMName _PROPERTY_REPEATNOTIFICATIONGAP;
+extern const CIMName _PROPERTY_REPEATNOTIFICATIONGAP;
 
 /**
     The name of the Repeat Notification Count property for indication
     subscription class
  */
- extern const CIMName _PROPERTY_REPEATNOTIFICATIONCOUNT;
+extern const CIMName _PROPERTY_REPEATNOTIFICATIONCOUNT;
 
 /**
     The name of the TextFormatOwningEntity property for Formatted Indication
     Subscription class
 */
- extern const CIMName _PROPERTY_TEXTFORMATOWNINGENTITY;
+extern const CIMName _PROPERTY_TEXTFORMATOWNINGENTITY;
 
 /**
     The name of the TextFormatID property for Formatted Indication
     Subscription class
 */
- extern const CIMName _PROPERTY_TEXTFORMATID;
+extern const CIMName _PROPERTY_TEXTFORMATID;
 
 /**
     The name of the Caption property for Managed Element class
  */
- extern const CIMName _PROPERTY_CAPTION;
+extern const CIMName _PROPERTY_CAPTION;
 
 /**
     The name of the Description property for Managed Element class
  */
- extern const CIMName _PROPERTY_DESCRIPTION;
+extern const CIMName _PROPERTY_DESCRIPTION;
 
 /**
     The name of the ElementName property for Managed Element class
  */
- extern const CIMName _PROPERTY_ELEMENTNAME;
+extern const CIMName _PROPERTY_ELEMENTNAME;
 
 /**
     The name of the Source Namespace property for indication filter class
  */
- extern const CIMName _PROPERTY_SOURCENAMESPACE;
+extern const CIMName _PROPERTY_SOURCENAMESPACE;
 
 /**
-    The name of the System Name property for indication filter and indications 
+    The name of the System Name property for indication filter and indications
     handler classes
  */
- extern const CIMName _PROPERTY_SYSTEMNAME;
+extern const CIMName _PROPERTY_SYSTEMNAME;
 
 /**
-    The name of the System Creation Class Name property for indication filter 
+    The name of the System Creation Class Name property for indication filter
     and indications handler classes
  */
- extern const CIMName _PROPERTY_SYSTEMCREATIONCLASSNAME;
+extern const CIMName _PROPERTY_SYSTEMCREATIONCLASSNAME;
 
 /**
-    The name of the Other Persistence Type property for Indication Handler 
+    The name of the Other Persistence Type property for Indication Handler
     class
  */
- extern const CIMName _PROPERTY_OTHERPERSISTENCETYPE;
+extern const CIMName _PROPERTY_OTHERPERSISTENCETYPE;
 
 /**
     The name of the Owner property for Indication Handler class
  */
- extern const CIMName _PROPERTY_OWNER;
+extern const CIMName _PROPERTY_OWNER;
 
 /**
-    The name of the TargetHostFormat property for SNMP Mapper Indication 
+    The name of the TargetHostFormat property for SNMP Mapper Indication
     Handler subclass
  */
- extern const CIMName _PROPERTY_TARGETHOSTFORMAT;
+extern const CIMName _PROPERTY_TARGETHOSTFORMAT;
 
 /**
-    The name of the OtherTargetHostFormat property for SNMP Mapper Indication 
+    The name of the OtherTargetHostFormat property for SNMP Mapper Indication
     Handler subclass
  */
- extern const CIMName _PROPERTY_OTHERTARGETHOSTFORMAT;
+extern const CIMName _PROPERTY_OTHERTARGETHOSTFORMAT;
 
 /**
-    The name of the Port Number property for SNMP Mapper Indication Handler 
+    The name of the Port Number property for SNMP Mapper Indication Handler
     subclass
  */
- extern const CIMName _PROPERTY_PORTNUMBER;
+extern const CIMName _PROPERTY_PORTNUMBER;
 
 /**
-    The name of the SNMP Security Name property for SNMP Mapper Indication 
+    The name of the SNMP Security Name property for SNMP Mapper Indication
     Handler subclass
  */
- extern const CIMName _PROPERTY_SNMPSECURITYNAME;
+extern const CIMName _PROPERTY_SNMPSECURITYNAME;
 
 /**
-    The name of the SNMP Engine ID property for SNMP Mapper Indication Handler 
+    The name of the SNMP Engine ID property for SNMP Mapper Indication Handler
     subclass
  */
- extern const CIMName _PROPERTY_SNMPENGINEID;
+extern const CIMName _PROPERTY_SNMPENGINEID;
 
 /**
     The name of the Alert Type property for Alert Indication class
  */
- extern const CIMName _PROPERTY_ALERTTYPE;
+extern const CIMName _PROPERTY_ALERTTYPE;
 
 /**
     The name of the Other Alert Type property for Alert Indication class
  */
- extern const CIMName _PROPERTY_OTHERALERTTYPE;
+extern const CIMName _PROPERTY_OTHERALERTTYPE;
 
 /**
     The name of the Perceived Severity property for Alert Indication class
  */
- extern const CIMName _PROPERTY_PERCEIVEDSEVERITY;
+extern const CIMName _PROPERTY_PERCEIVEDSEVERITY;
 
 /**
     The name of the Probable Cause property for Alert Indication class
  */
- extern const CIMName _PROPERTY_PROBABLECAUSE;
+extern const CIMName _PROPERTY_PROBABLECAUSE;
 
 //
 //  Qualifier names
@@ -293,7 +293,7 @@ enum AlertType {_TYPE_OTHER = 1, _TYPE_COMMUNICATIONS = 2, _TYPE_QOS = 3,
 /**
     The name of the Indication qualifier for classes
  */
- extern const CIMName _QUALIFIER_INDICATION;
+extern const CIMName _QUALIFIER_INDICATION;
 
 
 //
@@ -303,12 +303,12 @@ enum AlertType {_TYPE_OTHER = 1, _TYPE_COMMUNICATIONS = 2, _TYPE_QOS = 3,
 /**
     The WHERE keyword in WQL
  */
- extern const char   _QUERY_WHERE [];
+extern const char _QUERY_WHERE[];
 
 /**
     A zero value CIMDateTime interval
  */
- extern const char _ZERO_INTERVAL_STRING [];
+extern const char _ZERO_INTERVAL_STRING[];
 
 PEGASUS_NAMESPACE_END
 
index c63719c384fe54eb059eb9eb06e39336b02b9fcb..cfea0095320b2bf3ade8da7477f8bf3f422a9b2b 100644 (file)
 //
 //==============================================================================
 //
-// Author: Carol Ann Krug Graves, Hewlett-Packard Company
-//             (carolann_graves@hp.com)
-//
-// Modified By:  
-//
 //%/////////////////////////////////////////////////////////////////////////////
 
 #ifndef Pegasus_IndicationMessageConstants_h
 
 #include <Pegasus/Common/Config.h>
 
-/* Normallyit is not good practice to put static constants into headers because
-   the footprint grows with each use of the header.  In this case, there is only
-   one use of this header so it is actually a smaller footprint to use the header
-   file than define extern definitions.  If this header is EVER used in more than
-   one cpp file, it should be modified to create a .cpp file for the definitions.
+/*
+    Normally it is not good practice to put static constants into headers
+    because the footprint grows with each use of the header.  In this case,
+    there is only one use of this header so it is actually a smaller footprint
+    to use the header file than define extern definitions.  If this header is
+    EVER used in more than one cpp file, it should be modified to create a .cpp
+    file for the definitions.
 */
 
 PEGASUS_NAMESPACE_BEGIN
@@ -64,50 +61,51 @@ static const char _MSG_MISSING_REQUIRED [] = "Missing required ";
 
 static const char _MSG_KEY_PROPERTY [] = " key property";
 
-static const char _MSG_KEY_PROPERTY_KEY [] = 
+static const char _MSG_KEY_PROPERTY_KEY [] =
    "IndicationService.IndicationService._MSG_KEY_PROPERTY";
 
 static const char _MSG_PROPERTY [] = " property";
 
-static const char _MSG_PROPERTY_KEY [] = 
+static const char _MSG_PROPERTY_KEY [] =
    "IndicationService.IndicationService._MSG_PROPERTY";
 
 static const char _MSG_PROPERTY_PRESENT [] = " property present, but ";
 
 static const char _MSG_VALUE_NOT [] = " value not ";
 
-static const char _MSG_PROPERTY_PRESENT_BUT_VALUE_NOT_KEY [] = 
+static const char _MSG_PROPERTY_PRESENT_BUT_VALUE_NOT_KEY [] =
    "IndicationService.IndicationService._MSG_PROPERTY_PRESENT_BUT_VALUE_NOT";
 
-static const char _MSG_NO_PROVIDERS [] = 
+static const char _MSG_NO_PROVIDERS [] =
     "There are no providers capable of serving the subscription";
 
-static const char _MSG_NO_PROVIDERS_KEY [] = 
+static const char _MSG_NO_PROVIDERS_KEY [] =
     "IndicationService.IndicationService._MSG_NO_PROVIDERS";
 
-static const char _MSG_NOT_ACCEPTED [] = 
+static const char _MSG_NOT_ACCEPTED [] =
     "No providers accepted the subscription";
 
-static const char _MSG_NOT_ACCEPTED_KEY [] = 
+static const char _MSG_NOT_ACCEPTED_KEY [] =
     "IndicationService.IndicationService._MSG_NOT_ACCEPTED";
 
 static const char _MSG_INVALID_CLASSNAME [] = "Invalid indication class name ";
 
 static const char _MSG_IN_FROM [] = " in FROM clause of ";
 
-static const char _MSG_INVALID_CLASSNAME_IN_FROM_PROPERTY_KEY [] = 
-    "IndicationService.IndicationService._MSG_INVALID_CLASSNAME_IN_FROM_PROPERTY";
+static const char _MSG_INVALID_CLASSNAME_IN_FROM_PROPERTY_KEY [] =
+    "IndicationService.IndicationService."
+        "_MSG_INVALID_CLASSNAME_IN_FROM_PROPERTY";
 
-static const char _MSG_EXPIRED [] = 
+static const char _MSG_EXPIRED [] =
     "Expired subscription may not be modified; has been deleted";
 
-static const char _MSG_EXPIRED_KEY [] = 
+static const char _MSG_EXPIRED_KEY [] =
     "IndicationService.IndicationService._MSG_EXPIRED";
 
-static const char _MSG_REFERENCED [] = 
+static const char _MSG_REFERENCED [] =
     "A Filter or Handler referenced by a subscription may not be deleted";
 
-static const char _MSG_REFERENCED_KEY [] = 
+static const char _MSG_REFERENCED_KEY [] =
     "IndicationService.IndicationService._MSG_REFERENCED";
 
 static const char _MSG_INVALID_VALUE [] = "Invalid value ";
@@ -124,7 +122,8 @@ static const char _MSG_INVALID_TYPE_FOR_PROPERTY_KEY [] =
     "IndicationService.IndicationService._MSG_INVALID_TYPE_FOR_PROPERTY";
 
 static const char _MSG_INVALID_TYPE_ARRAY_OF_FOR_PROPERTY_KEY [] =
-    "IndicationService.IndicationService._MSG_INVALID_TYPE_ARRAY_OF_FOR_PROPERTY";
+    "IndicationService.IndicationService."
+        "_MSG_INVALID_TYPE_ARRAY_OF_FOR_PROPERTY";
 
 static const char _MSG_INVALID_VALUE_FOR_PROPERTY_KEY [] =
     "IndicationService.IndicationService._MSG_INVALID_VALUE_FOR_PROPERTY";
@@ -142,7 +141,8 @@ static const char _MSG_INVALID_INSTANCES [] =
     "One or more invalid Subscription instances were ignored";
 
 static const char _MSG_INVALID_INSTANCES_KEY [] =
-    "IndicationService.IndicationService.INVALID_SUBSCRIPTION_INSTANCES_IGNORED";
+    "IndicationService.IndicationService."
+        "INVALID_SUBSCRIPTION_INSTANCES_IGNORED";
 
 static const char _MSG_INVALID_INSTANCE [] =
     "An invalid Subscription instance was ignored: $0";
@@ -162,7 +162,8 @@ static const char _MSG_PROVIDER_NOW_SERVING [] =
 static const char _MSG_PROVIDER_NOW_SERVING_KEY [] =
     "IndicationService.IndicationService._MSG_PROVIDER_NOW_SERVING";
 
-static const char _MSG_NO_PROVIDER [] = "Subscription ($0) in namespace $1 has no provider";
+static const char _MSG_NO_PROVIDER [] =
+    "Subscription ($0) in namespace $1 has no provider";
 
 static const char _MSG_NO_PROVIDER_KEY [] =
     "IndicationService.IndicationService._MSG_NO_PROVIDER";
@@ -180,13 +181,15 @@ static const char _MSG_ARRAY_NOT_SUPPORTED_IN_WHERE_KEY [] =
     "IndicationService.IndicationService._MSG_ARRAY_NOT_SUPPORTED_IN_WHERE";
 
 static const char _MSG_WHERE_PROPERTY_NOT_FOUND [] =
-    "Property $0 referenced in the WQL WHERE clause was not found in the indication class $1";
+    "Property $0 referenced in the WQL WHERE clause was not found in the "
+        "indication class $1";
 
 static const char _MSG_WHERE_PROPERTY_NOT_FOUND_KEY [] =
     "IndicationService.IndicationService._MSG_WHERE_PROPERTY_NOT_FOUND";
 
 static const char _MSG_SELECT_PROPERTY_NOT_FOUND [] =
-    "Property $0 referenced in the WQL SELECT clause was not found in the indication class $1";
+    "Property $0 referenced in the WQL SELECT clause was not found in the "
+        "indication class $1";
 
 static const char _MSG_SELECT_PROPERTY_NOT_FOUND_KEY [] =
     "IndicationService.IndicationService._MSG_SELECT_PROPERTY_NOT_FOUND";
index 5eb456d4277f535fc6cf8bfdc71018823e6e13ee..076e69e70cdf2aea6e724a5aeb3f286a5e07ff4f 100644 (file)
 #include <Pegasus/Common/ContentLanguageList.h>
 #include <Pegasus/Common/LanguageParser.h>
 #include <Pegasus/Common/OperationContextInternal.h>
-// l10n
 #include <Pegasus/Common/MessageLoader.h>
 #include <Pegasus/Common/String.h>
 #include <Pegasus/Common/IndicationFormatter.h>
+// NOCHKSRC
 #include <Pegasus/Server/ProviderRegistrationManager/ProviderRegistrationManager.h>
+// DOCHKSRC
 #include <Pegasus/Query/QueryExpression/QueryExpression.h>
 #include <Pegasus/Query/QueryCommon/QueryException.h>
 #include <Pegasus/Repository/RepositoryQueryContext.h>
@@ -85,12 +86,12 @@ Boolean ContainsCIMName(const Array<CIMName>& a, const CIMName& x)
 
 Mutex IndicationService::_mutex;
 
-IndicationService::IndicationService (
-    CIMRepository * repository,
-    ProviderRegistrationManager * providerRegManager)
-    : MessageQueueService (PEGASUS_QUEUENAME_INDICATIONSERVICE,
-            MessageQueue::getNextQueueId ()),
-      _providerRegManager (providerRegManager),
+IndicationService::IndicationService(
+    CIMRepository* repository,
+    ProviderRegistrationManager* providerRegManager)
+    : MessageQueueService(
+          PEGASUS_QUEUENAME_INDICATIONSERVICE, MessageQueue::getNextQueueId()),
+      _providerRegManager(providerRegManager),
       _cimRepository(repository)
 {
     _enableSubscriptionsForNonprivilegedUsers = false;
@@ -125,7 +126,8 @@ IndicationService::IndicationService (
         // default to false (i.e., the more restrictive security
         // setting.
         PEG_TRACE_CSTRING(TRC_INDICATION_SERVICE, Tracer::LEVEL4,
-           "Failure attempting to read configuration parameters during initialization.");
+            "Failure attempting to read configuration parameters during "
+                "initialization.");
      }
 
     PEG_TRACE((TRC_INDICATION_SERVICE, Tracer::LEVEL4,
@@ -137,25 +139,25 @@ IndicationService::IndicationService (
         //
         //  Create Subscription Repository
         //
-        _subscriptionRepository = new SubscriptionRepository (repository);
+        _subscriptionRepository = new SubscriptionRepository(repository);
 
         //
         //  Create Subscription Table
         //
-        _subscriptionTable = new SubscriptionTable (_subscriptionRepository);
+        _subscriptionTable = new SubscriptionTable(_subscriptionRepository);
 
         // Initialize the Indication Service
-        _initialize ();
+        _initialize();
     }
-    catch (Exception & e)
+    catch (Exception& e)
     {
-        PEG_TRACE_STRING (TRC_INDICATION_SERVICE_INTERNAL, Tracer::LEVEL2,
+        PEG_TRACE_STRING(TRC_INDICATION_SERVICE_INTERNAL, Tracer::LEVEL2,
            "Exception caught in attempting to initialize Indication Service: " +
-            e.getMessage ());
+            e.getMessage());
     }
 }
 
-IndicationService::~IndicationService (void)
+IndicationService::~IndicationService()
 {
     delete _subscriptionTable;
     delete _subscriptionRepository;
@@ -163,45 +165,46 @@ IndicationService::~IndicationService (void)
 
 void IndicationService::_handle_async_request(AsyncRequest *req)
 {
-    if ( req->getType() == async_messages::CIMSERVICE_STOP )
+    if (req->getType() == async_messages::CIMSERVICE_STOP)
     {
         req->op->processing();
 
         //
         //  Call _terminate
         //
-        _terminate ();
+        _terminate();
 
         handle_CimServiceStop(static_cast<CimServiceStop *>(req));
     }
-    else if (req->getType () == async_messages::CIMSERVICE_START)
+    else if (req->getType() == async_messages::CIMSERVICE_START)
     {
-        req->op->processing ();
+        req->op->processing();
 
-        handle_CimServiceStart (static_cast <CimServiceStart *> (req));
+        handle_CimServiceStart(static_cast<CimServiceStart *>(req));
     }
-    else if ( req->getType() == async_messages::ASYNC_LEGACY_OP_START )
+    else if (req->getType() == async_messages::ASYNC_LEGACY_OP_START)
     {
-       try
-       {
-          req->op->processing();
-          Message *legacy =
-              (static_cast<AsyncLegacyOperationStart *>(req)->get_action());
-          legacy->put_async(req);
+        try
+        {
+            req->op->processing();
+            Message* legacy =
+                static_cast<AsyncLegacyOperationStart *>(req)->get_action();
+            legacy->put_async(req);
 
-          handleEnqueue(legacy);
-       }
-       catch(Exception & )
-       {
-           PEG_TRACE_CSTRING(TRC_INDICATION_SERVICE, Tracer::LEVEL3,
-               "Caught Exception in IndicationService while handling a wrapped legacy  message ");
-               _make_response(req, async_results::CIM_NAK );
-       }
+            handleEnqueue(legacy);
+        }
+        catch(Exception& )
+        {
+            PEG_TRACE_CSTRING(TRC_INDICATION_SERVICE, Tracer::LEVEL3,
+                "Caught Exception in IndicationService while handling a "
+                    "wrapped legacy message ");
+                _make_response(req, async_results::CIM_NAK);
+        }
 
         return;
     }
     else
-        MessageQueueService::_handle_async_request (req);
+        MessageQueueService::_handle_async_request(req);
 }
 
 void IndicationService::handleEnqueue(Message* message)
@@ -212,7 +215,6 @@ void IndicationService::handleEnqueue(Message* message)
     stopWatch.start();
 #endif
 
-// l10n
     // Set the client's requested language into this service thread.
     // This will allow functions in this service to return messages
     // in the correct language.
@@ -221,9 +223,9 @@ void IndicationService::handleEnqueue(Message* message)
     {
         if (msg->thread_changed())
         {
-            AcceptLanguageList *langs =  new AcceptLanguageList
-                (((AcceptLanguageListContainer)msg->operationContext.get
-                (AcceptLanguageListContainer::NAME)).getLanguages());
+            AcceptLanguageList *langs =  new AcceptLanguageList(
+                ((AcceptLanguageListContainer)msg->operationContext.get(
+                    AcceptLanguageListContainer::NAME)).getLanguages());
             Thread::setLanguages(langs);
         }
     }
@@ -302,7 +304,7 @@ void IndicationService::handleEnqueue(Message* message)
                         "The requested operation is not supported or not "
                         "recognized by the indication service.")),
 
-                _enqueueResponse (cimRequest, response);
+                _enqueueResponse(cimRequest, response);
                 break;
         }
     }
@@ -323,13 +325,15 @@ void IndicationService::handleEnqueue(Message* message)
     stopWatch.stop();
 
     PEG_TRACE((TRC_INDICATION_SERVICE_INTERNAL, Tracer::LEVEL2,
-        "%s: %.3f seconds", MessageTypeToString(message->getType()), stopWatch.getElapsed()));
+        "%s: %.3f seconds",
+        MessageTypeToString(message->getType()),
+        stopWatch.getElapsed()));
 #endif
 
    delete message;
 }
 
-void IndicationService::handleEnqueue(void)
+void IndicationService::handleEnqueue()
 {
     Message * message = dequeue();
 
@@ -337,9 +341,9 @@ void IndicationService::handleEnqueue(void)
     handleEnqueue(message);
 }
 
-void IndicationService::_initialize (void)
+void IndicationService::_initialize()
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE, "IndicationService::_initialize");
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE, "IndicationService::_initialize");
 
 #ifdef PEGASUS_INDICATION_PERFINST
     Stopwatch stopWatch;
@@ -347,8 +351,8 @@ void IndicationService::_initialize (void)
     stopWatch.start();
 #endif
 
-    Array <CIMInstance> activeSubscriptions;
-    Array <CIMInstance> noProviderSubscriptions;
+    Array<CIMInstance> activeSubscriptions;
+    Array<CIMInstance> noProviderSubscriptions;
     Boolean invalidInstance = false;
 
     //
@@ -356,15 +360,15 @@ void IndicationService::_initialize (void)
     //  NOTE: Indication Service expects to find exactly one Provider Manager
     //  Service and exactly one Handler Manager Service
     //
-    Array <Uint32> pmservices;
-    find_services (PEGASUS_QUEUENAME_PROVIDERMANAGER_CPP, 0, 0, &pmservices);
-    PEGASUS_ASSERT (pmservices.size () == 1);
-    _providerManager = pmservices [0];
+    Array<Uint32> pmservices;
+    find_services(PEGASUS_QUEUENAME_PROVIDERMANAGER_CPP, 0, 0, &pmservices);
+    PEGASUS_ASSERT(pmservices.size() == 1);
+    _providerManager = pmservices[0];
 
-    Array <Uint32> hmservices;
-    find_services (PEGASUS_QUEUENAME_INDHANDLERMANAGER, 0, 0, &hmservices);
-    PEGASUS_ASSERT (hmservices.size () == 1);
-    _handlerService = hmservices [0];
+    Array<Uint32> hmservices;
+    find_services(PEGASUS_QUEUENAME_INDHANDLERMANAGER, 0, 0, &hmservices);
+    PEGASUS_ASSERT(hmservices.size() == 1);
+    _handlerService = hmservices[0];
 
     //
     //  Set arrays of valid and supported property values
@@ -374,42 +378,42 @@ void IndicationService::_initialize (void)
     //  Some valid values, as defined in the MOF, are not currently supported
     //  by the Pegasus IndicationService
     //
-    _validStates.append (STATE_UNKNOWN);
-    _validStates.append (STATE_OTHER);
-    _validStates.append (STATE_ENABLED);
-    _validStates.append (STATE_ENABLEDDEGRADED);
-    _validStates.append (STATE_DISABLED);
-    _supportedStates.append (STATE_ENABLED);
-    _supportedStates.append (STATE_DISABLED);
-    _validRepeatPolicies.append (_POLICY_UNKNOWN);
-    _validRepeatPolicies.append (_POLICY_OTHER);
-    _validRepeatPolicies.append (_POLICY_NONE);
-    _validRepeatPolicies.append (_POLICY_SUPPRESS);
-    _validRepeatPolicies.append (_POLICY_DELAY);
-    _supportedRepeatPolicies.append (_POLICY_UNKNOWN);
-    _supportedRepeatPolicies.append (_POLICY_OTHER);
-    _supportedRepeatPolicies.append (_POLICY_NONE);
-    _supportedRepeatPolicies.append (_POLICY_SUPPRESS);
-    _supportedRepeatPolicies.append (_POLICY_DELAY);
-    _validErrorPolicies.append (_ERRORPOLICY_OTHER);
-    _validErrorPolicies.append (_ERRORPOLICY_IGNORE);
-    _validErrorPolicies.append (_ERRORPOLICY_DISABLE);
-    _validErrorPolicies.append (_ERRORPOLICY_REMOVE);
-    _supportedErrorPolicies.append (_ERRORPOLICY_IGNORE);
-    _supportedErrorPolicies.append (_ERRORPOLICY_DISABLE);
-    _supportedErrorPolicies.append (_ERRORPOLICY_REMOVE);
-    _validPersistenceTypes.append (PERSISTENCE_OTHER);
-    _validPersistenceTypes.append (PERSISTENCE_PERMANENT);
-    _validPersistenceTypes.append (PERSISTENCE_TRANSIENT);
-    _supportedPersistenceTypes.append (PERSISTENCE_PERMANENT);
-    _supportedPersistenceTypes.append (PERSISTENCE_TRANSIENT);
-    _validSNMPVersion.append (SNMPV1_TRAP);
-    _validSNMPVersion.append (SNMPV2C_TRAP);
-    _validSNMPVersion.append (SNMPV2C_INFORM);
-    _validSNMPVersion.append (SNMPV3_TRAP);
-    _validSNMPVersion.append (SNMPV3_INFORM);
-    _supportedSNMPVersion.append (SNMPV1_TRAP);
-    _supportedSNMPVersion.append (SNMPV2C_TRAP);
+    _validStates.append(STATE_UNKNOWN);
+    _validStates.append(STATE_OTHER);
+    _validStates.append(STATE_ENABLED);
+    _validStates.append(STATE_ENABLEDDEGRADED);
+    _validStates.append(STATE_DISABLED);
+    _supportedStates.append(STATE_ENABLED);
+    _supportedStates.append(STATE_DISABLED);
+    _validRepeatPolicies.append(_POLICY_UNKNOWN);
+    _validRepeatPolicies.append(_POLICY_OTHER);
+    _validRepeatPolicies.append(_POLICY_NONE);
+    _validRepeatPolicies.append(_POLICY_SUPPRESS);
+    _validRepeatPolicies.append(_POLICY_DELAY);
+    _supportedRepeatPolicies.append(_POLICY_UNKNOWN);
+    _supportedRepeatPolicies.append(_POLICY_OTHER);
+    _supportedRepeatPolicies.append(_POLICY_NONE);
+    _supportedRepeatPolicies.append(_POLICY_SUPPRESS);
+    _supportedRepeatPolicies.append(_POLICY_DELAY);
+    _validErrorPolicies.append(_ERRORPOLICY_OTHER);
+    _validErrorPolicies.append(_ERRORPOLICY_IGNORE);
+    _validErrorPolicies.append(_ERRORPOLICY_DISABLE);
+    _validErrorPolicies.append(_ERRORPOLICY_REMOVE);
+    _supportedErrorPolicies.append(_ERRORPOLICY_IGNORE);
+    _supportedErrorPolicies.append(_ERRORPOLICY_DISABLE);
+    _supportedErrorPolicies.append(_ERRORPOLICY_REMOVE);
+    _validPersistenceTypes.append(PERSISTENCE_OTHER);
+    _validPersistenceTypes.append(PERSISTENCE_PERMANENT);
+    _validPersistenceTypes.append(PERSISTENCE_TRANSIENT);
+    _supportedPersistenceTypes.append(PERSISTENCE_PERMANENT);
+    _supportedPersistenceTypes.append(PERSISTENCE_TRANSIENT);
+    _validSNMPVersion.append(SNMPV1_TRAP);
+    _validSNMPVersion.append(SNMPV2C_TRAP);
+    _validSNMPVersion.append(SNMPV2C_INFORM);
+    _validSNMPVersion.append(SNMPV3_TRAP);
+    _validSNMPVersion.append(SNMPV3_INFORM);
+    _supportedSNMPVersion.append(SNMPV1_TRAP);
+    _supportedSNMPVersion.append(SNMPV2C_TRAP);
 
     //
     //  Set arrays of names of supported properties for each class
@@ -421,127 +425,129 @@ void IndicationService::_initialize (void)
     //  must be appended here.  When support for a new property is added, the
     //  property name must be appended to the appropriate array(s) here.
     //
-    _supportedSubscriptionProperties.append (PEGASUS_PROPERTYNAME_FILTER);
-    _supportedSubscriptionProperties.append (PEGASUS_PROPERTYNAME_HANDLER);
-    _supportedSubscriptionProperties.append (_PROPERTY_ONFATALERRORPOLICY);
-    _supportedSubscriptionProperties.append (_PROPERTY_OTHERONFATALERRORPOLICY);
-    _supportedSubscriptionProperties.append
-        (_PROPERTY_FAILURETRIGGERTIMEINTERVAL);
-    _supportedSubscriptionProperties.append (PEGASUS_PROPERTYNAME_SUBSCRIPTION_STATE);
-    _supportedSubscriptionProperties.append (_PROPERTY_OTHERSTATE);
-    _supportedSubscriptionProperties.append (_PROPERTY_LASTCHANGE);
-    _supportedSubscriptionProperties.append (_PROPERTY_DURATION);
-    _supportedSubscriptionProperties.append (_PROPERTY_STARTTIME);
-    _supportedSubscriptionProperties.append (_PROPERTY_TIMEREMAINING);
-    _supportedSubscriptionProperties.append
-        (_PROPERTY_REPEATNOTIFICATIONPOLICY);
-    _supportedSubscriptionProperties.append
-        (_PROPERTY_OTHERREPEATNOTIFICATIONPOLICY);
-    _supportedSubscriptionProperties.append
-        (_PROPERTY_REPEATNOTIFICATIONINTERVAL);
-    _supportedSubscriptionProperties.append (_PROPERTY_REPEATNOTIFICATIONGAP);
-    _supportedSubscriptionProperties.append (_PROPERTY_REPEATNOTIFICATIONCOUNT);
+    _supportedSubscriptionProperties.append(PEGASUS_PROPERTYNAME_FILTER);
+    _supportedSubscriptionProperties.append(PEGASUS_PROPERTYNAME_HANDLER);
+    _supportedSubscriptionProperties.append(_PROPERTY_ONFATALERRORPOLICY);
+    _supportedSubscriptionProperties.append(_PROPERTY_OTHERONFATALERRORPOLICY);
+    _supportedSubscriptionProperties.append(
+        _PROPERTY_FAILURETRIGGERTIMEINTERVAL);
+    _supportedSubscriptionProperties.append(
+        PEGASUS_PROPERTYNAME_SUBSCRIPTION_STATE);
+    _supportedSubscriptionProperties.append(_PROPERTY_OTHERSTATE);
+    _supportedSubscriptionProperties.append(_PROPERTY_LASTCHANGE);
+    _supportedSubscriptionProperties.append(_PROPERTY_DURATION);
+    _supportedSubscriptionProperties.append(_PROPERTY_STARTTIME);
+    _supportedSubscriptionProperties.append(_PROPERTY_TIMEREMAINING);
+    _supportedSubscriptionProperties.append(_PROPERTY_REPEATNOTIFICATIONPOLICY);
+    _supportedSubscriptionProperties.append(
+        _PROPERTY_OTHERREPEATNOTIFICATIONPOLICY);
+    _supportedSubscriptionProperties.append(
+        _PROPERTY_REPEATNOTIFICATIONINTERVAL);
+    _supportedSubscriptionProperties.append(_PROPERTY_REPEATNOTIFICATIONGAP);
+    _supportedSubscriptionProperties.append(_PROPERTY_REPEATNOTIFICATIONCOUNT);
 
     _supportedFormattedSubscriptionProperties =
         _supportedSubscriptionProperties;
-    _supportedFormattedSubscriptionProperties.append
-        (_PROPERTY_TEXTFORMATOWNINGENTITY);
-    _supportedFormattedSubscriptionProperties.append
-        (_PROPERTY_TEXTFORMATID);
-    _supportedFormattedSubscriptionProperties.append
-        (_PROPERTY_TEXTFORMAT);
-    _supportedFormattedSubscriptionProperties.append
-        (_PROPERTY_TEXTFORMATPARAMETERS);
-
-    _supportedFilterProperties.append (_PROPERTY_CAPTION);
-    _supportedFilterProperties.append (_PROPERTY_DESCRIPTION);
-    _supportedFilterProperties.append (_PROPERTY_ELEMENTNAME);
-    _supportedFilterProperties.append (_PROPERTY_SYSTEMCREATIONCLASSNAME);
-    _supportedFilterProperties.append (_PROPERTY_SYSTEMNAME);
-    _supportedFilterProperties.append (PEGASUS_PROPERTYNAME_CREATIONCLASSNAME);
-    _supportedFilterProperties.append (PEGASUS_PROPERTYNAME_NAME);
-    _supportedFilterProperties.append (_PROPERTY_SOURCENAMESPACE);
-    _supportedFilterProperties.append (PEGASUS_PROPERTYNAME_QUERY);
-    _supportedFilterProperties.append (PEGASUS_PROPERTYNAME_QUERYLANGUAGE);
-
-    Array <CIMName> commonListenerDestinationProperties;
-    commonListenerDestinationProperties.append (_PROPERTY_CAPTION);
-    commonListenerDestinationProperties.append (_PROPERTY_DESCRIPTION);
-    commonListenerDestinationProperties.append (_PROPERTY_ELEMENTNAME);
-    commonListenerDestinationProperties.append
-        (_PROPERTY_SYSTEMCREATIONCLASSNAME);
-    commonListenerDestinationProperties.append (_PROPERTY_SYSTEMNAME);
-    commonListenerDestinationProperties.append (PEGASUS_PROPERTYNAME_CREATIONCLASSNAME);
-    commonListenerDestinationProperties.append (PEGASUS_PROPERTYNAME_NAME);
-    commonListenerDestinationProperties.append (PEGASUS_PROPERTYNAME_PERSISTENCETYPE);
-    commonListenerDestinationProperties.append (_PROPERTY_OTHERPERSISTENCETYPE);
+    _supportedFormattedSubscriptionProperties.append(
+        _PROPERTY_TEXTFORMATOWNINGENTITY);
+    _supportedFormattedSubscriptionProperties.append(
+        _PROPERTY_TEXTFORMATID);
+    _supportedFormattedSubscriptionProperties.append(
+        _PROPERTY_TEXTFORMAT);
+    _supportedFormattedSubscriptionProperties.append(
+        _PROPERTY_TEXTFORMATPARAMETERS);
+
+    _supportedFilterProperties.append(_PROPERTY_CAPTION);
+    _supportedFilterProperties.append(_PROPERTY_DESCRIPTION);
+    _supportedFilterProperties.append(_PROPERTY_ELEMENTNAME);
+    _supportedFilterProperties.append(_PROPERTY_SYSTEMCREATIONCLASSNAME);
+    _supportedFilterProperties.append(_PROPERTY_SYSTEMNAME);
+    _supportedFilterProperties.append(PEGASUS_PROPERTYNAME_CREATIONCLASSNAME);
+    _supportedFilterProperties.append(PEGASUS_PROPERTYNAME_NAME);
+    _supportedFilterProperties.append(_PROPERTY_SOURCENAMESPACE);
+    _supportedFilterProperties.append(PEGASUS_PROPERTYNAME_QUERY);
+    _supportedFilterProperties.append(PEGASUS_PROPERTYNAME_QUERYLANGUAGE);
+
+    Array<CIMName> commonListenerDestinationProperties;
+    commonListenerDestinationProperties.append(_PROPERTY_CAPTION);
+    commonListenerDestinationProperties.append(_PROPERTY_DESCRIPTION);
+    commonListenerDestinationProperties.append(_PROPERTY_ELEMENTNAME);
+    commonListenerDestinationProperties.append(
+        _PROPERTY_SYSTEMCREATIONCLASSNAME);
+    commonListenerDestinationProperties.append(_PROPERTY_SYSTEMNAME);
+    commonListenerDestinationProperties.append(
+        PEGASUS_PROPERTYNAME_CREATIONCLASSNAME);
+    commonListenerDestinationProperties.append(PEGASUS_PROPERTYNAME_NAME);
+    commonListenerDestinationProperties.append(
+        PEGASUS_PROPERTYNAME_PERSISTENCETYPE);
+    commonListenerDestinationProperties.append(_PROPERTY_OTHERPERSISTENCETYPE);
 
     _supportedCIMXMLHandlerProperties = commonListenerDestinationProperties;
-    _supportedCIMXMLHandlerProperties.append (_PROPERTY_OWNER);
-    _supportedCIMXMLHandlerProperties.append
-        (PEGASUS_PROPERTYNAME_LSTNRDST_DESTINATION);
+    _supportedCIMXMLHandlerProperties.append(_PROPERTY_OWNER);
+    _supportedCIMXMLHandlerProperties.append(
+        PEGASUS_PROPERTYNAME_LSTNRDST_DESTINATION);
 
     _supportedCIMXMLListenerDestinationProperties =
         commonListenerDestinationProperties;
-    _supportedCIMXMLListenerDestinationProperties.append
-        (PEGASUS_PROPERTYNAME_LSTNRDST_DESTINATION);
+    _supportedCIMXMLListenerDestinationProperties.append(
+        PEGASUS_PROPERTYNAME_LSTNRDST_DESTINATION);
 
     _supportedSNMPHandlerProperties = commonListenerDestinationProperties;
-    _supportedSNMPHandlerProperties.append (_PROPERTY_OWNER);
-    _supportedSNMPHandlerProperties.append
-        (PEGASUS_PROPERTYNAME_LSTNRDST_TARGETHOST);
-    _supportedSNMPHandlerProperties.append (_PROPERTY_TARGETHOSTFORMAT);
-    _supportedSNMPHandlerProperties.append (_PROPERTY_OTHERTARGETHOSTFORMAT);
-    _supportedSNMPHandlerProperties.append (_PROPERTY_PORTNUMBER);
-    _supportedSNMPHandlerProperties.append (PEGASUS_PROPERTYNAME_SNMPVERSION);
-    _supportedSNMPHandlerProperties.append (_PROPERTY_SNMPSECURITYNAME);
-    _supportedSNMPHandlerProperties.append (_PROPERTY_SNMPENGINEID);
+    _supportedSNMPHandlerProperties.append(_PROPERTY_OWNER);
+    _supportedSNMPHandlerProperties.append(
+        PEGASUS_PROPERTYNAME_LSTNRDST_TARGETHOST);
+    _supportedSNMPHandlerProperties.append(_PROPERTY_TARGETHOSTFORMAT);
+    _supportedSNMPHandlerProperties.append(_PROPERTY_OTHERTARGETHOSTFORMAT);
+    _supportedSNMPHandlerProperties.append(_PROPERTY_PORTNUMBER);
+    _supportedSNMPHandlerProperties.append(PEGASUS_PROPERTYNAME_SNMPVERSION);
+    _supportedSNMPHandlerProperties.append(_PROPERTY_SNMPSECURITYNAME);
+    _supportedSNMPHandlerProperties.append(_PROPERTY_SNMPENGINEID);
 
     _supportedSyslogListenerDestinationProperties =
         commonListenerDestinationProperties;
 
     _supportedEmailListenerDestinationProperties =
         commonListenerDestinationProperties;
-    _supportedEmailListenerDestinationProperties.append
-        (PEGASUS_PROPERTYNAME_LSTNRDST_MAILTO);
-    _supportedEmailListenerDestinationProperties.append
-        (PEGASUS_PROPERTYNAME_LSTNRDST_MAILCC);
-    _supportedEmailListenerDestinationProperties.append
-        (PEGASUS_PROPERTYNAME_LSTNRDST_MAILSUBJECT);
+    _supportedEmailListenerDestinationProperties.append(
+        PEGASUS_PROPERTYNAME_LSTNRDST_MAILTO);
+    _supportedEmailListenerDestinationProperties.append(
+        PEGASUS_PROPERTYNAME_LSTNRDST_MAILCC);
+    _supportedEmailListenerDestinationProperties.append(
+        PEGASUS_PROPERTYNAME_LSTNRDST_MAILSUBJECT);
 
     //
     //  Get existing active subscriptions from each namespace in the repository
     //
-    invalidInstance = _subscriptionRepository->getActiveSubscriptions
-        (activeSubscriptions);
-    noProviderSubscriptions.clear ();
+    invalidInstance = _subscriptionRepository->getActiveSubscriptions(
+        activeSubscriptions);
+    noProviderSubscriptions.clear();
 
     PEG_TRACE((TRC_INDICATION_SERVICE, Tracer::LEVEL4,
         "%u active subscription(s) found on initialization",
-        activeSubscriptions.size ()));
+        activeSubscriptions.size()));
 
     String condition;
     String query;
     String queryLanguage;
     CIMPropertyList propertyList;
-    Array <ProviderClassList> indicationProviders;
+    Array<ProviderClassList> indicationProviders;
 
-    for (Uint32 i = 0; i < activeSubscriptions.size (); i++)
+    for (Uint32 i = 0; i < activeSubscriptions.size(); i++)
     {
         //
         //  Check for expired subscription
         //
         try
         {
-            if (_isExpired (activeSubscriptions [i]))
+            if (_isExpired(activeSubscriptions[i]))
             {
-                CIMObjectPath path = activeSubscriptions [i].getPath ();
+                CIMObjectPath path = activeSubscriptions[i].getPath();
 
                 PEG_TRACE((TRC_INDICATION_SERVICE, Tracer::LEVEL4,
                     "Deleting expired subscription on initialization: %s",
-                    (const char *) path.toString ().getCString ()));
+                    (const char *) path.toString().getCString()));
 
-                _deleteExpiredSubscription (path);
+                _deleteExpiredSubscription(path);
                 // If subscription is expired delete the subscription
                 // and continue on to the next one.
                 continue;
@@ -553,25 +559,25 @@ void IndicationService::_initialize (void)
             //  This instance from the repository is invalid
             //  Log a message and skip it
             //
-            Logger::put_l (Logger::STANDARD_LOG, System::CIMSERVER,
+            Logger::put_l(Logger::STANDARD_LOG, System::CIMSERVER,
                 Logger::WARNING,
                 _MSG_INVALID_INSTANCE_KEY, _MSG_INVALID_INSTANCE,
-                e.getMessage ());
+                e.getMessage());
             continue;
         }
 
         CIMNamespaceName sourceNameSpace;
-        Array <CIMName> indicationSubclasses;
-        _getCreateParams (activeSubscriptions [i], indicationSubclasses,
+        Array<CIMName> indicationSubclasses;
+        _getCreateParams(activeSubscriptions[i], indicationSubclasses,
             indicationProviders, propertyList, sourceNameSpace, condition,
             query, queryLanguage);
 
-        if (indicationProviders.size () == 0)
+        if (indicationProviders.size() == 0)
         {
             PEG_TRACE((TRC_INDICATION_SERVICE, Tracer::LEVEL4,
                 "No providers found for subscription on initialization: %s",
                 (const char *)
-                activeSubscriptions [i].getPath ().toString ().getCString ()));
+                    activeSubscriptions[i].getPath().toString().getCString()));
 
             //
             //  There are no providers that can support this subscription
@@ -580,12 +586,12 @@ void IndicationService::_initialize (void)
             //  Append this subscription to no provider list and
             //  Insert entries into the subscription hash tables
             //
-            if (!_subscriptionRepository->reconcileFatalError
-                (activeSubscriptions [i]))
+            if (!_subscriptionRepository->reconcileFatalError(
+                    activeSubscriptions[i]))
             {
-                noProviderSubscriptions.append (activeSubscriptions [i]);
+                noProviderSubscriptions.append(activeSubscriptions[i]);
 
-                _subscriptionTable->insertSubscription (activeSubscriptions [i],
+                _subscriptionTable->insertSubscription(activeSubscriptions[i],
                     indicationProviders, indicationSubclasses, sourceNameSpace);
             }
             continue;
@@ -598,9 +604,9 @@ void IndicationService::_initialize (void)
         //  The Creator from the subscription instance is used for userName,
         //  and authType is not set
         //
-        CIMInstance instance = activeSubscriptions [i];
+        CIMInstance instance = activeSubscriptions[i];
         String creator;
-        if (!_getCreator (instance, creator))
+        if (!_getCreator(instance, creator))
         {
             //
             //  This instance from the repository is corrupted
@@ -610,11 +616,10 @@ void IndicationService::_initialize (void)
             continue;
         }
 
-//l10n start
         // Get the language tags that were saved with the subscription instance
         AcceptLanguageList acceptLangs;
-        Uint32 propIndex = instance.findProperty
-            (PEGASUS_PROPERTYNAME_INDSUB_ACCEPTLANGS);
+        Uint32 propIndex = instance.findProperty(
+            PEGASUS_PROPERTYNAME_INDSUB_ACCEPTLANGS);
         if (propIndex != PEG_NOT_FOUND)
         {
             String acceptLangsString;
@@ -626,8 +631,8 @@ void IndicationService::_initialize (void)
             }
         }
         ContentLanguageList contentLangs;
-        propIndex = instance.findProperty
-            (PEGASUS_PROPERTYNAME_INDSUB_CONTENTLANGS);
+        propIndex = instance.findProperty(
+            PEGASUS_PROPERTYNAME_INDSUB_CONTENTLANGS);
         if (propIndex != PEG_NOT_FOUND)
         {
             String contentLangsString;
@@ -638,7 +643,6 @@ void IndicationService::_initialize (void)
                     contentLangsString);
             }
         }
-// l10n end
 
         //
         //  Send Create request message to each provider
@@ -651,21 +655,21 @@ void IndicationService::_initialize (void)
         //  from all the providers, use of SendWait should not cause a
         //  significant performance issue.
         //
-        Array <ProviderClassList> acceptedProviders;
-        acceptedProviders = _sendWaitCreateRequests
-            (indicationProviders, sourceNameSpace,
+        Array<ProviderClassList> acceptedProviders;
+        acceptedProviders = _sendWaitCreateRequests(
+            indicationProviders, sourceNameSpace,
             propertyList, condition, query, queryLanguage,
-            activeSubscriptions [i],
+            activeSubscriptions[i],
             acceptLangs,
             contentLangs,
             creator);
 
-        if (acceptedProviders.size () == 0)
+        if (acceptedProviders.size() == 0)
         {
             PEG_TRACE((TRC_INDICATION_SERVICE, Tracer::LEVEL4,
                 "No providers accepted subscription on initialization: %s",
                 (const char *)
-                activeSubscriptions [i].getPath ().toString ().getCString ()));
+                    activeSubscriptions[i].getPath().toString().getCString()));
 
             //
             //  No providers accepted the subscription
@@ -673,14 +677,14 @@ void IndicationService::_initialize (void)
             //  If subscription is not disabled or removed, send alert and
             //  Insert entries into the subscription hash tables
             //
-            if (!_subscriptionRepository->reconcileFatalError
-                (activeSubscriptions [i]))
+            if (!_subscriptionRepository->reconcileFatalError(
+                    activeSubscriptions[i]))
             {
                 //
                 //  Insert entries into the subscription hash tables
                 //
-                _subscriptionTable->insertSubscription
-                    (activeSubscriptions [i],
+                _subscriptionTable->insertSubscription(
+                    activeSubscriptions[i],
                     acceptedProviders,
                     indicationSubclasses,
                     sourceNameSpace);
@@ -693,30 +697,31 @@ void IndicationService::_initialize (void)
                 //  Send NoProviderAlertIndication to handler instances
                 //  ATTN: NoProviderAlertIndication must be defined
                 //
-                Array <CIMInstance> subscriptions;
-                subscriptions.append (activeSubscriptions [i]);
-                CIMInstance indicationInstance = _createAlertInstance
-                    (_CLASS_NO_PROVIDER_ALERT, subscriptions);
+                Array<CIMInstance> subscriptions;
+                subscriptions.append(activeSubscriptions[i]);
+                CIMInstance indicationInstance = _createAlertInstance(
+                    _CLASS_NO_PROVIDER_ALERT, subscriptions);
 
                 PEG_TRACE((TRC_INDICATION_SERVICE, Tracer::LEVEL4,
                     "Sending NoProvider Alert for %u subscriptions",
-                    subscriptions.size ()));
-                _sendAlerts (subscriptions, indicationInstance);
+                    subscriptions.size()));
+                _sendAlerts(subscriptions, indicationInstance);
 #endif
 
                 //
                 //  Get Subscription Filter Name and Handler Name
                 //
-                String logString = _getSubscriptionLogString
-                    (activeSubscriptions [i]);
+                String logString = _getSubscriptionLogString(
+                    activeSubscriptions[i]);
 
                 //
                 //  Log a message for the subscription
                 //
-                Logger::put_l (Logger::STANDARD_LOG, System::CIMSERVER,
+                Logger::put_l(Logger::STANDARD_LOG, System::CIMSERVER,
                     Logger::WARNING, _MSG_NO_PROVIDER_KEY, _MSG_NO_PROVIDER,
                     logString,
-                    activeSubscriptions[i].getPath().getNameSpace().getString());
+                    activeSubscriptions[i].getPath().getNameSpace().
+                        getString());
             }
         }
         else
@@ -725,8 +730,8 @@ void IndicationService::_initialize (void)
             //  At least one provider accepted the subscription
             //  Insert entries into the subscription hash tables
             //
-            _subscriptionTable->insertSubscription
-                (activeSubscriptions [i],
+            _subscriptionTable->insertSubscription(
+                activeSubscriptions[i],
                 acceptedProviders,
                 indicationSubclasses,
                 sourceNameSpace);
@@ -738,7 +743,7 @@ void IndicationService::_initialize (void)
     //
     if (invalidInstance)
     {
-        Logger::put_l (Logger::STANDARD_LOG, System::CIMSERVER, Logger::WARNING,
+        Logger::put_l(Logger::STANDARD_LOG, System::CIMSERVER, Logger::WARNING,
             _MSG_INVALID_INSTANCES_KEY, _MSG_INVALID_INSTANCES);
     }
 
@@ -746,36 +751,39 @@ void IndicationService::_initialize (void)
     //  Log a message for any subscription for which there is no longer any
     //  provider
     //
-    if (noProviderSubscriptions.size () > 0)
+    if (noProviderSubscriptions.size() > 0)
     {
 #if 0
         //
         //  Send NoProviderAlertIndication to handler instances
         //  ATTN: NoProviderAlertIndication must be defined
         //
-        CIMInstance indicationInstance = _createAlertInstance
-            (_CLASS_NO_PROVIDER_ALERT, noProviderSubscriptions);
+        CIMInstance indicationInstance = _createAlertInstance(
+            _CLASS_NO_PROVIDER_ALERT, noProviderSubscriptions);
 
         PEG_TRACE((TRC_INDICATION_SERVICE, Tracer::LEVEL4,
             "Sending NoProvider Alert for %u subscriptions",
-            noProviderSubscriptions.size ()));
-        _sendAlerts (noProviderSubscriptions, indicationInstance);
+            noProviderSubscriptions.size()));
+        _sendAlerts(noProviderSubscriptions, indicationInstance);
 #endif
         //
         //  Log a message for each subscription
         //
-        for (Uint32 i = 0; i < noProviderSubscriptions.size (); i++)
+        for (Uint32 i = 0; i < noProviderSubscriptions.size(); i++)
         {
             //
             //  Get Subscription Filter Name and Handler Name
             //
-            String logString = _getSubscriptionLogString
-                (noProviderSubscriptions [i]);
+            String logString =
+                _getSubscriptionLogString(noProviderSubscriptions[i]);
 
-            Logger::put_l (Logger::STANDARD_LOG, System::CIMSERVER,
-                Logger::WARNING, _MSG_NO_PROVIDER_KEY, _MSG_NO_PROVIDER,
+            Logger::put_l(
+                Logger::STANDARD_LOG, System::CIMSERVER, Logger::WARNING,
+                _MSG_NO_PROVIDER_KEY,
+                _MSG_NO_PROVIDER,
                 logString,
-                noProviderSubscriptions[i].getPath().getNameSpace().getString());
+                noProviderSubscriptions[i].getPath().getNameSpace().
+                    getString());
         }
     }
 
@@ -784,7 +792,7 @@ void IndicationService::_initialize (void)
     //  initialization is complete
     //  Provider Manager calls providers' enableIndications method
     //
-    _sendSubscriptionInitComplete ();
+    _sendSubscriptionInitComplete();
 
 #ifdef PEGASUS_INDICATION_PERFINST
     stopWatch.stop();
@@ -793,14 +801,14 @@ void IndicationService::_initialize (void)
         "%s: %.3f seconds", "Initialize", stopWatch.getElapsed()));
 #endif
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
-void IndicationService::_terminate (void)
+void IndicationService::_terminate()
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE, "IndicationService::_terminate");
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE, "IndicationService::_terminate");
 
-    Array <CIMInstance> activeSubscriptions;
+    Array<CIMInstance> activeSubscriptions;
     CIMInstance indicationInstance;
 
     //
@@ -811,24 +819,24 @@ void IndicationService::_terminate (void)
     //
     //  Get existing active subscriptions from hash table
     //
-    activeSubscriptions = _getActiveSubscriptions ();
+    activeSubscriptions = _getActiveSubscriptions();
 
-    if (activeSubscriptions.size () > 0)
+    if (activeSubscriptions.size() > 0)
     {
         //
         //  Create CimomShutdownAlertIndication instance
         //  ATTN: CimomShutdownAlertIndication must be defined
         //
-        indicationInstance = _createAlertInstance (_CLASS_CIMOM_SHUTDOWN_ALERT,
-            activeSubscriptions);
+        indicationInstance = _createAlertInstance(
+            _CLASS_CIMOM_SHUTDOWN_ALERT, activeSubscriptions);
 
         //
         //  Send CimomShutdownAlertIndication to each unique handler instance
         //
         PEG_TRACE((TRC_INDICATION_SERVICE, Tracer::LEVEL4,
             "Sending CIMServerShutdown Alert for %u subscriptions",
-            activeSubscriptions.size ()));
-        _sendAlerts (activeSubscriptions, indicationInstance);
+            activeSubscriptions.size()));
+        _sendAlerts(activeSubscriptions, indicationInstance);
     }
 #endif
 
@@ -841,15 +849,15 @@ void IndicationService::_terminate (void)
     //  currently the IndicationService destructor is never called, so the
     //  IndicationService must call the SubscriptionTable clear() function to
     //  remove the table entries.
-    _subscriptionTable->clear ();
+    _subscriptionTable->clear();
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
 void IndicationService::_checkNonprivilegedAuthorization(
-    const String & userName)
+    const String& userName)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_checkNonprivilegedAuthorization");
 
     Boolean accessDenied = false;
@@ -862,8 +870,9 @@ void IndicationService::_checkNonprivilegedAuthorization(
         }
         else
         {
-           PEG_TRACE_STRING (TRC_INDICATION_SERVICE, Tracer::LEVEL4,
-              "_checkNonprivilegedAuthorization - checking whether user is privileged"
+           PEG_TRACE_STRING(TRC_INDICATION_SERVICE, Tracer::LEVEL4,
+              "_checkNonprivilegedAuthorization - checking whether user is "
+                  "privileged"
               + userName);
            if (!System::isPrivilegedUser(userName))
            {
@@ -885,9 +894,9 @@ void IndicationService::_checkNonprivilegedAuthorization(
     }
 }
 
-void IndicationService::_handleCreateInstanceRequest (const Message * message)
+void IndicationService::_handleCreateInstanceRequest(const Message * message)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_handleCreateInstanceRequest");
 
     CIMCreateInstanceRequestMessage* request =
@@ -898,22 +907,22 @@ void IndicationService::_handleCreateInstanceRequest (const Message * message)
 
     CIMObjectPath instanceRef;
 
-    CIMInstance instance = request->newInstance.clone ();
+    CIMInstance instance = request->newInstance.clone();
 
     try
     {
-        String userName = ((IdentityContainer)request->operationContext.get
-            (IdentityContainer :: NAME)).getUserName();
+        String userName = ((IdentityContainer)request->operationContext.get(
+            IdentityContainer::NAME)).getUserName();
         _checkNonprivilegedAuthorization(userName);
 
         AcceptLanguageList acceptLangs =
-            ((AcceptLanguageListContainer)request->operationContext.get
-            (AcceptLanguageListContainer::NAME)).getLanguages();
+            ((AcceptLanguageListContainer)request->operationContext.get(
+                AcceptLanguageListContainer::NAME)).getLanguages();
         ContentLanguageList contentLangs =
-            ((ContentLanguageListContainer)request->operationContext.get
-            (ContentLanguageListContainer::NAME)).getLanguages();
+            ((ContentLanguageListContainer)request->operationContext.get(
+                ContentLanguageListContainer::NAME)).getLanguages();
 
-        if (_canCreate (instance, request->nameSpace))
+        if (_canCreate(instance, request->nameSpace))
         {
             //
             //  If the instance is of the PEGASUS_CLASSNAME_INDSUBSCRIPTION
@@ -927,13 +936,13 @@ void IndicationService::_handleCreateInstanceRequest (const Message * message)
             String queryLanguage;
             CIMPropertyList requiredProperties;
             CIMNamespaceName sourceNameSpace;
-            Array <CIMName> indicationSubclasses;
-            Array <ProviderClassList> indicationProviders;
+            Array<CIMName> indicationSubclasses;
+            Array<ProviderClassList> indicationProviders;
 
-            if ((instance.getClassName ().equal
-                (PEGASUS_CLASSNAME_INDSUBSCRIPTION)) ||
-                (instance.getClassName ().equal
-                (PEGASUS_CLASSNAME_FORMATTEDINDSUBSCRIPTION)))
+            if ((instance.getClassName().equal(
+                     PEGASUS_CLASSNAME_INDSUBSCRIPTION)) ||
+                (instance.getClassName().equal(
+                     PEGASUS_CLASSNAME_FORMATTEDINDSUBSCRIPTION)))
             {
                 //
                 //  Get subscription state
@@ -944,30 +953,27 @@ void IndicationService::_handleCreateInstanceRequest (const Message * message)
                 //  the default value; if invalid, an exception was thrown
                 //
                 CIMValue subscriptionStateValue;
-                subscriptionStateValue = instance.getProperty
-                    (instance.findProperty (PEGASUS_PROPERTYNAME_SUBSCRIPTION_STATE)).getValue ();
-                subscriptionStateValue.get (subscriptionState);
+                subscriptionStateValue = instance.getProperty(
+                    instance.findProperty(
+                        PEGASUS_PROPERTYNAME_SUBSCRIPTION_STATE)).getValue();
+                subscriptionStateValue.get(subscriptionState);
 
                 if ((subscriptionState == STATE_ENABLED) ||
                     (subscriptionState == STATE_ENABLEDDEGRADED))
                 {
-                    _getCreateParams (instance, indicationSubclasses,
+                    _getCreateParams(instance, indicationSubclasses,
                         indicationProviders, requiredProperties,
                         sourceNameSpace, condition, query, queryLanguage);
 
-                    if (indicationProviders.size () == 0)
+                    if (indicationProviders.size() == 0)
                     {
                         //
                         //  There are no providers that can support this
                         //  subscription
                         //
-                        PEG_METHOD_EXIT ();
-
-                        // l10n
-                        // throw PEGASUS_CIM_EXCEPTION (CIM_ERR_NOT_SUPPORTED,
-                        //  _MSG_NO_PROVIDERS);
+                        PEG_METHOD_EXIT();
 
-                        throw PEGASUS_CIM_EXCEPTION_L (CIM_ERR_NOT_SUPPORTED,
+                        throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_NOT_SUPPORTED,
                             MessageLoaderParms(_MSG_NO_PROVIDERS_KEY,
                                 _MSG_NO_PROVIDERS));
                     }
@@ -975,8 +981,7 @@ void IndicationService::_handleCreateInstanceRequest (const Message * message)
                     //
                     //  Send Create request message to each provider
                     //
-                    // l10n
-                    _sendAsyncCreateRequests (indicationProviders,
+                    _sendAsyncCreateRequests(indicationProviders,
                         sourceNameSpace, requiredProperties, condition,
                         query, queryLanguage, instance,
                         acceptLangs,
@@ -995,10 +1000,9 @@ void IndicationService::_handleCreateInstanceRequest (const Message * message)
                     //
                     //  Create instance for disabled subscription
                     //
-                    instanceRef = _subscriptionRepository->createInstance
-                        (instance, request->nameSpace, userName,
-                         acceptLangs, contentLangs,
-                        false);
+                    instanceRef = _subscriptionRepository->createInstance(
+                        instance, request->nameSpace, userName,
+                        acceptLangs, contentLangs, false);
                 }
             }
             else
@@ -1006,18 +1010,17 @@ void IndicationService::_handleCreateInstanceRequest (const Message * message)
                 //
                 //  Create instance for filter or handler
                 //
-                instanceRef = _subscriptionRepository->createInstance
-                    (instance, request->nameSpace, userName,
-                     acceptLangs, contentLangs,
-                    false);
+                instanceRef = _subscriptionRepository->createInstance(
+                    instance, request->nameSpace, userName,
+                    acceptLangs, contentLangs, false);
             }
         }
     }
-    catch (CIMException & exception)
+    catch (CIMException& exception)
     {
         cimException = exception;
     }
-    catch (Exception & exception)
+    catch (Exception& exception)
     {
         cimException = PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED,
             exception.getMessage());
@@ -1037,15 +1040,15 @@ void IndicationService::_handleCreateInstanceRequest (const Message * message)
         PEGASUS_ASSERT(response != 0);
         response->cimException = cimException;
         response->instanceName = instanceRef;
-        _enqueueResponse (request, response);
+        _enqueueResponse(request, response);
     }
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
-void IndicationService::_handleGetInstanceRequest (const Message* message)
+void IndicationService::_handleGetInstanceRequest(const Message* message)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_handleGetInstanceRequest");
 
     CIMGetInstanceRequestMessage* request =
@@ -1057,9 +1060,9 @@ void IndicationService::_handleGetInstanceRequest (const Message* message)
 
     try
     {
-        String userName = ((IdentityContainer)request->operationContext.get
-            (IdentityContainer :: NAME)).getUserName();
-        _checkNonprivilegedAuthorization(userName );
+        String userName = ((IdentityContainer)request->operationContext.get(
+            IdentityContainer::NAME)).getUserName();
+        _checkNonprivilegedAuthorization(userName);
 
         //
         //  Add Creator to property list, if not null
@@ -1070,15 +1073,15 @@ void IndicationService::_handleGetInstanceRequest (const Message* message)
         Boolean startTimeAdded;
         Boolean durationAdded;
         CIMPropertyList propertyList = request->propertyList;
-        CIMName className = request->instanceName.getClassName ();
-        _updatePropertyList (className, propertyList, setTimeRemaining,
+        CIMName className = request->instanceName.getClassName();
+        _updatePropertyList(className, propertyList, setTimeRemaining,
             startTimeAdded, durationAdded);
 
         //
         //  Get instance from repository
         //
-        instance = _subscriptionRepository->getInstance
-            (request->nameSpace, request->instanceName, request->localOnly,
+        instance = _subscriptionRepository->getInstance(
+            request->nameSpace, request->instanceName, request->localOnly,
             request->includeQualifiers, request->includeClassOrigin,
             propertyList);
 
@@ -1086,42 +1089,39 @@ void IndicationService::_handleGetInstanceRequest (const Message* message)
         //  Remove Creator property from instance before returning
         //
         String creator;
-        if (!_getCreator (instance, creator))
+        if (!_getCreator(instance, creator))
         {
             //
             //  This instance from the repository is corrupted
             //  L10N TODO DONE -- new throw of exception
             //
-            PEG_METHOD_EXIT ();
-            //throw PEGASUS_CIM_EXCEPTION (CIM_ERR_FAILED,
-                //_MSG_INVALID_INSTANCES);
+            PEG_METHOD_EXIT();
             MessageLoaderParms parms(_MSG_INVALID_INSTANCES_KEY,
                 _MSG_INVALID_INSTANCES);
             throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED, parms);
         }
-        instance.removeProperty (instance.findProperty
-            (PEGASUS_PROPERTYNAME_INDSUB_CREATOR));
+        instance.removeProperty(instance.findProperty(
+            PEGASUS_PROPERTYNAME_INDSUB_CREATOR));
 
-// l10n start
         //
         //  Remove the language properties from instance before returning
         //
-        Uint32 propIndex = instance.findProperty
-            (PEGASUS_PROPERTYNAME_INDSUB_ACCEPTLANGS);
+        Uint32 propIndex = instance.findProperty(
+            PEGASUS_PROPERTYNAME_INDSUB_ACCEPTLANGS);
         if (propIndex != PEG_NOT_FOUND)
         {
-             instance.removeProperty (propIndex);
+             instance.removeProperty(propIndex);
         }
 
-        propIndex = instance.findProperty
-            (PEGASUS_PROPERTYNAME_INDSUB_CONTENTLANGS);
+        propIndex = instance.findProperty(
+            PEGASUS_PROPERTYNAME_INDSUB_CONTENTLANGS);
         if (propIndex != PEG_NOT_FOUND)
         {
-             // Get the content languages to be sent in the Content-Language header
+             // Get the content languages to be sent in the Content-Language
+             // header
              instance.getProperty(propIndex).getValue().get(contentLangsString);
-             instance.removeProperty (propIndex);
+             instance.removeProperty(propIndex);
         }
-// l10n end
 
         //
         //  If a subscription with a duration, calculate subscription time
@@ -1131,9 +1131,9 @@ void IndicationService::_handleGetInstanceRequest (const Message* message)
         {
             try
             {
-                _setTimeRemaining (instance);
+                _setTimeRemaining(instance);
             }
-            catch (DateTimeOutOfRangeException &)
+            catch (DateTimeOutOfRangeException&)
             {
                 //
                 //  This instance from the repository is invalid
@@ -1143,13 +1143,13 @@ void IndicationService::_handleGetInstanceRequest (const Message* message)
             }
             if (startTimeAdded)
             {
-                instance.removeProperty (instance.findProperty
-                    (_PROPERTY_STARTTIME));
+                instance.removeProperty(instance.findProperty(
+                    _PROPERTY_STARTTIME));
             }
             if (durationAdded)
             {
-                instance.removeProperty (instance.findProperty
-                    (_PROPERTY_DURATION));
+                instance.removeProperty(instance.findProperty(
+                    _PROPERTY_DURATION));
             }
         }
     }
@@ -1159,12 +1159,12 @@ void IndicationService::_handleGetInstanceRequest (const Message* message)
     }
     catch (Exception& exception)
     {
-        cimException = PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED,
-                                             exception.getMessage());
+        cimException =
+            PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, exception.getMessage());
     }
 
-    CIMGetInstanceResponseMessage * response = dynamic_cast
-        <CIMGetInstanceResponseMessage *> (request->buildResponse ());
+    CIMGetInstanceResponseMessage * response =
+        dynamic_cast<CIMGetInstanceResponseMessage *>(request->buildResponse());
     response->cimException = cimException;
     if (contentLangsString.size())
     {
@@ -1174,21 +1174,21 @@ void IndicationService::_handleGetInstanceRequest (const Message* message)
             LanguageParser::parseContentLanguageHeader(contentLangsString)));
     }
     response->cimInstance = instance;
-    _enqueueResponse (request, response);
+    _enqueueResponse(request, response);
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
 void IndicationService::_handleEnumerateInstancesRequest(const Message* message)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_handleEnumerateInstancesRequest");
 
     CIMEnumerateInstancesRequestMessage* request =
         (CIMEnumerateInstancesRequestMessage*) message;
 
-    Array <CIMInstance> enumInstances;
-    Array <CIMInstance> returnedInstances;
+    Array<CIMInstance> enumInstances;
+    Array<CIMInstance> returnedInstances;
 
     CIMException cimException;
     CIMInstance cimInstance;
@@ -1197,8 +1197,8 @@ void IndicationService::_handleEnumerateInstancesRequest(const Message* message)
 
     try
     {
-        String userName = ((IdentityContainer)request->operationContext.get
-            (IdentityContainer :: NAME)).getUserName();
+        String userName = ((IdentityContainer)request->operationContext.get(
+            IdentityContainer::NAME)).getUserName();
         _checkNonprivilegedAuthorization(userName);
 
         //
@@ -1210,7 +1210,7 @@ void IndicationService::_handleEnumerateInstancesRequest(const Message* message)
         Boolean startTimeAdded;
         Boolean durationAdded;
         CIMPropertyList propertyList = request->propertyList;
-        _updatePropertyList (request->className,
+        _updatePropertyList(request->className,
             propertyList, setTimeRemaining, startTimeAdded, durationAdded);
 
         enumInstances = _subscriptionRepository->enumerateInstancesForClass(
@@ -1218,7 +1218,6 @@ void IndicationService::_handleEnumerateInstancesRequest(const Message* message)
             request->includeQualifiers, request->includeClassOrigin,
             propertyList);
 
-// l10n
         // Vars used to aggregate the content languages of the subscription
         // instances.
         Boolean langMismatch = false;
@@ -1228,10 +1227,10 @@ void IndicationService::_handleEnumerateInstancesRequest(const Message* message)
         //  Remove Creator and language properties from instances before
         //  returning
         //
-        for (Uint32 i = 0; i < enumInstances.size (); i++)
+        for (Uint32 i = 0; i < enumInstances.size(); i++)
         {
             String creator;
-            if (!_getCreator (enumInstances [i], creator))
+            if (!_getCreator(enumInstances[i], creator))
             {
                 //
                 //  This instance from the repository is corrupted
@@ -1239,29 +1238,29 @@ void IndicationService::_handleEnumerateInstancesRequest(const Message* message)
                 //
                 continue;
             }
-            enumInstances [i].removeProperty
-                (enumInstances [i].findProperty
-                (PEGASUS_PROPERTYNAME_INDSUB_CREATOR));
+            enumInstances[i].removeProperty(
+                enumInstances[i].findProperty(
+                    PEGASUS_PROPERTYNAME_INDSUB_CREATOR));
 
-// l10n start
-            propIndex = enumInstances [i].findProperty
-                (PEGASUS_PROPERTYNAME_INDSUB_CONTENTLANGS);
+            propIndex = enumInstances[i].findProperty(
+                PEGASUS_PROPERTYNAME_INDSUB_CONTENTLANGS);
             String contentLangs;
             if (propIndex != PEG_NOT_FOUND)
             {
-                enumInstances [i].getProperty(propIndex).getValue().get
-                    (contentLangs);
-                enumInstances [i].removeProperty(propIndex);
+                enumInstances[i].getProperty(propIndex).getValue().get(
+                    contentLangs);
+                enumInstances[i].removeProperty(propIndex);
             }
 
-            propIndex = enumInstances [i].findProperty
-                (PEGASUS_PROPERTYNAME_INDSUB_ACCEPTLANGS);
+            propIndex = enumInstances[i].findProperty(
+                PEGASUS_PROPERTYNAME_INDSUB_ACCEPTLANGS);
             if (propIndex != PEG_NOT_FOUND)
             {
-                enumInstances [i].removeProperty(propIndex);
+                enumInstances[i].removeProperty(propIndex);
             }
 
-            // Determine what to set into the Content-Language header back to the client
+            // Determine what to set into the Content-Language header back to
+            // the client
             if (!langMismatch)
             {
                 if (contentLangs == String::EMPTY)
@@ -1282,7 +1281,6 @@ void IndicationService::_handleEnumerateInstancesRequest(const Message* message)
                     }
                 }
             }
-// l10n end
 
             //
             //  If a subscription with a duration, calculate subscription time
@@ -1292,8 +1290,9 @@ void IndicationService::_handleEnumerateInstancesRequest(const Message* message)
             {
                 try
                 {
-                    _setTimeRemaining (enumInstances [i]);
-                } catch (DateTimeOutOfRangeException &)
+                    _setTimeRemaining(enumInstances[i]);
+                }
+                catch (DateTimeOutOfRangeException&)
                 {
                     //
                     //  This instance from the repository is invalid
@@ -1303,17 +1302,17 @@ void IndicationService::_handleEnumerateInstancesRequest(const Message* message)
                 }
                 if (startTimeAdded)
                 {
-                    enumInstances [i].removeProperty
-                        (enumInstances [i].findProperty (_PROPERTY_STARTTIME));
+                    enumInstances[i].removeProperty(
+                        enumInstances[i].findProperty(_PROPERTY_STARTTIME));
                 }
                 if (durationAdded)
                 {
-                    enumInstances [i].removeProperty
-                        (enumInstances [i].findProperty (_PROPERTY_DURATION));
+                    enumInstances[i].removeProperty(
+                        enumInstances[i].findProperty(_PROPERTY_DURATION));
                 }
             }
 
-            returnedInstances.append (enumInstances [i]);
+            returnedInstances.append(enumInstances[i]);
         }
     }
     catch (CIMException& exception)
@@ -1339,15 +1338,15 @@ void IndicationService::_handleEnumerateInstancesRequest(const Message* message)
             LanguageParser::parseContentLanguageHeader(aggregatedLangs)));
     }
     response->cimNamedInstances = returnedInstances;
-    _enqueueResponse (request, response);
+    _enqueueResponse(request, response);
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
-void IndicationService::_handleEnumerateInstanceNamesRequest
-    (const Message* message)
+void IndicationService::_handleEnumerateInstanceNamesRequest(
+    const Message* message)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_handleEnumerateInstanceNamesRequest");
 
     CIMEnumerateInstanceNamesRequestMessage* request =
@@ -1359,12 +1358,12 @@ void IndicationService::_handleEnumerateInstanceNamesRequest
 
     try
     {
-        String userName = ((IdentityContainer)request->operationContext.get
-            (IdentityContainer :: NAME)).getUserName();
+        String userName = ((IdentityContainer)request->operationContext.get(
+            IdentityContainer::NAME)).getUserName();
         _checkNonprivilegedAuthorization(userName);
         enumInstanceNames =
-            _subscriptionRepository->enumerateInstanceNamesForClass
-            (request->nameSpace, request->className);
+            _subscriptionRepository->enumerateInstanceNamesForClass(
+                request->nameSpace, request->className);
     }
     catch (CIMException& exception)
     {
@@ -1383,14 +1382,14 @@ void IndicationService::_handleEnumerateInstanceNamesRequest
     PEGASUS_ASSERT(response != 0);
     response->cimException = cimException;
     response->instanceNames = enumInstanceNames;
-    _enqueueResponse (request, response);
+    _enqueueResponse(request, response);
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
-void IndicationService::_handleModifyInstanceRequest (const Message* message)
+void IndicationService::_handleModifyInstanceRequest(const Message* message)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_handleModifyInstanceRequest");
 
     CIMModifyInstanceRequestMessage* request =
@@ -1401,56 +1400,51 @@ void IndicationService::_handleModifyInstanceRequest (const Message* message)
 
     try
     {
-        String userName = ((IdentityContainer)request->operationContext.get
-            (IdentityContainer :: NAME)).getUserName();
+        String userName = ((IdentityContainer)request->operationContext.get(
+            IdentityContainer::NAME)).getUserName();
         _checkNonprivilegedAuthorization(userName);
 
         //
         //  Get the instance name
         //
-        CIMObjectPath instanceReference =
-            request->modifiedInstance.getPath ();
+        CIMObjectPath instanceReference = request->modifiedInstance.getPath();
 
         //
         //  Get instance from repository
         //
         CIMInstance instance;
 
-        instance = _subscriptionRepository->getInstance
-            (request->nameSpace, instanceReference);
+        instance = _subscriptionRepository->getInstance(
+            request->nameSpace, instanceReference);
 
         CIMInstance modifiedInstance = request->modifiedInstance;
-        if (_canModify (request, instanceReference, instance, modifiedInstance))
+        if (_canModify(request, instanceReference, instance, modifiedInstance))
         {
             //
             //  Set path in instance
             //
-            instanceReference.setNameSpace (request->nameSpace);
-            instance.setPath (instanceReference);
+            instanceReference.setNameSpace(request->nameSpace);
+            instance.setPath(instanceReference);
 
             //
             //  Check for expired subscription
             //
             try
             {
-                if (_isExpired (instance))
+                if (_isExpired(instance))
                 {
-                  //
-                  //  Delete the subscription instance
-                  //
-                  _deleteExpiredSubscription (instanceReference);
-
-                  PEG_METHOD_EXIT ();
-
-                  // l10n
+                    //
+                    //  Delete the subscription instance
+                    //
+                    _deleteExpiredSubscription(instanceReference);
 
-                  // String exceptionStr = _MSG_EXPIRED;
-                  // throw PEGASUS_CIM_EXCEPTION (CIM_ERR_FAILED, exceptionStr);
+                    PEG_METHOD_EXIT();
 
-                  throw PEGASUS_CIM_EXCEPTION_L (CIM_ERR_FAILED,
-                      MessageLoaderParms(_MSG_EXPIRED_KEY, _MSG_EXPIRED));
+                    throw PEGASUS_CIM_EXCEPTION_L (CIM_ERR_FAILED,
+                        MessageLoaderParms(_MSG_EXPIRED_KEY, _MSG_EXPIRED));
                 }
-            } catch (DateTimeOutOfRangeException &)
+            }
+            catch (DateTimeOutOfRangeException&)
             {
                 //
                 //  This instance from the repository is invalid
@@ -1464,16 +1458,16 @@ void IndicationService::_handleModifyInstanceRequest (const Message* message)
             //  null, and that numProperties is 0 or 1
             //
             CIMPropertyList propertyList = request->propertyList;
-            if (request->propertyList.size () > 0)
+            if (request->propertyList.size() > 0)
             {
                 //
                 //  Get current state from instance
                 //
                 Uint16 currentState;
                 Boolean valid = true;
-                if (_subscriptionRepository->getState (instance, currentState))
+                if (_subscriptionRepository->getState(instance, currentState))
                 {
-                    valid = _validateState (currentState);
+                    valid = _validateState(currentState);
                 }
 
                 if (!valid)
@@ -1482,12 +1476,10 @@ void IndicationService::_handleModifyInstanceRequest (const Message* message)
                     //  This instance from the repository is corrupted
                     //  L10N TODO DONE -- new throw of exception
                     //
-                    PEG_METHOD_EXIT ();
-                    //throw PEGASUS_CIM_EXCEPTION (CIM_ERR_FAILED,
-                        //_MSG_INVALID_INSTANCES);
-                    MessageLoaderParms parms (_MSG_INVALID_INSTANCES_KEY,
+                    PEG_METHOD_EXIT();
+                    MessageLoaderParms parms(_MSG_INVALID_INSTANCES_KEY,
                         _MSG_INVALID_INSTANCES);
-                    throw PEGASUS_CIM_EXCEPTION_L (CIM_ERR_FAILED, parms);
+                    throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED, parms);
                 }
 
                 //
@@ -1499,34 +1491,35 @@ void IndicationService::_handleModifyInstanceRequest (const Message* message)
                 //  the default value; if invalid, an exception was thrown
                 //
                 Uint16 newState;
-                modifiedInstance.getProperty (modifiedInstance.findProperty
-                    (PEGASUS_PROPERTYNAME_SUBSCRIPTION_STATE)).getValue ().get (newState);
+                modifiedInstance.getProperty(modifiedInstance.findProperty(
+                    PEGASUS_PROPERTYNAME_SUBSCRIPTION_STATE)).getValue().get(
+                        newState);
 
                 //
                 //  If Subscription State has changed,
                 //  Set Time of Last State Change to current date time
                 //
                 CIMDateTime currentDateTime =
-                    CIMDateTime::getCurrentDateTime ();
+                    CIMDateTime::getCurrentDateTime();
                 if (newState != currentState)
                 {
-                    if (modifiedInstance.findProperty (_PROPERTY_LASTCHANGE) !=
+                    if (modifiedInstance.findProperty(_PROPERTY_LASTCHANGE) !=
                         PEG_NOT_FOUND)
                     {
-                        CIMProperty lastChange = modifiedInstance.getProperty
-                            (modifiedInstance.findProperty
-                            (_PROPERTY_LASTCHANGE));
-                        lastChange.setValue (CIMValue (currentDateTime));
+                        CIMProperty lastChange = modifiedInstance.getProperty(
+                            modifiedInstance.findProperty(
+                                _PROPERTY_LASTCHANGE));
+                        lastChange.setValue(CIMValue(currentDateTime));
                     }
                     else
                     {
-                        modifiedInstance.addProperty (CIMProperty
-                            (_PROPERTY_LASTCHANGE, CIMValue (currentDateTime)));
+                        modifiedInstance.addProperty(CIMProperty(
+                            _PROPERTY_LASTCHANGE, CIMValue(currentDateTime)));
                     }
-                    Array <CIMName> properties =
-                        propertyList.getPropertyNameArray ();
-                    properties.append (_PROPERTY_LASTCHANGE);
-                    propertyList.set (properties);
+                    Array<CIMName> properties =
+                        propertyList.getPropertyNameArray();
+                    properties.append(_PROPERTY_LASTCHANGE);
+                    propertyList.set(properties);
                 }
 
                 //
@@ -1541,63 +1534,63 @@ void IndicationService::_handleModifyInstanceRequest (const Message* message)
                     //  to the current date time
                     //
                     CIMDateTime startTime;
-                    CIMProperty startTimeProperty = instance.getProperty
-                        (instance.findProperty (_PROPERTY_STARTTIME));
-                    CIMValue startTimeValue = instance.getProperty
-                        (instance.findProperty
-                        (_PROPERTY_STARTTIME)).getValue ();
+                    CIMProperty startTimeProperty = instance.getProperty(
+                        instance.findProperty(_PROPERTY_STARTTIME));
+                    CIMValue startTimeValue = instance.getProperty(
+                        instance.findProperty(_PROPERTY_STARTTIME)).getValue();
                     Boolean setStart = false;
-                    if (startTimeValue.isNull ())
+                    if (startTimeValue.isNull())
                     {
                         setStart = true;
                     }
                     else
                     {
-                        startTimeValue.get (startTime);
+                        startTimeValue.get(startTime);
 
                         if (startTime.isInterval())
                         {
-                          if (startTime.equal
-                              (CIMDateTime (_ZERO_INTERVAL_STRING)))
-                          {
-                            setStart = true;
-                          }
+                            if (startTime.equal(
+                                    CIMDateTime(_ZERO_INTERVAL_STRING)))
+                            {
+                                setStart = true;
+                            }
                         }
                     }
 
                     if (setStart)
                     {
-                        if (modifiedInstance.findProperty (_PROPERTY_STARTTIME)
+                        if (modifiedInstance.findProperty(_PROPERTY_STARTTIME)
                             != PEG_NOT_FOUND)
                         {
-                            CIMProperty startTime = modifiedInstance.getProperty
-                                (modifiedInstance.findProperty
-                                (_PROPERTY_STARTTIME));
-                            startTime.setValue (CIMValue (currentDateTime));
+                            CIMProperty startTime =
+                                modifiedInstance.getProperty(
+                                    modifiedInstance.findProperty(
+                                        _PROPERTY_STARTTIME));
+                            startTime.setValue(CIMValue(currentDateTime));
                         }
                         else
                         {
-                            modifiedInstance.addProperty (CIMProperty
-                                (_PROPERTY_STARTTIME,
-                                CIMValue (currentDateTime)));
+                            modifiedInstance.addProperty(CIMProperty(
+                                _PROPERTY_STARTTIME,
+                                CIMValue(currentDateTime)));
                         }
 
-                        Array <CIMName> properties =
-                            propertyList.getPropertyNameArray ();
-                        properties.append (_PROPERTY_STARTTIME);
-                        propertyList.set (properties);
+                        Array<CIMName> properties =
+                            propertyList.getPropertyNameArray();
+                        properties.append(_PROPERTY_STARTTIME);
+                        propertyList.set(properties);
                     }
                 }
 
-// l10n
                 // Add the language properties to the modified instance.
-                // Note:  These came from the Accept-Language and Content-Language
-                // headers in the HTTP messages, and may be empty.
+                // Note:  These came from the Accept-Language and
+                // Content-Language headers in the HTTP messages, and may be
+                // empty.
                 AcceptLanguageList acceptLangs =
-                    ((AcceptLanguageListContainer)request->operationContext.get
-                    (AcceptLanguageListContainer::NAME)).getLanguages();
-                modifiedInstance.addProperty (CIMProperty
-                    (PEGASUS_PROPERTYNAME_INDSUB_ACCEPTLANGS,
+                    ((AcceptLanguageListContainer)request->operationContext.get(
+                    AcceptLanguageListContainer::NAME)).getLanguages();
+                modifiedInstance.addProperty(CIMProperty(
+                    PEGASUS_PROPERTYNAME_INDSUB_ACCEPTLANGS,
                     LanguageParser::buildAcceptLanguageHeader(acceptLangs)));
 
                 ContentLanguageList contentLangs =
@@ -1607,23 +1600,22 @@ void IndicationService::_handleModifyInstanceRequest (const Message* message)
                     (PEGASUS_PROPERTYNAME_INDSUB_CONTENTLANGS,
                     LanguageParser::buildContentLanguageHeader(contentLangs)));
 
-                Array <CIMName> properties = propertyList.getPropertyNameArray ();
+                Array<CIMName> properties = propertyList.getPropertyNameArray();
                 properties.append (PEGASUS_PROPERTYNAME_INDSUB_ACCEPTLANGS);
                 properties.append (PEGASUS_PROPERTYNAME_INDSUB_CONTENTLANGS);
                 propertyList.set (properties);
-// l10n -end
 
                 //
                 //  If subscription is to be enabled, determine if there are
                 //  any indication providers that can serve the subscription
                 //
-                Array <ProviderClassList> indicationProviders;
+                Array<ProviderClassList> indicationProviders;
                 CIMPropertyList requiredProperties;
                 CIMNamespaceName sourceNameSpace;
                 String condition;
                 String query;
                 String queryLanguage;
-                Array <CIMName> indicationSubclasses;
+                Array<CIMName> indicationSubclasses;
 
                 if (((newState == STATE_ENABLED) ||
                      (newState == STATE_ENABLEDDEGRADED))
@@ -1634,26 +1626,22 @@ void IndicationService::_handleModifyInstanceRequest (const Message* message)
                     //  Subscription was previously not enabled but is now to
                     //  be enabled
                     //
-                    _getCreateParams (instance, indicationSubclasses,
+                    _getCreateParams(instance, indicationSubclasses,
                         indicationProviders, requiredProperties,
                         sourceNameSpace, condition, query, queryLanguage);
 
-                    if (indicationProviders.size () == 0)
+                    if (indicationProviders.size() == 0)
                     {
                         //
                         //  There are no providers that can support this
                         //  subscription
                         //
-                        instance.setPath (instanceReference);
-                        _subscriptionRepository->reconcileFatalError (instance);
-                        PEG_METHOD_EXIT ();
-
-                        // l10n
-                        // throw PEGASUS_CIM_EXCEPTION (CIM_ERR_NOT_SUPPORTED,
-                        //  _MSG_NO_PROVIDERS);
+                        instance.setPath(instanceReference);
+                        _subscriptionRepository->reconcileFatalError(instance);
+                        PEG_METHOD_EXIT();
 
-                        throw PEGASUS_CIM_EXCEPTION_L (CIM_ERR_NOT_SUPPORTED,
-                            MessageLoaderParms (_MSG_NO_PROVIDERS_KEY,
+                        throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_NOT_SUPPORTED,
+                            MessageLoaderParms(_MSG_NO_PROVIDERS_KEY,
                             _MSG_NO_PROVIDERS));
                     }
                 }
@@ -1663,22 +1651,23 @@ void IndicationService::_handleModifyInstanceRequest (const Message* message)
                 //
                 try
                 {
-                    modifiedInstance.setPath (instanceReference);
-                    _subscriptionRepository->modifyInstance
-                        (request->nameSpace, modifiedInstance,
+                    modifiedInstance.setPath(instanceReference);
+                    _subscriptionRepository->modifyInstance(
+                        request->nameSpace, modifiedInstance,
                         request->includeQualifiers, propertyList);
 
-                    Logger::put (Logger::STANDARD_LOG, System::CIMSERVER,
+                    Logger::put(Logger::STANDARD_LOG, System::CIMSERVER,
                         Logger::TRACE,
-                        "IndicationService::_handleModifyInstanceRequest - Name Space: $0  Instance name: $1",
-                        request->nameSpace.getString (),
-                        modifiedInstance.getClassName ().getString ());
+                        "IndicationService::_handleModifyInstanceRequest - "
+                            "Name Space: $0  Instance name: $1",
+                        request->nameSpace.getString(),
+                        modifiedInstance.getClassName().getString());
                 }
-                catch (CIMException & exception)
+                catch (CIMException& exception)
                 {
                     cimException = exception;
                 }
-                catch (Exception & exception)
+                catch (Exception& exception)
                 {
                     cimException = PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED,
                                        exception.getMessage());
@@ -1686,11 +1675,11 @@ void IndicationService::_handleModifyInstanceRequest (const Message* message)
 
                 if (cimException.getCode() != CIM_ERR_SUCCESS)
                 {
-                    CIMResponseMessage * response = request->buildResponse ();
+                    CIMResponseMessage * response = request->buildResponse();
                     response->cimException = cimException;
-                    _enqueueResponse (request, response);
+                    _enqueueResponse(request, response);
 
-                    PEG_METHOD_EXIT ();
+                    PEG_METHOD_EXIT();
                     return;
                 }
 
@@ -1703,11 +1692,14 @@ void IndicationService::_handleModifyInstanceRequest (const Message* message)
                     && ((currentState != STATE_ENABLED) &&
                         (currentState != STATE_ENABLEDDEGRADED)))
                 {
-                    instanceReference.setNameSpace (request->nameSpace);
-                    instance.setPath (instanceReference);
-// l10n
-                    _sendAsyncCreateRequests (indicationProviders,
-                        sourceNameSpace, requiredProperties, condition,
+                    instanceReference.setNameSpace(request->nameSpace);
+                    instance.setPath(instanceReference);
+
+                    _sendAsyncCreateRequests(
+                        indicationProviders,
+                        sourceNameSpace,
+                        requiredProperties,
+                        condition,
                         query,
                         queryLanguage,
                         instance,
@@ -1715,7 +1707,8 @@ void IndicationService::_handleModifyInstanceRequest (const Message* message)
                         contentLangs,
                         request,
                         indicationSubclasses,
-                        userName, request->authType);
+                        userName,
+                        request->authType);
 
                     //
                     //  Response is sent from _handleCreateResponseAggregation
@@ -1730,26 +1723,27 @@ void IndicationService::_handleModifyInstanceRequest (const Message* message)
                     //  Subscription was previously enabled but is now to be
                     //  disabled
                     //
-                    Array <ProviderClassList> indicationProviders;
-                    instanceReference.setNameSpace (request->nameSpace);
-                    instance.setPath (instanceReference);
-                    indicationProviders = _getDeleteParams (instance,
+                    Array<ProviderClassList> indicationProviders;
+                    instanceReference.setNameSpace(request->nameSpace);
+                    instance.setPath(instanceReference);
+                    indicationProviders = _getDeleteParams(instance,
                         indicationSubclasses, sourceNameSpace);
 
                     //
                     //  Send Delete requests
                     //
-//l10n
-                    if (indicationProviders.size () > 0)
+                    if (indicationProviders.size() > 0)
                     {
-                        _sendAsyncDeleteRequests (indicationProviders,
+                        _sendAsyncDeleteRequests(
+                            indicationProviders,
                             sourceNameSpace,
                             instance,
                             acceptLangs,
                             contentLangs,
                             request,
                             indicationSubclasses,
-                            userName, request->authType);
+                            userName,
+                            request->authType);
 
                         //
                         //  Response is sent from
@@ -1767,8 +1761,8 @@ void IndicationService::_handleModifyInstanceRequest (const Message* message)
     }
     catch (Exception& exception)
     {
-        cimException = PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED,
-                                             exception.getMessage());
+        cimException =
+            PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, exception.getMessage());
     }
 
     //
@@ -1778,19 +1772,18 @@ void IndicationService::_handleModifyInstanceRequest (const Message* message)
     //
     if (!responseSent)
     {
-// l10n
         // Note: don't need to set content-language in the response.
-        CIMResponseMessage * response = request->buildResponse ();
+        CIMResponseMessage * response = request->buildResponse();
         response->cimException = cimException;
-        _enqueueResponse (request, response);
+        _enqueueResponse(request, response);
     }
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
-void IndicationService::_handleDeleteInstanceRequest (const Message* message)
+void IndicationService::_handleDeleteInstanceRequest(const Message* message)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_handleDeleteInstanceRequest");
 
     CIMDeleteInstanceRequestMessage* request =
@@ -1801,29 +1794,28 @@ void IndicationService::_handleDeleteInstanceRequest (const Message* message)
 
     try
     {
-        String userName = ((IdentityContainer)request->operationContext.get
-            (IdentityContainer :: NAME)).getUserName();
+        String userName = ((IdentityContainer)request->operationContext.get(
+            IdentityContainer::NAME)).getUserName();
         _checkNonprivilegedAuthorization(userName);
 
         //
         //  Check if instance may be deleted -- a filter or handler instance
         //  referenced by a subscription instance may not be deleted
         //
-        if (_canDelete (request->instanceName, request->nameSpace,
-             userName))
+        if (_canDelete(request->instanceName, request->nameSpace, userName))
         {
             //
             //  If a subscription, get the instance from the repository
             //
             CIMInstance subscriptionInstance;
-            if (request->instanceName.getClassName ().equal
-                    (PEGASUS_CLASSNAME_INDSUBSCRIPTION) ||
-                request->instanceName.getClassName ().equal
-                    (PEGASUS_CLASSNAME_FORMATTEDINDSUBSCRIPTION))
+            if (request->instanceName.getClassName().equal(
+                    PEGASUS_CLASSNAME_INDSUBSCRIPTION) ||
+                request->instanceName.getClassName ().equal(
+                    PEGASUS_CLASSNAME_FORMATTEDINDSUBSCRIPTION))
             {
                 subscriptionInstance =
-                    _subscriptionRepository->getInstance
-                    (request->nameSpace, request->instanceName);
+                    _subscriptionRepository->getInstance(
+                        request->nameSpace, request->instanceName);
             }
 
             //
@@ -1831,20 +1823,21 @@ void IndicationService::_handleDeleteInstanceRequest (const Message* message)
             //
             try
             {
-                _subscriptionRepository->deleteInstance
-                    (request->nameSpace, request->instanceName);
+                _subscriptionRepository->deleteInstance(
+                    request->nameSpace, request->instanceName);
 
-                Logger::put (Logger::STANDARD_LOG, System::CIMSERVER,
+                Logger::put(Logger::STANDARD_LOG, System::CIMSERVER,
                     Logger::TRACE,
-                    "IndicationService::_handleDeleteInstanceRequest - Name Space: $0  Instance name: $1",
-                    request->nameSpace.getString (),
-                    request->instanceName.getClassName ().getString ());
+                    "IndicationService::_handleDeleteInstanceRequest - "
+                        "Name Space: $0  Instance name: $1",
+                    request->nameSpace.getString(),
+                    request->instanceName.getClassName().getString());
             }
-            catch (CIMException & exception)
+            catch (CIMException& exception)
             {
                 cimException = exception;
             }
-            catch (Exception & exception)
+            catch (Exception& exception)
             {
                 cimException = PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED,
                                    exception.getMessage());
@@ -1852,18 +1845,18 @@ void IndicationService::_handleDeleteInstanceRequest (const Message* message)
 
             if (cimException.getCode() != CIM_ERR_SUCCESS)
             {
-                CIMResponseMessage * response = request->buildResponse ();
+                CIMResponseMessage * response = request->buildResponse();
                 response->cimException = cimException;
-                _enqueueResponse (request, response);
+                _enqueueResponse(request, response);
 
-                PEG_METHOD_EXIT ();
+                PEG_METHOD_EXIT();
                 return;
             }
 
-            if (request->instanceName.getClassName ().equal
-                (PEGASUS_CLASSNAME_INDSUBSCRIPTION) ||
-                request->instanceName.getClassName ().equal
-                (PEGASUS_CLASSNAME_FORMATTEDINDSUBSCRIPTION))
+            if (request->instanceName.getClassName().equal(
+                    PEGASUS_CLASSNAME_INDSUBSCRIPTION) ||
+                request->instanceName.getClassName ().equal(
+                    PEGASUS_CLASSNAME_FORMATTEDINDSUBSCRIPTION))
             {
                 //
                 //  If subscription is active, send delete requests to providers
@@ -1871,42 +1864,47 @@ void IndicationService::_handleDeleteInstanceRequest (const Message* message)
                 //
                 Uint16 subscriptionState;
                 CIMValue subscriptionStateValue;
-                subscriptionStateValue = subscriptionInstance.getProperty
-                    (subscriptionInstance.findProperty
-                    (PEGASUS_PROPERTYNAME_SUBSCRIPTION_STATE)).getValue ();
-                subscriptionStateValue.get (subscriptionState);
+                subscriptionStateValue = subscriptionInstance.getProperty(
+                    subscriptionInstance.findProperty(
+                        PEGASUS_PROPERTYNAME_SUBSCRIPTION_STATE)).getValue();
+                subscriptionStateValue.get(subscriptionState);
 
                 if ((subscriptionState == STATE_ENABLED) ||
                     (subscriptionState == STATE_ENABLEDDEGRADED))
                 {
-                    Array <ProviderClassList> indicationProviders;
-                    Array <CIMName> indicationSubclasses;
+                    Array<ProviderClassList> indicationProviders;
+                    Array<CIMName> indicationSubclasses;
                     CIMNamespaceName sourceNamespaceName;
                     CIMObjectPath instanceReference = request->instanceName;
-                    instanceReference.setNameSpace (request->nameSpace);
-                    subscriptionInstance.setPath (instanceReference);
+                    instanceReference.setNameSpace(request->nameSpace);
+                    subscriptionInstance.setPath(instanceReference);
 
-                    indicationProviders = _getDeleteParams
-                        (subscriptionInstance, indicationSubclasses,
+                    indicationProviders = _getDeleteParams(
+                        subscriptionInstance,
+                        indicationSubclasses,
                         sourceNamespaceName);
 
-                    if (indicationProviders.size () > 0)
+                    if (indicationProviders.size() > 0)
                     {
                         //
                         //  Send Delete requests
                         //
-// l10n
-                        _sendAsyncDeleteRequests (indicationProviders,
-                            sourceNamespaceName, subscriptionInstance,
+                        _sendAsyncDeleteRequests(
+                            indicationProviders,
+                            sourceNamespaceName,
+                            subscriptionInstance,
                             ((AcceptLanguageListContainer)
-                            request->operationContext.get
-                            (AcceptLanguageListContainer::NAME)).getLanguages(),
+                                request->operationContext.get(
+                                    AcceptLanguageListContainer::NAME)).
+                                        getLanguages(),
                             ((ContentLanguageListContainer)
-                            request->operationContext.get
-                            (ContentLanguageListContainer::NAME)).getLanguages(),
+                                request->operationContext.get(
+                                    ContentLanguageListContainer::NAME)).
+                                        getLanguages(),
                             request,
                             indicationSubclasses,
-                            userName, request->authType);
+                            userName,
+                            request->authType);
 
                         //
                         //  Response is sent from
@@ -1920,9 +1918,10 @@ void IndicationService::_handleDeleteInstanceRequest (const Message* message)
                         //  Subscription was enabled, but had no providers
                         //  Remove entries from the subscription hash tables
                         //
-                        _subscriptionTable->removeSubscription
-                            (subscriptionInstance,
-                            indicationSubclasses, sourceNamespaceName,
+                        _subscriptionTable->removeSubscription(
+                            subscriptionInstance,
+                            indicationSubclasses,
+                            sourceNamespaceName,
                             indicationProviders);
                     }
                 }
@@ -1935,8 +1934,8 @@ void IndicationService::_handleDeleteInstanceRequest (const Message* message)
     }
     catch (Exception& exception)
     {
-        cimException = PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED,
-                                             exception.getMessage());
+        cimException =
+            PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, exception.getMessage());
     }
 
     //
@@ -1945,25 +1944,25 @@ void IndicationService::_handleDeleteInstanceRequest (const Message* message)
     //
     if (!responseSent)
     {
-        CIMResponseMessage * response = request->buildResponse ();
+        CIMResponseMessage * response = request->buildResponse();
         response->cimException = cimException;
-        _enqueueResponse (request, response);
+        _enqueueResponse(request, response);
     }
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
-// l10n TODO - might need to globalize another flow and another consumer interface
-// (ie. mdd's) if we can't agree on one export flow and consumer interface
-// (see PEP67)
+// l10n TODO - might need to globalize another flow and another consumer
+// interface (ie. mdd's) if we can't agree on one export flow and consumer
+// interface (see PEP67)
 
-void IndicationService::_handleProcessIndicationRequest (const Message* message)
+void IndicationService::_handleProcessIndicationRequest(const Message* message)
 {
 #ifdef PEGASUS_INDICATION_PERFINST
     Stopwatch stopWatch;
 #endif
 
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_handleProcessIndicationRequest");
 
     CIMProcessIndicationRequestMessage* request =
@@ -1977,11 +1976,11 @@ void IndicationService::_handleProcessIndicationRequest (const Message* message)
     String filterQuery;
     Boolean match;
 
-    Array <CIMInstance> matchedSubscriptions;
+    Array<CIMInstance> matchedSubscriptions;
     CIMInstance handlerNamedInstance;
 
     CIMInstance indication = request->indicationInstance;
-    
+
     try
     {
         PEG_TRACE ((TRC_INDICATION_GENERATION, Tracer::LEVEL3,
@@ -1996,8 +1995,8 @@ void IndicationService::_handleProcessIndicationRequest (const Message* message)
         //  Check if property list contains all properties of class
         //  If so, set to null
         //
-        Array <CIMName> propertyNames;
-        Array <CIMName> indicationClassProperties;
+        Array<CIMName> propertyNames;
+        Array<CIMName> indicationClassProperties;
         CIMPropertyList propertyList;
         for (Uint32 i = 0; i < indication.getPropertyCount(); i++)
         {
@@ -2015,7 +2014,7 @@ void IndicationService::_handleProcessIndicationRequest (const Message* message)
         //  represent the subscriptions to which the indication should be
         //  forwarded, if the filter criteria are met
         //
-        Array <CIMNamespaceName> nameSpaces;
+        Array<CIMNamespaceName> nameSpaces;
         nameSpaces.append (request->nameSpace);
 
 #ifdef PEGASUS_INDICATION_PERFINST
@@ -2051,7 +2050,7 @@ void IndicationService::_handleProcessIndicationRequest (const Message* message)
         //
         if (request->subscriptionInstanceNames.size() > 0)
         {
-            Array <CIMInstance> providedSubscriptions;
+            Array<CIMInstance> providedSubscriptions;
 
 #ifdef PEGASUS_INDICATION_PERFINST
             stopWatch.reset();
@@ -2066,7 +2065,7 @@ void IndicationService::_handleProcessIndicationRequest (const Message* message)
                 //
                 ActiveSubscriptionsTableEntry tableValue;
                 if (_subscriptionTable->getSubscriptionEntry
-                    (request->subscriptionInstanceNames [i], tableValue))
+                    (request->subscriptionInstanceNames[i], tableValue))
                 {
                     //
                     //  Verify that each subscription specified by the provider
@@ -2077,7 +2076,7 @@ void IndicationService::_handleProcessIndicationRequest (const Message* message)
                     Boolean found = false;
                     for (Uint32 i = 0; i < matchedSubscriptions.size(); i++)
                     {
-                        if (matchedSubscriptions [i].identical
+                        if (matchedSubscriptions[i].identical
                             (tableValue.subscription))
                         {
                             found = true;
@@ -2127,9 +2126,9 @@ void IndicationService::_handleProcessIndicationRequest (const Message* message)
             //
             try
             {
-                if (_isExpired (matchedSubscriptions [i]))
+                if (_isExpired(matchedSubscriptions[i]))
                 {
-                    CIMObjectPath path = matchedSubscriptions [i].getPath ();
+                    CIMObjectPath path = matchedSubscriptions[i].getPath ();
                     _deleteExpiredSubscription (path);
                     // If the subscription is expired, delete and continue
                     // to the next one.
@@ -2139,7 +2138,8 @@ void IndicationService::_handleProcessIndicationRequest (const Message* message)
                         getClassName().getString().getCString())));
                    continue;
                 }
-            } catch (DateTimeOutOfRangeException &)
+            }
+            catch (DateTimeOutOfRangeException&)
             {
                 //
                 //  This instance from the repository is invalid
@@ -2158,9 +2158,8 @@ void IndicationService::_handleProcessIndicationRequest (const Message* message)
                 queryLanguage,
                 filterName);
 
-            QueryExpression queryExpr = _getQueryExpression(filterQuery,
-                                                            queryLanguage,
-                                                            request->nameSpace);
+            QueryExpression queryExpr = _getQueryExpression(
+                filterQuery, queryLanguage, request->nameSpace);
 
 #ifdef PEGASUS_INDICATION_PERFINST
             stopWatch.reset();
@@ -2182,7 +2181,7 @@ void IndicationService::_handleProcessIndicationRequest (const Message* message)
             {
                 PEG_TRACE ((TRC_INDICATION_GENERATION, Tracer::LEVEL3,
                     "%s Indication %s satisfies filter %s:%s query expression"
-                    "  \"%s\"", 
+                    "  \"%s\"",
                     (const char*)(indication.getClassName().getString().
                     getCString()),
                     (const char*)(request->messageId.getCString()),
@@ -2194,16 +2193,17 @@ void IndicationService::_handleProcessIndicationRequest (const Message* message)
                 //
                 // This is a two part process:
                 //
-                // 1) Call QueryExpression::applyProjection to remove properties
-                // not listed in the SELECT clause.  Note: for CQL, this will handle
-                // properties on embedded objects.
+                // 1) Call QueryExpression::applyProjection to remove
+                // properties not listed in the SELECT clause.  Note: for CQL,
+                // this will handle properties on embedded objects.
                 //
                 // QueryExpression::applyProjection throws an exception if
                 // the indication is missing a required property in the SELECT
                 // clause.  Although _getMatchingSubscriptions checked for
                 // the indication missing required properties, it would have
-                // not detected missing required embedded object properties for CQL.
-                // So, we need to catch the missing property exception here.
+                // not detected missing required embedded object properties for
+                // CQL.  So, we need to catch the missing property exception
+                // here.
                 //
                 // 2) Remove any properties that may be left on the indication
                 // that are not in the indication class.  These are properties
@@ -2212,27 +2212,27 @@ void IndicationService::_handleProcessIndicationRequest (const Message* message)
                 // SELECT clause happens to have a property name not on the
                 // indication class, and the indication has that same property.
                 // Note: If SELECT includes all properties ("*"), it's still
-                // necessary to check, in case the provider added properties not in
-                // the indication class.
+                // necessary to check, in case the provider added properties
+                // not in the indication class.
                 //
                 try
                 {
-                  queryExpr.applyProjection(formattedIndication, true);
+                    queryExpr.applyProjection(formattedIndication, true);
                 }
                 catch (QueryRuntimePropertyException& re)
                 {
-                  // The indication was missing a required property.
-                  // The call to _getMatchingSubscriptions above checked for
-                  // missing required properties on the base indication object
-                  // so this can only happen for CQL when an embedded object
-                  // property is missing.
-                  //
-                  // Since this is the same as the indication
-                  // not matching the subscription, just swallow the exception,
-                  // and skip this subscription.
-                  PEG_TRACE_STRING (TRC_INDICATION_SERVICE, Tracer::LEVEL4,
-                      "Apply Projection error: " + re.getMessage());
-                  continue;
+                    // The indication was missing a required property.
+                    // The call to _getMatchingSubscriptions above checked for
+                    // missing required properties on the base indication
+                    // object so this can only happen for CQL when an embedded
+                    // object property is missing.
+                    //
+                    // Since this is the same as the indication not matching
+                    // the subscription, just swallow the exception,
+                    // and skip this subscription.
+                    PEG_TRACE_STRING(TRC_INDICATION_SERVICE, Tracer::LEVEL4,
+                        "Apply Projection error: " + re.getMessage());
+                    continue;
                 }
 
                 // Remove any remaining properties not in the indication class
@@ -2240,28 +2240,29 @@ void IndicationService::_handleProcessIndicationRequest (const Message* message)
                 //
                 for (Uint32 j = 0; j < propertyNames.size(); j++)
                 {
-                  Uint32 rmIndex = formattedIndication.findProperty(propertyNames[j]);
-                  if (rmIndex != PEG_NOT_FOUND &&
-                      !ContainsCIMName (indicationClassProperties,
-                                        propertyNames[j]))
-                  {
-                    formattedIndication.removeProperty(rmIndex);
-                  }
+                    Uint32 rmIndex =
+                        formattedIndication.findProperty(propertyNames[j]);
+                    if (rmIndex != PEG_NOT_FOUND &&
+                        !ContainsCIMName(
+                             indicationClassProperties, propertyNames[j]))
+                    {
+                        formattedIndication.removeProperty(rmIndex);
+                    }
                 }
 
-                handlerNamedInstance = _subscriptionRepository->getHandler
-                    (matchedSubscriptions[i]);
-                PEG_TRACE ((TRC_INDICATION_GENERATION, Tracer::LEVEL3,
+                handlerNamedInstance = _subscriptionRepository->getHandler(
+                    matchedSubscriptions[i]);
+                PEG_TRACE((TRC_INDICATION_GENERATION, Tracer::LEVEL3,
                     "Handler %s:%s.%s found for %s Indication %s",
                     (const char*)(request->nameSpace.getString().getCString()),
                     (const char*)(handlerNamedInstance.getClassName().
-                    getString().getCString()),
+                        getString().getCString()),
                     (const char*)(handlerNamedInstance.getProperty(
-                    handlerNamedInstance.findProperty(
-                    PEGASUS_PROPERTYNAME_NAME)).getValue().toString().
-                    getCString()),
+                        handlerNamedInstance.findProperty(
+                            PEGASUS_PROPERTYNAME_NAME)).getValue().toString().
+                                getCString()),
                     (const char*)(indication.getClassName().getString().
-                    getCString()),
+                        getCString()),
                     (const char*)(request->messageId.getCString())));
 
 // l10n
@@ -2300,7 +2301,7 @@ void IndicationService::_handleProcessIndicationRequest (const Message* message)
                            _handlerService,
                            IndicationService::_handleIndicationCallBack,
                            this,
-                           (void *) & (matchedSubscriptions [i]));
+                           (void *) &(matchedSubscriptions[i]));
             }
         }
 
@@ -2360,15 +2361,15 @@ void IndicationService::_handleIndicationCallBack (
         "IndicationService::_handleIndicationCallBack");
 
     IndicationService * service =
-        static_cast <IndicationService *> (destination);
+        static_cast<IndicationService *> (destination);
     CIMInstance * subscription =
-        reinterpret_cast <CIMInstance *> (userParameter);
+        reinterpret_cast<CIMInstance *> (userParameter);
     AsyncReply * asyncReply =
         static_cast<AsyncReply *>(operation->removeResponse());
-    CIMHandleIndicationResponseMessage * handlerResponse =
-        reinterpret_cast <CIMHandleIndicationResponseMessage *>
-        ((static_cast <AsyncLegacyOperationResult *>
-        (asyncReply))->get_result ());
+    CIMHandleIndicationResponseMessage* handlerResponse =
+        reinterpret_cast<CIMHandleIndicationResponseMessage *>(
+            (static_cast<AsyncLegacyOperationResult *>(
+                asyncReply))->get_result());
     PEGASUS_ASSERT (handlerResponse != 0);
 
     if (handlerResponse->cimException.getCode () != CIM_ERR_SUCCESS)
@@ -2413,14 +2414,14 @@ void IndicationService::_handleNotifyProviderRegistrationRequest
 #endif
 
     CIMName className = request->className;
-    Array <CIMNamespaceName> newNameSpaces = request->newNamespaces;
-    Array <CIMNamespaceName> oldNameSpaces = request->oldNamespaces;
+    Array<CIMNamespaceName> newNameSpaces = request->newNamespaces;
+    Array<CIMNamespaceName> oldNameSpaces = request->oldNamespaces;
     CIMPropertyList newPropertyNames = request->newPropertyNames;
     CIMPropertyList oldPropertyNames = request->oldPropertyNames;
 
-    Array <CIMInstance> newSubscriptions;
-    Array <CIMInstance> formerSubscriptions;
-    Array <ProviderClassList> indicationProviders;
+    Array<CIMInstance> newSubscriptions;
+    Array<CIMInstance> formerSubscriptions;
+    Array<ProviderClassList> indicationProviders;
     ProviderClassList indicationProvider;
 
     newSubscriptions.clear ();
@@ -2496,8 +2497,8 @@ void IndicationService::_handleNotifyProviderRegistrationRequest
         for (Uint32 i = 0; i < newSubscriptions.size (); i++)
         {
             CIMNamespaceName sourceNameSpace;
-            Array <CIMName> indicationSubclasses;
-            _getCreateParams (newSubscriptions [i], indicationSubclasses,
+            Array<CIMName> indicationSubclasses;
+            _getCreateParams (newSubscriptions[i], indicationSubclasses,
                 requiredProperties, sourceNameSpace, condition,
                 query, queryLanguage);
 
@@ -2511,7 +2512,7 @@ void IndicationService::_handleNotifyProviderRegistrationRequest
             //  the IndicationService's internal hash tables, and thus
             //  each instance is known to have a valid Creator property
             //
-            CIMInstance instance = newSubscriptions [i];
+            CIMInstance instance = newSubscriptions[i];
             String creator = instance.getProperty (instance.findProperty
                 (PEGASUS_PROPERTYNAME_INDSUB_CREATOR)).getValue ().toString ();
 
@@ -2551,7 +2552,7 @@ void IndicationService::_handleNotifyProviderRegistrationRequest
             //
             ActiveSubscriptionsTableEntry tableValue;
             if (_subscriptionTable->getSubscriptionEntry
-                (newSubscriptions [i].getPath (), tableValue))
+                (newSubscriptions[i].getPath (), tableValue))
             {
                 //
                 //  If the provider is already in the subscription's list,
@@ -2564,11 +2565,10 @@ void IndicationService::_handleNotifyProviderRegistrationRequest
                     //
                     //  Send Modify requests
                     //
-// l10n
                     _sendWaitModifyRequests (indicationProviders,
                         sourceNameSpace,
                         requiredProperties, condition, query, queryLanguage,
-                        newSubscriptions [i],
+                        newSubscriptions[i],
                         acceptLangs,
                         contentLangs,
                         creator);
@@ -2578,12 +2578,11 @@ void IndicationService::_handleNotifyProviderRegistrationRequest
                     //
                     //  Send Create requests
                     //
-// l10n
-                    Array <ProviderClassList> acceptedProviders;
+                    Array<ProviderClassList> acceptedProviders;
                     acceptedProviders = _sendWaitCreateRequests
                         (indicationProviders,
                         sourceNameSpace, requiredProperties, condition,
-                        query, queryLanguage, newSubscriptions [i],
+                        query, queryLanguage, newSubscriptions[i],
                         acceptLangs,
                         contentLangs,
                         creator);
@@ -2631,12 +2630,12 @@ void IndicationService::_handleNotifyProviderRegistrationRequest
             //  Get Provider Name, Subscription Filter Name and Handler Name
             //
             String logString2 = _getSubscriptionLogString
-                (newSubscriptions [j]);
+                (newSubscriptions[j]);
 
             Logger::put_l (Logger::STANDARD_LOG, System::CIMSERVER,
                 Logger::WARNING, _MSG_PROVIDER_NOW_SERVING_KEY,
                 _MSG_PROVIDER_NOW_SERVING, logString1, logString2,
-                newSubscriptions [j].getPath ().getNameSpace ().getString ());
+                newSubscriptions[j].getPath ().getNameSpace ().getString ());
         }
     }
 
@@ -2663,10 +2662,9 @@ void IndicationService::_handleNotifyProviderRegistrationRequest
             //  from the IndicationService's internal hash tables, and thus
             //  each instance is known to have a valid Creator property
             //
-            CIMInstance instance = formerSubscriptions [i];
+            CIMInstance instance = formerSubscriptions[i];
             String creator = instance.getProperty (instance.findProperty
                 (PEGASUS_PROPERTYNAME_INDSUB_CREATOR)).getValue ().toString ();
-// l10n start
             AcceptLanguageList acceptLangs;
             Uint32 propIndex = instance.findProperty
                 (PEGASUS_PROPERTYNAME_INDSUB_ACCEPTLANGS);
@@ -2695,7 +2693,6 @@ void IndicationService::_handleNotifyProviderRegistrationRequest
                         contentLangsString);
                 }
             }
-// l10n end
 
             //
             //  Look up the subscription in the active subscriptions table
@@ -2705,15 +2702,15 @@ void IndicationService::_handleNotifyProviderRegistrationRequest
             //
             ActiveSubscriptionsTableEntry tableValue;
             if (_subscriptionTable->getSubscriptionEntry
-                (formerSubscriptions [i].getPath (), tableValue))
+                (formerSubscriptions[i].getPath (), tableValue))
             {
                 Uint32 providerIndex = _subscriptionTable->providerInList
                     (provider, tableValue);
                 if (providerIndex != PEG_NOT_FOUND)
                 {
                     CIMNamespaceName sourceNameSpace;
-                    Array <CIMName> indicationSubclasses;
-                    _getCreateParams (formerSubscriptions [i],
+                    Array<CIMName> indicationSubclasses;
+                    _getCreateParams (formerSubscriptions[i],
                         indicationSubclasses, requiredProperties,
                         sourceNameSpace, condition, query, queryLanguage);
 
@@ -2721,15 +2718,14 @@ void IndicationService::_handleNotifyProviderRegistrationRequest
                     //  If class list contains only the class name from the
                     //  current delete, send a Delete request
                     //
-                    if ((tableValue.providers [providerIndex].classList.size ()
+                    if ((tableValue.providers[providerIndex].classList.size()
                             == 1) &&
-                        (tableValue.providers [providerIndex].classList
-                            [0].equal (className)))
+                        (tableValue.providers[providerIndex].classList[0].equal(
+                            className)))
                     {
-// l10n
                         _sendWaitDeleteRequests (indicationProviders,
                             sourceNameSpace,
-                            formerSubscriptions [i],
+                            formerSubscriptions[i],
                             acceptLangs,
                             contentLangs,
                             creator);
@@ -2747,18 +2743,17 @@ void IndicationService::_handleNotifyProviderRegistrationRequest
                     else
                     {
                         Uint32 classIndex = _subscriptionTable->classInList
-                            (className, tableValue.providers [providerIndex]);
+                            (className, tableValue.providers[providerIndex]);
                         if (classIndex != PEG_NOT_FOUND)
                         {
                             //
                             //  Send Modify requests
                             //
-// l10n
                             _sendWaitModifyRequests (indicationProviders,
                                 sourceNameSpace,
                                 requiredProperties, condition,
                                 query, queryLanguage,
-                                formerSubscriptions [i],
+                                formerSubscriptions[i],
                                 acceptLangs,
                                 contentLangs,
                                 creator);
@@ -2827,7 +2822,7 @@ void IndicationService::_handleNotifyProviderRegistrationRequest
             //  Get Provider Name, Subscription Filter Name and Handler Name
             //
             String logString2 = _getSubscriptionLogString
-                (formerSubscriptions [j]);
+                (formerSubscriptions[j]);
 
             Logger::put_l (Logger::STANDARD_LOG, System::CIMSERVER,
                 Logger::WARNING, _MSG_PROVIDER_NO_LONGER_SERVING_KEY,
@@ -2852,13 +2847,13 @@ void IndicationService::_handleNotifyProviderTerminationRequest
     PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
         "IndicationService::_handleNotifyProviderTermination");
 
-    Array <CIMInstance> providerSubscriptions;
+    Array<CIMInstance> providerSubscriptions;
     CIMInstance indicationInstance;
 
     CIMNotifyProviderTerminationRequestMessage* request =
         (CIMNotifyProviderTerminationRequestMessage*) message;
 
-    Array <CIMInstance> providers = request->providers;
+    Array<CIMInstance> providers = request->providers;
 
     for (Uint32 i = 0; i < providers.size (); i++)
     {
@@ -2869,11 +2864,11 @@ void IndicationService::_handleNotifyProviderTerminationRequest
         //  Active Subscriptions hash table, and implements each subscription's
         //  On Fatal Error policy, if necessary
         //
-        providerSubscriptions.clear ();
-        providerSubscriptions = _subscriptionTable->reflectProviderDisable
-            (providers [i]);
+        providerSubscriptions.clear();
+        providerSubscriptions = _subscriptionTable->reflectProviderDisable(
+            providers[i]);
 
-        if (providerSubscriptions.size () > 0)
+        if (providerSubscriptions.size() > 0)
         {
             //
             //  NOTE: When a provider that was previously serving a subscription
@@ -2902,10 +2897,10 @@ void IndicationService::_handleNotifyProviderTerminationRequest
             //
             //  Log a message for each subscription
             //
-            CIMClass providerClass = _subscriptionRepository->getClass
-                (PEGASUS_NAMESPACENAME_INTEROP, PEGASUS_CLASSNAME_PROVIDER,
-                 true, true, false, CIMPropertyList ());
-            CIMInstance providerCopy = providers [i].clone ();
+            CIMClass providerClass = _subscriptionRepository->getClass(
+                PEGASUS_NAMESPACENAME_INTEROP, PEGASUS_CLASSNAME_PROVIDER,
+                true, true, false, CIMPropertyList());
+            CIMInstance providerCopy = providers[i].clone();
             CIMObjectPath path = providerCopy.buildPath (providerClass);
             providerCopy.setPath (path);
             for (Uint32 j = 0; j < providerSubscriptions.size (); j++)
@@ -2915,12 +2910,13 @@ void IndicationService::_handleNotifyProviderTerminationRequest
                 //
                 String logString1 = getProviderLogString (providerCopy);
                 String logString2 = _getSubscriptionLogString
-                    (providerSubscriptions [j]);
+                    (providerSubscriptions[j]);
 
                 Logger::put_l (Logger::STANDARD_LOG, System::CIMSERVER,
                     Logger::WARNING, _MSG_PROVIDER_NO_LONGER_SERVING_KEY,
                     _MSG_PROVIDER_NO_LONGER_SERVING, logString1, logString2,
-                    providerSubscriptions[j].getPath().getNameSpace().getString());
+                    providerSubscriptions[j].getPath().getNameSpace().
+                        getString());
             }
         }
     }
@@ -2950,11 +2946,11 @@ void IndicationService::_handleNotifyProviderEnableRequest
     Boolean isRemoteNameSpace = pidc.isRemoteNameSpace();
     String remoteInfo = pidc.getRemoteInfo();
 #endif
-    Array <CIMInstance> capabilities = request->capInstances;
+    Array<CIMInstance> capabilities = request->capInstances;
 
     CIMException cimException;
-    Array <CIMInstance> subscriptions;
-    Array <ProviderClassList> indicationProviders;
+    Array<CIMInstance> subscriptions;
+    Array<ProviderClassList> indicationProviders;
 
     //
     //  Get class name, namespace names, and property list
@@ -2964,32 +2960,32 @@ void IndicationService::_handleNotifyProviderEnableRequest
     for (Uint32 i = 0; i < numCapabilities; i++)
     {
         CIMName className;
-        Array <CIMNamespaceName> namespaceNames;
+        Array<CIMNamespaceName> namespaceNames;
         CIMPropertyList propertyList;
-        Array <CIMInstance> currentSubscriptions;
+        Array<CIMInstance> currentSubscriptions;
 
         try
         {
             String cName;
-            capabilities [i].getProperty (capabilities [i].findProperty
+            capabilities[i].getProperty (capabilities[i].findProperty
                 (_PROPERTY_CLASSNAME)).getValue ().get (cName);
             className = CIMName (cName);
 
-            Array <String> nsNames;
-            capabilities [i].getProperty (capabilities [i].findProperty
+            Array<String> nsNames;
+            capabilities[i].getProperty (capabilities[i].findProperty
                 (_PROPERTY_NAMESPACES)).getValue ().get (nsNames);
             for (Uint32 j = 0; j < nsNames.size (); j++)
             {
-                namespaceNames.append (CIMNamespaceName (nsNames [j]));
+                namespaceNames.append (CIMNamespaceName (nsNames[j]));
             }
 
-            Array <String> pNames;
-            Array <CIMName> propertyNames;
-            Uint32 propertiesIndex = capabilities [i].findProperty
+            Array<String> pNames;
+            Array<CIMName> propertyNames;
+            Uint32 propertiesIndex = capabilities[i].findProperty
                 (_PROPERTY_SUPPORTEDPROPERTIES);
             if (propertiesIndex != PEG_NOT_FOUND)
             {
-                CIMValue propertiesValue = capabilities [i].getProperty
+                CIMValue propertiesValue = capabilities[i].getProperty
                     (propertiesIndex).getValue ();
                 //
                 //  If the property list is not null, set the property names
@@ -2999,13 +2995,13 @@ void IndicationService::_handleNotifyProviderEnableRequest
                     propertiesValue.get (pNames);
                     for (Uint32 k = 0; k < pNames.size (); k++)
                     {
-                        propertyNames.append (CIMName (pNames [k]));
+                        propertyNames.append (CIMName (pNames[k]));
                     }
                     propertyList.set (propertyNames);
                 }
             }
         }
-        catch (Exception & exception)
+        catch (Exception& exception)
         {
             //
             //  Error getting information from Capabilities instance
@@ -3047,10 +3043,10 @@ void IndicationService::_handleNotifyProviderEnableRequest
                 //  matching subscriptions, add the current class to the
                 //  indication provider class list for the subscription
                 //
-                if (currentSubscriptions [c].identical (subscriptions [m]))
+                if (currentSubscriptions[c].identical (subscriptions[m]))
                 {
                     inList = true;
-                    indicationProviders [m].classList.append (className);
+                    indicationProviders[m].classList.append (className);
                     break;
                 }
             }
@@ -3062,7 +3058,7 @@ void IndicationService::_handleNotifyProviderEnableRequest
                 //  matching subscriptions, add it to the list and add the
                 //  indication provider class list for the subscription
                 //
-                subscriptions.append (currentSubscriptions [c]);
+                subscriptions.append (currentSubscriptions[c]);
                 ProviderClassList indicationProvider;
                 indicationProvider.provider = provider;
                 indicationProvider.providerModule = providerModule;
@@ -3091,8 +3087,8 @@ void IndicationService::_handleNotifyProviderEnableRequest
         for (Uint32 s = 0; s < subscriptions.size (); s++)
         {
             CIMNamespaceName sourceNameSpace;
-            Array <CIMName> indicationSubclasses;
-            CIMInstance instance = subscriptions [s];
+            Array<CIMName> indicationSubclasses;
+            CIMInstance instance = subscriptions[s];
             _getCreateParams (instance, indicationSubclasses,
                 requiredProperties, sourceNameSpace, condition, query,
                 queryLanguage);
@@ -3143,9 +3139,9 @@ void IndicationService::_handleNotifyProviderEnableRequest
             //
             //  Send Create requests
             //
-            Array <ProviderClassList> currentIndicationProviders;
-            currentIndicationProviders.append (indicationProviders [s]);
-            Array <ProviderClassList> acceptedProviders;
+            Array<ProviderClassList> currentIndicationProviders;
+            currentIndicationProviders.append (indicationProviders[s]);
+            Array<ProviderClassList> acceptedProviders;
             acceptedProviders = _sendWaitCreateRequests
                 (currentIndicationProviders,
                 sourceNameSpace, requiredProperties, condition,
@@ -3168,7 +3164,7 @@ void IndicationService::_handleNotifyProviderEnableRequest
                     //
                     Uint32 providerIndex =
                         _subscriptionTable->providerInList
-                            (indicationProviders [s].provider, tableValue);
+                            (indicationProviders[s].provider, tableValue);
                     if (providerIndex != PEG_NOT_FOUND)
                     {
                         //
@@ -3176,13 +3172,13 @@ void IndicationService::_handleNotifyProviderEnableRequest
                         //  subscription; add class to provider class list
                         //
                         for (Uint32 cn = 0;
-                             cn < indicationProviders [s].classList.size ();
+                             cn < indicationProviders[s].classList.size ();
                              cn++)
                         {
                             _subscriptionTable->updateClasses
                                 (instance.getPath (),
-                                indicationProviders [s].provider,
-                                indicationProviders [s].classList [cn]);
+                                indicationProviders[s].provider,
+                                indicationProviders[s].classList[cn]);
                         }
                     }
                     else
@@ -3192,7 +3188,7 @@ void IndicationService::_handleNotifyProviderEnableRequest
                         //  subscription; add provider to the list
                         //
                         _subscriptionTable->updateProviders
-                            (instance.getPath (), indicationProviders [s],
+                            (instance.getPath (), indicationProviders[s],
                             true);
 
                         //
@@ -3208,7 +3204,7 @@ void IndicationService::_handleNotifyProviderEnableRequest
                         //  Get Subscription Filter Name and Handler Name
                         //
                         String logString2 = _getSubscriptionLogString
-                            (subscriptions [s]);
+                            (subscriptions[s]);
 
                         //
                         //  Log a message for each subscription
@@ -3217,7 +3213,8 @@ void IndicationService::_handleNotifyProviderEnableRequest
                             System::CIMSERVER, Logger::WARNING,
                             _MSG_PROVIDER_NOW_SERVING_KEY,
                             _MSG_PROVIDER_NOW_SERVING, logString1, logString2,
-                            subscriptions[s].getPath().getNameSpace().getString());
+                            subscriptions[s].getPath().getNameSpace().
+                                getString());
                     }
                 }
             }  //  if any provider accepted the create subscription request
@@ -3251,7 +3248,7 @@ void IndicationService::_handleNotifyProviderFailRequest
     //  Determine providers in module that were serving active subscriptions
     //  and update the Active Subscriptions Table
     //
-    Array <ActiveSubscriptionsTableEntry> providerModuleSubscriptions =
+    Array<ActiveSubscriptionsTableEntry> providerModuleSubscriptions =
         _subscriptionTable->reflectProviderModuleFailure
             (moduleName, userName, _authenticationEnabled);
 
@@ -3271,8 +3268,8 @@ void IndicationService::_handleNotifyProviderFailRequest
 }
 
 Boolean IndicationService::_canCreate (
-    CIMInstance & instance,
-    const CIMNamespaceName & nameSpace)
+    CIMInstance& instance,
+    const CIMNamespaceName& nameSpace)
 {
     PEG_METHOD_ENTER (TRC_INDICATION_SERVICE, "IndicationService::_canCreate");
 
@@ -3305,9 +3302,15 @@ Boolean IndicationService::_canCreate (
         //  Filter and Handler are key properties for Subscription
         //  No other properties are required
         //
-        _checkRequiredProperty (instance, PEGASUS_PROPERTYNAME_FILTER, CIMTYPE_REFERENCE,
+        _checkRequiredProperty(
+            instance,
+            PEGASUS_PROPERTYNAME_FILTER,
+            CIMTYPE_REFERENCE,
             _MSG_KEY_PROPERTY);
-        _checkRequiredProperty (instance, PEGASUS_PROPERTYNAME_HANDLER, CIMTYPE_REFERENCE,
+        _checkRequiredProperty(
+            instance,
+            PEGASUS_PROPERTYNAME_HANDLER,
+            CIMTYPE_REFERENCE,
             _MSG_KEY_PROPERTY);
 
         //
@@ -3352,10 +3355,13 @@ Boolean IndicationService::_canCreate (
                 exceptionStr.append ("$1");
 
                 PEG_METHOD_EXIT ();
-                throw PEGASUS_CIM_EXCEPTION_L (CIM_ERR_INVALID_PARAMETER,
-                    MessageLoaderParms (_MSG_INVALID_VALUE_FOR_PROPERTY_KEY,
-                    exceptionStr,
-                    origFilterPath.toString(), PEGASUS_PROPERTYNAME_FILTER.getString()));
+                throw PEGASUS_CIM_EXCEPTION_L(
+                    CIM_ERR_INVALID_PARAMETER,
+                    MessageLoaderParms(
+                        _MSG_INVALID_VALUE_FOR_PROPERTY_KEY,
+                        exceptionStr,
+                        origFilterPath.toString(),
+                        PEGASUS_PROPERTYNAME_FILTER.getString()));
             }
         }
 
@@ -3373,10 +3379,13 @@ Boolean IndicationService::_canCreate (
                 exceptionStr.append ("$1");
 
                 PEG_METHOD_EXIT ();
-                throw PEGASUS_CIM_EXCEPTION_L (CIM_ERR_INVALID_PARAMETER,
-                    MessageLoaderParms (_MSG_INVALID_VALUE_FOR_PROPERTY_KEY,
-                    exceptionStr,
-                    origHandlerPath.toString(), PEGASUS_PROPERTYNAME_HANDLER.getString()));
+                throw PEGASUS_CIM_EXCEPTION_L(
+                    CIM_ERR_INVALID_PARAMETER,
+                    MessageLoaderParms(
+                        _MSG_INVALID_VALUE_FOR_PROPERTY_KEY,
+                        exceptionStr,
+                        origHandlerPath.toString(),
+                        PEGASUS_PROPERTYNAME_HANDLER.getString()));
             }
         }
 
@@ -3394,8 +3403,8 @@ Boolean IndicationService::_canCreate (
         //  Get Handler namespace - if not set in Handler reference property
         //  value, namespace is the namespace of the subscription
         //
-        CIMNamespaceName handlerNS = handlerPath.getNameSpace ();
-        if (handlerNS.isNull ())
+        CIMNamespaceName handlerNS = handlerPath.getNameSpace();
+        if (handlerNS.isNull())
         {
             handlerNS = nameSpace;
         }
@@ -3406,62 +3415,75 @@ Boolean IndicationService::_canCreate (
         //  repository
         //
         CIMInstance filterInstance =
-            _subscriptionRepository->getInstance (filterNS, filterPath,
-            true, false, false, CIMPropertyList ());
+            _subscriptionRepository->getInstance(filterNS, filterPath,
+            true, false, false, CIMPropertyList());
 
         CIMInstance handlerInstance =
-            _subscriptionRepository->getInstance (handlerNS, handlerPath,
-            true, false, false, CIMPropertyList ());
+            _subscriptionRepository->getInstance(handlerNS, handlerPath,
+            true, false, false, CIMPropertyList());
 
         //
         //  Set the key bindings in the subscription instance
         //
-        Array <CIMKeyBinding> kb;
-        kb.append (CIMKeyBinding (PEGASUS_PROPERTYNAME_FILTER, filterValue));
-        kb.append (CIMKeyBinding (PEGASUS_PROPERTYNAME_HANDLER, handlerValue));
+        Array<CIMKeyBinding> kb;
+        kb.append(CIMKeyBinding(PEGASUS_PROPERTYNAME_FILTER, filterValue));
+        kb.append(CIMKeyBinding(PEGASUS_PROPERTYNAME_HANDLER, handlerValue));
 
         CIMObjectPath instanceRef = instance.getPath ();
-        instanceRef.setKeyBindings (kb);
-        instanceRef.setNameSpace (nameSpace);
-        instance.setPath (instanceRef);
+        instanceRef.setKeyBindings(kb);
+        instanceRef.setNameSpace(nameSpace);
+        instance.setPath(instanceRef);
 
         //
         //  Subscription State, Repeat Notification Policy, and On Fatal Error
         //  Policy properties each has a default value, a corresponding
         //  Other___ property, and a set of valid values
         //
-        _checkPropertyWithOther (instance, PEGASUS_PROPERTYNAME_SUBSCRIPTION_STATE,
-            _PROPERTY_OTHERSTATE, (Uint16) STATE_ENABLED,
-            (Uint16) STATE_OTHER, _validStates, _supportedStates);
-
-        _checkPropertyWithOther (instance, _PROPERTY_REPEATNOTIFICATIONPOLICY,
-            _PROPERTY_OTHERREPEATNOTIFICATIONPOLICY, (Uint16) _POLICY_NONE,
-            (Uint16) _POLICY_OTHER, _validRepeatPolicies,
+        _checkPropertyWithOther(
+            instance,
+            PEGASUS_PROPERTYNAME_SUBSCRIPTION_STATE,
+            _PROPERTY_OTHERSTATE,
+            (Uint16) STATE_ENABLED,
+            (Uint16) STATE_OTHER,
+            _validStates,
+            _supportedStates);
+
+        _checkPropertyWithOther(
+            instance,
+            _PROPERTY_REPEATNOTIFICATIONPOLICY,
+            _PROPERTY_OTHERREPEATNOTIFICATIONPOLICY,
+            (Uint16) _POLICY_NONE,
+            (Uint16) _POLICY_OTHER,
+            _validRepeatPolicies,
             _supportedRepeatPolicies);
 
-        _checkPropertyWithOther (instance, _PROPERTY_ONFATALERRORPOLICY,
-            _PROPERTY_OTHERONFATALERRORPOLICY, (Uint16) _ERRORPOLICY_IGNORE,
-            (Uint16) _ERRORPOLICY_OTHER, _validErrorPolicies,
+        _checkPropertyWithOther(
+            instance,
+            _PROPERTY_ONFATALERRORPOLICY,
+            _PROPERTY_OTHERONFATALERRORPOLICY,
+            (Uint16) _ERRORPOLICY_IGNORE,
+            (Uint16) _ERRORPOLICY_OTHER,
+            _validErrorPolicies,
             _supportedErrorPolicies);
 
         //
         //  For each remaining property, verify that if the property exists in
         //  the instance it is of the correct type
         //
-        _checkProperty (instance, _PROPERTY_FAILURETRIGGERTIMEINTERVAL,
+        _checkProperty(instance, _PROPERTY_FAILURETRIGGERTIMEINTERVAL,
             CIMTYPE_UINT64);
-        _checkProperty (instance, _PROPERTY_LASTCHANGE, CIMTYPE_DATETIME);
-        _checkProperty (instance, _PROPERTY_DURATION, CIMTYPE_UINT64);
-        _checkProperty (instance, _PROPERTY_STARTTIME, CIMTYPE_DATETIME);
-        _checkProperty (instance, _PROPERTY_TIMEREMAINING, CIMTYPE_UINT64);
-        _checkProperty (instance, _PROPERTY_REPEATNOTIFICATIONINTERVAL,
+        _checkProperty(instance, _PROPERTY_LASTCHANGE, CIMTYPE_DATETIME);
+        _checkProperty(instance, _PROPERTY_DURATION, CIMTYPE_UINT64);
+        _checkProperty(instance, _PROPERTY_STARTTIME, CIMTYPE_DATETIME);
+        _checkProperty(instance, _PROPERTY_TIMEREMAINING, CIMTYPE_UINT64);
+        _checkProperty(instance, _PROPERTY_REPEATNOTIFICATIONINTERVAL,
             CIMTYPE_UINT64);
-        _checkProperty (instance, _PROPERTY_REPEATNOTIFICATIONGAP,
+        _checkProperty(instance, _PROPERTY_REPEATNOTIFICATIONGAP,
             CIMTYPE_UINT64);
-        _checkProperty (instance, _PROPERTY_REPEATNOTIFICATIONCOUNT,
+        _checkProperty(instance, _PROPERTY_REPEATNOTIFICATIONCOUNT,
             CIMTYPE_UINT16);
 
-        if (instance.getClassName ().equal (
+        if (instance.getClassName().equal(
             PEGASUS_CLASSNAME_FORMATTEDINDSUBSCRIPTION))
         {
             Array<String> textFormatParams;
@@ -3548,44 +3570,59 @@ Boolean IndicationService::_canCreate (
         //  If they exist but are NULL, set value to the default
         //  If they exist and are not NULL, validate the value
         //
-        _checkRequiredProperty (instance, PEGASUS_PROPERTYNAME_NAME, CIMTYPE_STRING,
+        _checkRequiredProperty(
+            instance,
+            PEGASUS_PROPERTYNAME_NAME,
+            CIMTYPE_STRING,
             _MSG_KEY_PROPERTY);
 
-        _initOrValidateStringProperty (instance,PEGASUS_PROPERTYNAME_CREATIONCLASSNAME,
-            instance.getClassName ().getString ());
+        _initOrValidateStringProperty(
+            instance,
+            PEGASUS_PROPERTYNAME_CREATIONCLASSNAME,
+            instance.getClassName().getString());
 
-        _initOrValidateStringProperty (instance, _PROPERTY_SYSTEMNAME,
-            System::getFullyQualifiedHostName ());
+        _initOrValidateStringProperty(
+            instance,
+            _PROPERTY_SYSTEMNAME,
+            System::getFullyQualifiedHostName());
 
-        _initOrValidateStringProperty (instance,
+        _initOrValidateStringProperty(
+            instance,
             _PROPERTY_SYSTEMCREATIONCLASSNAME,
-            System::getSystemCreationClassName ());
+            System::getSystemCreationClassName());
 
         if (instance.getClassName ().equal (PEGASUS_CLASSNAME_INDFILTER))
         {
             //
             //  Query and QueryLanguage properties are required for Filter
             //
-            _checkRequiredProperty (instance, PEGASUS_PROPERTYNAME_QUERY, CIMTYPE_STRING,
+            _checkRequiredProperty(
+                instance,
+                PEGASUS_PROPERTYNAME_QUERY,
+                CIMTYPE_STRING,
+                _MSG_PROPERTY);
+            _checkRequiredProperty(
+                instance,
+                PEGASUS_PROPERTYNAME_QUERYLANGUAGE,
+                CIMTYPE_STRING,
                 _MSG_PROPERTY);
-            _checkRequiredProperty (instance, PEGASUS_PROPERTYNAME_QUERYLANGUAGE,
-                CIMTYPE_STRING, _MSG_PROPERTY);
 
             //
             //  Validate the query language is supported
             //
             String queryLanguage;
-            instance.getProperty (instance.findProperty
-                (PEGASUS_PROPERTYNAME_QUERYLANGUAGE)).getValue ().get (queryLanguage);
+            instance.getProperty(
+                instance.findProperty(PEGASUS_PROPERTYNAME_QUERYLANGUAGE)).
+                    getValue().get(queryLanguage);
 
 #ifdef PEGASUS_DISABLE_CQL
             // Special code to block CQL, if CQL is disabled
             if (queryLanguage == "CIM:CQL")
             {
-              // CQL is not allowed in this case
-              PEG_METHOD_EXIT();
-              throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED,
-                                          queryLanguage);
+                // CQL is not allowed in this case
+                PEG_METHOD_EXIT();
+                throw PEGASUS_CIM_EXCEPTION(
+                    CIM_ERR_NOT_SUPPORTED, queryLanguage);
             }
 #endif
 
@@ -3593,9 +3630,11 @@ Boolean IndicationService::_canCreate (
             //  Default value for Source Namespace is the namespace of the
             //  Filter registration
             //
-            CIMNamespaceName sourceNameSpace = CIMNamespaceName
-                (_checkPropertyWithDefault (instance, _PROPERTY_SOURCENAMESPACE,
-                 nameSpace.getString()));
+            CIMNamespaceName sourceNameSpace = CIMNamespaceName(
+                _checkPropertyWithDefault(
+                    instance,
+                    _PROPERTY_SOURCENAMESPACE,
+                    nameSpace.getString()));
 
             //
             //  Validate the query and indication class name
@@ -3608,15 +3647,15 @@ Boolean IndicationService::_canCreate (
             QueryExpression queryExpression;
             try
             {
-              queryExpression =
-                _getQueryExpression (filterQuery, queryLanguage, sourceNameSpace);
+                queryExpression = _getQueryExpression(
+                    filterQuery, queryLanguage, sourceNameSpace);
             }
             catch (QueryLanguageInvalidException&)
             {
-              // The filter query had an invalid language name.
-              PEG_METHOD_EXIT();
-              throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED,
-                                          queryLanguage);
+                // The filter query had an invalid language name.
+                PEG_METHOD_EXIT();
+                throw PEGASUS_CIM_EXCEPTION(
+                    CIM_ERR_NOT_SUPPORTED, queryLanguage);
             }
 
             CIMName indicationClassName = _getIndicationClassName
@@ -3703,129 +3742,157 @@ Boolean IndicationService::_canCreate (
                    _MSG_CLASS_NOT_SERVED));
         }
 #endif
-            _checkPropertyWithOther (instance, PEGASUS_PROPERTYNAME_PERSISTENCETYPE,
-                _PROPERTY_OTHERPERSISTENCETYPE, (Uint16) PERSISTENCE_PERMANENT,
-                (Uint16) PERSISTENCE_OTHER, _validPersistenceTypes,
+            _checkPropertyWithOther(
+                instance,
+                PEGASUS_PROPERTYNAME_PERSISTENCETYPE,
+                _PROPERTY_OTHERPERSISTENCETYPE,
+                (Uint16) PERSISTENCE_PERMANENT,
+                (Uint16) PERSISTENCE_OTHER,
+                _validPersistenceTypes,
                 _supportedPersistenceTypes);
 
             //
             //  For remaining property, verify that if the property exists in
             //  the instance it is of the correct type
             //
-            _checkProperty (instance, _PROPERTY_OWNER, CIMTYPE_STRING);
+            _checkProperty(instance, _PROPERTY_OWNER, CIMTYPE_STRING);
 
-            if (instance.getClassName ().equal
-                (PEGASUS_CLASSNAME_INDHANDLER_CIMXML) ||
-                instance.getClassName ().equal
-                (PEGASUS_CLASSNAME_LSTNRDST_CIMXML))
+            if (instance.getClassName().equal(
+                    PEGASUS_CLASSNAME_INDHANDLER_CIMXML) ||
+                instance.getClassName().equal(
+                    PEGASUS_CLASSNAME_LSTNRDST_CIMXML))
             {
                 //
                 //  Destination property is required for CIMXML
                 //  Handler subclass
                 //
-                _checkRequiredProperty (instance,
-            PEGASUS_PROPERTYNAME_LSTNRDST_DESTINATION,
-                    CIMTYPE_STRING, _MSG_PROPERTY);
+                _checkRequiredProperty(
+                    instance,
+                    PEGASUS_PROPERTYNAME_LSTNRDST_DESTINATION,
+                    CIMTYPE_STRING,
+                    _MSG_PROPERTY);
             }
 
-            if (instance.getClassName ().equal
+            if (instance.getClassName().equal
                 (PEGASUS_CLASSNAME_INDHANDLER_SNMP))
             {
                 //
                 //  TargetHost property is required for SNMP
                 //  Handler subclass
                 //
-                _checkRequiredProperty (instance,
-            PEGASUS_PROPERTYNAME_LSTNRDST_TARGETHOST,
-                    CIMTYPE_STRING, _MSG_PROPERTY);
+                _checkRequiredProperty(
+                    instance,
+                    PEGASUS_PROPERTYNAME_LSTNRDST_TARGETHOST,
+                    CIMTYPE_STRING,
+                    _MSG_PROPERTY);
 
                 //
                 //  TargetHostFormat property is required for SNMP
                 //  Handler subclass
                 //
-                _checkRequiredProperty (instance, _PROPERTY_TARGETHOSTFORMAT,
-                    CIMTYPE_UINT16, _MSG_PROPERTY);
+                _checkRequiredProperty(
+                    instance,
+                    _PROPERTY_TARGETHOSTFORMAT,
+                    CIMTYPE_UINT16,
+                    _MSG_PROPERTY);
 
                 //
                 //  SNMPVersion property is required for SNMP Handler
                 //
-                _checkRequiredProperty (instance, PEGASUS_PROPERTYNAME_SNMPVERSION,
-                    CIMTYPE_UINT16, _MSG_PROPERTY);
-                                                                      
+                _checkRequiredProperty(
+                    instance,
+                    PEGASUS_PROPERTYNAME_SNMPVERSION,
+                    CIMTYPE_UINT16,
+                    _MSG_PROPERTY);
+
                 // Currently, only SNMPv1 trap and SNMPv2C trap are supported,
                 // verify if the value of SNMPVersion is one of them
 
-                _checkValue(instance, PEGASUS_PROPERTYNAME_SNMPVERSION,
-                    _validSNMPVersion, _supportedSNMPVersion); 
+                _checkValue(
+                    instance,
+                    PEGASUS_PROPERTYNAME_SNMPVERSION,
+                    _validSNMPVersion,
+                    _supportedSNMPVersion);
 
                 //
                 //  For each remaining property, verify that if the property
                 //  exists in the instance it is of the correct type
                 //
-                _checkProperty (instance, _PROPERTY_PORTNUMBER, CIMTYPE_UINT32);
-                _checkProperty (instance, _PROPERTY_SNMPSECURITYNAME,
+                _checkProperty(instance, _PROPERTY_PORTNUMBER, CIMTYPE_UINT32);
+                _checkProperty(instance, _PROPERTY_SNMPSECURITYNAME,
                     CIMTYPE_STRING);
-                _checkProperty (instance, _PROPERTY_SNMPENGINEID,
+                _checkProperty(instance, _PROPERTY_SNMPENGINEID,
                     CIMTYPE_STRING);
             }
 
-            if (instance.getClassName ().equal
+            if (instance.getClassName().equal
                 (PEGASUS_CLASSNAME_LSTNRDST_EMAIL))
             {
                 //
                 //  MailTo property is required for Email
                 //  Handler subclass
                 //
-                _checkRequiredProperty (instance,
-            PEGASUS_PROPERTYNAME_LSTNRDST_MAILTO,
-                    CIMTYPE_STRING, _MSG_PROPERTY, true);
-
-        // get MailTo from handler instance
+                _checkRequiredProperty(
+                    instance,
+                    PEGASUS_PROPERTYNAME_LSTNRDST_MAILTO,
+                    CIMTYPE_STRING,
+                    _MSG_PROPERTY,
+                    true);
+
+                // get MailTo from handler instance
                 Array<String> mailTo;
-            instance.getProperty(instance.findProperty(
-                  PEGASUS_PROPERTYNAME_LSTNRDST_MAILTO)).getValue().get(mailTo);
+                instance.getProperty(instance.findProperty(
+                    PEGASUS_PROPERTYNAME_LSTNRDST_MAILTO)).getValue().get(
+                        mailTo);
 
-        // Build mail address string
-        String mailAddrStr;
-        Uint32 mailAddrSize = mailTo.size();
+                // Build mail address string
+                String mailAddrStr;
+                Uint32 mailAddrSize = mailTo.size();
 
-        for (Uint32 i=0; i < mailAddrSize; i++)
-        {
-            mailAddrStr.append(mailTo[i]);
+                for (Uint32 i=0; i < mailAddrSize; i++)
+                {
+                    mailAddrStr.append(mailTo[i]);
 
-            if (i < (mailAddrSize - 1))
-            {
-                mailAddrStr.append(",");
-            }
-        }
+                    if (i < (mailAddrSize - 1))
+                    {
+                        mailAddrStr.append(",");
+                    }
+                }
 
 
-        //
-        // Email address can not be an empty string
-        //
-        if (mailAddrStr == String::EMPTY)
-        {
-            PEG_METHOD_EXIT();
-            throw PEGASUS_CIM_EXCEPTION_L (CIM_ERR_FAILED,
-            MessageLoaderParms("IndicationService.IndicationService._MSG_DO_NOT_HAVE_EMAIL_ADDRESS",
-            "Do not have an e-mail address."));
-        }
+                //
+                // Email address can not be an empty string
+                //
+                if (mailAddrStr == String::EMPTY)
+                {
+                    PEG_METHOD_EXIT();
+                    throw PEGASUS_CIM_EXCEPTION_L(
+                        CIM_ERR_FAILED,
+                        MessageLoaderParms(
+                            "IndicationService.IndicationService."
+                                "_MSG_DO_NOT_HAVE_EMAIL_ADDRESS",
+                            "Do not have an e-mail address."));
+                }
 
                 //
                 //  MailSubject property is required for Email
                 //  Handler subclass
                 //
-                _checkRequiredProperty (instance,
-            PEGASUS_PROPERTYNAME_LSTNRDST_MAILSUBJECT,
-                    CIMTYPE_STRING, _MSG_PROPERTY);
+                _checkRequiredProperty(
+                    instance,
+                    PEGASUS_PROPERTYNAME_LSTNRDST_MAILSUBJECT,
+                    CIMTYPE_STRING,
+                    _MSG_PROPERTY);
 
                 //
                 //  For MailCc property, verify that if the property
                 //  exists in the instance it is of the correct type
                 //
-                _checkProperty (instance,
-            PEGASUS_PROPERTYNAME_LSTNRDST_MAILCC,
-                    CIMTYPE_STRING, true);
+                _checkProperty(
+                    instance,
+                    PEGASUS_PROPERTYNAME_LSTNRDST_MAILCC,
+                    CIMTYPE_STRING,
+                    true);
             }
         }
 
@@ -3834,27 +3901,25 @@ Boolean IndicationService::_canCreate (
             //
             //  A class not currently served by the Indication Service
             //
-            PEG_METHOD_EXIT ();
-
-            // l10n
-
-            // throw PEGASUS_CIM_EXCEPTION (CIM_ERR_NOT_SUPPORTED,
-            // _MSG_CLASS_NOT_SERVED);
+            PEG_METHOD_EXIT();
 
-            throw PEGASUS_CIM_EXCEPTION_L (CIM_ERR_NOT_SUPPORTED,
-            MessageLoaderParms(_MSG_CLASS_NOT_SERVED_KEY, _MSG_CLASS_NOT_SERVED));
+            throw PEGASUS_CIM_EXCEPTION_L(
+                CIM_ERR_NOT_SUPPORTED,
+                MessageLoaderParms(
+                    _MSG_CLASS_NOT_SERVED_KEY,
+                    _MSG_CLASS_NOT_SERVED));
         }
     }
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
     return true;
 }
 
-void IndicationService::_checkRequiredProperty (
-    CIMInstance & instance,
-    const CIMName & propertyName,
+void IndicationService::_checkRequiredProperty(
+    CIMInstance& instance,
+    const CIMName& propertyName,
     const CIMType expectedType,
-    const String & message,
+    const String& message,
     const Boolean isArray)
 {
     PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
@@ -3967,13 +4032,13 @@ void IndicationService::_checkRequiredProperty (
 }
 
 void IndicationService::_checkPropertyWithOther (
-    CIMInstance & instance,
-    const CIMName & propertyName,
-    const CIMName & otherPropertyName,
+    CIMInstance& instance,
+    const CIMName& propertyName,
+    const CIMName& otherPropertyName,
     const Uint16 defaultValue,
     const Uint16 otherValue,
-    const Array <Uint16> & validValues,
-    const Array <Uint16> & supportedValues)
+    const Array<Uint16>& validValues,
+    const Array<Uint16>& supportedValues)
 {
     PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
         "IndicationService::_checkPropertyWithOther");
@@ -4008,20 +4073,22 @@ void IndicationService::_checkPropertyWithOther (
             if (theValue.isArray ())
             {
                 MessageLoaderParms parms(
-                "IndicationService.IndicationService._MSG_INVALID_TYPE_ARRAY_OF_FOR_PROPERTY",
-                "Invalid type array of $0 for property $1",
-                cimTypeToString(theValue.getType()),
-                propertyName.getString());
+                    "IndicationService.IndicationService."
+                        "_MSG_INVALID_TYPE_ARRAY_OF_FOR_PROPERTY",
+                    "Invalid type array of $0 for property $1",
+                    cimTypeToString(theValue.getType()),
+                    propertyName.getString());
 
                 exceptionStr.append(MessageLoader::getMessage(parms));
             }
             else
             {
                 MessageLoaderParms parms(
-                "IndicationService.IndicationService._MSG_INVALID_TYPE_FOR_PROPERTY",
-                "Invalid type $0 for property $1",
-                cimTypeToString(theValue.getType()),
-                propertyName.getString());
+                    "IndicationService.IndicationService."
+                        "_MSG_INVALID_TYPE_FOR_PROPERTY",
+                    "Invalid type $0 for property $1",
+                    cimTypeToString(theValue.getType()),
+                    propertyName.getString());
 
                 exceptionStr.append(MessageLoader::getMessage(parms));
             }
@@ -4048,20 +4115,13 @@ void IndicationService::_checkPropertyWithOther (
             //
             if (!Contains (validValues, result))
             {
-                // l10n
-
                 String exceptionStr = _MSG_INVALID_VALUE;
-                // exceptionStr.append (theValue.toString ());
-                exceptionStr.append ("$0");
-                exceptionStr.append (_MSG_FOR_PROPERTY);
-                // exceptionStr.append (propertyName.getString());
-                exceptionStr.append ("$1");
+                exceptionStr.append("$0");
+                exceptionStr.append(_MSG_FOR_PROPERTY);
+                exceptionStr.append("$1");
 
                 PEG_METHOD_EXIT ();
 
-                // throw PEGASUS_CIM_EXCEPTION (CIM_ERR_INVALID_PARAMETER,
-                //    exceptionStr);
-
                 throw PEGASUS_CIM_EXCEPTION_L (CIM_ERR_INVALID_PARAMETER,
                     MessageLoaderParms(_MSG_INVALID_VALUE_FOR_PROPERTY_KEY,
                     exceptionStr,
@@ -4075,19 +4135,22 @@ void IndicationService::_checkPropertyWithOther (
             //  Some valid values, as defined in the MOF, are not currently
             //  supported by the Pegasus IndicationService
             //
-            if (!Contains (supportedValues, result))
+            if (!Contains(supportedValues, result))
             {
                 String exceptionStr = _MSG_UNSUPPORTED_VALUE;
-                exceptionStr.append ("$0");
-                exceptionStr.append (_MSG_FOR_PROPERTY);
-                exceptionStr.append ("$1");
+                exceptionStr.append("$0");
+                exceptionStr.append(_MSG_FOR_PROPERTY);
+                exceptionStr.append("$1");
 
-                PEG_METHOD_EXIT ();
+                PEG_METHOD_EXIT();
 
-                throw PEGASUS_CIM_EXCEPTION_L (CIM_ERR_NOT_SUPPORTED,
-                    MessageLoaderParms (_MSG_UNSUPPORTED_VALUE_FOR_PROPERTY_KEY,
-                    exceptionStr,
-                    theValue.toString (), propertyName.getString ()));
+                throw PEGASUS_CIM_EXCEPTION_L(
+                    CIM_ERR_NOT_SUPPORTED,
+                    MessageLoaderParms(
+                        _MSG_UNSUPPORTED_VALUE_FOR_PROPERTY_KEY,
+                        exceptionStr,
+                        theValue.toString(),
+                        propertyName.getString()));
             }
         }
 
@@ -4097,70 +4160,60 @@ void IndicationService::_checkPropertyWithOther (
         //
         if (result == otherValue)
         {
-            if (instance.findProperty (otherPropertyName) == PEG_NOT_FOUND)
+            if (instance.findProperty(otherPropertyName) == PEG_NOT_FOUND)
             {
-                // l10n
-
                 String exceptionStr = _MSG_MISSING_REQUIRED;
-                // exceptionStr.append (otherPropertyName.getString());
-                exceptionStr.append ("$0");
-                exceptionStr.append (_MSG_PROPERTY);
-
-                PEG_METHOD_EXIT ();
-
-                // l10n
+                exceptionStr.append("$0");
+                exceptionStr.append(_MSG_PROPERTY);
 
-                // throw PEGASUS_CIM_EXCEPTION (CIM_ERR_INVALID_PARAMETER,
-                //     exceptionStr);
+                PEG_METHOD_EXIT();
 
-                throw PEGASUS_CIM_EXCEPTION_L (CIM_ERR_INVALID_PARAMETER,
-                  MessageLoaderParms(_MSG_PROPERTY_KEY,
-                  exceptionStr,
-                  otherPropertyName.getString()));
+                throw PEGASUS_CIM_EXCEPTION_L(
+                    CIM_ERR_INVALID_PARAMETER,
+                    MessageLoaderParms(
+                        _MSG_PROPERTY_KEY,
+                        exceptionStr,
+                        otherPropertyName.getString()));
             }
             else
             {
                 CIMProperty otherProperty = instance.getProperty
-                    (instance.findProperty (otherPropertyName));
-                CIMValue theOtherValue = otherProperty.getValue ();
-                if (theOtherValue.isNull ())
+                    (instance.findProperty(otherPropertyName));
+                CIMValue theOtherValue = otherProperty.getValue();
+                if (theOtherValue.isNull())
                 {
-                    // l10n
-
                     String exceptionStr = _MSG_MISSING_REQUIRED;
-                    // exceptionStr.append (otherPropertyName.getString());
-                    exceptionStr.append ("$0");
-                    exceptionStr.append (_MSG_PROPERTY);
-
-                    PEG_METHOD_EXIT ();
+                    exceptionStr.append("$0");
+                    exceptionStr.append(_MSG_PROPERTY);
 
-                    // l10n
-                    // throw PEGASUS_CIM_EXCEPTION (CIM_ERR_INVALID_PARAMETER,
-                    //  exceptionStr);
+                    PEG_METHOD_EXIT();
 
-                    throw PEGASUS_CIM_EXCEPTION_L (CIM_ERR_INVALID_PARAMETER,
-                        MessageLoaderParms(_MSG_PROPERTY_KEY,
-                        exceptionStr,
-                        otherPropertyName.getString()));
+                    throw PEGASUS_CIM_EXCEPTION_L(
+                        CIM_ERR_INVALID_PARAMETER,
+                        MessageLoaderParms(
+                            _MSG_PROPERTY_KEY,
+                            exceptionStr,
+                            otherPropertyName.getString()));
                 }
-                else if (theOtherValue.getType () != CIMTYPE_STRING)
+                else if (theOtherValue.getType() != CIMTYPE_STRING)
                 {
                     //
                     //  Property exists and is not null,
                     //  but is not of correct type
                     //
                     String exceptionStr = _MSG_INVALID_TYPE;
-                    exceptionStr.append ("$0");
-                    exceptionStr.append (_MSG_FOR_PROPERTY);
-                    exceptionStr.append ("$1");
+                    exceptionStr.append("$0");
+                    exceptionStr.append(_MSG_FOR_PROPERTY);
+                    exceptionStr.append("$1");
 
                     PEG_METHOD_EXIT ();
-                    throw PEGASUS_CIM_EXCEPTION_L (CIM_ERR_INVALID_PARAMETER,
-                        MessageLoaderParms
-                            (_MSG_INVALID_TYPE_FOR_PROPERTY_KEY,
+                    throw PEGASUS_CIM_EXCEPTION_L(
+                        CIM_ERR_INVALID_PARAMETER,
+                        MessageLoaderParms(
+                            _MSG_INVALID_TYPE_FOR_PROPERTY_KEY,
                             exceptionStr,
-                            cimTypeToString (theOtherValue.getType ()),
-                            otherPropertyName.getString ()));
+                            cimTypeToString(theOtherValue.getType()),
+                            otherPropertyName.getString()));
                 }
             }
         }
@@ -4171,48 +4224,40 @@ void IndicationService::_checkPropertyWithOther (
         //
         else if (instance.findProperty (otherPropertyName) != PEG_NOT_FOUND)
         {
-            CIMProperty otherProperty = instance.getProperty
-                (instance.findProperty (otherPropertyName));
-            CIMValue theOtherValue = otherProperty.getValue ();
-            if (!theOtherValue.isNull ())
+            CIMProperty otherProperty = instance.getProperty(
+                instance.findProperty(otherPropertyName));
+            CIMValue theOtherValue = otherProperty.getValue();
+            if (!theOtherValue.isNull())
             {
-                // l10n
-
-                // String exceptionStr = otherPropertyName.getString();
-                String exceptionStr ("$0");
-                exceptionStr.append (_MSG_PROPERTY_PRESENT);
-                // exceptionStr.append (propertyName.getString());
-                exceptionStr.append ("$1");
-                exceptionStr.append (_MSG_VALUE_NOT);
-                // exceptionStr.append (CIMValue (otherValue).toString ());
-                exceptionStr.append ("$2");
+                String exceptionStr("$0");
+                exceptionStr.append(_MSG_PROPERTY_PRESENT);
+                exceptionStr.append("$1");
+                exceptionStr.append(_MSG_VALUE_NOT);
+                exceptionStr.append("$2");
 
-                PEG_METHOD_EXIT ();
-
-                // l10n
-
-                // throw PEGASUS_CIM_EXCEPTION (CIM_ERR_INVALID_PARAMETER,
-                //  exceptionStr);
+                PEG_METHOD_EXIT();
 
-                throw PEGASUS_CIM_EXCEPTION_L (CIM_ERR_INVALID_PARAMETER,
-                    MessageLoaderParms(_MSG_PROPERTY_PRESENT_BUT_VALUE_NOT_KEY,
-                    exceptionStr,
-                    otherPropertyName.getString(),
-                    propertyName.getString(),
-                    CIMValue (otherValue).toString ()));
+                throw PEGASUS_CIM_EXCEPTION_L(
+                    CIM_ERR_INVALID_PARAMETER,
+                    MessageLoaderParms(
+                        _MSG_PROPERTY_PRESENT_BUT_VALUE_NOT_KEY,
+                        exceptionStr,
+                        otherPropertyName.getString(),
+                        propertyName.getString(),
+                        CIMValue(otherValue).toString()));
             }
         }
     }
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
-String IndicationService::_checkPropertyWithDefault (
-    CIMInstance & instance,
-    const CIMName & propertyName,
-    const String & defaultValue)
+String IndicationService::_checkPropertyWithDefault(
+    CIMInstance& instance,
+    const CIMName& propertyName,
+    const String& defaultValue)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_checkPropertyWithDefault");
 
     String result = defaultValue;
@@ -4291,9 +4336,9 @@ String IndicationService::_checkPropertyWithDefault (
 }
 
 String IndicationService::_initOrValidateStringProperty (
-    CIMInstance & instance,
-    const CIMName & propertyName,
-    const String & defaultValue)
+    CIMInstance& instance,
+    const CIMName& propertyName,
+    const String& defaultValue)
 {
     PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
         "IndicationService::_initOrValidateStringProperty");
@@ -4325,8 +4370,8 @@ String IndicationService::_initOrValidateStringProperty (
 }
 
 void IndicationService::_checkProperty (
-    CIMInstance & instance,
-    const CIMName & propertyName,
+    CIMInstance& instance,
+    const CIMName& propertyName,
     const CIMType expectedType,
     const Boolean isArray)
 {
@@ -4347,7 +4392,7 @@ void IndicationService::_checkProperty (
         //
         if (!theValue.isNull ())
         {
-            if ((theValue.getType () != expectedType) || 
+            if ((theValue.getType () != expectedType) ||
                 (theValue.isArray () != isArray))
             {
                 //
@@ -4392,14 +4437,14 @@ void IndicationService::_checkProperty (
 }
 
 void IndicationService::_checkSupportedProperties (
-    const CIMInstance & instance)
+    const CIMInstance& instance)
 {
     PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
         "IndicationService::_checkSupportedProperties");
 
     CIMName className = instance.getClassName ();
-    Array <CIMName> emptyArray;
-    Array <CIMName> & supportedProperties = emptyArray;
+    Array<CIMName> emptyArray;
+    Array<CIMName>& supportedProperties = emptyArray;
 
     //
     //  Get list of supported properties for the class
@@ -4456,7 +4501,7 @@ void IndicationService::_checkSupportedProperties (
             PEG_METHOD_EXIT ();
             throw PEGASUS_CIM_EXCEPTION_L (CIM_ERR_NOT_SUPPORTED,
                 MessageLoaderParms (_MSG_PROPERTY_NOT_SUPPORTED_KEY,
-                    _MSG_PROPERTY_NOT_SUPPORTED, 
+                    _MSG_PROPERTY_NOT_SUPPORTED,
                     instance.getProperty (i).getName ().getString (),
                     className.getString ()));
         }
@@ -4466,10 +4511,10 @@ void IndicationService::_checkSupportedProperties (
 }
 
 void IndicationService::_checkValue (
-    const CIMInstance & instance,
-    const CIMName & propertyName,
-    const Array <Uint16> & validValues,
-    const Array <Uint16> & supportedValues)
+    const CIMInstance& instance,
+    const CIMName& propertyName,
+    const Array<Uint16>& validValues,
+    const Array<Uint16>& supportedValues)
 {
     PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
         "IndicationService::_checkValue");
@@ -4502,13 +4547,13 @@ void IndicationService::_checkValue (
                     exceptionStr,
                     theValue,
                     propertyName.getString()));
-                
+
             }
 
-            // Check for valid values that are not supported 
-            // Note: Supported values are a subset of the valid values 
-            // Some valid values, as defined in the MOF, are not currently 
-            // supported 
+            // Check for valid values that are not supported
+            // Note: Supported values are a subset of the valid values
+            // Some valid values, as defined in the MOF, are not currently
+            // supported
             if (!Contains(supportedValues, theValue))
             {
                 String exceptionStr = _MSG_UNSUPPORTED_VALUE;
@@ -4523,10 +4568,8 @@ void IndicationService::_checkValue (
                     exceptionStr,
                     theValue,
                     propertyName.getString()));
-                
             }
         }
-
     }
 
     PEG_METHOD_EXIT ();
@@ -4534,9 +4577,9 @@ void IndicationService::_checkValue (
 
 Boolean IndicationService::_canModify (
     const CIMModifyInstanceRequestMessage * request,
-    const CIMObjectPath & instanceReference,
-    const CIMInstance & instance,
-    CIMInstance & modifiedInstance)
+    const CIMObjectPath& instanceReference,
+    const CIMInstance& instance,
+    CIMInstance& modifiedInstance)
 {
     PEG_METHOD_ENTER (TRC_INDICATION_SERVICE, "IndicationService::_canModify");
 
@@ -4572,9 +4615,9 @@ Boolean IndicationService::_canModify (
     //
     //  Request is invalid if more than one property is specified
     //
-    else if (request->propertyList.size () > 1)
+    else if (request->propertyList.size() > 1)
     {
-        PEG_METHOD_EXIT ();
+        PEG_METHOD_EXIT();
         throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, String::EMPTY);
     }
 
@@ -4582,19 +4625,25 @@ Boolean IndicationService::_canModify (
     //  For request to be valid, zero or one property must be specified
     //  If one property specified, it must be Subscription State property
     //
-    else if ((request->propertyList.size () == 1) &&
-             (!request->propertyList[0].equal (PEGASUS_PROPERTYNAME_SUBSCRIPTION_STATE)))
+    else if ((request->propertyList.size() == 1) &&
+             (!request->propertyList[0].equal(
+                   PEGASUS_PROPERTYNAME_SUBSCRIPTION_STATE)))
     {
-        PEG_METHOD_EXIT ();
+        PEG_METHOD_EXIT();
         throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, String::EMPTY);
     }
 
     //
     //  Check the SubscriptionState property in the modified instance
     //
-    _checkPropertyWithOther (modifiedInstance, PEGASUS_PROPERTYNAME_SUBSCRIPTION_STATE,
-        _PROPERTY_OTHERSTATE, (Uint16) STATE_ENABLED, (Uint16) STATE_OTHER,
-        _validStates, _supportedStates);
+    _checkPropertyWithOther(
+        modifiedInstance,
+        PEGASUS_PROPERTYNAME_SUBSCRIPTION_STATE,
+        _PROPERTY_OTHERSTATE,
+        (Uint16) STATE_ENABLED,
+        (Uint16) STATE_OTHER,
+        _validStates,
+        _supportedStates);
 
     //
     //  Get creator from instance
@@ -4607,8 +4656,6 @@ Boolean IndicationService::_canModify (
         //  L10N TODO DONE -- new throw of exception
         //
         PEG_METHOD_EXIT ();
-        //throw PEGASUS_CIM_EXCEPTION (CIM_ERR_FAILED,
-            //_MSG_INVALID_INSTANCES);
         MessageLoaderParms parms(_MSG_INVALID_INSTANCES_KEY,
             _MSG_INVALID_INSTANCES);
         throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED, parms);
@@ -4636,9 +4683,9 @@ Boolean IndicationService::_canModify (
 }
 
 Boolean IndicationService::_canDelete (
-    const CIMObjectPath & instanceReference,
-    const CIMNamespaceName & nameSpace,
-    const String & currentUser)
+    const CIMObjectPath& instanceReference,
+    const CIMNamespaceName& nameSpace,
+    const String& currentUser)
 {
     PEG_METHOD_ENTER (TRC_INDICATION_SERVICE, "IndicationService::_canDelete");
 
@@ -4733,7 +4780,7 @@ Boolean IndicationService::_canDelete (
         //
         //  Get all the subscriptions from the repository
         //
-        Array <CIMInstance> subscriptions =
+        Array<CIMInstance> subscriptions =
             _subscriptionRepository->getAllSubscriptions ();
 
         CIMValue propValue;
@@ -4763,8 +4810,8 @@ Boolean IndicationService::_canDelete (
             //  is the namespace of the Filter or Handler being deleted.
             //
             CIMNamespaceName instanceNS = ref.getNameSpace ();
-            if (((instanceNS.isNull ()) && 
-                (subscriptions[i].getPath ().getNameSpace () == nameSpace)) 
+            if (((instanceNS.isNull ()) &&
+                (subscriptions[i].getPath ().getNameSpace () == nameSpace))
                 || (instanceNS == nameSpace))
             {
 
@@ -4802,18 +4849,18 @@ Boolean IndicationService::_canDelete (
     return true;
 }
 
-Array <CIMInstance> IndicationService::_getMatchingSubscriptions (
-    const CIMName & supportedClass,
-    const Array <CIMNamespaceName> nameSpaces,
-    const CIMPropertyList & supportedProperties,
+Array<CIMInstance> IndicationService::_getMatchingSubscriptions (
+    const CIMName& supportedClass,
+    const Array<CIMNamespaceName> nameSpaces,
+    const CIMPropertyList& supportedProperties,
     const Boolean checkProvider,
-    const CIMInstance & provider)
+    const CIMInstance& provider)
 {
     PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
         "IndicationService::_getMatchingSubscriptions");
 
-    Array <CIMInstance> matchingSubscriptions;
-    Array <CIMInstance> subscriptions;
+    Array<CIMInstance> matchingSubscriptions;
+    Array<CIMInstance> subscriptions;
 
     subscriptions = _subscriptionTable->getMatchingSubscriptions
         (supportedClass, nameSpaces, checkProvider, provider);
@@ -4839,12 +4886,11 @@ Array <CIMInstance> IndicationService::_getMatchingSubscriptions (
             //  Get filter properties
             //
             _subscriptionRepository->getFilterProperties
-                (subscriptions [i], filterQuery, sourceNameSpace,
+                (subscriptions[i], filterQuery, sourceNameSpace,
                  queryLanguage, filterName);
 
-            QueryExpression queryExpr = _getQueryExpression(filterQuery,
-                                                            queryLanguage,
-                                                            sourceNameSpace);
+            QueryExpression queryExpr = _getQueryExpression(
+                filterQuery, queryLanguage, sourceNameSpace);
 
             //
             //  Get indication class name from filter query
@@ -4897,7 +4943,7 @@ Array <CIMInstance> IndicationService::_getMatchingSubscriptions (
                 {
                     if (!ContainsCIMName
                         (supportedProperties.getPropertyNameArray(),
-                        propertyList [j]))
+                        propertyList[j]))
                     {
                         match = false;
                         break;
@@ -4911,7 +4957,7 @@ Array <CIMInstance> IndicationService::_getMatchingSubscriptions (
             //
             //  Add current subscription to list
             //
-            matchingSubscriptions.append (subscriptions [i]);
+            matchingSubscriptions.append (subscriptions[i]);
         }
     }
 
@@ -4920,20 +4966,20 @@ Array <CIMInstance> IndicationService::_getMatchingSubscriptions (
 }
 
 void IndicationService::_getModifiedSubscriptions (
-    const CIMName & supportedClass,
-    const Array <CIMNamespaceName> & newNameSpaces,
-    const Array <CIMNamespaceName> & oldNameSpaces,
-    const CIMPropertyList & newProperties,
-    const CIMPropertyList & oldProperties,
-    Array <CIMInstance> & newSubscriptions,
-    Array <CIMInstance> & formerSubscriptions)
+    const CIMName& supportedClass,
+    const Array<CIMNamespaceName>& newNameSpaces,
+    const Array<CIMNamespaceName>& oldNameSpaces,
+    const CIMPropertyList& newProperties,
+    const CIMPropertyList& oldProperties,
+    Array<CIMInstance>& newSubscriptions,
+    Array<CIMInstance>& formerSubscriptions)
 {
     PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
         "IndicationService::_getModifiedSubscriptions");
 
-    Array <CIMInstance> newList;
-    Array <CIMInstance> formerList;
-    Array <CIMInstance> bothList;
+    Array<CIMInstance> newList;
+    Array<CIMInstance> formerList;
+    Array<CIMInstance> bothList;
 
     newSubscriptions.clear ();
     formerSubscriptions.clear ();
@@ -4962,10 +5008,10 @@ void IndicationService::_getModifiedSubscriptions (
         found = -1;
         for (Uint32 q = 0; q < formerList.size (); q++)
         {
-            if (newList [p].identical (formerList [q]))
+            if (newList[p].identical (formerList[q]))
             {
                 found = q;
-                bothList.append (newList [p]);
+                bothList.append (newList[p]);
                 break;
             }
         }
@@ -4994,11 +5040,10 @@ void IndicationService::_getModifiedSubscriptions (
         //
         //  Get filter properties
         //
-        _subscriptionRepository->getFilterProperties (newList [n], filterQuery,
+        _subscriptionRepository->getFilterProperties (newList[n], filterQuery,
             sourceNameSpace, queryLanguage, filterName);
-        QueryExpression queryExpression = _getQueryExpression(filterQuery,
-                                                              queryLanguage,
-                                                              sourceNameSpace);
+        QueryExpression queryExpression = _getQueryExpression(
+            filterQuery, queryLanguage, sourceNameSpace);
 
         //
         //  Get indication class name from filter query (FROM clause)
@@ -5022,7 +5067,7 @@ void IndicationService::_getModifiedSubscriptions (
         //
         if (_inPropertyList (requiredProperties, newProperties))
         {
-            newSubscriptions.append (newList [n]);
+            newSubscriptions.append (newList[n]);
         }
     }
 
@@ -5033,7 +5078,7 @@ void IndicationService::_getModifiedSubscriptions (
     //
     for (Uint32 f = 0; f < formerList.size (); f++)
     {
-        formerSubscriptions.append (formerList [f]);
+        formerSubscriptions.append (formerList[f]);
     }
 
     //
@@ -5055,11 +5100,10 @@ void IndicationService::_getModifiedSubscriptions (
         //
         //  Get filter properties
         //
-        _subscriptionRepository->getFilterProperties (bothList [b], filterQuery,
+        _subscriptionRepository->getFilterProperties (bothList[b], filterQuery,
             sourceNameSpace, queryLanguage, filterName);
-        QueryExpression queryExpression = _getQueryExpression(filterQuery,
-                                                              queryLanguage,
-                                                              sourceNameSpace);
+        QueryExpression queryExpression = _getQueryExpression(
+            filterQuery, queryLanguage, sourceNameSpace);
 
         //
         //  Get indication class name from filter query (FROM clause)
@@ -5091,11 +5135,11 @@ void IndicationService::_getModifiedSubscriptions (
         //
         if (newMatch && !formerMatch)
         {
-            newSubscriptions.append (bothList [b]);
+            newSubscriptions.append (bothList[b]);
         }
         else if (!newMatch && formerMatch)
         {
-            formerSubscriptions.append (bothList [b]);
+            formerSubscriptions.append (bothList[b]);
         }
     }
 
@@ -5103,8 +5147,8 @@ void IndicationService::_getModifiedSubscriptions (
 }
 
 Boolean IndicationService::_inPropertyList (
-    const CIMPropertyList & requiredProperties,
-    const CIMPropertyList & supportedProperties)
+    const CIMPropertyList& requiredProperties,
+    const CIMPropertyList& supportedProperties)
 {
     PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
         "IndicationService::_inPropertyList");
@@ -5153,52 +5197,53 @@ Boolean IndicationService::_inPropertyList (
     return true;
 }
 
-QueryExpression IndicationService::_getQueryExpression (const String& filterQuery,
-                                                        const String& queryLanguage,
-                                                        const CIMNamespaceName ns) const
+QueryExpression IndicationService::_getQueryExpression(
+    const String& filterQuery,
+    const String& queryLanguage,
+    const CIMNamespaceName& ns) const
 {
-  PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
-                    "IndicationService::_getQueryExpression");
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
+        "IndicationService::_getQueryExpression");
 
-  try
-  {
-    RepositoryQueryContext ctx(ns, _cimRepository);
-    QueryExpression queryExpression(queryLanguage, filterQuery, ctx);
-    PEG_METHOD_EXIT ();
-    return queryExpression;
-  }
-  catch (QueryParseException & qpe)
-  {
-    String exceptionStr = qpe.getMessage ();
+    try
+    {
+        RepositoryQueryContext ctx(ns, _cimRepository);
+        QueryExpression queryExpression(queryLanguage, filterQuery, ctx);
+        PEG_METHOD_EXIT();
+        return queryExpression;
+    }
+    catch (QueryParseException& qpe)
+    {
+        String exceptionStr = qpe.getMessage();
 
-    PEG_METHOD_EXIT ();
-    throw PEGASUS_CIM_EXCEPTION (CIM_ERR_INVALID_PARAMETER, exceptionStr);
-  }
-  catch (ParseError & pe)
-  {
-    String exceptionStr = pe.getMessage ();
+        PEG_METHOD_EXIT();
+        throw PEGASUS_CIM_EXCEPTION(CIM_ERR_INVALID_PARAMETER, exceptionStr);
+    }
+    catch (ParseError& pe)
+    {
+        String exceptionStr = pe.getMessage();
 
-    PEG_METHOD_EXIT ();
-    throw PEGASUS_CIM_EXCEPTION (CIM_ERR_INVALID_PARAMETER, exceptionStr);
-  }
-  catch (MissingNullTerminator & mnt)
-  {
-    String exceptionStr = mnt.getMessage ();
+        PEG_METHOD_EXIT();
+        throw PEGASUS_CIM_EXCEPTION(CIM_ERR_INVALID_PARAMETER, exceptionStr);
+    }
+    catch (MissingNullTerminator& mnt)
+    {
+        String exceptionStr = mnt.getMessage();
 
-    PEG_METHOD_EXIT ();
-    throw PEGASUS_CIM_EXCEPTION (CIM_ERR_INVALID_PARAMETER, exceptionStr);
-  }
+        PEG_METHOD_EXIT();
+        throw PEGASUS_CIM_EXCEPTION(CIM_ERR_INVALID_PARAMETER, exceptionStr);
+    }
 }
 
 CIMName IndicationService::_getIndicationClassName (
-    const QueryExpression & queryExpression,
-    const CIMNamespaceName & nameSpaceName) const
+    const QueryExpression& queryExpression,
+    const CIMNamespaceName& nameSpaceName) const
 {
     PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
         "IndicationService::_getIndicationClassName");
 
     CIMName indicationClassName;
-    Array <CIMName> indicationSubclasses;
+    Array<CIMName> indicationSubclasses;
 
     // Get the class paths in the FROM list.
     // Note: neither WQL nor CQL support joins, so we can
@@ -5250,19 +5295,19 @@ CIMName IndicationService::_getIndicationClassName (
     return indicationClassName;
 }
 
-Array <ProviderClassList> IndicationService::_getIndicationProviders (
-    const QueryExpression & queryExpression,
-    const CIMNamespaceName & nameSpace,
-    const CIMName & indicationClassName,
-    const Array <CIMName> & indicationSubclasses) const
+Array<ProviderClassList> IndicationService::_getIndicationProviders (
+    const QueryExpression& queryExpression,
+    const CIMNamespaceName& nameSpace,
+    const CIMName& indicationClassName,
+    const Array<CIMName>& indicationSubclasses) const
 {
     PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
         "IndicationService::_getIndicationProviders");
 
     ProviderClassList provider;
-    Array <ProviderClassList> indicationProviders;
-    Array <CIMInstance> providerInstances;
-    Array <CIMInstance> providerModuleInstances;
+    Array<ProviderClassList> indicationProviders;
+    Array<CIMInstance> providerInstances;
+    Array<CIMInstance> providerModuleInstances;
 
     CIMPropertyList requiredPropertyList;
 
@@ -5285,7 +5330,7 @@ Array <ProviderClassList> IndicationService::_getIndicationProviders (
         providerModuleInstances.clear ();
         if (_providerRegManager->getIndicationProviders
                 (nameSpace,
-                 indicationSubclasses [i],
+                 indicationSubclasses[i],
                  requiredPropertyList,
                  providerInstances,
                  providerModuleInstances))
@@ -5296,7 +5341,7 @@ Array <ProviderClassList> IndicationService::_getIndicationProviders (
             PEG_TRACE((TRC_INDICATION_SERVICE, Tracer::LEVEL4,
                 "%u indication provider(s) found for class %s",
                 providerInstances.size (),
-                (const char *) 
+                (const char *)
                 indicationSubclasses[i].getString ().getCString ()));
 
             //
@@ -5313,17 +5358,17 @@ Array <ProviderClassList> IndicationService::_getIndicationProviders (
                 for (Uint32 k = 0, n = indicationProviders.size ();
                      k < n && !duplicate; k++)
                 {
-                    if ((providerInstances [j].getPath ().identical
-                        (indicationProviders [k].provider.getPath ())) &&
-                        (providerModuleInstances [j].getPath ().identical
-                        (indicationProviders [k].providerModule.getPath ())))
+                    if ((providerInstances[j].getPath ().identical
+                        (indicationProviders[k].provider.getPath ())) &&
+                        (providerModuleInstances[j].getPath ().identical
+                        (indicationProviders[k].providerModule.getPath ())))
                     {
                         //
                         //  Indication provider is already in list
                         //  Add subclass to provider's class list
                         //
-                        indicationProviders [k].classList.append
-                            (indicationSubclasses [i]);
+                        indicationProviders[k].classList.append
+                            (indicationSubclasses[i]);
                         duplicate = true;
                     }
                 }
@@ -5334,31 +5379,32 @@ Array <ProviderClassList> IndicationService::_getIndicationProviders (
                     //  Current provider is not yet in list
                     //  Create new list entry
                     //
-                    provider.provider = providerInstances [j];
-                    provider.providerModule = providerModuleInstances [j];
-                    provider.classList.append (indicationSubclasses [i]);
+                    provider.provider = providerInstances[j];
+                    provider.providerModule = providerModuleInstances[j];
+                    provider.classList.append (indicationSubclasses[i]);
 #ifdef PEGASUS_ENABLE_REMOTE_CMPI
                     String remoteInformation;
-                    Boolean isRemote = _cimRepository->isRemoteNameSpace(nameSpace,remoteInformation);
+                    Boolean isRemote = _cimRepository->isRemoteNameSpace(
+                        nameSpace, remoteInformation);
                     provider.isRemoteNameSpace = isRemote;
-                    provider.remoteInfo = remoteInformation;  
+                    provider.remoteInfo = remoteInformation;
 #endif
-                    indicationProviders.append (provider);
+                    indicationProviders.append(provider);
                 }
             }  // for each indication provider instance
         }  // if any providers
     }  // for each indication subclass
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
     return indicationProviders;
 }
 
-CIMPropertyList IndicationService::_getPropertyList
-    (const QueryExpression & queryExpression,
-     const CIMNamespaceName & nameSpaceName,
-     const CIMName & indicationClassName) const
+CIMPropertyList IndicationService::_getPropertyList(
+    const QueryExpression& queryExpression,
+    const CIMNamespaceName& nameSpaceName,
+    const CIMName& indicationClassName) const
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_getPropertyList");
 
     CIMPropertyList propertyList;
@@ -5369,22 +5415,22 @@ CIMPropertyList IndicationService::_getPropertyList
     //
     try
     {
-      CIMObjectPath classPath (String::EMPTY,
+      CIMObjectPath classPath(String::EMPTY,
                                nameSpaceName,
                                indicationClassName);
-      propertyList = queryExpression.getWherePropertyList (classPath);
+      propertyList = queryExpression.getWherePropertyList(classPath);
     }
-    catch (QueryException & qe)
+    catch (QueryException& qe)
     {
       // The class path was not the FROM class, or a subclass
       // of the FROM class.
-      String exceptionStr = qe.getMessage ();
+      String exceptionStr = qe.getMessage();
 
-      PEG_METHOD_EXIT ();
-      throw PEGASUS_CIM_EXCEPTION (CIM_ERR_FAILED, exceptionStr);
+      PEG_METHOD_EXIT();
+      throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, exceptionStr);
     }
 
-    if (propertyList.isNull ())
+    if (propertyList.isNull())
     {
         //
         //  Return null property list for all properties
@@ -5394,26 +5440,26 @@ CIMPropertyList IndicationService::_getPropertyList
     }
     else
     {
-        Array <CIMName> propertyArray;
+        Array<CIMName> propertyArray;
 
         //  Get the property names
         //
-        propertyArray = propertyList.getPropertyNameArray ();
+        propertyArray = propertyList.getPropertyNameArray();
 
-        Array <CIMName> indicationClassProperties;
+        Array<CIMName> indicationClassProperties;
         PEG_METHOD_EXIT();
-        return _checkPropertyList (propertyArray, nameSpaceName,
+        return _checkPropertyList(propertyArray, nameSpaceName,
             indicationClassName, indicationClassProperties);
     }
 }
 
-CIMPropertyList IndicationService::_checkPropertyList
-    (const Array <CIMName> & propertyList,
-     const CIMNamespaceName & nameSpaceName,
-     const CIMName & indicationClassName,
-     Array <CIMName> & indicationClassProperties) const
+CIMPropertyList IndicationService::_checkPropertyList(
+    const Array<CIMName>& propertyList,
+    const CIMNamespaceName& nameSpaceName,
+    const CIMName& indicationClassName,
+    Array<CIMName>& indicationClassProperties) const
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_checkPropertyList");
 
     //
@@ -5427,17 +5473,17 @@ CIMPropertyList IndicationService::_checkPropertyList
     //  Specify localOnly=false because superclass properties are needed
     //  Specify includeQualifiers=false because qualifiers are not needed
     //
-    indicationClass = _subscriptionRepository->getClass
-        (nameSpaceName, indicationClassName, false, false, false,
-         CIMPropertyList ());
+    indicationClass = _subscriptionRepository->getClass(
+        nameSpaceName, indicationClassName, false, false, false,
+        CIMPropertyList());
 
     Boolean allProperties = true;
-    for (Uint32 i = 0; i < indicationClass.getPropertyCount (); i++)
+    for (Uint32 i = 0; i < indicationClass.getPropertyCount(); i++)
     {
-        indicationClassProperties.append
-            (indicationClass.getProperty (i).getName ());
-        if (!ContainsCIMName (propertyList,
-            indicationClass.getProperty (i).getName ()))
+        indicationClassProperties.append(
+            indicationClass.getProperty(i).getName());
+        if (!ContainsCIMName(propertyList,
+            indicationClass.getProperty(i).getName()))
         {
             allProperties = false;
         }
@@ -5448,20 +5494,20 @@ CIMPropertyList IndicationService::_checkPropertyList
         //
         //  Return NULL CIMPropertyList
         //
-        PEG_METHOD_EXIT ();
-        return CIMPropertyList ();
+        PEG_METHOD_EXIT();
+        return CIMPropertyList();
     }
     else
     {
-        PEG_METHOD_EXIT ();
-        return CIMPropertyList (propertyList);
+        PEG_METHOD_EXIT();
+        return CIMPropertyList(propertyList);
     }
 }
 
-String IndicationService::_getCondition
-    (const String & filterQuery) const
+String IndicationService::_getCondition(
+    const String& filterQuery) const
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_getCondition");
 
     String condition;
@@ -5469,43 +5515,42 @@ String IndicationService::_getCondition
     //
     //  Get condition substring from filter query
     //
-    if (filterQuery.find (_QUERY_WHERE) != PEG_NOT_FOUND)
+    if (filterQuery.find(_QUERY_WHERE) != PEG_NOT_FOUND)
     {
-        condition = filterQuery.subString (filterQuery.find
-            (_QUERY_WHERE) + 6);
+        condition = filterQuery.subString(filterQuery.find(_QUERY_WHERE) + 6);
     }
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
     return condition;
 }
 
-void IndicationService::_deleteReferencingSubscriptions (
-    const CIMNamespaceName & nameSpace,
-    const CIMName & referenceProperty,
-    const CIMObjectPath & handler)
+void IndicationService::_deleteReferencingSubscriptions(
+    const CIMNamespaceName& nameSpace,
+    const CIMName& referenceProperty,
+    const CIMObjectPath& handler)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_deleteReferencingSubscriptions");
 
-    Array <CIMInstance> deletedSubscriptions;
+    Array<CIMInstance> deletedSubscriptions;
 
     //
     //  Delete referencing subscriptions from the repository
     //
     deletedSubscriptions =
-        _subscriptionRepository->deleteReferencingSubscriptions
-        (nameSpace, referenceProperty, handler);
+        _subscriptionRepository->deleteReferencingSubscriptions(
+            nameSpace, referenceProperty, handler);
 
     //
     //  Send delete request to each provider for each deleted subscription
     //
-    for (Uint32 i = 0; i < deletedSubscriptions.size (); i++)
+    for (Uint32 i = 0; i < deletedSubscriptions.size(); i++)
     {
-        Array <ProviderClassList> indicationProviders;
-        Array <CIMName> indicationSubclasses;
+        Array<ProviderClassList> indicationProviders;
+        Array<CIMName> indicationSubclasses;
         CIMNamespaceName sourceNamespaceName;
 
-        indicationProviders = _getDeleteParams (deletedSubscriptions [i],
+        indicationProviders = _getDeleteParams(deletedSubscriptions[i],
             indicationSubclasses, sourceNamespaceName);
 
         //
@@ -5516,14 +5561,14 @@ void IndicationService::_deleteReferencingSubscriptions (
         //  The Creator from the subscription instance is used for userName,
         //  and authType is not set
         //
-        CIMInstance instance = deletedSubscriptions [i];
+        CIMInstance instance = deletedSubscriptions[i];
         String creator;
-        _getCreator (instance, creator);
+        _getCreator(instance, creator);
 
 // l10n start
         AcceptLanguageList acceptLangs;
-        Uint32 propIndex = instance.findProperty
-            (PEGASUS_PROPERTYNAME_INDSUB_ACCEPTLANGS);
+        Uint32 propIndex = instance.findProperty(
+            PEGASUS_PROPERTYNAME_INDSUB_ACCEPTLANGS);
         if (propIndex != PEG_NOT_FOUND)
         {
             String acceptLangsString;
@@ -5536,8 +5581,8 @@ void IndicationService::_deleteReferencingSubscriptions (
             }
         }
         ContentLanguageList contentLangs;
-        propIndex = instance.findProperty
-            (PEGASUS_PROPERTYNAME_INDSUB_CONTENTLANGS);
+        propIndex = instance.findProperty(
+            PEGASUS_PROPERTYNAME_INDSUB_CONTENTLANGS);
         if (propIndex != PEG_NOT_FOUND)
         {
             String contentLangsString;
@@ -5551,9 +5596,10 @@ void IndicationService::_deleteReferencingSubscriptions (
         }
 // l10n end
 
-// l10n
-        _sendAsyncDeleteRequests (indicationProviders, sourceNamespaceName,
-            deletedSubscriptions [i],
+        _sendAsyncDeleteRequests(
+            indicationProviders,
+            sourceNamespaceName,
+            deletedSubscriptions[i],
             acceptLangs,
             contentLangs,
             0,  // no request
@@ -5561,13 +5607,13 @@ void IndicationService::_deleteReferencingSubscriptions (
             creator);
     }
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
-Boolean IndicationService::_isExpired (
-    const CIMInstance & instance) const
+Boolean IndicationService::_isExpired(
+    const CIMInstance& instance) const
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE, "IndicationService::_isExpired");
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE, "IndicationService::_isExpired");
 
     Boolean isExpired = true;
     Uint64 timeRemaining = 0;
@@ -5575,7 +5621,7 @@ Boolean IndicationService::_isExpired (
     //
     //  Get time remaining, if subscription has a duration
     //
-    if (_getTimeRemaining (instance, timeRemaining))
+    if (_getTimeRemaining(instance, timeRemaining))
     {
         if (timeRemaining > 0)
         {
@@ -5590,14 +5636,14 @@ Boolean IndicationService::_isExpired (
         isExpired = false;
     }
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
     return isExpired;
 }
 
-void IndicationService::_deleteExpiredSubscription (
-    CIMObjectPath & subscription)
+void IndicationService::_deleteExpiredSubscription(
+    CIMObjectPath& subscription)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_deleteExpiredSubscription");
 
     CIMInstance subscriptionInstance;
@@ -5605,14 +5651,14 @@ void IndicationService::_deleteExpiredSubscription (
     //
     //  Delete instance from repository
     //
-    subscriptionInstance = _subscriptionRepository->deleteSubscription
-        (subscription);
+    subscriptionInstance =
+        _subscriptionRepository->deleteSubscription(subscription);
 
     //
     //  If a valid instance object was returned, the subscription was
     //  successfully deleted
     //
-    if (!subscriptionInstance.isUninitialized ())
+    if (!subscriptionInstance.isUninitialized())
     {
         //
         //  If subscription was active, send delete requests to providers
@@ -5620,21 +5666,21 @@ void IndicationService::_deleteExpiredSubscription (
         //
         Uint16 subscriptionState;
         CIMValue subscriptionStateValue;
-        subscriptionStateValue = subscriptionInstance.getProperty
-            (subscriptionInstance.findProperty
-            (PEGASUS_PROPERTYNAME_SUBSCRIPTION_STATE)).getValue ();
-        subscriptionStateValue.get (subscriptionState);
+        subscriptionStateValue = subscriptionInstance.getProperty(
+            subscriptionInstance.findProperty(
+                PEGASUS_PROPERTYNAME_SUBSCRIPTION_STATE)).getValue();
+        subscriptionStateValue.get(subscriptionState);
 
         if ((subscriptionState == STATE_ENABLED) ||
             (subscriptionState == STATE_ENABLEDDEGRADED))
         {
-            Array <ProviderClassList> indicationProviders;
-            Array <CIMName> indicationSubclasses;
+            Array<ProviderClassList> indicationProviders;
+            Array<CIMName> indicationSubclasses;
             CIMNamespaceName sourceNamespaceName;
 
-            subscriptionInstance.setPath (subscription);
+            subscriptionInstance.setPath(subscription);
 
-            indicationProviders = _getDeleteParams (subscriptionInstance,
+            indicationProviders = _getDeleteParams(subscriptionInstance,
                 indicationSubclasses, sourceNamespaceName);
 
             //
@@ -5646,15 +5692,15 @@ void IndicationService::_deleteExpiredSubscription (
             //  and authType is not set
             //
             String creator;
-            _getCreator (subscriptionInstance, creator);
+            _getCreator(subscriptionInstance, creator);
 
             //
             // Get the language tags that were saved with the subscription
             // instance
             //
             AcceptLanguageList acceptLangs;
-            Uint32 propIndex = subscriptionInstance.findProperty
-                (PEGASUS_PROPERTYNAME_INDSUB_ACCEPTLANGS);
+            Uint32 propIndex = subscriptionInstance.findProperty(
+                PEGASUS_PROPERTYNAME_INDSUB_ACCEPTLANGS);
             if (propIndex != PEG_NOT_FOUND)
             {
                 String acceptLangsString;
@@ -5667,8 +5713,8 @@ void IndicationService::_deleteExpiredSubscription (
                 }
             }
             ContentLanguageList contentLangs;
-            propIndex = subscriptionInstance.findProperty
-                (PEGASUS_PROPERTYNAME_INDSUB_CONTENTLANGS);
+            propIndex = subscriptionInstance.findProperty(
+                PEGASUS_PROPERTYNAME_INDSUB_CONTENTLANGS);
             if (propIndex != PEG_NOT_FOUND)
             {
                 String contentLangsString;
@@ -5681,9 +5727,8 @@ void IndicationService::_deleteExpiredSubscription (
                 }
             }
 
-// l10n
-            subscriptionInstance.setPath (subscription);
-            _sendAsyncDeleteRequests (indicationProviders,
+            subscriptionInstance.setPath(subscription);
+            _sendAsyncDeleteRequests(indicationProviders,
                 sourceNamespaceName, subscriptionInstance,
                 acceptLangs,
                 contentLangs,
@@ -5699,14 +5744,14 @@ void IndicationService::_deleteExpiredSubscription (
         //
     }
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
-Boolean IndicationService::_getTimeRemaining (
-    const CIMInstance & instance,
-    Uint64 & timeRemaining) const
+Boolean IndicationService::_getTimeRemaining(
+    const CIMInstance& instance,
+    Uint64& timeRemaining) const
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_getTimeRemaining");
 
     Boolean hasDuration = true;
@@ -5728,37 +5773,37 @@ Boolean IndicationService::_getTimeRemaining (
     //
     CIMValue startTimeValue;
     CIMDateTime startTime;
-    Uint32 startTimeIndex = instance.findProperty (_PROPERTY_STARTTIME);
-    PEGASUS_ASSERT (startTimeIndex != PEG_NOT_FOUND);
-    startTimeValue = instance.getProperty (startTimeIndex).getValue ();
-    PEGASUS_ASSERT (!(startTimeValue.isNull ()));
-    startTimeValue.get (startTime);
+    Uint32 startTimeIndex = instance.findProperty(_PROPERTY_STARTTIME);
+    PEGASUS_ASSERT(startTimeIndex != PEG_NOT_FOUND);
+    startTimeValue = instance.getProperty(startTimeIndex).getValue();
+    PEGASUS_ASSERT(!(startTimeValue.isNull()));
+    startTimeValue.get(startTime);
 
     //
     //  Get Subscription Duration
     //
-    Uint32 durationIndex = instance.findProperty (_PROPERTY_DURATION);
+    Uint32 durationIndex = instance.findProperty(_PROPERTY_DURATION);
     if (durationIndex != PEG_NOT_FOUND)
     {
         CIMValue durationValue;
-        durationValue = instance.getProperty (durationIndex).getValue ();
-        if (durationValue.isNull ())
+        durationValue = instance.getProperty(durationIndex).getValue();
+        if (durationValue.isNull())
         {
             hasDuration = false;
         }
         else
         {
             Uint64 duration;
-            durationValue.get (duration);
+            durationValue.get(duration);
 
             //
             //  A Start Time set to the _ZERO_INTERVAL_STRING indicates that
             //  the subscription has not yet been enabled for the first time
             //  In this case, the time remaining is equal to the Duration
             //
-            if (startTime.isInterval ())
+            if (startTime.isInterval())
             {
-                if (startTime.equal (CIMDateTime (_ZERO_INTERVAL_STRING)))
+                if (startTime.equal(CIMDateTime(_ZERO_INTERVAL_STRING)))
                 {
                     timeRemaining = (Sint64) duration;
                 }
@@ -5769,7 +5814,7 @@ Boolean IndicationService::_getTimeRemaining (
                 //
                 else
                 {
-                    PEGASUS_ASSERT (false);
+                    PEGASUS_ASSERT(false);
                 }
             }
 
@@ -5784,18 +5829,18 @@ Boolean IndicationService::_getTimeRemaining (
                 Sint64 difference;
                 try
                 {
-                    difference = CIMDateTime::getDifference
-                        (startTime, currentDateTime);
+                    difference = CIMDateTime::getDifference(
+                        startTime, currentDateTime);
                 }
 
                 // Check if the date time is out of range.
-                catch (const DateTimeOutOfRangeException& )
+                catch (const DateTimeOutOfRangeException&)
                 {
                     PEG_METHOD_EXIT();
                     throw;
                 }
 
-                PEGASUS_ASSERT (difference >= 0);
+                PEGASUS_ASSERT(difference >= 0);
                 if (((Sint64) duration - difference) >= 0)
                 {
                     timeRemaining = (Sint64) duration - difference;
@@ -5808,49 +5853,49 @@ Boolean IndicationService::_getTimeRemaining (
         hasDuration = false;
     }
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
     return hasDuration;
 }
 
-void IndicationService::_setTimeRemaining (
-    CIMInstance & instance)
+void IndicationService::_setTimeRemaining(
+    CIMInstance& instance)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_setTimeRemaining");
 
     Uint64 timeRemaining = 0;
-    if (_getTimeRemaining (instance, timeRemaining))
+    if (_getTimeRemaining(instance, timeRemaining))
     {
         //
         //  Add or set the value of the property with the calculated value
         //
-        if (instance.findProperty (_PROPERTY_TIMEREMAINING) == PEG_NOT_FOUND)
+        if (instance.findProperty(_PROPERTY_TIMEREMAINING) == PEG_NOT_FOUND)
         {
-            instance.addProperty (CIMProperty
-                (_PROPERTY_TIMEREMAINING, timeRemaining));
+            instance.addProperty(
+                CIMProperty(_PROPERTY_TIMEREMAINING, timeRemaining));
         }
         else
         {
-            CIMProperty remaining = instance.getProperty
-                (instance.findProperty (_PROPERTY_TIMEREMAINING));
-            remaining.setValue (CIMValue (timeRemaining));
+            CIMProperty remaining = instance.getProperty(
+                instance.findProperty(_PROPERTY_TIMEREMAINING));
+            remaining.setValue(CIMValue(timeRemaining));
         }
     }
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
-void IndicationService::_getCreateParams (
-    const CIMInstance & subscriptionInstance,
-    Array <CIMName> & indicationSubclasses,
-    Array <ProviderClassList> & indicationProviders,
-    CIMPropertyList & propertyList,
-    CIMNamespaceName & sourceNameSpace,
-    String & condition,
-    String & query,
-    String & queryLanguage)
+void IndicationService::_getCreateParams(
+    const CIMInstance& subscriptionInstance,
+    Array<CIMName>& indicationSubclasses,
+    Array<ProviderClassList>& indicationProviders,
+    CIMPropertyList& propertyList,
+    CIMNamespaceName& sourceNameSpace,
+    String& condition,
+    String& query,
+    String& queryLanguage)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_getCreateParams");
 
     CIMName indicationClassName;
@@ -5862,7 +5907,7 @@ void IndicationService::_getCreateParams (
     //
     //  Get filter properties
     //
-    _subscriptionRepository->getFilterProperties (subscriptionInstance, query,
+    _subscriptionRepository->getFilterProperties(subscriptionInstance, query,
         sourceNameSpace, queryLanguage, filterName);
 
     //
@@ -5875,14 +5920,14 @@ void IndicationService::_getCreateParams (
     //
     //  Get indication class name from filter query (FROM clause)
     //
-    indicationClassName = _getIndicationClassName (queryExpression,
+    indicationClassName = _getIndicationClassName(queryExpression,
                                                    sourceNameSpace);
 
     //
     //  Get list of subclass names for indication class
     //
-    indicationSubclasses = _subscriptionRepository->getIndicationSubclasses
-        (sourceNameSpace, indicationClassName);
+    indicationSubclasses = _subscriptionRepository->getIndicationSubclasses(
+        sourceNameSpace, indicationClassName);
 
 
     //
@@ -5894,24 +5939,24 @@ void IndicationService::_getCreateParams (
          indicationClassName,
          indicationSubclasses);
 
-    if (indicationProviders.size () > 0)
+    if (indicationProviders.size() > 0)
     {
-      condition = _getCondition (query);
+        condition = _getCondition(query);
     }
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
-void IndicationService::_getCreateParams (
-    const CIMInstance & subscriptionInstance,
-    Array <CIMName> & indicationSubclasses,
-    CIMPropertyList & propertyList,
-    CIMNamespaceName & sourceNameSpace,
-    String & condition,
-    String & query,
-    String & queryLanguage)
+void IndicationService::_getCreateParams(
+    const CIMInstance& subscriptionInstance,
+    Array<CIMName>& indicationSubclasses,
+    CIMPropertyList& propertyList,
+    CIMNamespaceName& sourceNameSpace,
+    String& condition,
+    String& query,
+    String& queryLanguage)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_getCreateParams");
 
     condition = String::EMPTY;
@@ -5922,78 +5967,79 @@ void IndicationService::_getCreateParams (
     //
     //  Get filter properties
     //
-    _subscriptionRepository->getFilterProperties (subscriptionInstance, query,
+    _subscriptionRepository->getFilterProperties(subscriptionInstance, query,
         sourceNameSpace, queryLanguage, filterName);
-    QueryExpression queryExpression = _getQueryExpression(query,
-                                                         queryLanguage,
-                                                         sourceNameSpace);
+    QueryExpression queryExpression = _getQueryExpression(
+        query,
+        queryLanguage,
+        sourceNameSpace);
 
     //
     //  Get indication class name from filter query (FROM clause)
     //
-    CIMName indicationClassName = _getIndicationClassName (queryExpression,
-                                                           sourceNameSpace);
+    CIMName indicationClassName =
+        _getIndicationClassName(queryExpression, sourceNameSpace);
+
     //
     //  Get required property list from filter query (WHERE clause)
     //
-    propertyList = _getPropertyList (queryExpression,
+    propertyList = _getPropertyList(queryExpression,
         sourceNameSpace, indicationClassName);
 
     //
     //  Get condition from filter query (WHERE clause)
     //
-    condition = _getCondition (query);
+    condition = _getCondition(query);
 
     //
     //  Get list of subclass names for indication class
     //
-    indicationSubclasses = _subscriptionRepository->getIndicationSubclasses
-            (sourceNameSpace, indicationClassName);
+    indicationSubclasses = _subscriptionRepository->getIndicationSubclasses(
+        sourceNameSpace, indicationClassName);
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
-Array <ProviderClassList> IndicationService::_getDeleteParams (
-    const CIMInstance & subscriptionInstance,
-    Array <CIMName> & indicationSubclasses,
-    CIMNamespaceName & sourceNameSpace)
+Array<ProviderClassList> IndicationService::_getDeleteParams(
+    const CIMInstance& subscriptionInstance,
+    Array<CIMName>& indicationSubclasses,
+    CIMNamespaceName& sourceNameSpace)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_getDeleteParams");
 
     String filterQuery;
     String queryLanguage;
     String filterName;
     CIMName indicationClassName;
-    Array <ProviderClassList> indicationProviders;
+    Array<ProviderClassList> indicationProviders;
 
     //
     //  Get filter properties
     //
-    _subscriptionRepository->getFilterProperties (subscriptionInstance,
+    _subscriptionRepository->getFilterProperties(subscriptionInstance,
         filterQuery, sourceNameSpace, queryLanguage, filterName);
-    QueryExpression queryExpression = _getQueryExpression(filterQuery,
-                                                         queryLanguage,
-                                                         sourceNameSpace);
+    QueryExpression queryExpression =
+        _getQueryExpression(filterQuery, queryLanguage, sourceNameSpace);
 
     //
     //  Get indication class name from filter query (FROM clause)
     //
-    indicationClassName = _getIndicationClassName (queryExpression,
-                                                   sourceNameSpace);
+    indicationClassName =
+        _getIndicationClassName(queryExpression, sourceNameSpace);
 
     //
     //  Get list of subclass names for indication class
     //
-    indicationSubclasses = _subscriptionRepository->getIndicationSubclasses
-        (sourceNameSpace, indicationClassName);
+    indicationSubclasses = _subscriptionRepository->getIndicationSubclasses(
+        sourceNameSpace, indicationClassName);
 
     //
     //  Get indication provider class lists from Active Subscriptions table
     //
     ActiveSubscriptionsTableEntry tableValue;
-    if (_subscriptionTable->getSubscriptionEntry
-        (subscriptionInstance.getPath (), tableValue))
+    if (_subscriptionTable->getSubscriptionEntry(
+            subscriptionInstance.getPath(), tableValue))
     {
         indicationProviders = tableValue.providers;
     }
@@ -6004,27 +6050,26 @@ Array <ProviderClassList> IndicationService::_getDeleteParams (
         //
     }
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
     return indicationProviders;
 }
 
-// l10n
-void IndicationService::_sendAsyncCreateRequests
-    (const Array <ProviderClassList> & indicationProviders,
-     const CIMNamespaceName & nameSpace,
-     const CIMPropertyList & propertyList,
-     const String & condition,
-     const String & query,
-     const String & queryLanguage,
-     const CIMInstance & subscription,
-     const AcceptLanguageList & acceptLangs,
-     const ContentLanguageList & contentLangs,
-     const CIMRequestMessage * origRequest,
-     const Array <CIMName> & indicationSubclasses,
-     const String & userName,
-     const String & authType)
+void IndicationService::_sendAsyncCreateRequests(
+    const Array<ProviderClassList>& indicationProviders,
+    const CIMNamespaceName& nameSpace,
+    const CIMPropertyList& propertyList,
+    const String& condition,
+    const String& query,
+    const String& queryLanguage,
+    const CIMInstance& subscription,
+    const AcceptLanguageList& acceptLangs,
+    const ContentLanguageList& contentLangs,
+    const CIMRequestMessage * origRequest,
+    const Array<CIMName>& indicationSubclasses,
+    const String& userName,
+    const String& authType)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_sendAsyncCreateRequests");
 
     CIMValue propValue;
@@ -6040,10 +6085,10 @@ void IndicationService::_sendAsyncCreateRequests
     //
     //  Get repeat notification policy value from subscription instance
     //
-    propValue = subscription.getProperty
-        (subscription.findProperty
-        (_PROPERTY_REPEATNOTIFICATIONPOLICY)).getValue ();
-    propValue.get (repeatNotificationPolicy);
+    propValue = subscription.getProperty(
+        subscription.findProperty(
+            _PROPERTY_REPEATNOTIFICATIONPOLICY)).getValue();
+    propValue.get(repeatNotificationPolicy);
 
     CIMRequestMessage * aggRequest=0;
 
@@ -6059,14 +6104,14 @@ void IndicationService::_sendAsyncCreateRequests
         //
         //  Create Instance or Modify Instance
         //
-        switch (origRequest->getType ())
+        switch (origRequest->getType())
         {
             case CIM_CREATE_INSTANCE_REQUEST_MESSAGE:
             {
                 CIMCreateInstanceRequestMessage * request =
                     (CIMCreateInstanceRequestMessage *) origRequest;
                 CIMCreateInstanceRequestMessage * requestCopy =
-                    new CIMCreateInstanceRequestMessage (* request);
+                    new CIMCreateInstanceRequestMessage(*request);
                 aggRequest = requestCopy;
                 break;
             }
@@ -6076,18 +6121,18 @@ void IndicationService::_sendAsyncCreateRequests
                 CIMModifyInstanceRequestMessage * request =
                     (CIMModifyInstanceRequestMessage *) origRequest;
                 CIMModifyInstanceRequestMessage * requestCopy =
-                    new CIMModifyInstanceRequestMessage (* request);
+                    new CIMModifyInstanceRequestMessage(*request);
                 aggRequest = requestCopy;
                 break;
             }
 
             default:
             {
-                PEG_TRACE_STRING (TRC_INDICATION_SERVICE_INTERNAL,
+                PEG_TRACE_STRING(TRC_INDICATION_SERVICE_INTERNAL,
                     Tracer::LEVEL2, "Unexpected origRequest type " +
-                    String (MessageTypeToString (origRequest->getType ())) +
+                    String(MessageTypeToString(origRequest->getType())) +
                     " in _sendAsyncCreateRequests");
-                PEGASUS_ASSERT (false);
+                PEGASUS_ASSERT(false);
                 break;
             }
         }
@@ -6097,28 +6142,27 @@ void IndicationService::_sendAsyncCreateRequests
     //  Create an aggregate object for the create subscription requests
     //
     IndicationOperationAggregate * operationAggregate =
-        new IndicationOperationAggregate (aggRequest, indicationSubclasses);
-    operationAggregate->setNumberIssued (indicationProviders.size ());
+        new IndicationOperationAggregate(aggRequest, indicationSubclasses);
+    operationAggregate->setNumberIssued(indicationProviders.size());
 
     //
     //  Send Create request to each provider
     //
-    for (Uint32 i = 0; i < indicationProviders.size (); i++)
+    for (Uint32 i = 0; i < indicationProviders.size(); i++)
     {
         //
         //  Create the create subscription request
         //
-// l10n
        CIMCreateSubscriptionRequestMessage * request =
-            new CIMCreateSubscriptionRequestMessage
-                (XmlWriter::getNextMessageId (),
+            new CIMCreateSubscriptionRequestMessage(
+                XmlWriter::getNextMessageId(),
                 nameSpace,
                 subscription,
-                indicationProviders [i].classList,
+                indicationProviders[i].classList,
                 propertyList,
                 repeatNotificationPolicy,
                 query,
-                QueueIdStack (_providerManager, getQueueId ()),
+                QueueIdStack(_providerManager, getQueueId()),
                 authType,
                 userName);
 
@@ -6126,36 +6170,36 @@ void IndicationService::_sendAsyncCreateRequests
         //  Store a copy of the request in the operation aggregate instance
         //
         CIMCreateSubscriptionRequestMessage * requestCopy =
-            new CIMCreateSubscriptionRequestMessage (* request);
-        requestCopy->operationContext.insert(ProviderIdContainer
-            (indicationProviders [i].providerModule
-            ,indicationProviders [i].provider
+            new CIMCreateSubscriptionRequestMessage(*request);
+        requestCopy->operationContext.insert(ProviderIdContainer(
+            indicationProviders[i].providerModule
+            ,indicationProviders[i].provider
 #ifdef PEGASUS_ENABLE_REMOTE_CMPI
-            ,indicationProviders [i].isRemoteNameSpace
-            ,indicationProviders [i].remoteInfo
+            ,indicationProviders[i].isRemoteNameSpace
+            ,indicationProviders[i].remoteInfo
 #endif
             ));
-        operationAggregate->appendRequest (requestCopy);
-        request->operationContext.insert(ProviderIdContainer
-            (indicationProviders [i].providerModule
-            ,indicationProviders [i].provider
+        operationAggregate->appendRequest(requestCopy);
+        request->operationContext.insert(ProviderIdContainer(
+            indicationProviders[i].providerModule
+            ,indicationProviders[i].provider
 #ifdef PEGASUS_ENABLE_REMOTE_CMPI
-            ,indicationProviders [i].isRemoteNameSpace
-            ,indicationProviders [i].remoteInfo
+            ,indicationProviders[i].isRemoteNameSpace
+            ,indicationProviders[i].remoteInfo
 #endif
             ));
-        request->operationContext.insert(SubscriptionInstanceContainer
-            (subscription));
-        request->operationContext.insert(SubscriptionFilterConditionContainer
-            (condition,queryLanguage));
-        request->operationContext.insert(SubscriptionFilterQueryContainer
-            (query,queryLanguage,nameSpace));
+        request->operationContext.insert(
+            SubscriptionInstanceContainer(subscription));
+        request->operationContext.insert(
+            SubscriptionFilterConditionContainer(condition,queryLanguage));
+        request->operationContext.insert(
+            SubscriptionFilterQueryContainer(query,queryLanguage,nameSpace));
         request->operationContext.insert(IdentityContainer(userName));
-        request->operationContext.set(ContentLanguageListContainer
-            (contentLangs));
+        request->operationContext.set(
+            ContentLanguageListContainer(contentLangs));
         request->operationContext.set(AcceptLanguageListContainer(acceptLangs));
 
-        AsyncOpNode * op = this->get_op ();
+        AsyncOpNode * op = this->get_op();
 
         AsyncLegacyOperationStart * async_req =
             new AsyncLegacyOperationStart(
@@ -6164,37 +6208,37 @@ void IndicationService::_sendAsyncCreateRequests
                 request,
                 _queueId);
 
-        SendAsync
-            (op,
+        SendAsync(
+            op,
             _providerManager,
             IndicationService::_aggregationCallBack,
             this,
             operationAggregate);
     }
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
-Array <ProviderClassList> IndicationService::_sendWaitCreateRequests
-    (const Array <ProviderClassList> & indicationProviders,
-     const CIMNamespaceName & nameSpace,
-     const CIMPropertyList & propertyList,
-     const String & condition,
-     const String & query,
-     const String & queryLanguage,
-     const CIMInstance & subscription,
-     const AcceptLanguageList & acceptLangs,
-     const ContentLanguageList & contentLangs,
-     const String & userName,
-     const String & authType)
+Array<ProviderClassList> IndicationService::_sendWaitCreateRequests(
+    const Array<ProviderClassList>& indicationProviders,
+    const CIMNamespaceName& nameSpace,
+    const CIMPropertyList& propertyList,
+    const String& condition,
+    const String& query,
+    const String& queryLanguage,
+    const CIMInstance& subscription,
+    const AcceptLanguageList& acceptLangs,
+    const ContentLanguageList& contentLangs,
+    const String& userName,
+    const String& authType)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_sendWaitCreateRequests");
 
     CIMValue propValue;
     Uint16 repeatNotificationPolicy;
-    Array <ProviderClassList> acceptedProviders;
-    acceptedProviders.clear ();
+    Array<ProviderClassList> acceptedProviders;
+    acceptedProviders.clear();
 
     // If there are no providers to accept the subscription, just return
     if (indicationProviders.size() == 0)
@@ -6206,52 +6250,52 @@ Array <ProviderClassList> IndicationService::_sendWaitCreateRequests
     //
     //  Get repeat notification policy value from subscription instance
     //
-    propValue = subscription.getProperty
-        (subscription.findProperty
-        (_PROPERTY_REPEATNOTIFICATIONPOLICY)).getValue ();
-    propValue.get (repeatNotificationPolicy);
+    propValue = subscription.getProperty(
+        subscription.findProperty(
+            _PROPERTY_REPEATNOTIFICATIONPOLICY)).getValue();
+    propValue.get(repeatNotificationPolicy);
 
     //
     //  Send Create request to each provider
     //
-    for (Uint32 i = 0; i < indicationProviders.size (); i++)
+    for (Uint32 i = 0; i < indicationProviders.size(); i++)
     {
         //
         //  Create the create subscription request
         //
         CIMCreateSubscriptionRequestMessage * request =
-            new CIMCreateSubscriptionRequestMessage
-                (XmlWriter::getNextMessageId (),
+            new CIMCreateSubscriptionRequestMessage(
+                XmlWriter::getNextMessageId(),
                 nameSpace,
                 subscription,
-                indicationProviders [i].classList,
+                indicationProviders[i].classList,
                 propertyList,
                 repeatNotificationPolicy,
                 query,
-                QueueIdStack (_providerManager, getQueueId ()),
+                QueueIdStack(_providerManager, getQueueId()),
                 authType,
                 userName);
 
         //
         //  Set operation context
         //
-        request->operationContext.insert(ProviderIdContainer
-            (indicationProviders [i].providerModule
-            ,indicationProviders [i].provider
+        request->operationContext.insert(ProviderIdContainer(
+            indicationProviders[i].providerModule
+            ,indicationProviders[i].provider
 #ifdef PEGASUS_ENABLE_REMOTE_CMPI
-            ,indicationProviders [i].isRemoteNameSpace
-            ,indicationProviders [i].remoteInfo
+            ,indicationProviders[i].isRemoteNameSpace
+            ,indicationProviders[i].remoteInfo
 #endif
             ));
-        request->operationContext.insert(SubscriptionInstanceContainer
-            (subscription));
-        request->operationContext.insert(SubscriptionFilterConditionContainer
-            (condition,queryLanguage));
-        request->operationContext.insert(SubscriptionFilterQueryContainer
-            (query,queryLanguage,nameSpace));
+        request->operationContext.insert(
+            SubscriptionInstanceContainer(subscription));
+        request->operationContext.insert(
+            SubscriptionFilterConditionContainer(condition,queryLanguage));
+        request->operationContext.insert(
+            SubscriptionFilterQueryContainer(query,queryLanguage,nameSpace));
         request->operationContext.insert(IdentityContainer(userName));
-        request->operationContext.set(ContentLanguageListContainer
-            (contentLangs));
+        request->operationContext.set(
+            ContentLanguageListContainer(contentLangs));
         request->operationContext.set(AcceptLanguageListContainer(acceptLangs));
 
         AsyncLegacyOperationStart * asyncRequest =
@@ -6261,27 +6305,27 @@ Array <ProviderClassList> IndicationService::_sendWaitCreateRequests
                 request,
                 _queueId);
 
-        AsyncReply * asyncReply = SendWait (asyncRequest);
+        AsyncReply * asyncReply = SendWait(asyncRequest);
 
         CIMCreateSubscriptionResponseMessage * response =
-            reinterpret_cast <CIMCreateSubscriptionResponseMessage *>
-            ((static_cast <AsyncLegacyOperationResult *>
-            (asyncReply))->get_result ());
+            reinterpret_cast<CIMCreateSubscriptionResponseMessage *>(
+                (static_cast<AsyncLegacyOperationResult *>(
+                    asyncReply))->get_result());
 
-        if (response->cimException.getCode () == CIM_ERR_SUCCESS)
+        if (response->cimException.getCode() == CIM_ERR_SUCCESS)
         {
-            acceptedProviders.append (indicationProviders [i]);
+            acceptedProviders.append(indicationProviders[i]);
         }
         else
         {
             //
             //  Provider rejected the subscription
             //
-            PEG_TRACE_STRING (TRC_INDICATION_SERVICE_INTERNAL, Tracer::LEVEL3,
+            PEG_TRACE_STRING(TRC_INDICATION_SERVICE_INTERNAL, Tracer::LEVEL3,
                 "Provider (" +
-                indicationProviders [i].provider.getPath ().toString () +
+                indicationProviders[i].provider.getPath().toString() +
                 ") rejected create subscription: " +
-                response->cimException.getMessage ());
+                response->cimException.getMessage());
         }
 
         delete response;
@@ -6289,25 +6333,24 @@ Array <ProviderClassList> IndicationService::_sendWaitCreateRequests
         delete asyncReply;
     }  //  for each indication provider
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
     return acceptedProviders;
 }
 
-// l10n
-void IndicationService::_sendWaitModifyRequests
-    (const Array <ProviderClassList> & indicationProviders,
-     const CIMNamespaceName & nameSpace,
-     const CIMPropertyList & propertyList,
-     const String & condition,
-     const String & query,
-     const String & queryLanguage,
-     const CIMInstance & subscription,
-     const AcceptLanguageList & acceptLangs,
-     const ContentLanguageList & contentLangs,
-     const String & userName,
-     const String & authType)
+void IndicationService::_sendWaitModifyRequests(
+    const Array<ProviderClassList>& indicationProviders,
+     const CIMNamespaceName& nameSpace,
+     const CIMPropertyList& propertyList,
+     const String& condition,
+     const String& query,
+     const String& queryLanguage,
+     const CIMInstance& subscription,
+     const AcceptLanguageList& acceptLangs,
+     const ContentLanguageList& contentLangs,
+     const String& userName,
+     const String& authType)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_sendWaitModifyRequests");
 
     CIMValue propValue;
@@ -6323,50 +6366,49 @@ void IndicationService::_sendWaitModifyRequests
     //
     //  Get repeat notification policy value from subscription instance
     //
-    propValue = subscription.getProperty
-        (subscription.findProperty
-        (_PROPERTY_REPEATNOTIFICATIONPOLICY)).getValue ();
-    propValue.get (repeatNotificationPolicy);
+    propValue = subscription.getProperty(
+        subscription.findProperty(
+            _PROPERTY_REPEATNOTIFICATIONPOLICY)).getValue();
+    propValue.get(repeatNotificationPolicy);
 
     //
     //  Send Modify request to each provider
     //
-    for (Uint32 i = 0; i < indicationProviders.size (); i++)
+    for (Uint32 i = 0; i < indicationProviders.size(); i++)
     {
-// l10n
         CIMModifySubscriptionRequestMessage * request =
-            new CIMModifySubscriptionRequestMessage
-                (XmlWriter::getNextMessageId (),
+            new CIMModifySubscriptionRequestMessage(
+                XmlWriter::getNextMessageId(),
                 nameSpace,
                 subscription,
-                indicationProviders [i].classList,
+                indicationProviders[i].classList,
                 propertyList,
                 repeatNotificationPolicy,
                 query,
-                QueueIdStack (_providerManager, getQueueId ()),
+                QueueIdStack(_providerManager, getQueueId()),
                 authType,
                 userName);
 
         //
         //  Set operation context
         //
-        request->operationContext.insert(ProviderIdContainer
-            (indicationProviders [i].providerModule
-            ,indicationProviders [i].provider
+        request->operationContext.insert(ProviderIdContainer(
+            indicationProviders[i].providerModule
+            ,indicationProviders[i].provider
 #ifdef PEGASUS_ENABLE_REMOTE_CMPI
-            ,indicationProviders [i].isRemoteNameSpace
-            ,indicationProviders [i].remoteInfo
+            ,indicationProviders[i].isRemoteNameSpace
+            ,indicationProviders[i].remoteInfo
 #endif
             ));
-        request->operationContext.insert(SubscriptionInstanceContainer
-            (subscription));
-        request->operationContext.insert(SubscriptionFilterConditionContainer
-            (condition,queryLanguage));
-        request->operationContext.insert(SubscriptionFilterQueryContainer
-            (query,queryLanguage,nameSpace));
+        request->operationContext.insert(
+            SubscriptionInstanceContainer(subscription));
+        request->operationContext.insert(
+            SubscriptionFilterConditionContainer(condition,queryLanguage));
+        request->operationContext.insert(
+            SubscriptionFilterQueryContainer(query,queryLanguage,nameSpace));
         request->operationContext.insert(IdentityContainer(userName));
-        request->operationContext.set(ContentLanguageListContainer
-            (contentLangs));
+        request->operationContext.set(
+            ContentLanguageListContainer(contentLangs));
         request->operationContext.set(AcceptLanguageListContainer(acceptLangs));
 
         AsyncLegacyOperationStart * asyncRequest =
@@ -6376,23 +6418,23 @@ void IndicationService::_sendWaitModifyRequests
                 request,
                 _queueId);
 
-        AsyncReply * asyncReply = SendWait (asyncRequest);
+        AsyncReply * asyncReply = SendWait(asyncRequest);
 
         CIMModifySubscriptionResponseMessage * response =
-            reinterpret_cast <CIMModifySubscriptionResponseMessage *>
-            ((static_cast <AsyncLegacyOperationResult *>
-            (asyncReply))->get_result ());
+            reinterpret_cast<CIMModifySubscriptionResponseMessage *>(
+                (static_cast<AsyncLegacyOperationResult *>(
+                    asyncReply))->get_result());
 
-        if (!(response->cimException.getCode () == CIM_ERR_SUCCESS))
+        if (!(response->cimException.getCode() == CIM_ERR_SUCCESS))
         {
             //
             //  Provider rejected the subscription
             //
-            PEG_TRACE_STRING (TRC_INDICATION_SERVICE_INTERNAL, Tracer::LEVEL3,
+            PEG_TRACE_STRING(TRC_INDICATION_SERVICE_INTERNAL, Tracer::LEVEL3,
                 "Provider (" +
-                indicationProviders [i].provider.getPath ().toString () +
+                indicationProviders[i].provider.getPath().toString() +
                 ") rejected modify subscription: " +
-                response->cimException.getMessage ());
+                response->cimException.getMessage());
         }
 
         delete response;
@@ -6400,22 +6442,21 @@ void IndicationService::_sendWaitModifyRequests
         delete asyncReply;
     }  //  for each indication provider
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
-// l10n
-void IndicationService::_sendAsyncDeleteRequests
-    (const Array <ProviderClassList> & indicationProviders,
-     const CIMNamespaceName & nameSpace,
-     const CIMInstance & subscription,
-     const AcceptLanguageList & acceptLangs,
-     const ContentLanguageList & contentLangs,
-     const CIMRequestMessage * origRequest,
-     const Array <CIMName> & indicationSubclasses,
-     const String & userName,
-     const String & authType)
+void IndicationService::_sendAsyncDeleteRequests(
+    const Array<ProviderClassList>& indicationProviders,
+    const CIMNamespaceName& nameSpace,
+    const CIMInstance& subscription,
+    const AcceptLanguageList& acceptLangs,
+    const ContentLanguageList& contentLangs,
+    const CIMRequestMessage * origRequest,
+    const Array<CIMName>& indicationSubclasses,
+    const String& userName,
+    const String& authType)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_sendAsyncDeleteRequests");
 
     // If there are no providers to delete the subscription, just return
@@ -6428,8 +6469,8 @@ void IndicationService::_sendAsyncDeleteRequests
     //
     //  Update subscription hash tables
     //
-    _subscriptionTable->removeSubscription
-        (subscription,
+    _subscriptionTable->removeSubscription(
+        subscription,
         indicationSubclasses,
         nameSpace,
         indicationProviders);
@@ -6449,14 +6490,14 @@ void IndicationService::_sendAsyncDeleteRequests
         //
         //  Delete Instance or Modify Instance
         //
-        switch (origRequest->getType ())
+        switch (origRequest->getType())
         {
             case CIM_DELETE_INSTANCE_REQUEST_MESSAGE:
             {
                 CIMDeleteInstanceRequestMessage * request =
                     (CIMDeleteInstanceRequestMessage *) origRequest;
                 CIMDeleteInstanceRequestMessage * requestCopy =
-                    new CIMDeleteInstanceRequestMessage (* request);
+                    new CIMDeleteInstanceRequestMessage(*request);
                 aggRequest = requestCopy;
                 break;
             }
@@ -6466,18 +6507,18 @@ void IndicationService::_sendAsyncDeleteRequests
                 CIMModifyInstanceRequestMessage * request =
                     (CIMModifyInstanceRequestMessage *) origRequest;
                 CIMModifyInstanceRequestMessage * requestCopy =
-                    new CIMModifyInstanceRequestMessage (* request);
+                    new CIMModifyInstanceRequestMessage(*request);
                 aggRequest = requestCopy;
                 break;
             }
 
             default:
             {
-                PEG_TRACE_STRING (TRC_INDICATION_SERVICE_INTERNAL,
+                PEG_TRACE_STRING(TRC_INDICATION_SERVICE_INTERNAL,
                     Tracer::LEVEL2, "Unexpected origRequest type " +
-                    String (MessageTypeToString (origRequest->getType ())) +
+                    String(MessageTypeToString(origRequest->getType())) +
                     " in _sendAsyncDeleteRequests");
-                PEGASUS_ASSERT (false);
+                PEGASUS_ASSERT(false);
                 break;
             }
         }
@@ -6487,22 +6528,21 @@ void IndicationService::_sendAsyncDeleteRequests
     //  Create an aggregate object for the delete subscription requests
     //
     IndicationOperationAggregate * operationAggregate =
-        new IndicationOperationAggregate (aggRequest, indicationSubclasses);
-    operationAggregate->setNumberIssued (indicationProviders.size ());
+        new IndicationOperationAggregate(aggRequest, indicationSubclasses);
+    operationAggregate->setNumberIssued(indicationProviders.size());
 
     //
     //  Send Delete request to each provider
     //
-    for (Uint32 i = 0; i < indicationProviders.size (); i++)
+    for (Uint32 i = 0; i < indicationProviders.size(); i++)
     {
-// l10n
         CIMDeleteSubscriptionRequestMessage * request =
-            new CIMDeleteSubscriptionRequestMessage
-                (XmlWriter::getNextMessageId (),
+            new CIMDeleteSubscriptionRequestMessage(
+                XmlWriter::getNextMessageId(),
                 nameSpace,
                 subscription,
-                indicationProviders [i].classList,
-                QueueIdStack (_providerManager, getQueueId ()),
+                indicationProviders[i].classList,
+                QueueIdStack(_providerManager, getQueueId()),
                 authType,
                 userName);
 
@@ -6510,33 +6550,33 @@ void IndicationService::_sendAsyncDeleteRequests
         //  Store a copy of the request in the operation aggregate instance
         //
         CIMDeleteSubscriptionRequestMessage * requestCopy =
-            new CIMDeleteSubscriptionRequestMessage (* request);
-        requestCopy->operationContext.insert(ProviderIdContainer
-            (indicationProviders [i].providerModule
-            ,indicationProviders [i].provider
+            new CIMDeleteSubscriptionRequestMessage(*request);
+        requestCopy->operationContext.insert(ProviderIdContainer(
+            indicationProviders[i].providerModule
+            ,indicationProviders[i].provider
 #ifdef PEGASUS_ENABLE_REMOTE_CMPI
-            ,indicationProviders [i].isRemoteNameSpace
-            ,indicationProviders [i].remoteInfo
+            ,indicationProviders[i].isRemoteNameSpace
+            ,indicationProviders[i].remoteInfo
 #endif
              ));
-        operationAggregate->appendRequest (requestCopy);
-        request->operationContext.insert(ProviderIdContainer
-            (indicationProviders [i].providerModule
-            ,indicationProviders [i].provider
+        operationAggregate->appendRequest(requestCopy);
+        request->operationContext.insert(ProviderIdContainer(
+            indicationProviders[i].providerModule
+            ,indicationProviders[i].provider
 #ifdef PEGASUS_ENABLE_REMOTE_CMPI
-            ,indicationProviders [i].isRemoteNameSpace
-            ,indicationProviders [i].remoteInfo
+            ,indicationProviders[i].isRemoteNameSpace
+            ,indicationProviders[i].remoteInfo
 #endif
             ));
 
-        request->operationContext.insert(SubscriptionInstanceContainer
-            (subscription));
+        request->operationContext.insert(
+            SubscriptionInstanceContainer(subscription));
         request->operationContext.insert(IdentityContainer(userName));
-        request->operationContext.set(ContentLanguageListContainer
-            (contentLangs));
+        request->operationContext.set(
+            ContentLanguageListContainer(contentLangs));
         request->operationContext.set(AcceptLanguageListContainer(acceptLangs));
 
-        AsyncOpNode * op = this->get_op ();
+        AsyncOpNode * op = this->get_op();
 
         AsyncLegacyOperationStart * async_req =
             new AsyncLegacyOperationStart(
@@ -6545,27 +6585,27 @@ void IndicationService::_sendAsyncDeleteRequests
                 request,
                 _queueId);
 
-        SendAsync
-            (op,
+        SendAsync(
+            op,
             _providerManager,
             IndicationService::_aggregationCallBack,
             this,
             operationAggregate);
     }
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
-void IndicationService::_sendWaitDeleteRequests
-    (const Array <ProviderClassList> & indicationProviders,
-     const CIMNamespaceName & nameSpace,
-     const CIMInstance & subscription,
-     const AcceptLanguageList & acceptLangs,
-     const ContentLanguageList & contentLangs,
-     const String & userName,
-     const String & authType)
+void IndicationService::_sendWaitDeleteRequests(
+    const Array<ProviderClassList>& indicationProviders,
+    const CIMNamespaceName& nameSpace,
+    const CIMInstance& subscription,
+    const AcceptLanguageList& acceptLangs,
+    const ContentLanguageList& contentLangs,
+    const String& userName,
+    const String& authType)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_sendWaitDeleteRequests");
 
     // If there are no providers to delete the subscription, just return
@@ -6578,34 +6618,34 @@ void IndicationService::_sendWaitDeleteRequests
     //
     //  Send Delete request to each provider
     //
-    for (Uint32 i = 0; i < indicationProviders.size (); i++)
+    for (Uint32 i = 0; i < indicationProviders.size(); i++)
     {
         CIMDeleteSubscriptionRequestMessage * request =
-            new CIMDeleteSubscriptionRequestMessage
-                (XmlWriter::getNextMessageId (),
+            new CIMDeleteSubscriptionRequestMessage(
+                XmlWriter::getNextMessageId(),
                 nameSpace,
                 subscription,
-                indicationProviders [i].classList,
-                QueueIdStack (_providerManager, getQueueId ()),
+                indicationProviders[i].classList,
+                QueueIdStack(_providerManager, getQueueId()),
                 authType,
                 userName);
 
         //
         //  Set operation context
         //
-        request->operationContext.insert(ProviderIdContainer
-            (indicationProviders [i].providerModule
-            ,indicationProviders [i].provider
+        request->operationContext.insert(ProviderIdContainer(
+            indicationProviders[i].providerModule
+            ,indicationProviders[i].provider
 #ifdef PEGASUS_ENABLE_REMOTE_CMPI
-            ,indicationProviders [i].isRemoteNameSpace
-            ,indicationProviders [i].remoteInfo
+            ,indicationProviders[i].isRemoteNameSpace
+            ,indicationProviders[i].remoteInfo
 #endif
             ));
-        request->operationContext.insert(SubscriptionInstanceContainer
-            (subscription));
+        request->operationContext.insert(
+            SubscriptionInstanceContainer(subscription));
         request->operationContext.insert(IdentityContainer(userName));
-        request->operationContext.set(ContentLanguageListContainer
-            (contentLangs));
+        request->operationContext.set(
+            ContentLanguageListContainer(contentLangs));
         request->operationContext.set(AcceptLanguageListContainer(acceptLangs));
 
         AsyncLegacyOperationStart * asyncRequest =
@@ -6615,23 +6655,23 @@ void IndicationService::_sendWaitDeleteRequests
                 request,
                 _queueId);
 
-        AsyncReply * asyncReply = SendWait (asyncRequest);
+        AsyncReply * asyncReply = SendWait(asyncRequest);
 
         CIMDeleteSubscriptionResponseMessage * response =
-            reinterpret_cast <CIMDeleteSubscriptionResponseMessage *>
-            ((static_cast <AsyncLegacyOperationResult *>
-            (asyncReply))->get_result ());
+            reinterpret_cast<CIMDeleteSubscriptionResponseMessage *>(
+                (static_cast<AsyncLegacyOperationResult *>(
+                    asyncReply))->get_result());
 
-        if (!(response->cimException.getCode () == CIM_ERR_SUCCESS))
+        if (!(response->cimException.getCode() == CIM_ERR_SUCCESS))
         {
             //
             //  Provider rejected the subscription
             //
-            PEG_TRACE_STRING (TRC_INDICATION_SERVICE_INTERNAL, Tracer::LEVEL3,
+            PEG_TRACE_STRING(TRC_INDICATION_SERVICE_INTERNAL, Tracer::LEVEL3,
                 "Provider (" +
-                indicationProviders [i].provider.getPath ().toString () +
+                indicationProviders[i].provider.getPath().toString() +
                 ") rejected delete subscription: " +
-                response->cimException.getMessage ());
+                response->cimException.getMessage());
         }
 
         delete response;
@@ -6639,88 +6679,88 @@ void IndicationService::_sendWaitDeleteRequests
         delete asyncReply;
     }  //  for each indication provider
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
-void IndicationService::_aggregationCallBack (
+void IndicationService::_aggregationCallBack(
     AsyncOpNode * op,
     MessageQueue * q,
     void * userParameter)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_aggregationCallBack");
 
-    IndicationService * service = static_cast <IndicationService *> (q);
+    IndicationService * service = static_cast<IndicationService *>(q);
 
     AsyncRequest * asyncRequest =
         static_cast<AsyncRequest *>(op->removeRequest());
     AsyncReply * asyncReply = static_cast<AsyncReply *>(op->removeResponse());
 
     IndicationOperationAggregate * operationAggregate =
-        reinterpret_cast <IndicationOperationAggregate *> (userParameter);
-    PEGASUS_ASSERT (operationAggregate != 0);
+        reinterpret_cast<IndicationOperationAggregate *>(userParameter);
+    PEGASUS_ASSERT(operationAggregate != 0);
 
     CIMResponseMessage * response = 0;
-    Uint32 msgType = asyncReply->getType ();
-    PEGASUS_ASSERT ((msgType == async_messages::ASYNC_LEGACY_OP_RESULT) ||
-                    (msgType == async_messages::ASYNC_MODULE_OP_RESULT));
+    Uint32 msgType = asyncReply->getType();
+    PEGASUS_ASSERT((msgType == async_messages::ASYNC_LEGACY_OP_RESULT) ||
+                   (msgType == async_messages::ASYNC_MODULE_OP_RESULT));
 
     if (msgType == async_messages::ASYNC_LEGACY_OP_RESULT)
     {
-        response = reinterpret_cast <CIMResponseMessage *>
-            ((static_cast <AsyncLegacyOperationResult *>
-            (asyncReply))->get_result ());
+        response = reinterpret_cast<CIMResponseMessage *>(
+            (static_cast<AsyncLegacyOperationResult *>(
+                asyncReply))->get_result());
     }
     else if (msgType == async_messages::ASYNC_MODULE_OP_RESULT)
     {
-        response = reinterpret_cast <CIMResponseMessage *>
-            ((static_cast <AsyncModuleOperationResult *>
-            (asyncReply))->get_result ());
+        response = reinterpret_cast<CIMResponseMessage *>(
+            (static_cast<AsyncModuleOperationResult *>(
+                asyncReply))->get_result());
     }
 
-    PEGASUS_ASSERT (response != 0);
+    PEGASUS_ASSERT(response != 0);
 
     delete asyncRequest;
     delete asyncReply;
-    op->release ();
-    service->return_op (op);
+    op->release();
+    service->return_op(op);
 
-    Boolean isDoneAggregation = operationAggregate->appendResponse (response);
+    Boolean isDoneAggregation = operationAggregate->appendResponse(response);
     if (isDoneAggregation)
     {
-        service->_handleOperationResponseAggregation (operationAggregate);
+        service->_handleOperationResponseAggregation(operationAggregate);
     }
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
-void IndicationService::_handleOperationResponseAggregation (
+void IndicationService::_handleOperationResponseAggregation(
     IndicationOperationAggregate * operationAggregate)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_handleOperationResponseAggregation");
 
-    switch (operationAggregate->getRequest (0)->getType ())
+    switch (operationAggregate->getRequest(0)->getType())
     {
         case CIM_CREATE_SUBSCRIPTION_REQUEST_MESSAGE:
         {
-            _handleCreateResponseAggregation (operationAggregate);
+            _handleCreateResponseAggregation(operationAggregate);
             break;
         }
 
         case CIM_DELETE_SUBSCRIPTION_REQUEST_MESSAGE:
         {
-            _handleDeleteResponseAggregation (operationAggregate);
+            _handleDeleteResponseAggregation(operationAggregate);
             break;
         }
 
         default:
         {
-            PEG_TRACE_STRING (TRC_INDICATION_SERVICE_INTERNAL, Tracer::LEVEL2,
-                "Unexpected request type " + String (MessageTypeToString
-                    (operationAggregate->getRequest (0)->getType ())) +
+            PEG_TRACE_STRING(TRC_INDICATION_SERVICE_INTERNAL, Tracer::LEVEL2,
+                "Unexpected request type " + String(MessageTypeToString(
+                    operationAggregate->getRequest(0)->getType())) +
                 " in _handleOperationResponseAggregation");
-            PEGASUS_ASSERT (false);
+            PEGASUS_ASSERT(false);
             break;
         }
     }
@@ -6730,65 +6770,65 @@ void IndicationService::_handleOperationResponseAggregation (
     //
     delete operationAggregate;
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
-void IndicationService::_handleCreateResponseAggregation (
+void IndicationService::_handleCreateResponseAggregation(
     IndicationOperationAggregate * operationAggregate)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_handleCreateResponseAggregation");
 
-    Array <ProviderClassList> acceptedProviders;
+    Array<ProviderClassList> acceptedProviders;
     CIMObjectPath instanceRef;
     CIMException cimException;
 
     //
     //  Examine provider responses
     //
-    acceptedProviders.clear ();
-    for (Uint32 i = 0; i < operationAggregate->getNumberResponses (); i++)
+    acceptedProviders.clear();
+    for (Uint32 i = 0; i < operationAggregate->getNumberResponses(); i++)
     {
         //
         //  Find provider from which response was sent
         //
-        CIMResponseMessage * response = operationAggregate->getResponse (i);
-        ProviderClassList provider = operationAggregate->findProvider
-            (response->messageId);
-        if (response->cimException.getCode () == CIM_ERR_SUCCESS)
+        CIMResponseMessage * response = operationAggregate->getResponse(i);
+        ProviderClassList provider = operationAggregate->findProvider(
+            response->messageId);
+        if (response->cimException.getCode() == CIM_ERR_SUCCESS)
         {
             //
             //  If response is SUCCESS, provider accepted the subscription
             //  Add provider to list of providers that accepted subscription
             //
-            acceptedProviders.append (provider);
+            acceptedProviders.append(provider);
         }
         else
         {
-            PEG_TRACE_STRING (TRC_INDICATION_SERVICE_INTERNAL, Tracer::LEVEL3,
+            PEG_TRACE_STRING(TRC_INDICATION_SERVICE_INTERNAL, Tracer::LEVEL3,
                 "Provider (" + provider.provider.getPath().toString() +
                 ") rejected create subscription: " +
-                response->cimException.getMessage ());
+                response->cimException.getMessage());
         }
     }
 
     CIMCreateSubscriptionRequestMessage * request =
         (CIMCreateSubscriptionRequestMessage *)
-            operationAggregate->getRequest (0);
-    if (acceptedProviders.size () == 0)
+            operationAggregate->getRequest(0);
+    if (acceptedProviders.size() == 0)
     {
         //
         //  No providers accepted this subscription
         //
-        if (operationAggregate->requiresResponse ())
+        if (operationAggregate->requiresResponse())
         {
             //
             //  For Create Instance or Modify Instance request, set CIM
             //  exception for response
             //
             // l10n
-            cimException = PEGASUS_CIM_EXCEPTION_L (CIM_ERR_NOT_SUPPORTED,
-                MessageLoaderParms (_MSG_NOT_ACCEPTED_KEY, _MSG_NOT_ACCEPTED));
+            cimException = PEGASUS_CIM_EXCEPTION_L(CIM_ERR_NOT_SUPPORTED,
+                MessageLoaderParms(_MSG_NOT_ACCEPTED_KEY, _MSG_NOT_ACCEPTED));
         }
     }
 
@@ -6797,7 +6837,7 @@ void IndicationService::_handleCreateResponseAggregation (
         //
         //  At least one provider accepted the subscription
         //
-        if (operationAggregate->getOrigType () ==
+        if (operationAggregate->getOrigType() ==
             CIM_CREATE_INSTANCE_REQUEST_MESSAGE)
         {
             //
@@ -6805,13 +6845,13 @@ void IndicationService::_handleCreateResponseAggregation (
             //
             CIMCreateInstanceRequestMessage * origRequest =
                 (CIMCreateInstanceRequestMessage *)
-                    operationAggregate->getOrigRequest ();
+                    operationAggregate->getOrigRequest();
 
             CIMInstance instance = request->subscriptionInstance;
             try
             {
-                instanceRef = _subscriptionRepository->createInstance
-                    (request->subscriptionInstance, origRequest->nameSpace,
+                instanceRef = _subscriptionRepository->createInstance(
+                    request->subscriptionInstance, origRequest->nameSpace,
                     ((IdentityContainer)origRequest->operationContext.get
                         (IdentityContainer::NAME)).getUserName(),
                     ((AcceptLanguageListContainer)request->operationContext.get
@@ -6819,45 +6859,45 @@ void IndicationService::_handleCreateResponseAggregation (
                     ((ContentLanguageListContainer)request->operationContext.get
                         (ContentLanguageListContainer::NAME)).getLanguages(),
                         true);
-                instanceRef.setNameSpace
-                    (request->subscriptionInstance.getPath().getNameSpace());
-                instance.setPath (instanceRef);
+                instanceRef.setNameSpace(
+                    request->subscriptionInstance.getPath().getNameSpace());
+                instance.setPath(instanceRef);
             }
-            catch (CIMException & exception)
+            catch (CIMException& exception)
             {
                 cimException = exception;
             }
-            catch (Exception & exception)
+            catch (Exception& exception)
             {
-                cimException = PEGASUS_CIM_EXCEPTION
-                    (CIM_ERR_FAILED, exception.getMessage ());
+                cimException = PEGASUS_CIM_EXCEPTION(
+                    CIM_ERR_FAILED, exception.getMessage());
             }
 
-            if (cimException.getCode () == CIM_ERR_SUCCESS)
+            if (cimException.getCode() == CIM_ERR_SUCCESS)
             {
                 //
                 //  Insert entries into the subscription hash tables
                 //
-                _subscriptionTable->insertSubscription
-                    (instance,
+                _subscriptionTable->insertSubscription(
+                    instance,
                     acceptedProviders,
-                    operationAggregate->getIndicationSubclasses (),
+                    operationAggregate->getIndicationSubclasses(),
                     request->nameSpace);
 
             }
         }
         else  //  CIM_MODIFY_INSTANCE_REQUEST_MESSAGE
         {
-            PEGASUS_ASSERT (operationAggregate->getOrigType () ==
+            PEGASUS_ASSERT(operationAggregate->getOrigType() ==
                 CIM_MODIFY_INSTANCE_REQUEST_MESSAGE);
 
             //
             //  Insert entries into the subscription hash tables
             //
-            _subscriptionTable->insertSubscription
-                (request->subscriptionInstance,
+            _subscriptionTable->insertSubscription(
+                request->subscriptionInstance,
                 acceptedProviders,
-                operationAggregate->getIndicationSubclasses (),
+                operationAggregate->getIndicationSubclasses(),
                 request->nameSpace);
         }
     }
@@ -6865,9 +6905,9 @@ void IndicationService::_handleCreateResponseAggregation (
     //
     //  For Create Instance or Modify Instance request, send response
     //
-    if (operationAggregate->requiresResponse ())
+    if (operationAggregate->requiresResponse())
     {
-        if (operationAggregate->getOrigType () ==
+        if (operationAggregate->getOrigType() ==
             CIM_CREATE_INSTANCE_REQUEST_MESSAGE)
         {
             // Note: don't need to set Content-language in the response
@@ -6877,125 +6917,125 @@ void IndicationService::_handleCreateResponseAggregation (
             PEGASUS_ASSERT(response != 0);
             response->cimException = cimException;
             response->instanceName = instanceRef;
-            _enqueueResponse (operationAggregate->getOrigRequest (), response);
+            _enqueueResponse(operationAggregate->getOrigRequest(), response);
         }
 
         else  //  CIM_MODIFY_INSTANCE_REQUEST_MESSAGE
         {
-            PEGASUS_ASSERT (operationAggregate->getOrigType () ==
-                            CIM_MODIFY_INSTANCE_REQUEST_MESSAGE);
+            PEGASUS_ASSERT(operationAggregate->getOrigType () ==
+                CIM_MODIFY_INSTANCE_REQUEST_MESSAGE);
             // l10n
             // Note: don't need to set Content-language in the response
             //
             CIMResponseMessage * response =
-                operationAggregate->getOrigRequest ()->buildResponse ();
+                operationAggregate->getOrigRequest()->buildResponse();
             response->cimException = cimException;
-            _enqueueResponse (operationAggregate->getOrigRequest (), response);
+            _enqueueResponse(operationAggregate->getOrigRequest(), response);
         }
     }
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
-void IndicationService::_handleDeleteResponseAggregation (
+void IndicationService::_handleDeleteResponseAggregation(
     IndicationOperationAggregate * operationAggregate)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_handleDeleteResponseAggregation");
 
     CIMException cimException;
-    Array <ProviderClassList> checkProviders;
+    Array<ProviderClassList> checkProviders;
 
     //
     //  Examine provider responses
     //
-    for (Uint32 i = 0; i < operationAggregate->getNumberResponses (); i++)
+    for (Uint32 i = 0; i < operationAggregate->getNumberResponses(); i++)
     {
         //
         //  Find provider from which response was sent and add to list
         //
-        CIMResponseMessage * response = operationAggregate->getResponse (i);
-        ProviderClassList provider = operationAggregate->findProvider
-            (response->messageId);
-        checkProviders.append (provider);
+        CIMResponseMessage * response = operationAggregate->getResponse(i);
+        ProviderClassList provider = operationAggregate->findProvider(
+            response->messageId);
+        checkProviders.append(provider);
 
         //
         //  If response is not SUCCESS, provider rejected the delete
         //
-        if (response->cimException.getCode () != CIM_ERR_SUCCESS)
+        if (response->cimException.getCode() != CIM_ERR_SUCCESS)
         {
             //
             //  Log a trace message
             //
-            PEG_TRACE_STRING (TRC_INDICATION_SERVICE_INTERNAL, Tracer::LEVEL3,
-                "Provider (" + provider.provider.getPath ().toString() +
+            PEG_TRACE_STRING(TRC_INDICATION_SERVICE_INTERNAL, Tracer::LEVEL3,
+                "Provider (" + provider.provider.getPath().toString() +
                 ") rejected delete subscription: " +
-                response->cimException.getMessage ());
+                response->cimException.getMessage());
         }
     }
 
     //
     //  For Delete Instance or Modify Instance request, send response
     //
-    if (operationAggregate->requiresResponse ())
+    if (operationAggregate->requiresResponse())
     {
         CIMResponseMessage * response;
-        if (operationAggregate->getOrigType () ==
+        if (operationAggregate->getOrigType() ==
             CIM_DELETE_INSTANCE_REQUEST_MESSAGE)
         {
             // l10n
             // Note: don't need to set Content-language in the response
-            response = operationAggregate->getOrigRequest ()->buildResponse ();
+            response = operationAggregate->getOrigRequest()->buildResponse();
             response->cimException = cimException;
         }
 
         else  //  CIM_MODIFY_INSTANCE_REQUEST_MESSAGE
         {
-            PEGASUS_ASSERT (operationAggregate->getOrigType () ==
-                            CIM_MODIFY_INSTANCE_REQUEST_MESSAGE);
+            PEGASUS_ASSERT(operationAggregate->getOrigType() ==
+                CIM_MODIFY_INSTANCE_REQUEST_MESSAGE);
             // l10n
             // Note: don't need to set Content-language in the response
-            response = operationAggregate->getOrigRequest ()->buildResponse ();
+            response = operationAggregate->getOrigRequest()->buildResponse();
             response->cimException = cimException;
         }
 
-        _enqueueResponse (operationAggregate->getOrigRequest (), response);
+        _enqueueResponse(operationAggregate->getOrigRequest(), response);
     }
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
-CIMInstance IndicationService::_createAlertInstance (
-    const CIMName & alertClassName,
-    const Array <CIMInstance> & subscriptions)
+CIMInstance IndicationService::_createAlertInstance(
+    const CIMName& alertClassName,
+    const Array<CIMInstance>& subscriptions)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_createAlertInstance");
 
-    CIMInstance indicationInstance (alertClassName);
+    CIMInstance indicationInstance(alertClassName);
 
     //
     //  Add property values for all required properties of CIM_AlertIndication
     //
-    indicationInstance.addProperty
-        (CIMProperty (_PROPERTY_ALERTTYPE, CIMValue ((Uint16) _TYPE_OTHER)));
+    indicationInstance.addProperty(
+        CIMProperty(_PROPERTY_ALERTTYPE, CIMValue((Uint16) _TYPE_OTHER)));
     //
     //  ATTN: what should Other Alert Type value be??
     //  Currently using Alert class name
     //
-    indicationInstance.addProperty
-        (CIMProperty (_PROPERTY_OTHERALERTTYPE, alertClassName.getString()));
+    indicationInstance.addProperty(
+        CIMProperty(_PROPERTY_OTHERALERTTYPE, alertClassName.getString()));
 
-    indicationInstance.addProperty
-        (CIMProperty (_PROPERTY_PERCEIVEDSEVERITY,
-                      CIMValue ((Uint16) _SEVERITY_WARNING)));
+    indicationInstance.addProperty(
+        CIMProperty(_PROPERTY_PERCEIVEDSEVERITY,
+            CIMValue((Uint16) _SEVERITY_WARNING)));
     //
     //  ATTN: what should Probable Cause value be??
     //  Currently using Unknown
     //
-    indicationInstance.addProperty
-        (CIMProperty (_PROPERTY_PROBABLECAUSE,
-                      CIMValue ((Uint16) _CAUSE_UNKNOWN)));
+    indicationInstance.addProperty(
+        CIMProperty(_PROPERTY_PROBABLECAUSE,
+            CIMValue((Uint16) _CAUSE_UNKNOWN)));
 
     //
     //  Add properties specific to each alert class
@@ -7004,17 +7044,17 @@ CIMInstance IndicationService::_createAlertInstance (
     //  one of the properties will be a list of affected subscriptions
     //  It is for that reason that subscriptions is passed in as a parameter
     //
-    if (alertClassName.equal (_CLASS_CIMOM_SHUTDOWN_ALERT))
+    if (alertClassName.equal(_CLASS_CIMOM_SHUTDOWN_ALERT))
     {
     }
-    else if (alertClassName.equal (_CLASS_NO_PROVIDER_ALERT))
+    else if (alertClassName.equal(_CLASS_NO_PROVIDER_ALERT))
     {
     }
-    else if (alertClassName.equal (_CLASS_PROVIDER_TERMINATED_ALERT))
+    else if (alertClassName.equal(_CLASS_PROVIDER_TERMINATED_ALERT))
     {
     }
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
     return indicationInstance;
 }
 
@@ -7024,7 +7064,7 @@ void IndicationService::_sendAlertsCallBack(AsyncOpNode *op,
     MessageQueue *q,
     void *parm)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_sendAlertsCallBack");
 
    IndicationService *service =
@@ -7034,13 +7074,13 @@ void IndicationService::_sendAlertsCallBack(AsyncOpNode *op,
 
    AsyncRequest *asyncRequest = static_cast<AsyncRequest *>(op->get_request());
    AsyncReply *asyncReply = static_cast<AsyncReply *>(op->get_response());
-   CIMRequestMessage *request = reinterpret_cast<CIMRequestMessage *>
-      ((static_cast<AsyncLegacyOperationStart *>(asyncRequest))->get_action());
+   CIMRequestMessage *request = reinterpret_cast<CIMRequestMessage *>(
+      (static_cast<AsyncLegacyOperationStart *>(asyncRequest))->get_action());
 
    CIMHandleIndicationResponseMessage* response =
-      reinterpret_cast<CIMHandleIndicationResponseMessage *>
-      ((static_cast<AsyncLegacyOperationResult *>
-      (asyncReply))->get_result());
+      reinterpret_cast<CIMHandleIndicationResponseMessage *>(
+          (static_cast<AsyncLegacyOperationResult *>(
+              asyncReply))->get_result());
 
    PEGASUS_ASSERT(response != 0);
    if (response->cimException.getCode() == CIM_ERR_SUCCESS)
@@ -7056,8 +7096,8 @@ void IndicationService::_sendAlertsCallBack(AsyncOpNode *op,
    //  again
    //
 
-// << Mon Jul 15 09:59:16 2002 mdd >> handler is allocated as an element in an array,
-// don't delete here.
+// << Mon Jul 15 09:59:16 2002 mdd >> handler is allocated as an element in
+// an array, don't delete here.
 //   delete _handler;
    delete request;
    delete response;
@@ -7066,33 +7106,33 @@ void IndicationService::_sendAlertsCallBack(AsyncOpNode *op,
    op->release();
    service->return_op(op);
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
 
-void IndicationService::_sendAlerts (
-    const Array <CIMInstance> & subscriptions,
-    /* const */ CIMInstance & alertInstance)
+void IndicationService::_sendAlerts(
+    const Array<CIMInstance>& subscriptions,
+    /* const */ CIMInstance& alertInstance)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE, "IndicationService::_sendAlerts");
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE, "IndicationService::_sendAlerts");
 
     CIMInstance current;
 
-    PEG_TRACE_STRING (TRC_INDICATION_SERVICE, Tracer::LEVEL4,
+    PEG_TRACE_STRING(TRC_INDICATION_SERVICE, Tracer::LEVEL4,
         "Sending alert: " + alertInstance.getClassName().getString());
 
     //
     //  Get list of unique handler instances for all subscriptions in list
     //
-    for (Uint32 i = 0; i < subscriptions.size (); i++)
+    for (Uint32 i = 0; i < subscriptions.size(); i++)
     {
-        PEG_TRACE_STRING (TRC_INDICATION_SERVICE, Tracer::LEVEL4,
-            "Alert subscription: " + subscriptions [i].getPath().toString());
+        PEG_TRACE_STRING(TRC_INDICATION_SERVICE, Tracer::LEVEL4,
+            "Alert subscription: " + subscriptions[i].getPath().toString());
 
         //
         //  Get handler instance
         //
-        current = _subscriptionRepository->getHandler (subscriptions [i]);
+        current = _subscriptionRepository->getHandler(subscriptions[i]);
 
     // ATTN: For the handlers which do not need subscription instance
     // need to check duplicate alter
@@ -7101,13 +7141,13 @@ void IndicationService::_sendAlerts (
             //  Send handle indication request to the handler
             //
             CIMHandleIndicationRequestMessage * handler_request =
-                new CIMHandleIndicationRequestMessage (
-                    XmlWriter::getNextMessageId (),
-                    current.getPath ().getNameSpace (),
+                new CIMHandleIndicationRequestMessage(
+                    XmlWriter::getNextMessageId(),
+                    current.getPath().getNameSpace(),
                     current,
-            subscriptions [i],
+            subscriptions[i],
                     alertInstance,
-                    QueueIdStack (_handlerService, getQueueId ()));
+                    QueueIdStack(_handlerService, getQueueId()));
 
             AsyncOpNode* op = this->get_op();
 
@@ -7126,22 +7166,22 @@ void IndicationService::_sendAlerts (
 
     }
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 #endif
 
-void IndicationService::_sendSubscriptionInitComplete ()
+void IndicationService::_sendSubscriptionInitComplete()
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
         "IndicationService::_sendSubscriptionInitComplete");
 
     //
     //  Create the Subscription Init Complete request
     //
     CIMSubscriptionInitCompleteRequestMessage * request =
-        new CIMSubscriptionInitCompleteRequestMessage
-            (XmlWriter::getNextMessageId (),
-            QueueIdStack (_providerManager, getQueueId ()));
+        new CIMSubscriptionInitCompleteRequestMessage(
+            XmlWriter::getNextMessageId(),
+            QueueIdStack(_providerManager, getQueueId()));
 
     //
     //  Send Subscription Initialization Complete request to provider manager
@@ -7153,30 +7193,29 @@ void IndicationService::_sendSubscriptionInitComplete ()
             request,
             _queueId);
 
-    AutoPtr<AsyncReply>  asyncReply (SendWait (asyncRequest));
+    AutoPtr<AsyncReply> asyncReply(SendWait(asyncRequest));
     //
     //  Note: the response does not contain interesting data
     //
     delete asyncRequest;
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
-Boolean IndicationService::_getCreator (
-    const CIMInstance & instance,
-    String & creator) const
+Boolean IndicationService::_getCreator(
+    const CIMInstance& instance,
+    String& creator) const
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE, "IndicationService::_getCreator");
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE, "IndicationService::_getCreator");
 
-    Uint32 creatorIndex = instance.findProperty
-        (PEGASUS_PROPERTYNAME_INDSUB_CREATOR);
+    Uint32 creatorIndex = instance.findProperty(
+        PEGASUS_PROPERTYNAME_INDSUB_CREATOR);
     if (creatorIndex != PEG_NOT_FOUND)
     {
-        CIMValue creatorValue = instance.getProperty
-            (creatorIndex).getValue ();
-        if (creatorValue.isNull ())
+        CIMValue creatorValue = instance.getProperty(creatorIndex).getValue();
+        if (creatorValue.isNull())
         {
-            PEG_TRACE_CSTRING (TRC_INDICATION_SERVICE_INTERNAL,
+            PEG_TRACE_CSTRING(TRC_INDICATION_SERVICE_INTERNAL,
                 Tracer::LEVEL2,
                 "Null Subscription Creator property value");
 
@@ -7186,16 +7225,16 @@ Boolean IndicationService::_getCreator (
             PEG_METHOD_EXIT();
             return false;
         }
-        else if ((creatorValue.getType () != CIMTYPE_STRING) ||
-            (creatorValue.isArray ()))
+        else if ((creatorValue.getType() != CIMTYPE_STRING) ||
+                 (creatorValue.isArray()))
         {
             String traceString;
-            if (creatorValue.isArray ())
+            if (creatorValue.isArray())
             {
-                traceString.append ("array of ");
+                traceString.append("array of ");
             }
-            traceString.append (cimTypeToString (creatorValue.getType ()));
-            PEG_TRACE_STRING (TRC_INDICATION_SERVICE_INTERNAL,
+            traceString.append(cimTypeToString(creatorValue.getType()));
+            PEG_TRACE_STRING(TRC_INDICATION_SERVICE_INTERNAL,
                Tracer::LEVEL2,
                "Subscription Creator property value of incorrect type: "
                + traceString);
@@ -7208,12 +7247,12 @@ Boolean IndicationService::_getCreator (
         }
         else
         {
-            creatorValue.get (creator);
+            creatorValue.get(creator);
         }
     }
     else
     {
-        PEG_TRACE_CSTRING (TRC_INDICATION_SERVICE_INTERNAL,
+        PEG_TRACE_CSTRING(TRC_INDICATION_SERVICE_INTERNAL,
             Tracer::LEVEL2,
             "Missing Subscription Creator property");
 
@@ -7224,17 +7263,17 @@ Boolean IndicationService::_getCreator (
         return false;
     }
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
     return true;
 }
 
-Boolean IndicationService::_validateState (
+Boolean IndicationService::_validateState(
     const Uint16 state) const
 {
     //
     //  Validate the value
     //
-    if (!Contains (_validStates, state))
+    if (!Contains(_validStates, state))
     {
         //
         //  This is a corrupted/invalid instance
@@ -7245,22 +7284,22 @@ Boolean IndicationService::_validateState (
     return true;
 }
 
-void IndicationService::_updatePropertyList
-    (CIMName & className,
-     CIMPropertyList & propertyList,
-     Boolean & setTimeRemaining,
-     Boolean & startTimeAdded,
-     Boolean & durationAdded)
+void IndicationService::_updatePropertyList(
+    CIMName& className,
+    CIMPropertyList& propertyList,
+    Boolean& setTimeRemaining,
+    Boolean& startTimeAdded,
+    Boolean& durationAdded)
 {
-    PEG_METHOD_ENTER ( TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER( TRC_INDICATION_SERVICE,
         "IndicationService::_updatePropertyList");
 
     //
     //  A null propertyList means all properties
     //  If the class is Subscription, that includes the Time Remaining property
     //
-    if (className.equal (PEGASUS_CLASSNAME_INDSUBSCRIPTION) ||
-    className.equal (PEGASUS_CLASSNAME_FORMATTEDINDSUBSCRIPTION))
+    if (className.equal(PEGASUS_CLASSNAME_INDSUBSCRIPTION) ||
+        className.equal(PEGASUS_CLASSNAME_FORMATTEDINDSUBSCRIPTION))
     {
         setTimeRemaining = true;
     }
@@ -7270,51 +7309,50 @@ void IndicationService::_updatePropertyList
     }
     startTimeAdded = false;
     durationAdded = false;
-    if (!propertyList.isNull ())
+    if (!propertyList.isNull())
     {
         setTimeRemaining = false;
-        Array <CIMName> properties = propertyList.getPropertyNameArray ();
+        Array<CIMName> properties = propertyList.getPropertyNameArray();
 
         //
         //  Add Creator to property list
         //
-        if (!ContainsCIMName (properties,
+        if (!ContainsCIMName(properties,
             PEGASUS_PROPERTYNAME_INDSUB_CREATOR))
         {
-            properties.append (PEGASUS_PROPERTYNAME_INDSUB_CREATOR);
+            properties.append(PEGASUS_PROPERTYNAME_INDSUB_CREATOR);
         }
 
         //
         //  If a Subscription and Time Remaining is requested,
         //  Ensure Subscription Duration and Start Time are in property list
         //
-        if (className.equal (PEGASUS_CLASSNAME_INDSUBSCRIPTION) ||
-        className.equal (PEGASUS_CLASSNAME_FORMATTEDINDSUBSCRIPTION))
+        if (className.equal(PEGASUS_CLASSNAME_INDSUBSCRIPTION) ||
+            className.equal(PEGASUS_CLASSNAME_FORMATTEDINDSUBSCRIPTION))
         {
-            if (ContainsCIMName (properties, _PROPERTY_TIMEREMAINING))
+            if (ContainsCIMName(properties, _PROPERTY_TIMEREMAINING))
             {
                 setTimeRemaining = true;
-                if (!ContainsCIMName (properties, _PROPERTY_STARTTIME))
+                if (!ContainsCIMName(properties, _PROPERTY_STARTTIME))
                 {
-                    properties.append (_PROPERTY_STARTTIME);
+                    properties.append(_PROPERTY_STARTTIME);
                     startTimeAdded = true;
                 }
-                if (!ContainsCIMName (properties, _PROPERTY_DURATION))
+                if (!ContainsCIMName(properties, _PROPERTY_DURATION))
                 {
-                    properties.append (_PROPERTY_DURATION);
+                    properties.append(_PROPERTY_DURATION);
                     durationAdded = true;
                 }
             }
         }
-        propertyList.clear ();
-        propertyList.set (properties);
+        propertyList.clear();
+        propertyList.set(properties);
     }
 
-    PEG_METHOD_EXIT ();
+    PEG_METHOD_EXIT();
 }
 
-String IndicationService::_getSubscriptionLogString
-    (CIMInstance & subscription)
+String IndicationService::_getSubscriptionLogString(CIMInstance& subscription)
 {
     //
     //  Get Subscription Filter namespace and Name, and Handler namespace and
@@ -7324,58 +7362,57 @@ String IndicationService::_getSubscriptionLogString
     CIMValue filterValue;
     CIMObjectPath filterPath;
     CIMNamespaceName filterNS;
-    Array <CIMKeyBinding> filterKeyBindings;
+    Array<CIMKeyBinding> filterKeyBindings;
     CIMValue handlerValue;
     CIMObjectPath handlerPath;
     CIMNamespaceName handlerNS;
-    Array <CIMKeyBinding> handlerKeyBindings;
-    filterValue = subscription.getProperty (subscription.findProperty
-        (PEGASUS_PROPERTYNAME_FILTER)).getValue ();
-    filterValue.get (filterPath);
+    Array<CIMKeyBinding> handlerKeyBindings;
+    filterValue = subscription.getProperty(subscription.findProperty(
+        PEGASUS_PROPERTYNAME_FILTER)).getValue();
+    filterValue.get(filterPath);
 
     //
     //  Get Filter namespace - if not set in Filter reference property
     //  value, namespace is the namespace of the subscription
     //
-    filterNS = filterPath.getNameSpace ();
-    if (filterNS.isNull ())
+    filterNS = filterPath.getNameSpace();
+    if (filterNS.isNull())
     {
-        filterNS = subscription.getPath ().getNameSpace ();
+        filterNS = subscription.getPath().getNameSpace();
     }
-    logString.append (filterNS.getString ());
-    logString.append (" ");
-    filterKeyBindings = filterPath.getKeyBindings ();
-    for (Uint32 i = 0; i < filterKeyBindings.size (); i++)
+    logString.append(filterNS.getString());
+    logString.append(" ");
+    filterKeyBindings = filterPath.getKeyBindings();
+    for (Uint32 i = 0; i < filterKeyBindings.size(); i++)
     {
-        if (filterKeyBindings [i].getName ().equal (PEGASUS_PROPERTYNAME_NAME))
+        if (filterKeyBindings[i].getName().equal(PEGASUS_PROPERTYNAME_NAME))
         {
-            logString.append (filterKeyBindings [i].getValue ());
-            logString.append (", ");
+            logString.append(filterKeyBindings[i].getValue());
+            logString.append(", ");
             break;
         }
     }
-    handlerValue = subscription.getProperty
-        (subscription.findProperty
-        (PEGASUS_PROPERTYNAME_HANDLER)).getValue ();
-    handlerValue.get (handlerPath);
+    handlerValue = subscription.getProperty(
+        subscription.findProperty(PEGASUS_PROPERTYNAME_HANDLER)).getValue();
+    handlerValue.get(handlerPath);
 
     //
     //  Get Handler namespace - if not set in Handler reference property
     //  value, namespace is the namespace of the subscription
     //
-    handlerNS = handlerPath.getNameSpace ();
-    if (handlerNS.isNull ())
+    handlerNS = handlerPath.getNameSpace();
+    if (handlerNS.isNull())
     {
-        handlerNS = subscription.getPath ().getNameSpace ();
+        handlerNS = subscription.getPath().getNameSpace();
     }
-    logString.append (handlerNS.getString ());
-    logString.append (" ");
-    handlerKeyBindings = handlerPath.getKeyBindings ();
-    for (Uint32 j = 0; j < handlerKeyBindings.size (); j++)
+    logString.append(handlerNS.getString());
+    logString.append(" ");
+    handlerKeyBindings = handlerPath.getKeyBindings();
+    for (Uint32 j = 0; j < handlerKeyBindings.size(); j++)
     {
-        if (handlerKeyBindings [j].getName ().equal (PEGASUS_PROPERTYNAME_NAME))
+        if (handlerKeyBindings[j].getName().equal(PEGASUS_PROPERTYNAME_NAME))
         {
-            logString.append (handlerKeyBindings [j].getValue ());
+            logString.append(handlerKeyBindings[j].getValue());
             break;
         }
     }
@@ -7383,21 +7420,20 @@ String IndicationService::_getSubscriptionLogString
     return logString;
 }
 
-String IndicationService::getProviderLogString
-    (CIMInstance & provider)
+String IndicationService::getProviderLogString(CIMInstance& provider)
 {
     String logString;
 
-    logString = provider.getProperty (provider.findProperty
-        (PEGASUS_PROPERTYNAME_NAME)).getValue ().toString ();
+    logString = provider.getProperty(
+        provider.findProperty(PEGASUS_PROPERTYNAME_NAME)).getValue().toString();
 
     return logString;
 }
 
-CIMClass IndicationService::_getIndicationClass (
-    const CIMInstance & subscriptionInstance)
+CIMClass IndicationService::_getIndicationClass(
+    const CIMInstance& subscriptionInstance)
 {
-    PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
+    PEG_METHOD_ENTER(TRC_INDICATION_SERVICE,
     "IndicationService::_getIndicationClass");
 
     CIMNamespaceName sourceNameSpace;
@@ -7408,7 +7444,7 @@ CIMClass IndicationService::_getIndicationClass (
     String filterName;
 
     //  Get filter properties
-    _subscriptionRepository->getFilterProperties (subscriptionInstance, query,
+    _subscriptionRepository->getFilterProperties(subscriptionInstance, query,
         sourceNameSpace, queryLanguage, filterName);
 
     //  Build the query expression from the filter query
@@ -7425,9 +7461,9 @@ CIMClass IndicationService::_getIndicationClass (
     //  Specify localOnly=false because superclass properties are needed
     //  Specify includeQualifiers=false because qualifiers are not needed
     //
-    indicationClass = _subscriptionRepository->getClass
-        (sourceNameSpace, indicationClassName, false, false, false,
-         CIMPropertyList ());
+    indicationClass = _subscriptionRepository->getClass(
+        sourceNameSpace, indicationClassName, false, false, false,
+        CIMPropertyList());
 
     PEG_METHOD_EXIT();
     return indicationClass;
index 7ad51fe6ce5c0ee7fab9164d6ca653ba8152fd50..708a27c1fbf0458eea82c00cb1dacf44dde44267 100644 (file)
@@ -47,7 +47,9 @@
 #include <Pegasus/Common/CIMMessage.h>
 #include <Pegasus/Common/AcceptLanguageList.h>
 #include <Pegasus/Common/ContentLanguageList.h>
+// NOCHKSRC
 #include <Pegasus/Server/ProviderRegistrationManager/ProviderRegistrationManager.h>
+// DOCHKSRC
 #include <Pegasus/Server/Linkage.h>
 #include <Pegasus/Query/QueryExpression/QueryExpression.h>
 
@@ -60,13 +62,9 @@ class SubscriptionRepository;
 class SubscriptionTable;
 
 /**
-
     IndicationService class is the service that serves the
     Indication Subscription, Indication Filter, and Indication Handler
     classes, and processes indications.
-
-    @author  Hewlett-Packard Company
-
  */
 
 class PEGASUS_SERVER_LINKAGE IndicationService : public MessageQueueService
@@ -77,17 +75,17 @@ public:
         Constructs an IndicationSubscription instance and initializes instance
         variables.
      */
-    IndicationService (
-        CIMRepository * repository,
-        ProviderRegistrationManager * providerRegManager);
+    IndicationService(
+        CIMRepository* repository,
+        ProviderRegistrationManager* providerRegManager);
 
-    virtual ~IndicationService(void);
+    virtual ~IndicationService();
 
     void handleEnqueue(Message* message);
 
-    virtual void handleEnqueue(void);
+    virtual void handleEnqueue();
 
-    virtual void _handle_async_request(AsyncRequest *req);
+    virtual void _handle_async_request(AsyncRequestreq);
 
     /**
         Gets a String containing the Provider Name, for use in a log message to
@@ -97,8 +95,7 @@ public:
 
         @return  String containing the Provider Name
      */
-    static String getProviderLogString
-        (CIMInstance & provider);
+    static String getProviderLogString(CIMInstance& provider);
 
     AtomicInt dienow;
 
@@ -111,23 +108,23 @@ public:
 
 private:
 
-    void _initialize (void);
+    void _initialize();
 
-    void _terminate (void);
+    void _terminate();
 
-    void _handleGetInstanceRequest(const Message * message);
+    void _handleGetInstanceRequest(const Message* message);
 
-    void _handleEnumerateInstancesRequest(const Message * message);
+    void _handleEnumerateInstancesRequest(const Message* message);
 
-    void _handleEnumerateInstanceNamesRequest(const Message * message);
+    void _handleEnumerateInstanceNamesRequest(const Message* message);
 
-    void _handleCreateInstanceRequest(const Message * message);
+    void _handleCreateInstanceRequest(const Message* message);
 
-    void _handleModifyInstanceRequest(const Message * message);
+    void _handleModifyInstanceRequest(const Message* message);
 
     void _handleDeleteInstanceRequest(const Message * message);
 
-    void _handleProcessIndicationRequest(const Message * message);
+    void _handleProcessIndicationRequest(const Message* message);
 
     /**
         Asynchronous callback function for _handleProcessIndicationRequest.
@@ -139,20 +136,20 @@ private:
         @param  destination          target queue of completion callback
         @param  userParameter        user parameter for callback processing
      */
-    static void _handleIndicationCallBack (
-        AsyncOpNode * operation,
-        MessageQueue * destination,
-        void * userParameter);
+    static void _handleIndicationCallBack(
+        AsyncOpNode* operation,
+        MessageQueue* destination,
+        void* userParameter);
 
     /**
-       Notifies the Indication Service that a change in provider registration
-       has occurred.  The Indication Service retrieves the subscriptions
-       affected by the registration change, sends the appropriate Create,
+        Notifies the Indication Service that a change in provider registration
+        has occurred.  The Indication Service retrieves the subscriptions
+        affected by the registration change, sends the appropriate Create,
         Modify, and/or Delete requests to the provider, and sends an alert to
         handler instances of subscriptions that are no longer served by the
         provider.
     */
-    void _handleNotifyProviderRegistrationRequest(const Message * message);
+    void _handleNotifyProviderRegistrationRequest(const Message* message);
 
     /**
         Notifies the Indication Service that a provider has been disabled.
@@ -160,7 +157,7 @@ private:
         disabled provider, and logs a message for each subscription that is no
         longer served by the provider.
      */
-    void _handleNotifyProviderTerminationRequest(const Message * message);
+    void _handleNotifyProviderTerminationRequest(const Message* message);
 
     /**
         Notifies the Indication Service that a provider has been enabled.
@@ -169,7 +166,7 @@ private:
         Indications requests to the provider, and logs a message for each
         subscription that is now served by the provider.
      */
-    void _handleNotifyProviderEnableRequest (const Message * message);
+    void _handleNotifyProviderEnableRequest(const Message* message);
 
     /**
         Notifies the Indication Service that failure of a provider module that
@@ -179,7 +176,7 @@ private:
         the number of affected subscriptions, so the sender of the request
         knows if any subscriptions were affected.
      */
-    void _handleNotifyProviderFailRequest (Message * message);
+    void _handleNotifyProviderFailRequest(Message* message);
 
     /**
         Determines if it is legal to create an instance.
@@ -198,9 +195,9 @@ private:
         @return  True, if the instance can be created;
                  Otherwise throws an exception
      */
-    Boolean _canCreate (
-        CIMInstance & instance,
-        const CIMNamespaceName & nameSpace);
+    Boolean _canCreate(
+        CIMInstance& instance,
+        const CIMNamespaceName& nameSpace);
 
     /**
         Validates the specified required property in the instance.
@@ -218,18 +215,18 @@ private:
         @param   propertyName          name of property to be validated
         @param   expectedType          expected CIMType of property value
         @param   message               message to be used in exception
-       @param   isArray               indicates whether the validated
-                                      property is array
+        @param   isArray               indicates whether the validated
+                                       property is array
 
         @exception   CIM_ERR_INVALID_PARAMETER  if required property is missing
                                                 or null
      */
-    void _checkRequiredProperty (
-        CIMInstance & instance,
-        const CIMName & propertyName,
+    void _checkRequiredProperty(
+        CIMInstance& instance,
+        const CIMName& propertyName,
         const CIMType expectedType,
-        const String & message,
-       const Boolean isArray = false);
+        const String& message,
+        const Boolean isArray = false);
 
     /**
         Validates the specified Uint16 (non-array) property and its
@@ -263,14 +260,14 @@ private:
         @exception   CIM_ERR_INVALID_PARAMETER  if value of property or Other___
                                                 property is invalid
      */
-    void _checkPropertyWithOther (
-        CIMInstance & instance,
-        const CIMName & propertyName,
-        const CIMName & otherPropertyName,
+    void _checkPropertyWithOther(
+        CIMInstance& instance,
+        const CIMName& propertyName,
+        const CIMName& otherPropertyName,
         const Uint16 defaultValue,
         const Uint16 otherValue,
-        const Array <Uint16> & validValues,
-        const Array <Uint16> & supportedValues);
+        const Array<Uint16>& validValues,
+        const Array<Uint16>& supportedValues);
 
     /**
         Validates the specified property in the instance.
@@ -299,10 +296,10 @@ private:
 
         @return  the value of the property
      */
-    String _checkPropertyWithDefault (
-        CIMInstance & instance,
-        const CIMName & propertyName,
-        const String & defaultValue);
+    String _checkPropertyWithDefault(
+        CIMInstance& instance,
+        const CIMName& propertyName,
+        const String& defaultValue);
 
     /**
         Validates the specified property in the instance.
@@ -332,10 +329,10 @@ private:
 
         @return  the value of the property
      */
-    String _initOrValidateStringProperty (
-        CIMInstance & instance,
-        const CIMName & propertyName,
-        const String & defaultValue);
+    String _initOrValidateStringProperty(
+        CIMInstance& instance,
+        const CIMName& propertyName,
+        const String& defaultValue);
 
     /**
         Validates the specified property in the instance.
@@ -364,9 +361,9 @@ private:
                                                 null but is not of the correct
                                                 type
      */
-    void _checkProperty (
-        CIMInstance & instance,
-        const CIMName & propertyName,
+    void _checkProperty(
+        CIMInstance& instance,
+        const CIMName& propertyName,
         const CIMType expectedType,
         const Boolean isArray = false);
 
@@ -379,29 +376,29 @@ private:
         @exception   CIM_ERR_NOT_SUPPORTED      if instance includes an unknown,
                                                 unsupported property
      */
-    void _checkSupportedProperties (
-        const CIMInstance & instance);
+    void _checkSupportedProperties(
+        const CIMInstance& instance);
 
     /**
-        Validates value of the specified Uint16 property in the instance. 
-        If the value of the property is not a valid value, or is not a 
+        Validates value of the specified Uint16 property in the instance.
+        If the value of the property is not a valid value, or is not a
         supported value, an exception is thrown.
 
         @param   instance              instance to be validated
         @param   propertyName          name of property to be validated
         @param   validValues           set of valid values for property
         @param   supportedValues       set of supported values for property
-                                                                              
-        @exception   CIM_ERR_NOT_SUPPORTED      if the property value is not 
+
+        @exception   CIM_ERR_NOT_SUPPORTED      if the property value is not
                                                 supported
-                     CIM_ERR_INVALID_PARAMETER  if the property value is not 
+                     CIM_ERR_INVALID_PARAMETER  if the property value is not
                                                 valid
      */
-    void _checkValue (
-        const CIMInstance & instance,
-        const CIMName & propertyName,
-        const Array <Uint16> & validValues,
-        const Array <Uint16> & supportedValues);
+    void _checkValue(
+        const CIMInstance& instance,
+        const CIMName& propertyName,
+        const Array<Uint16>& validValues,
+        const Array<Uint16>& supportedValues);
 
     /**
         Determines if the user is authorized to modify the instance, and if the
@@ -423,11 +420,11 @@ private:
         @return  True, if the instance can be modified;
                  Otherwise throws an exception
      */
-    Boolean _canModify (
-        const CIMModifyInstanceRequestMessage * request,
-        const CIMObjectPath & instanceReference,
-        const CIMInstance & instance,
-        CIMInstance & modifiedInstance);
+    Boolean _canModify(
+        const CIMModifyInstanceRequestMessage* request,
+        const CIMObjectPath& instanceReference,
+        const CIMInstance& instance,
+        CIMInstance& modifiedInstance);
 
     /**
         Determines if the user is authorized to delete the instance, and if it
@@ -449,10 +446,10 @@ private:
         @return  True, if the instance can be deleted;
                  Otherwise throws an exception
      */
-    Boolean _canDelete (
-        const CIMObjectPath & instanceReference,
-        const CIMNamespaceName & nameSpace,
-        const String & currentUser);
+    Boolean _canDelete(
+        const CIMObjectPath& instanceReference,
+        const CIMNamespaceName& nameSpace,
+        const String& currentUser);
 
     /**
         Retrieves list of enabled subscription instances in all namespaces,
@@ -473,12 +470,12 @@ private:
 
         @return   list of CIMInstance subscriptions
      */
-    Array <CIMInstance> _getMatchingSubscriptions (
-        const CIMName & supportedClass,
-        const Array <CIMNamespaceName> nameSpaces,
-        const CIMPropertyList & supportedProperties,
+    Array<CIMInstance> _getMatchingSubscriptions(
+        const CIMName& supportedClass,
+        const Array<CIMNamespaceName> nameSpaces,
+        const CIMPropertyList& supportedProperties,
         const Boolean checkProvider = false,
-        const CIMInstance & provider = CIMInstance ());
+        const CIMInstance& provider = CIMInstance());
 
     /**
         Retrieves lists of enabled subscription instances in all namespaces
@@ -508,14 +505,14 @@ private:
         @param   formerSubscriptions  the list of previously supported
                                           subscriptions
      */
-    void _getModifiedSubscriptions (
-        const CIMName & supportedClass,
-        const Array <CIMNamespaceName> & newNameSpaces,
-        const Array <CIMNamespaceName> & oldNameSpaces,
-        const CIMPropertyList & newProperties,
-        const CIMPropertyList & oldProperties,
-        Array <CIMInstance> & newSubscriptions,
-        Array <CIMInstance> & formerSubscriptions);
+    void _getModifiedSubscriptions(
+        const CIMName& supportedClass,
+        const Array<CIMNamespaceName>& newNameSpaces,
+        const Array<CIMNamespaceName>& oldNameSpaces,
+        const CIMPropertyList& newProperties,
+        const CIMPropertyList& oldProperties,
+        Array<CIMInstance>& newSubscriptions,
+        Array<CIMInstance>& formerSubscriptions);
 
     /**
         Determines if all of the required properties in the specified list
@@ -527,9 +524,9 @@ private:
         @return   true, if all required properties are supported;
                   false otherwise
      */
-    Boolean _inPropertyList (
-        const CIMPropertyList & requiredProperties,
-        const CIMPropertyList & supportedProperties);
+    Boolean _inPropertyList(
+        const CIMPropertyList& requiredProperties,
+        const CIMPropertyList& supportedProperties);
 
     /**
         Builds a QueryExpression from the filter query string,
@@ -542,9 +539,10 @@ private:
 
         @return  QueryExpression representing the filter query
      */
-    QueryExpression _getQueryExpression (const String& filterQuery,
-                                         const String& queryLanguage,
-                                         const CIMNamespaceName ns) const;
+    QueryExpression _getQueryExpression(
+        const String& filterQuery,
+        const String& queryLanguage,
+        const CIMNamespaceName& ns) const;
 
     /**
         Extracts the indication class name from the specified query expression
@@ -556,9 +554,9 @@ private:
 
         @return  String containing the indication class name
      */
-    CIMName _getIndicationClassName (
-        const QueryExpression & queryExpression,
-        const CIMNamespaceName & nameSpaceName) const;
+    CIMName _getIndicationClassName(
+        const QueryExpression& queryExpression,
+        const CIMNamespaceName& nameSpaceName) const;
 
     /**
         Retrieves the list of indication providers that serve the specified
@@ -571,11 +569,11 @@ private:
 
         @return  list of ProviderClassList structs
      */
-    Array <ProviderClassList> _getIndicationProviders (
-        const QueryExpression & queryExpression,
-        const CIMNamespaceName & nameSpace,
-        const CIMName & indicationClassName,
-        const Array <CIMName> & indicationSubclasses) const;
+    Array<ProviderClassList> _getIndicationProviders(
+        const QueryExpression& queryExpression,
+        const CIMNamespaceName& nameSpace,
+        const CIMName& indicationClassName,
+        const Array<CIMName>& indicationSubclasses) const;
 
     /**
         Retrieves the list of required properties (all the properties
@@ -589,10 +587,10 @@ private:
         @return  CIMPropertyList of required properties for the filter query
                  expression
      */
-    CIMPropertyList _getPropertyList (
-        const QueryExpression & queryExpression,
-        const CIMNamespaceName & nameSpaceName,
-        const CIMName & indicationClassName) const;
+    CIMPropertyList _getPropertyList(
+        const QueryExpression& queryExpression,
+        const CIMNamespaceName& nameSpaceName,
+        const CIMName& indicationClassName) const;
 
     /**
         Checks if the property list includes all properties in the specified
@@ -610,11 +608,11 @@ private:
         @return  CIMPropertyList of properties referenced by the filter query
                  select statement
      */
-    CIMPropertyList _checkPropertyList (
-        const Array <CIMName> & propertyList,
-        const CIMNamespaceName & nameSpaceName,
-        const CIMName & indicationClassName,
-        Array <CIMName> & indicationClassProperties) const;
+    CIMPropertyList _checkPropertyList(
+        const Array<CIMName>& propertyList,
+        const CIMNamespaceName& nameSpaceName,
+        const CIMName& indicationClassName,
+        Array<CIMName>& indicationClassProperties) const;
 
     /**
         Extracts the condition (WHERE Clause) from the specified filter query
@@ -624,8 +622,8 @@ private:
 
         @return  String containing the filter query condition
      */
-    String _getCondition (
-        const String & filterQuery) const;
+    String _getCondition(
+        const String& filterQuery) const;
 
     /**
         Deletes subscriptions referencing the specified handler.  All namespaces
@@ -637,10 +635,10 @@ private:
                                            subscription instance
         @param   handler               the handler reference
      */
-    void _deleteReferencingSubscriptions (
-        const CIMNamespaceName & nameSpace,
-        const CIMName & referenceProperty,
-        const CIMObjectPath & handler);
+    void _deleteReferencingSubscriptions(
+        const CIMNamespaceName& nameSpace,
+        const CIMName& referenceProperty,
+        const CIMObjectPath& handler);
 
     /**
         Determines if specified Subscription has expired
@@ -654,16 +652,16 @@ private:
         @return  True, if the Subscription has expired;
                  False otherwise
      */
-    Boolean _isExpired (
-        const CIMInstance & instance) const;
+    Boolean _isExpired(
+        const CIMInstance& instance) const;
 
     /**
         Deletes specified subscription
 
         @param   subscription          the subscription reference
      */
-    void _deleteExpiredSubscription (
-        CIMObjectPath & subscription);
+    void _deleteExpiredSubscription(
+        CIMObjectPath& subscription);
 
     /**
         Gets the Subscription Time Remaining property
@@ -685,9 +683,9 @@ private:
         @return  True, if the subscription has a non-null Duration;
                  False otherwise
      */
-    Boolean _getTimeRemaining (
-        const CIMInstance & instance,
-        Uint64 & timeRemaining) const;
+    Boolean _getTimeRemaining(
+        const CIMInstance& instance,
+        Uint64& timeRemaining) const;
 
     /**
         Sets the Subscription Time Remaining property
@@ -701,8 +699,7 @@ private:
 
         @param   instance              the subscription instance
      */
-    void _setTimeRemaining (
-        CIMInstance & instance);
+    void _setTimeRemaining(CIMInstance& instance);
 
     /**
         Gets the parameter values required to Create or Modify the subscription
@@ -723,15 +720,15 @@ private:
         @param   queryLanguage         Output query language in which the filter
                                            query is expressed
      */
-    void _getCreateParams (
-        const CIMInstance & subscriptionInstance,
-        Array <CIMName> & indicationSubclasses,
-        Array <ProviderClassList> & indicationProviders,
-        CIMPropertyList & propertyList,
-        CIMNamespaceName & sourceNameSpace,
-        String & condition,
-        String & query,
-        String & queryLanguage);
+    void _getCreateParams(
+        const CIMInstance& subscriptionInstance,
+        Array<CIMName>& indicationSubclasses,
+        Array<ProviderClassList>& indicationProviders,
+        CIMPropertyList& propertyList,
+        CIMNamespaceName& sourceNameSpace,
+        String& condition,
+        String& query,
+        String& queryLanguage);
 
     /**
         Gets the parameter values required to Create or Modify the subscription
@@ -748,14 +745,14 @@ private:
         @param   queryLanguage         Output query language in which the filter
                                            query is expressed
      */
-    void _getCreateParams (
-        const CIMInstance & subscriptionInstance,
-        Array <CIMName> & indicationSubclasses,
-        CIMPropertyList & propertyList,
-        CIMNamespaceName & sourceNameSpace,
-        String & condition,
-        String & query,
-        String & queryLanguage);
+    void _getCreateParams(
+        const CIMInstance& subscriptionInstance,
+        Array<CIMName>& indicationSubclasses,
+        CIMPropertyList& propertyList,
+        CIMNamespaceName& sourceNameSpace,
+        String& condition,
+        String& query,
+        String& queryLanguage);
 
     /**
         Gets the parameter values required to Delete the subscription request.
@@ -767,10 +764,10 @@ private:
 
         @return  List of providers with associated classes to Delete
      */
-    Array <ProviderClassList> _getDeleteParams (
-        const CIMInstance & subscriptionInstance,
-        Array <CIMName> & indicationSubclasses,
-        CIMNamespaceName & sourceNameSpace);
+    Array<ProviderClassList> _getDeleteParams(
+        const CIMInstance& subscriptionInstance,
+        Array<CIMName>& indicationSubclasses,
+        CIMNamespaceName& sourceNameSpace);
 
     /**
         Sends Create subscription request for the specified subscription
@@ -807,20 +804,20 @@ private:
         @param   authType              the authentication type
 
      */
-    void _sendAsyncCreateRequests (
-        const Array <ProviderClassList> & indicationProviders,
-        const CIMNamespaceName & nameSpace,
-        const CIMPropertyList & propertyList,
-        const String & condition,
-        const String & query,
-        const String & queryLanguage,
-        const CIMInstance & subscription,
-        const AcceptLanguageList & acceptLangs,
-        const ContentLanguageList & contentLangs,
+    void _sendAsyncCreateRequests(
+        const Array<ProviderClassList>& indicationProviders,
+        const CIMNamespaceName& nameSpace,
+        const CIMPropertyList& propertyList,
+        const String& condition,
+        const String& query,
+        const String& queryLanguage,
+        const CIMInstance& subscription,
+        const AcceptLanguageList& acceptLangs,
+        const ContentLanguageList& contentLangs,
         const CIMRequestMessage * origRequest,
-        const Array <CIMName> & indicationSubclasses,
-        const String & userName,
-        const String & authType = String::EMPTY);
+        const Array<CIMName>& indicationSubclasses,
+        const String& userName,
+        const String& authType = String::EMPTY);
 
     /**
         Sends Create subscription request for the specified subscription
@@ -857,18 +854,18 @@ private:
 
         @return  List of providers that accepted subscription
      */
-    Array <ProviderClassList> _sendWaitCreateRequests (
-        const Array <ProviderClassList> & indicationProviders,
-        const CIMNamespaceName & nameSpace,
-        const CIMPropertyList & propertyList,
-        const String & condition,
-        const String & query,
-        const String & queryLanguage,
-        const CIMInstance & subscription,
-        const AcceptLanguageList & acceptLangs,
-        const ContentLanguageList & contentLangs,
-        const String & userName,
-        const String & authType = String::EMPTY);
+    Array<ProviderClassList> _sendWaitCreateRequests(
+        const Array<ProviderClassList>& indicationProviders,
+        const CIMNamespaceName& nameSpace,
+        const CIMPropertyList& propertyList,
+        const String& condition,
+        const String& query,
+        const String& queryLanguage,
+        const CIMInstance& subscription,
+        const AcceptLanguageList& acceptLangs,
+        const ContentLanguageList& contentLangs,
+        const String& userName,
+        const String& authType = String::EMPTY);
 
     /**
         Sends Modify subscription request for the specified subscription
@@ -903,18 +900,18 @@ private:
         @param   userName              the userName for authentication
         @param   authType              the authentication type
      */
-    void _sendWaitModifyRequests (
-        const Array <ProviderClassList> & indicationProviders,
-        const CIMNamespaceName & nameSpace,
-        const CIMPropertyList & propertyList,
-        const String & condition,
-        const String & query,
-        const String & queryLanguage,
-        const CIMInstance & subscription,
-        const AcceptLanguageList & acceptLangs,
-        const ContentLanguageList & contentLangs,
-        const String & userName,
-        const String & authType = String::EMPTY);
+    void _sendWaitModifyRequests(
+        const Array<ProviderClassList>& indicationProviders,
+        const CIMNamespaceName& nameSpace,
+        const CIMPropertyList& propertyList,
+        const String& condition,
+        const String& query,
+        const String& queryLanguage,
+        const CIMInstance& subscription,
+        const AcceptLanguageList& acceptLangs,
+        const ContentLanguageList& contentLangs,
+        const String& userName,
+        const String& authType = String::EMPTY);
 
     /**
         Sends Delete subscription request for the specified subscription
@@ -946,16 +943,16 @@ private:
         @param   userName              the userName for authentication
         @param   authType              the authentication type
      */
-    void _sendAsyncDeleteRequests (
-        const Array <ProviderClassList> & indicationProviders,
-        const CIMNamespaceName & nameSpace,
-        const CIMInstance & subscription,
-        const AcceptLanguageList & acceptLangs,
-        const ContentLanguageList & contentLangs,
+    void _sendAsyncDeleteRequests(
+        const Array<ProviderClassList>& indicationProviders,
+        const CIMNamespaceName& nameSpace,
+        const CIMInstance& subscription,
+        const AcceptLanguageList& acceptLangs,
+        const ContentLanguageList& contentLangs,
         const CIMRequestMessage * origRequest,
-        const Array <CIMName> & indicationSubclasses,
-        const String & userName,
-        const String & authType = String::EMPTY);
+        const Array<CIMName>& indicationSubclasses,
+        const String& userName,
+        const String& authType = String::EMPTY);
 
     /**
         Sends Delete subscription request for the specified subscription
@@ -979,14 +976,14 @@ private:
         @param   userName              the userName for authentication
         @param   authType              the authentication type
      */
-    void _sendWaitDeleteRequests (
-        const Array <ProviderClassList> & indicationProviders,
-        const CIMNamespaceName & nameSpace,
-        const CIMInstance & subscription,
-        const AcceptLanguageList & acceptLangs,
-        const ContentLanguageList & contentLangs,
-        const String & userName,
-        const String & authType = String::EMPTY);
+    void _sendWaitDeleteRequests(
+        const Array<ProviderClassList>& indicationProviders,
+        const CIMNamespaceName& nameSpace,
+        const CIMInstance& subscription,
+        const AcceptLanguageList& acceptLangs,
+        const ContentLanguageList& contentLangs,
+        const String& userName,
+        const String& authType = String::EMPTY);
 
     /**
         Collects responses from providers for aggregation as they are received,
@@ -999,7 +996,7 @@ private:
         @param  destination          target queue of completion callback
         @param  userParameter        user parameter for callback processing
      */
-    static void _aggregationCallBack (
+    static void _aggregationCallBack(
         AsyncOpNode * operation,
         MessageQueue * destination,
         void * userParameter);
@@ -1011,7 +1008,7 @@ private:
 
         @param   operationAggregate    the operation aggregate instance
      */
-    void _handleOperationResponseAggregation (
+    void _handleOperationResponseAggregation(
         IndicationOperationAggregate * operationAggregate);
 
     /**
@@ -1022,7 +1019,7 @@ private:
 
         @param   operationAggregate    the operation aggregate instance
      */
-    void _handleCreateResponseAggregation (
+    void _handleCreateResponseAggregation(
         IndicationOperationAggregate * operationAggregate);
 
     /**
@@ -1031,7 +1028,7 @@ private:
 
         @param   operationAggregate    the operation aggregate instance
      */
-    void _handleModifyResponseAggregation (
+    void _handleModifyResponseAggregation(
         IndicationOperationAggregate * operationAggregate);
 
     /**
@@ -1042,7 +1039,7 @@ private:
 
         @param   operationAggregate    the operation aggregate instance
      */
-    void _handleDeleteResponseAggregation (
+    void _handleDeleteResponseAggregation(
         IndicationOperationAggregate * operationAggregate);
 
     /**
@@ -1054,18 +1051,19 @@ private:
 
         @return  the created alert instance
      */
-    CIMInstance _createAlertInstance (
-        const CIMName & alertClassName,
-        const Array <CIMInstance> & subscriptions);
+    CIMInstance _createAlertInstance(
+        const CIMName& alertClassName,
+        const Array<CIMInstance>& subscriptions);
 
 #if 0
-     /**
-         Asynchronous completion routine for _sendAlerts
-      */
+    /**
+        Asynchronous completion routine for _sendAlerts
+     */
 
-      static void _sendAlertsCallBack(AsyncOpNode *operation,
-                                     MessageQueue *callback_destination,
-                                     void *parameter);
+    static void _sendAlertsCallBack(
+        AsyncOpNode* operation,
+        MessageQueue* callback_destination,
+        void* parameter);
 
     /**
         Sends specified alert to each unique handler instance for the
@@ -1075,16 +1073,16 @@ private:
                                            sent
         @param   alertInstance         the alert to be sent
      */
-    void _sendAlerts (
-        const Array <CIMInstance> & subscriptions,
-        /* const */ CIMInstance & alertInstance);
+    void _sendAlerts(
+        const Array<CIMInstance>& subscriptions,
+        /* const */ CIMInstance& alertInstance);
 #endif
 
     /**
         Sends a Subscription Init Complete request to the Provider
         Manager Service.
      */
-    void _sendSubscriptionInitComplete ();
+    void _sendSubscriptionInitComplete();
 
     /**
         Gets the value of the Creator property from the specified Subscription
@@ -1098,9 +1096,9 @@ private:
                  False if Creator property was missing, null, or of an
                        incorrect type
      */
-    Boolean _getCreator (
-        const CIMInstance & instance,
-        String & creator) const;
+    Boolean _getCreator(
+        const CIMInstance& instance,
+        String& creator) const;
 
     /**
         Validates the specified SubscriptionState property value.
@@ -1110,7 +1108,7 @@ private:
         @return  True, if the SubscriptionState property value is valid;
                  False otherwise
      */
-    Boolean _validateState (
+    Boolean _validateState(
         const Uint16 state) const;
 
     /**
@@ -1124,8 +1122,8 @@ private:
                  False, if authentication is enabled and the
                        user is not privileged
      */
-    void _checkNonprivilegedAuthorization (
-        const String & userName);
+    void _checkNonprivilegedAuthorization(
+        const String& userName);
 
     /**
         Updates the propertyList, in preparation for calling the Repository.
@@ -1144,12 +1142,12 @@ private:
         @param   durationAdded         indicates whether Duration property was
                                        added to the list
      */
-    void _updatePropertyList
-        (CIMName & className,
-         CIMPropertyList & propertyList,
-         Boolean & setTimeRemaining,
-         Boolean & startTimeAdded,
-         Boolean & durationAdded);
+    void _updatePropertyList(
+        CIMName& className,
+        CIMPropertyList& propertyList,
+        Boolean& setTimeRemaining,
+        Boolean& startTimeAdded,
+        Boolean& durationAdded);
 
     /**
         Gets a String containing the comma-separated Subscription Filter Name
@@ -1160,8 +1158,7 @@ private:
         @return  String containing the comma-separated Subscription Filter Name
                  and Handler Name
      */
-    String _getSubscriptionLogString
-        (CIMInstance & subscription);
+    String _getSubscriptionLogString(CIMInstance& subscription);
 
     SubscriptionRepository* _subscriptionRepository;
 
@@ -1201,14 +1198,13 @@ private:
     Boolean _authenticationEnabled;
 
     /**
-       Gets the indication class specified by the subscription filter query.
+        Gets the indication class specified by the subscription filter query.
 
-       @param instance     the subscription instance
+        @param instance     the subscription instance
 
-       @return CIMClass object for the indication class
+        @return CIMClass object for the indication class
     */
-    CIMClass _getIndicationClass(
-       const CIMInstance & instance);
+    CIMClass _getIndicationClass(const CIMInstance& instance);
 
     /**
         Arrays of valid and supported property values
@@ -1226,28 +1222,28 @@ private:
         PersistenceType: Permanent, Transient
         SNMPVersion: SNMPv1 Trap, SNMPv2C Trap
      */
-    Array <Uint16> _validStates;
-    Array <Uint16> _validRepeatPolicies;
-    Array <Uint16> _validErrorPolicies;
-    Array <Uint16> _validPersistenceTypes;
-    Array <Uint16> _validSNMPVersion;
-    Array <Uint16> _supportedStates;
-    Array <Uint16> _supportedRepeatPolicies;
-    Array <Uint16> _supportedErrorPolicies;
-    Array <Uint16> _supportedPersistenceTypes;
-    Array <Uint16> _supportedSNMPVersion;
+    Array<Uint16> _validStates;
+    Array<Uint16> _validRepeatPolicies;
+    Array<Uint16> _validErrorPolicies;
+    Array<Uint16> _validPersistenceTypes;
+    Array<Uint16> _validSNMPVersion;
+    Array<Uint16> _supportedStates;
+    Array<Uint16> _supportedRepeatPolicies;
+    Array<Uint16> _supportedErrorPolicies;
+    Array<Uint16> _supportedPersistenceTypes;
+    Array<Uint16> _supportedSNMPVersion;
 
     /**
         Arrays of names of supported properties for each class
      */
-    Array <CIMName> _supportedSubscriptionProperties;
-    Array <CIMName> _supportedFormattedSubscriptionProperties;
-    Array <CIMName> _supportedFilterProperties;
-    Array <CIMName> _supportedCIMXMLHandlerProperties;
-    Array <CIMName> _supportedCIMXMLListenerDestinationProperties;
-    Array <CIMName> _supportedSNMPHandlerProperties;
-    Array <CIMName> _supportedSyslogListenerDestinationProperties;
-    Array <CIMName> _supportedEmailListenerDestinationProperties;
+    Array<CIMName> _supportedSubscriptionProperties;
+    Array<CIMName> _supportedFormattedSubscriptionProperties;
+    Array<CIMName> _supportedFilterProperties;
+    Array<CIMName> _supportedCIMXMLHandlerProperties;
+    Array<CIMName> _supportedCIMXMLListenerDestinationProperties;
+    Array<CIMName> _supportedSNMPHandlerProperties;
+    Array<CIMName> _supportedSyslogListenerDestinationProperties;
+    Array<CIMName> _supportedEmailListenerDestinationProperties;
 };
 
 PEGASUS_NAMESPACE_END
index a809eb44e3e366bfbf500d57e4e9991a3c580e9c..4438c7412a3fe8fbf6fefb8a3f03ef7c6c41ea1c 100644 (file)
@@ -55,10 +55,10 @@ struct providerClassList
     String remoteInfo;
 #endif
 
-    providerClassList () 
+    providerClassList()
     {
     }
-      
+
     providerClassList (const providerClassList & rh)
     :   provider (rh.provider),
         providerModule (rh.providerModule),
index a5be255bf08e5c837afc308cc5e339863d9145ee..19cb67987105797068ac670ece016ba2754c58fc 100644 (file)
@@ -370,7 +370,8 @@ Boolean SubscriptionRepository::getState (
     PEG_METHOD_ENTER (TRC_INDICATION_SERVICE,
         "SubscriptionRepository::getState");
 
-    Uint32 stateIndex = instance.findProperty (PEGASUS_PROPERTYNAME_SUBSCRIPTION_STATE);
+    Uint32 stateIndex =
+        instance.findProperty(PEGASUS_PROPERTYNAME_SUBSCRIPTION_STATE);
     if (stateIndex != PEG_NOT_FOUND)
     {
         CIMValue stateValue = instance.getProperty
@@ -577,7 +578,7 @@ Array <CIMInstance> SubscriptionRepository::deleteReferencingSubscriptions (
                         subscriptions [i].getPath ().toString () + "): " +
                         exception.getMessage ());
                 }
+
                 deletedSubscriptions.append (subscriptions [i]);
             }
         }
index 668443f18d706e1a32a0ffe0a0f889adc7695fbb..b8da8f5b4f6a026e07db60a1eb74febcc39d4356 100644 (file)
 //
 //==============================================================================
 //
-// Author: Carol Ann Krug Graves, Hewlett-Packard Company
-//             (carolann_graves@hp.com)
-//
-// Modified By:  
-//              Sean Keenan, Hewlett-Packard Company (sean.keenan@hp.com)
-//              Aruran, IBM (ashanmug@in.ibm.com) for Bug# 3603
-//
 //%/////////////////////////////////////////////////////////////////////////////
 
 #include <Pegasus/Common/Config.h>
@@ -181,7 +174,7 @@ Array <CIMInstance> SubscriptionTable::reflectProviderDisable (
         //  Acquire and hold the write lock during the entire
         //  lookup/remove/insert process, allowing competing threads to apply
         //  their logic over a consistent view of the data.
-        //  Do not call any other methods that need 
+        //  Do not call any other methods that need
         //  _activeSubscriptionsTableLock.
         //
         WriteLock lock (_activeSubscriptionsTableLock);
@@ -246,7 +239,7 @@ Array <CIMInstance> SubscriptionTable::reflectProviderDisable (
             }
             else
             {
-                PEG_TRACE_STRING (TRC_INDICATION_SERVICE_INTERNAL, 
+                PEG_TRACE_STRING (TRC_INDICATION_SERVICE_INTERNAL,
                     Tracer::LEVEL2,
                     "Subscription (" + activeSubscriptionsKey.toString () +
                     ") not found in ActiveSubscriptionsTable");
@@ -288,7 +281,7 @@ SubscriptionTable::reflectProviderModuleFailure
         //  Acquire and hold the write lock during the entire
         //  lookup/remove/insert process, allowing competing threads to apply
         //  their logic over a consistent view of the data.
-        //  Do not call any other methods that need 
+        //  Do not call any other methods that need
         //  _activeSubscriptionsTableLock.
         //
         WriteLock lock (_activeSubscriptionsTableLock);
@@ -324,7 +317,7 @@ SubscriptionTable::reflectProviderModuleFailure
                 //  Get module user context setting
                 //
                 Uint16 moduleContext = PEGASUS_DEFAULT_PROV_USERCTXT;
-                CIMValue contextValue = 
+                CIMValue contextValue =
                     tableValue.providers [j].providerModule.getProperty
                     (tableValue.providers [j].providerModule.findProperty
                     (PEGASUS_PROPERTYNAME_MODULE_USERCONTEXT)).getValue ();
@@ -334,7 +327,7 @@ SubscriptionTable::reflectProviderModuleFailure
                 }
 
                 //
-                //  If provider module name matches, 
+                //  If provider module name matches,
                 //  add provider to the list of failed providers
                 //
                 if (providerModuleName == moduleName)
@@ -385,7 +378,7 @@ SubscriptionTable::reflectProviderModuleFailure
             if (_activeSubscriptionsTable.lookup (activeSubscriptionsKey,
                 tableValue))
             {
-                Array <ProviderClassList> updatedProviderList;    
+                Array <ProviderClassList> updatedProviderList;
                 for (Uint32 l = 0; l < tableValue.providers.size (); l++)
                 {
                     String providerModuleName;
@@ -442,13 +435,15 @@ CIMObjectPath SubscriptionTable::_generateActiveSubscriptionsKey (
     //
     //  Construct subscription object name for key
     //
-    filterPath.setHost (String::EMPTY);
-    handlerPath.setHost (String::EMPTY);
-    Array <CIMKeyBinding> kb;
-    kb.append (CIMKeyBinding (PEGASUS_PROPERTYNAME_FILTER, CIMValue (filterPath)));
-    kb.append (CIMKeyBinding (PEGASUS_PROPERTYNAME_HANDLER, CIMValue (handlerPath)));
-    CIMObjectPath activeSubscriptionsKey ("", subscription.getNameSpace (),
-        subscription.getClassName (), kb);
+    filterPath.setHost(String::EMPTY);
+    handlerPath.setHost(String::EMPTY);
+    Array<CIMKeyBinding> kb;
+    kb.append(CIMKeyBinding(
+        PEGASUS_PROPERTYNAME_FILTER, CIMValue(filterPath)));
+    kb.append(CIMKeyBinding(
+        PEGASUS_PROPERTYNAME_HANDLER, CIMValue(handlerPath)));
+    CIMObjectPath activeSubscriptionsKey(
+        "", subscription.getNameSpace(), subscription.getClassName(), kb);
 
     return activeSubscriptionsKey;
 }
@@ -687,7 +682,7 @@ void SubscriptionTable::insertSubscription (
         //  Acquire and hold the write lock during the entire
         //  lookup/remove/insert process, allowing competing threads to apply
         //  their logic over a consistent view of the data.
-        //  Do not call any other methods that need 
+        //  Do not call any other methods that need
         //  _subscriptionClassesTableLock.
         //
         WriteLock lock (_subscriptionClassesTableLock);
@@ -742,14 +737,14 @@ void SubscriptionTable::updateProviders (
         //  Acquire and hold the write lock during the entire
         //  lookup/remove/insert process, allowing competing threads to apply
         //  their logic over a consistent view of the data.
-        //  Do not call any other methods that need 
+        //  Do not call any other methods that need
         //  _activeSubscriptionsTableLock.
         //
         WriteLock lock (_activeSubscriptionsTableLock);
         if (_activeSubscriptionsTable.lookup (activeSubscriptionsKey,
             tableValue))
         {
-            Uint32 providerIndex = providerInList (provider.provider, 
+            Uint32 providerIndex = providerInList (provider.provider,
                 tableValue);
             if (addProvider)
             {
@@ -765,7 +760,7 @@ void SubscriptionTable::updateProviders (
                     CIMInstance p = provider.provider;
                     PEG_TRACE_STRING (TRC_INDICATION_SERVICE_INTERNAL,
                         Tracer::LEVEL2,
-                        "Provider " + 
+                        "Provider " +
                         IndicationService::getProviderLogString (p) +
                         " already in list for Subscription (" +
                         activeSubscriptionsKey.toString () +
@@ -786,7 +781,7 @@ void SubscriptionTable::updateProviders (
                     CIMInstance p = provider.provider;
                     PEG_TRACE_STRING (TRC_INDICATION_SERVICE_INTERNAL,
                         Tracer::LEVEL2,
-                        "Provider " + 
+                        "Provider " +
                         IndicationService::getProviderLogString (p) +
                         " not found in list for Subscription (" +
                         activeSubscriptionsKey.toString () +
@@ -799,7 +794,7 @@ void SubscriptionTable::updateProviders (
             PEG_TRACE_STRING (TRC_INDICATION_SERVICE_INTERNAL, Tracer::LEVEL2,
                 "Subscription (" + activeSubscriptionsKey.toString () +
                 ") not found in ActiveSubscriptionsTable");
-    
+
             //
             //  The subscription may have been deleted in the mean time
             //  If so, no further update is required
@@ -827,11 +822,11 @@ void SubscriptionTable::updateClasses (
         //  Acquire and hold the write lock during the entire
         //  lookup/remove/insert process, allowing competing threads to apply
         //  their logic over a consistent view of the data.
-        //  Do not call any other methods that need 
+        //  Do not call any other methods that need
         //  _activeSubscriptionsTableLock.
         //
         WriteLock lock (_activeSubscriptionsTableLock);
-        if (_activeSubscriptionsTable.lookup (activeSubscriptionsKey, 
+        if (_activeSubscriptionsTable.lookup (activeSubscriptionsKey,
             tableValue))
         {
             Uint32 providerIndex = providerInList (provider, tableValue);
@@ -856,7 +851,7 @@ void SubscriptionTable::updateClasses (
             }
             else
             {
-                PEG_TRACE_STRING (TRC_INDICATION_SERVICE_INTERNAL, 
+                PEG_TRACE_STRING (TRC_INDICATION_SERVICE_INTERNAL,
                     Tracer::LEVEL2,
                     "Provider (" + provider.getPath ().toString () +
                     ") not found in list for Subscription (" +
@@ -902,7 +897,7 @@ void SubscriptionTable::removeSubscription (
         //  Acquire and hold the write lock during the entire
         //  lookup/remove/insert process, allowing competing threads to apply
         //  their logic over a consistent view of the data.
-        //  Do not call any other methods that need 
+        //  Do not call any other methods that need
         //  _subscriptionClassesTableLock.
         //
         WriteLock lock (_subscriptionClassesTableLock);
@@ -927,12 +922,12 @@ void SubscriptionTable::removeSubscription (
                         subscriptions.remove (j);
                     }
                 }
-    
+
                 //
                 //  Remove the old entry
                 //
                 _removeSubscriptionClassesEntry (subscriptionClassesKey);
-    
+
                 //
                 //  If there are still subscriptions in the list, insert the
                 //  new entry
@@ -949,9 +944,9 @@ void SubscriptionTable::removeSubscription (
                 //
                 //  Entry not found in Subscription Classes table
                 //
-                PEG_TRACE_STRING (TRC_INDICATION_SERVICE_INTERNAL, 
+                PEG_TRACE_STRING (TRC_INDICATION_SERVICE_INTERNAL,
                     Tracer::LEVEL2,
-                    "Indication subclass and namespace (" + 
+                    "Indication subclass and namespace (" +
                     subscriptionClassesKey +
                     ") not found in SubscriptionClassesTable");
             }
index ebd9e1c0f0db89701ae7b47e4f91fbcbf4b882a3..45436e332e848a07981cb33803553b3093861a94 100644 (file)
 #include "ShutdownService.h"
 #include "BinaryMessageHandler.h"
 #include <Pegasus/Common/ModuleController.h>
-#include \
-    <Pegasus/ControlProviders/ConfigSettingProvider/ConfigSettingProvider.h>
 #include <Pegasus/ControlProviders/UserAuthProvider/UserAuthProvider.h>
-#include \
-<Pegasus/ControlProviders/ProviderRegistrationProvider/ProviderRegistrationProvider.h>
+// NOCHKSRC
+#include <Pegasus/ControlProviders/ConfigSettingProvider/ConfigSettingProvider.h>
+#include <Pegasus/ControlProviders/ProviderRegistrationProvider/ProviderRegistrationProvider.h>
+// DOCHKSRC
 #include <Pegasus/ControlProviders/NamespaceProvider/NamespaceProvider.h>
 
 #ifndef PEGASUS_DISABLE_PERFINST
 #endif
 
 #ifndef PEGASUS_DISABLE_CQL
-# include \
-<Pegasus/ControlProviders/QueryCapabilitiesProvider/CIMQueryCapabilitiesProvider.h>
+// NOCHKSRC
+# include <Pegasus/ControlProviders/QueryCapabilitiesProvider/CIMQueryCapabilitiesProvider.h>
+// DOCHKSRC
 #endif
 
 #if !defined(PEGASUS_DISABLE_PERFINST) || defined(PEGASUS_ENABLE_SLP)
@@ -173,7 +174,8 @@ void* waitForStopCommand(void*)
             sprintf(str_errno2,"%08X",__errno2());
 
             PEG_TRACE((TRC_SERVER, Tracer::LEVEL2,
-                "Failed to issue __console() command: %s",strerror(errornumber)));
+                "Failed to issue __console() command: %s",
+                strerror(errornumber)));
             Logger::put_l(
                 Logger::ERROR_LOG, "CIM Server", Logger::SEVERE,
                 "Server.CIMServer.CONSOLE_ERROR.PEGASUS_OS_ZOS",
index 52a54cbba9a2d867c646f2926b9bb820a73a5307..5a09fbfd6c94eacaa6fc8453b2cf6896b3c43ddf 100755 (executable)
@@ -43,7 +43,7 @@
 // implementation of getoopt
 
 #include <Pegasus/Common/PegasusVersion.h>
-#include <Pegasus/Common/MessageLoader.h> //l10n
+#include <Pegasus/Common/MessageLoader.h>
 
 #include "getoopt.h"
 #include <cctype>
@@ -58,37 +58,49 @@ PEGASUS_USING_STD;
 
 // Constructors
 //   Default Constructor
-Optarg::Optarg() : _name(""), _opttype(REGULAR), _value("") {
+Optarg::Optarg()
+    : _name(""),
+      _opttype(REGULAR),
+      _value("")
+{
 }
 
 //   All-in-one
-Optarg::Optarg(const String &name, opttype type, const String &value) :
-  _name(name), _opttype(type), _value(value) {
+Optarg::Optarg(
+    const String& name,
+    opttype type,
+    const String& value)
+    : _name(name),
+      _opttype(type),
+      _value(value)
+{
 }
 
 // Destructor
-Optarg::~Optarg() {};
+Optarg::~Optarg()
+{
+}
 
 //-----------------------------------------------------------------------
 //        Set the class members
 //-----------------------------------------------------------------------
 
 // Set the _name member
-void
-Optarg::setName(const String &name) {
-  _name = name;
+void Optarg::setName(const String& name)
+{
+    _name = name;
 }
 
 // Set the _opttype member
-void
-Optarg::setType(opttype type) {
-  _opttype = type;
+void Optarg::setType(opttype type)
+{
+    _opttype = type;
 }
 
 // Set the _value member
-void
-Optarg::setValue(const String &value) {
-  _value = value;
+void Optarg::setValue(const String& value)
+{
+    _value = value;
 }
 
 //-----------------------------------------------------------------------
@@ -96,35 +108,45 @@ Optarg::setValue(const String &value) {
 //-----------------------------------------------------------------------
 
 //  Get the _name member
-const String &
+const String&
 Optarg::getName() const { return _name; }
 
 //  Get the _name member using getopt() terminology
-const String &
-Optarg::getopt()  const { return _name; }
+const String& Optarg::getopt() const
+{
+    return _name;
+}
 
 //  Get the _type member
-Optarg::opttype
-Optarg::getType() const { return _opttype; }
+Optarg::opttype Optarg::getType() const
+{
+    return _opttype;
+}
 
 //-------------------------------------------------------------------
 //             Ways to get the _value member
 //-------------------------------------------------------------------
 
 //  Return _value as const String ref
-const String &
-Optarg::Value() const { return _value; }
+const String& Optarg::Value() const
+{
+    return _value;
+}
 
 //  Same thing as Value(), but using getopt() terminology
-const String &
-Optarg::optarg() const { return _value; }
+const String& Optarg::optarg() const
+{
+    return _value;
+}
 
 //  Fill in a caller-provided String
-void
-Optarg::Value(String &s) const { s = _value; }
+void Optarg::Value(String& s) const
+{
+    s = _value;
+}
 
 //  Fill in a caller-provided int with the integer conversion of the value.
-void Optarg::Value (int &i) const
+void Optarg::Value(int& i) const
 {
     CString cs = _value.getCString();
     const char* s = cs;
@@ -157,7 +179,7 @@ void Optarg::Value (int &i) const
 }
 
 //  Fill in a caller-provided unsigned int
-void Optarg::Value (unsigned int &i) const
+void Optarg::Value(unsigned int& i) const
 {
     CString cs = _value.getCString();
     const char* s = cs;
@@ -185,26 +207,26 @@ void Optarg::Value (unsigned int &i) const
     }
     else
     {
-        throw TypeMismatchException ();
+        throw TypeMismatchException();
     }
 }
 
 //  Fill in a caller-provided long
-void
-Optarg::Value(long &l) const {
-  l = (long)atoi(_value.getCString());
+void Optarg::Value(long& l) const
+{
+    l = (long)atoi(_value.getCString());
 }
 
 //  Fill in a caller-provided unsigned long
-void
-Optarg::Value(unsigned long &l) const {
-  l = (unsigned long)atoi(_value.getCString());
+void Optarg::Value(unsigned long& l) const
+{
+    l = (unsigned long)atoi(_value.getCString());
 }
 
 //  Fill in a caller-provided double
-void
-Optarg::Value(double &d) const {
-  d = (double)atof(_value.getCString());
+void Optarg::Value(double& d) const
+{
+    d = (double)atof(_value.getCString());
 }
 
 //--------------------------------------------------------------------
@@ -212,27 +234,32 @@ Optarg::Value(double &d) const {
 //--------------------------------------------------------------------
 
 // Is the option value is bound to a flag?
-Boolean
-Optarg::isFlag() const { return (_opttype == FLAG || _opttype == LONGFLAG); }
+Boolean Optarg::isFlag() const
+{
+    return (_opttype == FLAG || _opttype == LONGFLAG);
+}
 
 // Is it bound to a long-named flag?
-Boolean
-Optarg::isLongFlag() const { return (_opttype == LONGFLAG); }
+Boolean Optarg::isLongFlag() const
+{
+    return (_opttype == LONGFLAG);
+}
 
 //-----------------------------------------------------------------------
 //  print the members as a formatted String
 //-----------------------------------------------------------------------
-ostream &
-Optarg::print(ostream &os) const {
-  os << "{name:(" << getName();
-  os << ") type:(";
-  switch (getType()) {
-  case FLAG: os << "FLAG"; break;
-  case LONGFLAG: os << "LONGFLAG"; break;
-  case REGULAR: os << "REGULAR"; break;
-  }
-  os << ") value:(" << Value() << ")}";
-  return os;
+ostream& Optarg::print(ostream& os) const
+{
+    os << "{name:(" << getName();
+    os << ") type:(";
+    switch (getType())
+    {
+    case FLAG: os << "FLAG"; break;
+    case LONGFLAG: os << "LONGFLAG"; break;
+    case REGULAR: os << "REGULAR"; break;
+    }
+    os << ") value:(" << Value() << ")}";
+    return os;
 }
 
 
@@ -245,14 +272,17 @@ Optarg::print(ostream &os) const {
 
 // Default constructor.  The optional String is in the format of
 // a getopt() optstring
-getoopt::getoopt(const char *optstring)
+getoopt::getoopt(const charoptstring)
 {
-  if (optstring) {
-    addFlagspec(optstring);
-  }
+    if (optstring)
+    {
+        addFlagspec(optstring);
+    }
 }
 
-getoopt::~getoopt() {;}
+getoopt::~getoopt()
+{
+}
 
 //----------------------------------------------------------------------
 //  methods to register program-defined flags and their characteristics
@@ -264,77 +294,84 @@ getoopt::~getoopt() {;}
 
 // Parse through a getopt() optstring and create flagspecs from each
 // short flag.
-Boolean
-getoopt::addFlagspec(const String &opt) {
-  unsigned int size = opt.size();
-  if (size == 0)
-    return false;
-  for (unsigned int i = 0; i < size; i++) {
-    char c = static_cast<char>(opt[i]);
-    if ( ((i + 1) < size) && (opt[i+1] == ':') ) {
-      if (!(addFlagspec(c, true))) {
-        return false;
-      }
-      ++i;
-    } else {
-      if (!(addFlagspec(c, false)))
+Boolean getoopt::addFlagspec(const String& opt)
+{
+    unsigned int size = opt.size();
+    if (size == 0)
         return false;
+    for (unsigned int i = 0; i < size; i++)
+    {
+        char c = static_cast<char>(opt[i]);
+        if ( ((i + 1) < size) && (opt[i+1] == ':') )
+        {
+            if (!(addFlagspec(c, true)))
+            {
+                return false;
+            }
+            ++i;
+        }
+        else
+        {
+            if (!(addFlagspec(c, false)))
+                return false;
+        }
     }
-  }
-  return true;
+    return true;
 }
 
 //  Create a filespec from a single short flag and push it onto the array
-Boolean
-getoopt::addFlagspec(char flag, Boolean hasarg) {
-  if (flag == '*') {
-       //l10n
-       MessageLoaderParms parms("getoopt.getoopt.CANT_NAME_FLAG",
-                                                        "You can't have a flag named '$0'",
-                                                        flag);
-       addError(MessageLoader::getMessage(parms));
-    //addError("You can't have a flag named '*'");
-    //l10n end
-    return false;
-  }
-  flagspec fs;
-  char c[2];
-  c[0] = flag;
-  c[1] = 0;
-  fs.name = c;
-  fs.argtype = hasarg ? 1 : 0;
-  fs.islong = false;
-  fs.active = true;
-  _flagspecs.append(fs);
-  return true;
+Boolean getoopt::addFlagspec(char flag, Boolean hasarg)
+{
+    if (flag == '*')
+    {
+        MessageLoaderParms parms(
+            "getoopt.getoopt.CANT_NAME_FLAG",
+            "You can't have a flag named '$0'",
+            flag);
+        addError(MessageLoader::getMessage(parms));
+        return false;
+    }
+    flagspec fs;
+    char c[2];
+    c[0] = flag;
+    c[1] = 0;
+    fs.name = c;
+    fs.argtype = hasarg ? 1 : 0;
+    fs.islong = false;
+    fs.active = true;
+    _flagspecs.append(fs);
+    return true;
 }
 
 // Create a flagspec from a single long flag and push it onto the array
-Boolean
-getoopt::addLongFlagspec(const String &name, argtype type) {
-  flagspec fs;
+Boolean getoopt::addLongFlagspec(
+    const String& name,
+    argtype type)
+{
+    flagspec fs;
 
-  // Changing "fs.name = name" to the following line masks an ugly crash
-  // which occurs when compiling with debug option on WIN32:
+    // Changing "fs.name = name" to the following line masks an ugly crash
+    // which occurs when compiling with debug option on WIN32:
 
-  fs.name = name;
+    fs.name = name;
 
-  fs.argtype = type;
-  fs.islong = true;
-  fs.active = true;
-  _flagspecs.append(fs);
-  return true;
+    fs.argtype = type;
+    fs.islong = true;
+    fs.active = true;
+    _flagspecs.append(fs);
+    return true;
 }
 
 // Unregister a flagspec
-Boolean
-getoopt::removeFlagspec(char opt) {
-  flagspec *fs = getFlagspecForUpdate(opt);
-  if (fs) {
-    fs->active = false;
-    return true;
-  }
-  return false;
+Boolean getoopt::removeFlagspec(char opt)
+{
+    flagspec* fs = getFlagspecForUpdate(opt);
+    if (fs)
+    {
+        fs->active = false;
+        return true;
+    }
+    return false;
 }
 
 /**
@@ -354,81 +391,98 @@ const char getoopt::GETOPT_ARGUMENT_DESIGNATOR = ':';
 // Parse out the flagname and the value from a long flag option that
 // may be in the form
 //          --longflag=value
-static void
-partsFromLongOpt (const String &s, String &name, String &value) {
-  for (unsigned int i = 0; i < s.size(); i++) {
-    if (s[i] == '=') {
-      name = s.subString(0, i);
-      value = s.subString(i+1);
-      return;
+static void partsFromLongOpt(
+    const String& s,
+    String& name,
+    String& value)
+{
+    for (unsigned int i = 0; i < s.size(); i++)
+    {
+        if (s[i] == '=')
+        {
+            name = s.subString(0, i);
+            value = s.subString(i+1);
+            return;
+        }
     }
-  }
-  name = s;
-  value =  "";
+    name = s;
+    value =  "";
 }
 
 // Create an Optarg instance from a long flag String like
 //          --longflag=value
 // (The =value is optional).
-static void
-optargFromLongOpt(Optarg &o, const String &arg) {
-  String name;
-  String value;
-  partsFromLongOpt(arg, name, value);
-  o.setName(name);
-  o.setType(Optarg::LONGFLAG);
-  o.setValue(value);
+static void optargFromLongOpt(
+    Optarg& o,
+    const String& arg)
+{
+    String name;
+    String value;
+    partsFromLongOpt(arg, name, value);
+    o.setName(name);
+    o.setType(Optarg::LONGFLAG);
+    o.setValue(value);
 }
 
 // Create an Optarg instance from a short flag String like
 //      -fValue
 // (The Value part is optional)
-static void
-optargFromShortOpt(Optarg &o, const char *arg) {
-  char name[2];
-  name[0] = arg[0];
-  name[1] = 0;
-  o.setName(name);
-  o.setType(Optarg::FLAG);
-  const char *p = arg + 1;
-  o.setValue(p);
+static void optargFromShortOpt(
+    Optarg& o,
+    const char* arg)
+{
+    char name[2];
+    name[0] = arg[0];
+    name[1] = 0;
+    o.setName(name);
+    o.setType(Optarg::FLAG);
+    const char* p = arg + 1;
+    o.setValue(p);
 }
 
 // Look at a command line option and determine whether it is a
 // long flag, a short flag or an unflagged option.
-static int
-catagorize(const char *s) {
-  if (s[0] != '-')
-    return 0;
-  else
-    if (s[1] == '-')
-      return 2;
-  return 1;
+static int catagorize(const char* s)
+{
+    if (s[0] != '-')
+        return 0;
+    else
+        if (s[1] == '-')
+            return 2;
+    return 1;
 }
 
 // Push an Optarg onto our array
-static void
-addarg(getoopt::Arg_List&list, const Optarg &o) {
-  //o.print(cout);
-  list.append(o);
+static void addarg(
+    getoopt::Arg_List&list,
+    const Optarg& o)
+{
+    //o.print(cout);
+    list.append(o);
 }
 
 // Create an Optarg from its members and push it onto the array
-static void
-addarg(getoopt::Arg_List&list, const String &name, Optarg::opttype type,
-             const String &value) {
-  Optarg *o = new Optarg(name, type, value);
-  addarg(list, *o);
-  delete o;
+static void addarg(
+    getoopt::Arg_List& list,
+    const String& name,
+    Optarg::opttype type,
+    const String& value)
+{
+    Optarg* o = new Optarg(name, type, value);
+    addarg(list, *o);
+    delete o;
 }
 
 // Take an array of arguments and append it to another
-static void
-copyargs(getoopt::Arg_List &out, const getoopt::Arg_List &in) {
-  Uint32 size = in.size();
-  for (Uint32 i = 0; i < size; i++) {
-    addarg(out, in[i]);
-  }
+static void copyargs(
+    getoopt::Arg_List& out,
+    const getoopt::Arg_List& in)
+{
+    Uint32 size = in.size();
+    for (Uint32 i = 0; i < size; i++)
+    {
+        addarg(out, in[i]);
+    }
 }
 
 //------------------------------------
@@ -438,118 +492,142 @@ copyargs(getoopt::Arg_List &out, const getoopt::Arg_List &in) {
 // args are appended, sorting them
 // to the rear the way getopt() does.
 //------------------------------------
-Boolean
-getoopt::parse(int argc, char **argv) {
-  Optarg o;
-  int cat;
-  const flagspec *fs;
-  Arg_List nonflagargs;
-  enum states {START, ARGEXPECTED};
-  states state = START;
-  for (unsigned int i = 1; i < (unsigned int)argc; i++) {
-    unsigned int endsize = static_cast<unsigned int>(strlen(argv[i]));
-      switch (state) {
-      case START:
-        cat = catagorize(argv[i]);
-       switch (cat) {
-       case 0: // non-flag command line argument
-         addarg(nonflagargs, "", Optarg::REGULAR, argv[i]);
-         break;
-       case 1: // short (1-character) flag
-         {
-           unsigned int argpos = 1;
-           while (argpos < endsize) {
-             char c = argv[i][argpos];
-             fs = getFlagspec(c);  // Short flag
-             String temp = argv[i];
-             String name = temp.subString(argpos, 1);
-             if (!fs) {  // See if we recognize it
-               //l10n
-               MessageLoaderParms parms("getoopt.getoopt.UNKNOWN_FLAG",
-                                                                "Unknown flag $0$1",
-                                                                "-",
-                                                                name);
-               addError(MessageLoader::getMessage(parms));
-                       //addError("Unknown flag -" + name);
-                       //l10n end
-                       argpos++;
-             } else {
-               if (fs->argtype == NOARG) {  // Should this flag be bound
-                 addarg(_args, name, Optarg::FLAG,  "");  // NO
-                 argpos++;
-               } else { // YES -- the value is here or in the next arg
-                 optargFromShortOpt(o, &argv[i][argpos]);
-                 if (o.Value() == "") { // No value yet
-                   state = ARGEXPECTED;
-                 } else {
-                   addarg(_args, o);
-                 }
-                 argpos = endsize;
-               }
-             }
-           }
-         } // end subcase 1
-         break;
-       case 2:  // long (--xyz) flag
-         {
-           String arg = &(argv[i][2]);
-           optargFromLongOpt(o, arg);
-           fs = getFlagspec(o.getName());
-           if (!fs) { // see if we recognize this flag
-               //l10n
-             //String temp = "Unknown flag ";
-             //addError(temp + o.getName());
-             MessageLoaderParms parms("getoopt.getoopt.UNKNOWN_FLAG",
-                                                          "Unknown flag $0$1",
-                                                          "",
-                                                          o.getName());
-             addError(MessageLoader::getMessage(parms));
-             //l10n end
-           } else {
-               // this is a long flag we know about
-             if (o.optarg() != ""  || fs->argtype != MUSTHAVEARG) {
-               addarg(_args, o);
-               state = START;  // we have a completed long flag
-             } else {   // no value yet, and we expect one
-               if (fs->argtype == MUSTHAVEARG) {
-                 state = ARGEXPECTED;
-               }
-             }
-           }
-           break;
-         } // end subcase 2
-       } // end switch catagorize()
-       break; // end of case START
-
-      case ARGEXPECTED:
-       if (argv[i][0] == '-') {
-               //l10n
-         //addError("Missing required value for flag " + o.getopt());
-         MessageLoaderParms parms("getoopt.getoopt.MISSING_VALUE_FOR_FLAG",
-                                                  "Missing required value for flag $0",
-                                                  o.getopt());
-         addError(MessageLoader::getMessage(parms));
-         //l10n end
-         i--;
-       } else {
-         o.setValue(argv[i]);
-       }
-       addarg(_args, o);
-       state = START;
-       break;
-      } // end switch
-  } // end for
-  if (state != START) {
-       //l10n
-    //addError("Missing required value for flag " + o.getName());
-    MessageLoaderParms parms("getoopt.getoopt.MISSING_VALUE_FOR_FLAG",
-                                                  "Missing required value for flag $0",
-                                                  o.getName());
-         addError(MessageLoader::getMessage(parms));
-    //l10n end
-  }
-  copyargs(_args, nonflagargs);
-  return !_errorStrings.size();
+Boolean getoopt::parse(
+    int argc,
+    char** argv)
+{
+    Optarg o;
+    int cat;
+    const flagspec* fs;
+    Arg_List nonflagargs;
+    enum states {START, ARGEXPECTED};
+    states state = START;
+    for (unsigned int i = 1; i < (unsigned int)argc; i++)
+    {
+        unsigned int endsize = static_cast<unsigned int>(strlen(argv[i]));
+        switch (state)
+        {
+        case START:
+            cat = catagorize(argv[i]);
+            switch (cat)
+            {
+            case 0: // non-flag command line argument
+                addarg(nonflagargs, "", Optarg::REGULAR, argv[i]);
+                break;
+            case 1: // short (1-character) flag
+            {
+                unsigned int argpos = 1;
+                while (argpos < endsize)
+                {
+                    char c = argv[i][argpos];
+                    fs = getFlagspec(c);  // Short flag
+                    String temp = argv[i];
+                    String name = temp.subString(argpos, 1);
+                    // See if we recognize it
+                    if (!fs)
+                    {
+                        MessageLoaderParms parms(
+                            "getoopt.getoopt.UNKNOWN_FLAG",
+                            "Unknown flag $0$1",
+                            "-",
+                            name);
+                        addError(MessageLoader::getMessage(parms));
+                        argpos++;
+                    }
+                    else
+                    {
+                        // Should this flag be bound?
+                        if (fs->argtype == NOARG)
+                        {
+                            // NO
+                            addarg(_args, name, Optarg::FLAG,  "");
+                            argpos++;
+                        }
+                        else
+                        {
+                            // YES -- the value is here or in the next arg
+                            optargFromShortOpt(o, &argv[i][argpos]);
+                            if (o.Value() == "")
+                            {
+                                // No value yet
+                                state = ARGEXPECTED;
+                            }
+                            else
+                            {
+                                addarg(_args, o);
+                            }
+                            argpos = endsize;
+                        }
+                    }
+                }
+                break;
+            } // end subcase 1
+            case 2:  // long (--xyz) flag
+            {
+                String arg = &(argv[i][2]);
+                optargFromLongOpt(o, arg);
+                fs = getFlagspec(o.getName());
+                // see if we recognize this flag
+                if (!fs)
+                {
+                    MessageLoaderParms parms(
+                        "getoopt.getoopt.UNKNOWN_FLAG",
+                        "Unknown flag $0$1",
+                        "",
+                        o.getName());
+                    addError(MessageLoader::getMessage(parms));
+                }
+                else
+                {
+                    // this is a long flag we know about
+                    if (o.optarg() != ""  || fs->argtype != MUSTHAVEARG)
+                    {
+                        addarg(_args, o);
+                        state = START;  // we have a completed long flag
+                    }
+                    else
+                    {
+                        // no value yet, and we expect one
+                        if (fs->argtype == MUSTHAVEARG)
+                        {
+                            state = ARGEXPECTED;
+                        }
+                    }
+                }
+                break;
+            } // end subcase 2
+        } // end switch catagorize()
+        break; // end of case START
+
+        case ARGEXPECTED:
+            if (argv[i][0] == '-')
+            {
+                MessageLoaderParms parms(
+                    "getoopt.getoopt.MISSING_VALUE_FOR_FLAG",
+                    "Missing required value for flag $0",
+                    o.getopt());
+                addError(MessageLoader::getMessage(parms));
+                i--;
+            }
+            else
+            {
+                o.setValue(argv[i]);
+            }
+            addarg(_args, o);
+            state = START;
+            break;
+        } // end switch
+    } // end for
+    if (state != START)
+    {
+        MessageLoaderParms parms(
+            "getoopt.getoopt.MISSING_VALUE_FOR_FLAG",
+            "Missing required value for flag $0",
+            o.getName());
+        addError(MessageLoader::getMessage(parms));
+    }
+    copyargs(_args, nonflagargs);
+    return !_errorStrings.size();
 }
 
 //----------------------------------------------------------------------
@@ -561,22 +639,26 @@ getoopt::parse(int argc, char **argv) {
 //----------------------------------------------
 
 // Index operator
-const Optarg &
-getoopt::operator[](unsigned int n) {
-  unsigned int lim = _args.size();
-  if (n < lim)
-    return _args[n];
-  else
-    return _emptyopt;
+const Optarg& getoopt::operator[](unsigned int n)
+{
+    unsigned int lim = _args.size();
+    if (n < lim)
+        return _args[n];
+    else
+        return _emptyopt;
 }
 
 // Return first index
-unsigned int
-getoopt::first() const { return 0; }
+unsigned int getoopt::first() const
+{
+    return 0;
+}
 
 // Return one past last index
-unsigned int
-getoopt::last() const { return _args.size(); }
+unsigned int getoopt::last() const
+{
+    return _args.size();
+}
 
 //-----------------------------------------------
 // Access the command line arguments ad-hoc
@@ -584,94 +666,117 @@ getoopt::last() const { return _args.size(); }
 
 // Return the number of times a short flag is set
 // on the command line
-unsigned int
-getoopt::isSet(char c) const {
-  unsigned int cnt = 0;
-  for (unsigned int i = 0; i < _args.size(); i++) {
-    const Optarg &o = _args[i];
-    if (o.getType() == Optarg::FLAG) {
-      const String &s = o.getopt();
-      if (s[0] == c) {
-       cnt++;
-      }
+unsigned int getoopt::isSet(char c) const
+{
+    unsigned int cnt = 0;
+    for (unsigned int i = 0; i < _args.size(); i++)
+    {
+        const Optarg& o = _args[i];
+        if (o.getType() == Optarg::FLAG)
+        {
+            const String& s = o.getopt();
+            if (s[0] == c)
+            {
+                cnt++;
+            }
+        }
     }
-  }
-  return cnt;
+    return cnt;
 }
 
 // Return the number of times any flag is set
 // on the command line
-unsigned int
-getoopt::isSet(const String &s) const {
-  unsigned int cnt = 0;
-  for (unsigned int i = 0; i < _args.size(); i++) {
-    const Optarg &o = _args[i];
-    if (o.getopt() == s) {
-      cnt++;
+unsigned int getoopt::isSet(const String& s) const
+{
+    unsigned int cnt = 0;
+    for (unsigned int i = 0; i < _args.size(); i++)
+    {
+        const Optarg& o = _args[i];
+        if (o.getopt() == s)
+        {
+            cnt++;
+        }
     }
-  }
-  return cnt;
+    return cnt;
 }
 
 // Return the String value of the nth instance of
 // a particular short flag on the command line
-const String &
-getoopt::value(char opt, unsigned int idx) const {
-  unsigned int cnt = 0;
-  for (unsigned int i = 0; i < _args.size(); i++) {
-    const Optarg &o = _args[i];
-    if (o.getType() == Optarg::FLAG) {
-      const String &s = o.getopt();
-      if (s[0] == opt) {
-       if (cnt == idx) {
-         return o.optarg();
-       } else {
-         cnt++;
-       }
-      }
+const String& getoopt::value(
+    char opt,
+    unsigned int idx) const
+{
+    unsigned int cnt = 0;
+    for (unsigned int i = 0; i < _args.size(); i++)
+    {
+        const Optarg& o = _args[i];
+        if (o.getType() == Optarg::FLAG)
+        {
+            const String& s = o.getopt();
+            if (s[0] == opt)
+            {
+                if (cnt == idx)
+                {
+                    return o.optarg();
+                }
+                else
+                {
+                    cnt++;
+                }
+            }
+        }
     }
-  }
-  return(emptystring);
+    return emptystring;
 }
 
 // Return the nth instance of any flag on the command line
-const String &
-getoopt::value(const String &opt, unsigned int idx) const {
-  unsigned int cnt = 0;
-  for (unsigned int i = 0; i < _args.size(); i++) {
-    const Optarg &o = _args[i];
-    if (o.optarg() == opt) {
-      if (cnt == idx) {
-       return o.getopt();
-      } else {
-       cnt++;
-      }
+const String& getoopt::value(
+    const String& opt,
+     unsigned int idx) const
+{
+    unsigned int cnt = 0;
+    for (unsigned int i = 0; i < _args.size(); i++)
+    {
+        const Optarg& o = _args[i];
+        if (o.optarg() == opt)
+        {
+            if (cnt == idx)
+            {
+                return o.getopt();
+            }
+            else
+            {
+                cnt++;
+            }
+        }
     }
-  }
-  return(emptystring);
+    return emptystring;
 }
 
 // Of the command line arguments, how many are flags?
-unsigned int
-getoopt::flagcnt() const {
-  unsigned int cnt = 0;
-  for (Uint32 i = 0; i < _args.size(); i++) {
-    if (_args[i].getType() != Optarg::REGULAR)
-      cnt++;
-  }
-  return cnt;
+unsigned int getoopt::flagcnt() const
+{
+    unsigned int cnt = 0;
+    for (Uint32 i = 0; i < _args.size(); i++)
+    {
+        if (_args[i].getType() != Optarg::REGULAR)
+            cnt++;
+    }
+    return cnt;
 }
 
 // How many command line arguments were there?
-unsigned int
-getoopt::size() const {
-  return _args.size();
+unsigned int getoopt::size() const
+{
+    return _args.size();
 }
 
 // Return the list of command line arguments for use by
 // the program.
-const getoopt::Arg_List &
-getoopt::getArgs() const { return _args; }
+const getoopt::Arg_List& getoopt::getArgs() const
+{
+    return _args;
+}
 
 
 //-----------------------------------------------------------
@@ -681,70 +786,73 @@ getoopt::getArgs() const { return _args; }
 //----------------------------------------------------------
 
 // Add an error into the list
-void
-getoopt::addError(const String &s)
+void getoopt::addError(const String& s)
 {
-  _errorStrings.append(s);
+    _errorStrings.append(s);
 }
 
 // Return a list of the errors
-const getoopt::Error_List &
-getoopt::getErrorStrings() const {
-  return _errorStrings;
+const getoopt::Error_List& getoopt::getErrorStrings() const
+{
+    return _errorStrings;
 }
 
 // Did any errors occur?
-Boolean
-getoopt::hasErrors() const {
-  return _errorStrings.size() ? true : false;
+Boolean getoopt::hasErrors() const
+{
+    return _errorStrings.size() ? true : false;
 }
 
 
 
-flagspec *
-getoopt::getFlagspecForUpdate(const String &s) {
-  for (unsigned int i = 0; i < _flagspecs.size(); i++) {
-    flagspec &o = _flagspecs[i];
-    if (o.islong && s == o.name)
-      return &_flagspecs[i];
-  }
-return 0;
+flagspec* getoopt::getFlagspecForUpdate(const String& s)
+{
+    for (unsigned int i = 0; i < _flagspecs.size(); i++)
+    {
+        flagspec& o = _flagspecs[i];
+        if (o.islong && s == o.name)
+            return &_flagspecs[i];
+    }
+    return 0;
 }
 
-const flagspec *
-getoopt::getFlagspec(const String &s) {
-  return (const flagspec *)getFlagspecForUpdate(s);
+const flagspec* getoopt::getFlagspec(const String& s)
+{
+    return (const flagspec *)getFlagspecForUpdate(s);
 }
 
-ostream &
-getoopt::printErrors(ostream &os) const {
-  for (Uint32 i = 0; i < _errorStrings.size(); i++) {
-    os << "> " << _errorStrings[i] << endl;
-  }
-  return os;
+ostream& getoopt::printErrors(ostream& os) const
+{
+    for (Uint32 i = 0; i < _errorStrings.size(); i++)
+    {
+        os << "> " << _errorStrings[i] << endl;
+    }
+    return os;
 }
 
-void
-getoopt::printErrors(String &s) const {
-  for (Uint32 i = 0; i < _errorStrings.size(); i++) {
-    s.append("> " + _errorStrings[i] + "\n");
-  }
+void getoopt::printErrors(String& s) const
+{
+    for (Uint32 i = 0; i < _errorStrings.size(); i++)
+    {
+        s.append("> " + _errorStrings[i] + "\n");
+    }
 }
 
 //---------------------------------------------------------------
 //              Private methods
 //---------------------------------------------------------------
-flagspec *
-getoopt::getFlagspecForUpdate(char c) {
-  for (unsigned int i = 0; i < _flagspecs.size(); i++) {
-    flagspec &o = _flagspecs[i];
-    if (!o.islong && c == o.name[0])
-      return &_flagspecs[i];
-  }
-  return 0;
-}
-
-const flagspec *
-getoopt::getFlagspec(char c) {
-  return (const flagspec *)getFlagspecForUpdate(c);
+flagspec* getoopt::getFlagspecForUpdate(char c)
+{
+    for (unsigned int i = 0; i < _flagspecs.size(); i++)
+    {
+        flagspec& o = _flagspecs[i];
+        if (!o.islong && c == o.name[0])
+            return &_flagspecs[i];
+    }
+    return 0;
+}
+
+const flagspec* getoopt::getFlagspec(char c)
+{
+    return (const flagspec *)getFlagspecForUpdate(c);
 }
index 27703233d35cbaf8721eef07824a893434db4903..08bb5360461bc6c0e7467df6f4bafda7a74584b2 100755 (executable)
@@ -90,10 +90,10 @@ PEGASUS_USING_PEGASUS;
 // The isactive flag tells whether the option should be considered
 // during parsing.  It is on unless explicitly turned off by the program.
 struct flagspec {
-  String name;
-  int    argtype;
-  Boolean   islong;
-  Boolean   active;
+    String name;
+    int    argtype;
+    Boolean   islong;
+    Boolean   active;
 };
 
 //
@@ -113,41 +113,49 @@ struct flagspec {
 //   A LONGFLAG means that the value is bound to a long-named option name
 //   REGULAR means that the argument value is not preceded by a flag
 //
-class PEGASUS_GETOOPT_LINKAGE Optarg {
- public:
-  enum opttype {FLAG, LONGFLAG, REGULAR};
- private:
-  String _name;
-  opttype _opttype;
-  String _value;
- public:
-  // Constructors and Destructor.  Default copying is OK for this class.
-  Optarg();
-  Optarg(const String &name, opttype type, const String &value);
-  ~Optarg();
-  // Methods to set or reset the properties
-  void setName(const String &name);
-  void setType(opttype type);
-  void setValue(const String &value);
-  // Methods to get information about the object
-  const String &getName() const;
-  const String &getopt() const;
-  opttype getType() const;
-  Boolean  isFlag() const;  // Is the opttype == "FLAG" or "LONGFLAG"?
-  Boolean isLongFlag() const;  // IS the Opttype == LONGFLAG?
-  const String &Value() const;  // return the value as a String
-  const String &optarg() const; // ditto, in getopt() terminology
-  void Value(String &v) const ; // Fill in a String with the Value
-  // @exception TypeMismatchException
-  void Value(int &v) const;  // Fill in an int with
-                             // the value
-  // @exception TypeMismatchException
-  void Value(unsigned int &v) const;  // ditto an
-                                      // unsigned int
-  void Value(long &v) const ;   // ditto a long
-  void Value(unsigned long &v) const;  // ditto an unsigned long
-  void Value(double &d) const;  // ditto a double
-  ostream &print(ostream &os) const;  // print the members (for debug)
+class PEGASUS_GETOOPT_LINKAGE Optarg
+{
+public:
+    enum opttype {FLAG, LONGFLAG, REGULAR};
+
+private:
+    String _name;
+    opttype _opttype;
+    String _value;
+
+public:
+    // Constructors and Destructor.  Default copying is OK for this class.
+    Optarg();
+    Optarg(
+        const String& name,
+        opttype type,
+        const String& value);
+    ~Optarg();
+
+    // Methods to set or reset the properties
+    void setName(const String& name);
+    void setType(opttype type);
+    void setValue(const String& value);
+
+    // Methods to get information about the object
+    const String& getName() const;
+    const String& getopt() const;
+    opttype getType() const;
+    Boolean  isFlag() const;  // Is the opttype == "FLAG" or "LONGFLAG"?
+    Boolean isLongFlag() const;  // IS the Opttype == LONGFLAG?
+    const String& Value() const;  // return the value as a String
+    const String& optarg() const; // ditto, in getopt() terminology
+    void Value(String& v) const ; // Fill in a String with the Value
+    // @exception TypeMismatchException
+    void Value(int& v) const;  // Fill in an int with
+                               // the value
+    // @exception TypeMismatchException
+    void Value(unsigned int& v) const;  // ditto an
+                                        // unsigned int
+    void Value(long& v) const ;   // ditto a long
+    void Value(unsigned long& v) const;  // ditto an unsigned long
+    void Value(double& d) const;  // ditto a double
+    ostream& print(ostream& os) const;  // print the members (for debug)
 };
 
 
@@ -160,9 +168,10 @@ class PEGASUS_GETOOPT_LINKAGE Optarg {
 //  The idea is to be able to do getopt()-like things with it:
 //      getoopt cmdline(optstring);
 //      for (getoopt::const_iterator it = cmdline.begin();
-//             it != cmdline.end();
-//                 it++) {
-//        . . . (process an Optarg represented by *it.
+//              it != cmdline.end();
+//              it++)
+//      {
+//        . . . (process an Optarg represented by *it.)
 //
 //  There are three steps in using this class:
 //    1. Initialization -- specifying the command line options
@@ -188,81 +197,83 @@ class PEGASUS_GETOOPT_LINKAGE Optarg {
 //       and
 //           value(flagName);
 //
-class PEGASUS_GETOOPT_LINKAGE getoopt {
- public:
-  typedef Array<flagspec> Flagspec_List;
-  typedef Array<String>   Error_List;
-  typedef Array<Optarg>   Arg_List;
+class PEGASUS_GETOOPT_LINKAGE getoopt
+{
+public:
+    typedef Array<flagspec> Flagspec_List;
+    typedef Array<String>   Error_List;
+    typedef Array<Optarg>   Arg_List;
+
+    /**
+        In the valid option definition string, following an option,
+        indicates that the preceding option takes a required argument.
+     */
+    static const char GETOPT_ARGUMENT_DESIGNATOR;
 
-  /**
-      In the valid option definition string, following an option,
-      indicates that the preceding option takes a required argument.
-   */
-  static const char GETOPT_ARGUMENT_DESIGNATOR;
+private:
+    Flagspec_List  _flagspecs;
+    Error_List     _errorStrings;
+    Arg_List       _args;
+    flagspec* getFlagspecForUpdate(char c);
+    flagspec* getFlagspecForUpdate(const String& s);
+    String emptystring;
+    Optarg _emptyopt;
 
- private:
-  Flagspec_List  _flagspecs;
-  Error_List     _errorStrings;
-  Arg_List       _args;
-  flagspec *getFlagspecForUpdate(char c);
-  flagspec *getFlagspecForUpdate(const String &s);
-  String emptystring;
-  Optarg _emptyopt;
- public:
-  enum argtype {NOARG, MUSTHAVEARG, OPTIONALARG};
-  // Constructor and destructor.  You can initialize an instance with
-  // an optstring to specify command line flags.
-  getoopt(const char *optstring = 0);
-  ~getoopt();
+public:
+    enum argtype {NOARG, MUSTHAVEARG, OPTIONALARG};
+    // Constructor and destructor.  You can initialize an instance with
+    // an optstring to specify command line flags.
+    getoopt(const char* optstring = 0);
+    ~getoopt();
 
-  // Routines for specifying the command line options
-  //   add short-named flags, either en masse as an optstring
-  Boolean addFlagspec(const String &opt);
-  //   or individually
-  Boolean addFlagspec(char opt, Boolean hasarg = false);
-  //   (You can also remove a short flag specification if you need to)
-  Boolean removeFlagspec(char opt);
-  //   You can add long-named flags only individually
-  Boolean addLongFlagspec(const String &name,  argtype type);
-  //   and remove them in the same way.
-  Boolean removeLongFlagspec(const String &name);
-  // You can also get a pointer to the flagspec structure for
-  // a particular flag, specifying a char for short or String for long name
-  const flagspec *getFlagspec(char c);
-  const flagspec *getFlagspec(const String &s);
+    // Routines for specifying the command line options
+    //   add short-named flags, either en masse as an optstring
+    Boolean addFlagspec(const String& opt);
+    //   or individually
+    Boolean addFlagspec(char opt, Boolean hasarg = false);
+    //   (You can also remove a short flag specification if you need to)
+    Boolean removeFlagspec(char opt);
+    //   You can add long-named flags only individually
+    Boolean addLongFlagspec(const String& name,  argtype type);
+    //   and remove them in the same way.
+    Boolean removeLongFlagspec(const String& name);
+    // You can also get a pointer to the flagspec structure for
+    // a particular flag, specifying a char for short or String for long name
+    const flagspec* getFlagspec(char c);
+    const flagspec* getFlagspec(const String& s);
 
-  // Routines for initiating the parse and checking its success.
-  Boolean parse(int argc, char **argv);
-  Boolean hasErrors() const;
-  const Error_List &getErrorStrings() const;
-  ostream &printErrors(ostream &os) const;
-  void printErrors(String &s) const;
+    // Routines for initiating the parse and checking its success.
+    Boolean parse(int argc, char** argv);
+    Boolean hasErrors() const;
+    const Error_List& getErrorStrings() const;
+    ostream& printErrors(ostream& os) const;
+    void printErrors(String& s) const;
 
-  // Routines for processing the parsed command line
-  //   Using indexes
-  unsigned int size() const;  // The number of arguments found
-  const Optarg &operator[](unsigned int n);  // The nth element
-  unsigned int first() const;  // always 0 (duh)
-  unsigned int last() const;   // always == size();
-  //   Ad Hoc
-  //        isSet returns the number of times a particular option appeared
-  //        in the argument set.
-  unsigned int  isSet(char opt) const;
-  unsigned int  isSet(const String &opt) const;
-  //        value returns the String value bount to the nth instance of
-  //        the flag on the command line
-  const String &value(char opt, unsigned int idx = 0) const;
-  const String &value(const String &opt, unsigned int idx = 0) const;
-  //   Still not flexible enough?  Here's an array of the results for
-  //   your perusal.
-  const Arg_List &getArgs() const;
+    // Routines for processing the parsed command line
+    //   Using indexes
+    unsigned int size() const;  // The number of arguments found
+    const Optarg& operator[](unsigned int n);  // The nth element
+    unsigned int first() const;  // always 0 (duh)
+    unsigned int last() const;   // always == size();
+    //   Ad Hoc
+    //        isSet returns the number of times a particular option appeared
+    //        in the argument set.
+    unsigned int  isSet(char opt) const;
+    unsigned int  isSet(const String& opt) const;
+    //        value returns the String value bount to the nth instance of
+    //        the flag on the command line
+    const String& value(char opt, unsigned int idx = 0) const;
+    const String& value(const String& opt, unsigned int idx = 0) const;
+    //   Still not flexible enough?  Here's an array of the results for
+    //   your perusal.
+    const Arg_List& getArgs() const;
 
-  // Miscellanous methods
-  //   You can add your own error to the error list if you want
-  void  addError(const String &errstr);
-  //   This method gives the number of named arguments (flags)
-  //   size() - flagent() == number of nonflag arguments.
-  unsigned int flagcnt() const;
+    // Miscellanous methods
+    //   You can add your own error to the error list if you want
+    void  addError(const String& errstr);
+    //   This method gives the number of named arguments (flags)
+    //   size() - flagent() == number of nonflag arguments.
+    unsigned int flagcnt() const;
 };
 
 inline int operator==(const Optarg& x, const Optarg& y)
index b69411e96d5281e35dbdcee5b00b35cebe1a0c1c..4aba7866ec0e295c74cb45a5a01fb7d64b4dd271 100644 (file)
@@ -96,7 +96,7 @@
 #include <Service/ServerShutdownClient.h>
 #include <Service/ServerRunStatus.h>
 
-#if defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) 
+#if defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM)
 #include <Service/ARM_zOS.h>
 # ifdef PEGASUS_ZOS_SECURITY
 // This include file will not be provided in the OpenGroup CVS for now.
@@ -167,7 +167,7 @@ public:
       if (*PEGASUS_PRODUCT_STATUS == '\0' )
         return PEGASUS_PRODUCT_VERSION;
       else
-        return PEGASUS_PRODUCT_VERSION " " PEGASUS_PRODUCT_STATUS;      
+        return PEGASUS_PRODUCT_VERSION " " PEGASUS_PRODUCT_STATUS;
     }
 
     //defined in PegasusVersion.h
@@ -272,52 +272,64 @@ void GetOptions(
 void PrintHelp(const char* arg0)
 {
     String usage = String (USAGE);
-    usage.append (COMMAND_NAME);
-    usage.append (" [ [ options ] | [ configProperty=value, ... ] ]\n");
-    usage.append ("  options\n");
-    usage.append ("    -v, --version   - displays CIM Server version number\n");
-    usage.append ("    -h, --help      - prints this help message\n");
-    usage.append ("    -s              - shuts down CIM Server\n");
+    usage.append(COMMAND_NAME);
+    usage.append(" [ [ options ] | [ configProperty=value, ... ] ]\n");
+    usage.append("  options\n");
+    usage.append("    -v, --version   - displays CIM Server version number\n");
+    usage.append("    -h, --help      - prints this help message\n");
+    usage.append("    -s              - shuts down CIM Server\n");
 #if !defined(PEGASUS_USE_RELEASE_DIRS)
-    usage.append ("    -D [home]       - sets pegasus home directory\n");
+    usage.append("    -D [home]       - sets pegasus home directory\n");
 #endif
 #if defined(PEGASUS_OS_TYPE_WINDOWS)
-    usage.append ("    -install [name] - installs pegasus as a Windows Service\n");
-    usage.append ("                      [name] is optional and overrides the\n");
-    usage.append ("                      default CIM Server Service Name\n");
-    usage.append ("                      by appending [name]\n");
-    usage.append ("    -remove [name]  - removes pegasus as a Windows Service\n");
-    usage.append ("                      [name] is optional and overrides the\n");
-    usage.append ("                      default CIM Server Service Name\n");
-    usage.append ("                      by appending [name]\n");
-    usage.append ("    -start [name]   - starts pegasus as a Windows Service\n");
-    usage.append ("                      [name] is optional and overrides the\n");
-    usage.append ("                      default CIM Server Service Name\n");
-    usage.append ("                      by appending [name]\n");
-    usage.append ("    -stop [name]    - stops pegasus as a Windows Service\n");
-    usage.append ("                      [name] is optional and overrides the\n");
-    usage.append ("                      default CIM Server Service Name\n");
-    usage.append ("                      by appending [name]\n\n");
+    usage.append("    -install [name] - installs pegasus as a Windows "
+        "Service\n");
+    usage.append("                      [name] is optional and overrides "
+        "the\n");
+    usage.append("                      default CIM Server Service Name\n");
+    usage.append("                      by appending [name]\n");
+    usage.append("    -remove [name]  - removes pegasus as a Windows "
+        "Service\n");
+    usage.append("                      [name] is optional and overrides "
+        "the\n");
+    usage.append("                      default CIM Server Service Name\n");
+    usage.append("                      by appending [name]\n");
+    usage.append("    -start [name]   - starts pegasus as a Windows Service\n");
+    usage.append("                      [name] is optional and overrides "
+        "the\n");
+    usage.append("                      default CIM Server Service Name\n");
+    usage.append("                      by appending [name]\n");
+    usage.append("    -stop [name]    - stops pegasus as a Windows Service\n");
+    usage.append("                      [name] is optional and overrides "
+        "the\n");
+    usage.append("                      default CIM Server Service Name\n");
+    usage.append("                      by appending [name]\n\n");
 #endif
-    usage.append ("  configProperty=value\n");
-    usage.append ("                    - sets CIM Server configuration property\n");
+    usage.append("  configProperty=value\n");
+    usage.append("                    - sets CIM Server configuration "
+        "property\n");
 
     cout << endl;
-    cout << _cimServerProcess->getProductName() << " " << _cimServerProcess->getCompleteVersion() << endl;
+    cout << _cimServerProcess->getProductName() << " " <<
+        _cimServerProcess->getCompleteVersion() << endl;
     cout << endl;
 
 #if defined(PEGASUS_OS_TYPE_WINDOWS)
     MessageLoaderParms parms("src.Server.cimserver.MENU.WINDOWS", usage);
 #elif defined(PEGASUS_USE_RELEASE_DIRS)
-    MessageLoaderParms parms("src.Server.cimserver.MENU.HPUXLINUXIA64GNU", usage);
+    MessageLoaderParms parms(
+        "src.Server.cimserver.MENU.HPUXLINUXIA64GNU",
+        usage);
 #else
     MessageLoaderParms parms("src.Server.cimserver.MENU.STANDARD", usage);
 #endif
     cout << MessageLoader::getMessage(parms) << endl;
 }
 
-//This needs to be called at various points in the code depending on the platform and error conditions.
-//We need to delete the _cimServer reference on exit in order for the destructors to get called.
+// This needs to be called at various points in the code depending on the
+// platform and error conditions.
+// We need to delete the _cimServer reference on exit in order for the
+// destructors to get called.
 void deleteCIMServer()
 {
     if (_cimServer)
@@ -325,33 +337,34 @@ void deleteCIMServer()
         delete _cimServer;
         _cimServer = 0;
 
-#if defined(PEGASUS_OS_HPUX) || defined(PEGASUS_OS_LINUX) \
-|| defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) || defined(PEGASUS_OS_AIX) \
-|| defined(PEGASUS_OS_SOLARIS) || defined(PEGASUS_OS_VMS)
+#if defined(PEGASUS_OS_HPUX) || defined(PEGASUS_OS_LINUX) || \
+    defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) || defined(PEGASUS_OS_AIX) || \
+    defined(PEGASUS_OS_SOLARIS) || defined(PEGASUS_OS_VMS)
         //
         //  Remove the PID file to indicate CIMServer termination
         //
         FileSystem::removeFile(_cimServerProcess->getPIDFileName());
 #endif
     }
+
     delete _monitor;
-   if (dummyInitialThread)
-   {
+
+    if (dummyInitialThread)
+    {
         Thread::clearLanguages();
         delete dummyInitialThread;
-   }
+    }
 }
 
-// l10n
 //
 // Dummy function for the Thread object associated with the initial thread.
 // Since the initial thread is used to process CIM requests, this is
 // needed to localize the exceptions thrown during CIM request processing.
 // Note: This function should never be called!
 //
-ThreadReturnType PEGASUS_THREAD_CDECL dummyThreadFunc(void *parm)
+ThreadReturnType PEGASUS_THREAD_CDECL dummyThreadFunc(voidparm)
 {
-   return((ThreadReturnType)0);
+    return (ThreadReturnType)0;
 }
 
 #ifdef PEGASUS_ENABLE_PRIVILEGE_SEPARATION
@@ -437,37 +450,35 @@ int main(int argc, char** argv)
     Boolean shutdownOption = false;
     Boolean debugOutputOption = false;
 
-//l10n
-// Set Message loading to process locale
-MessageLoader::_useProcessLocale = true;
-//l10n
+    // Set Message loading to process locale
+    MessageLoader::_useProcessLocale = true;
 
-//l10n
 #if defined(PEGASUS_OS_AIX) && defined(PEGASUS_HAS_MESSAGES)
-setlocale(LC_ALL, "");
+    setlocale(LC_ALL, "");
 #endif
 
 #ifndef PEGASUS_OS_TYPE_WINDOWS
     //
     // Get environment variables:
     //
-  #if defined(PEGASUS_OS_AIX) && defined(PEGASUS_USE_RELEASE_DIRS)
+if defined(PEGASUS_OS_AIX) && defined(PEGASUS_USE_RELEASE_DIRS)
     pegasusHome = AIX_RELEASE_PEGASUS_HOME;
-  #elif !defined(PEGASUS_USE_RELEASE_DIRS) || defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM)
+# elif !defined(PEGASUS_USE_RELEASE_DIRS) || \
+    defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM)
     const char* tmp = getenv("PEGASUS_HOME");
 
     if (tmp)
     {
         pegasusHome = tmp;
     }
-  #endif
+endif
 
     FileSystem::translateSlashes(pegasusHome);
 #else
 
-  // windows only
-  //setHome(pegasusHome);
-  pegasusHome = _cimServerProcess->getHome();
+    // windows only
+    //setHome(pegasusHome);
+    pegasusHome = _cimServerProcess->getHome();
 #endif
 
 #ifdef PEGASUS_ENABLE_PRIVILEGE_SEPARATION
@@ -493,12 +504,12 @@ setlocale(LC_ALL, "");
         for (int i = 1; i < argc; )
         {
             const char* arg = argv[i];
-            if(String::equal(arg,"--help"))
+            if (String::equal(arg,"--help"))
             {
                     PrintHelp(argv[0]);
                     exit(0);
             }
-            else if(String::equal(arg,"--version"))
+            else if (String::equal(arg,"--version"))
             {
                 cout << _cimServerProcess->getCompleteVersion() << endl;
                 exit(0);
@@ -537,12 +548,11 @@ setlocale(LC_ALL, "");
                     }
                     else
                     {
-                        //l10n
-                        //cout << "Missing argument for option -" << option << endl;
                         String opt(option);
-                        MessageLoaderParms parms("src.Server.cimserver.MISSING_ARGUMENT",
-                                         "Missing argument for option -$0",
-                                         opt);
+                        MessageLoaderParms parms(
+                            "src.Server.cimserver.MISSING_ARGUMENT",
+                            "Missing argument for option -$0",
+                            opt);
                         cout << MessageLoader::getMessage(parms) << endl;
                         exit(0);
                     }
@@ -583,10 +593,9 @@ setlocale(LC_ALL, "");
                     //
                     if (shutdownOption)
                     {
-                        //l10n
-                        //cout << "Duplicate shutdown option specified." << endl;
-                        MessageLoaderParms parms("src.Server.cimserver.DUPLICATE_SHUTDOWN_OPTION",
-                                                 "Duplicate shutdown option specified.");
+                        MessageLoaderParms parms(
+                            "src.Server.cimserver.DUPLICATE_SHUTDOWN_OPTION",
+                            "Duplicate shutdown option specified.");
 
                         cout << MessageLoader::getMessage(parms) << endl;
                         exit(0);
@@ -658,8 +667,9 @@ int CIMServerProcess::cimserver_run(
     //
     try
     {
-        // If current process is "cimserver -s" (shutdown option = true) the contents
-        // of current config should not be overwriten by planned config
+        // If current process is "cimserver -s" (shutdown option = true) the
+        // contents of current config should not be overwritten by planned
+        // config
         GetOptions(configManager, argc, argv, shutdownOption);
     }
     catch (Exception& e)
@@ -677,7 +687,6 @@ int CIMServerProcess::cimserver_run(
         return(1);
     }
 
-// l10n
     // Set the home directory, msg sub-dir, into the MessageLoader.
     // This will be the default directory where the resource bundles
     // are found.
@@ -693,17 +702,14 @@ int CIMServerProcess::cimserver_run(
 #ifdef PEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET
     if (!enableHttpConnection && !enableHttpsConnection)
     {
-        //l10n
-        //Logger::put(Logger::STANDARD_LOG, System::CIMSERVER, Logger::WARNING,
-            //"Neither HTTP nor HTTPS connection is enabled.  "
-            //"CIMServer will not be started.");
         Logger::put_l(Logger::STANDARD_LOG, System::CIMSERVER, Logger::WARNING,
             "src.Server.cimserver.HTTP_NOT_ENABLED_SERVER_NOT_STARTING",
-            "Neither HTTP nor HTTPS connection is enabled.  CIMServer will not be started.");
-        //cerr << "Neither HTTP nor HTTPS connection is enabled.  "
-            //"CIMServer will not be started." << endl;
-        MessageLoaderParms parms("src.Server.cimserver.HTTP_NOT_ENABLED_SERVER_NOT_STARTING",
-                                 "Neither HTTP nor HTTPS connection is enabled.  CIMServer will not be started.");
+            "Neither HTTP nor HTTPS connection is enabled.  CIMServer will "
+                "not be started.");
+        MessageLoaderParms parms(
+            "src.Server.cimserver.HTTP_NOT_ENABLED_SERVER_NOT_STARTING",
+            "Neither HTTP nor HTTPS connection is enabled.  CIMServer will "
+                "not be started.");
         cerr << MessageLoader::getMessage(parms) << endl;
         return(1);
     }
@@ -728,7 +734,7 @@ int CIMServerProcess::cimserver_run(
         // ATTN: Need tool to completely disable logging.
 
 #if !defined(PEGASUS_OS_HPUX) && !defined(PEGASUS_PLATFORM_LINUX_IA64_GNU) && \
-!defined(PEGASUS_USE_SYSLOGS)
+    !defined(PEGASUS_USE_SYSLOGS)
         Logger::setHomeDirectory(logsDirectory);
 #endif
 
@@ -739,9 +745,10 @@ int CIMServerProcess::cimserver_run(
         {
             String configTimeout =
                 configManager->getCurrentValue("shutdownTimeout");
-            Uint32 timeoutValue = strtol(configTimeout.getCString(), (char **)0, 10);
-// To deregister Pegasus with SLP
+            Uint32 timeoutValue =
+                strtol(configTimeout.getCString(), (char **)0, 10);
 #ifdef PEGASUS_SLP_REG_TIMEOUT
+            // To deregister Pegasus with SLP
             unregisterPegasusFromSLP();
 #endif
 
@@ -753,7 +760,7 @@ int CIMServerProcess::cimserver_run(
                 "CIM Server stopped.");
 
             cout << MessageLoader::getMessage(parms) << endl;
-            return(0);
+            return 0;
         }
 
 #if defined(PEGASUS_DEBUG) && !defined(PEGASUS_USE_SYSLOGS)
@@ -789,16 +796,20 @@ int CIMServerProcess::cimserver_run(
     startupEnableMSC();
 #endif
 
-    // Bug 2148 - Here is the order of operations for determining the server HTTP and HTTPS ports.
+    // Bug 2148 - Here is the order of operations for determining the server
+    // HTTP and HTTPS ports.
     // 1) If the user explicitly specified a port, use it.
-    // 2) If the user did not specify a port, get the port from the services file.
-    // 3) If no value is specified in the services file, use the IANA WBEM default port.
+    // 2) If the user did not specify a port, get the port from the services
+    //    file.
+    // 3) If no value is specified in the services file, use the IANA WBEM
+    //    default port.
     // Note that 2 and 3 are done within the System::lookupPort method
-    // An empty string from the ConfigManager implies that the user did not specify a port.
+    // An empty string from the ConfigManager implies that the user did not
+    // specify a port.
 
-    Uint32 portNumberHttps=0;
-    Uint32 portNumberHttp=0;
-    Uint32 portNumberExportHttps=0;
+    Uint32 portNumberHttps = 0;
+    Uint32 portNumberHttp = 0;
+    Uint32 portNumberExportHttps = 0;
 
     if (enableHttpsConnection)
     {
@@ -808,9 +819,10 @@ int CIMServerProcess::cimserver_run(
             //
             // Look up the WBEM-HTTPS port number
             //
-            portNumberHttps = System::lookupPort(WBEM_HTTPS_SERVICE_NAME, WBEM_DEFAULT_HTTPS_PORT);
-
-        } else
+            portNumberHttps = System::lookupPort(
+                WBEM_HTTPS_SERVICE_NAME, WBEM_DEFAULT_HTTPS_PORT);
+        }
+        else
         {
             //
             // user-specified
@@ -818,16 +830,20 @@ int CIMServerProcess::cimserver_run(
             CString portString = httpsPort.getCString();
             char* end = 0;
             portNumberHttps = strtol(portString, &end, 10);
-            if(!(end != 0 && *end == '\0'))
+            if (!(end != 0 && *end == '\0'))
             {
                 InvalidPropertyValue e("httpsPort", httpsPort);
-                Logger::put_l(Logger::ERROR_LOG, System::CIMSERVER, Logger::SEVERE,
-                              "src.Server.cimserver.SERVER_NOT_STARTED",
-                              "cimserver not started:  $0", e.getMessage());
-                MessageLoaderParms parms("src.Server.cimserver.SERVER_NOT_STARTED",
-                                         "cimserver not started: $0", e.getMessage());
-                PEGASUS_STD(cerr) << argv[0] << ": " << MessageLoader::getMessage(parms)
-                                  << PEGASUS_STD(endl);
+                Logger::put_l(
+                    Logger::ERROR_LOG, System::CIMSERVER, Logger::SEVERE,
+                    "src.Server.cimserver.SERVER_NOT_STARTED",
+                    "cimserver not started:  $0",
+                    e.getMessage());
+                MessageLoaderParms parms(
+                    "src.Server.cimserver.SERVER_NOT_STARTED",
+                    "cimserver not started: $0",
+                    e.getMessage());
+                PEGASUS_STD(cerr) << argv[0] << ": " <<
+                    MessageLoader::getMessage(parms) << PEGASUS_STD(endl);
                 exit(1);
             }
         }
@@ -841,9 +857,10 @@ int CIMServerProcess::cimserver_run(
             //
             // Look up the WBEM-HTTP port number
             //
-            portNumberHttp = System::lookupPort(WBEM_HTTP_SERVICE_NAME, WBEM_DEFAULT_HTTP_PORT);
-
-        } else
+            portNumberHttp = System::lookupPort(
+                WBEM_HTTP_SERVICE_NAME, WBEM_DEFAULT_HTTP_PORT);
+        }
+        else
         {
             //
             // user-specified
@@ -851,49 +868,49 @@ int CIMServerProcess::cimserver_run(
             CString portString = httpPort.getCString();
             char* end = 0;
             portNumberHttp = strtol(portString, &end, 10);
-            if(!(end != 0 && *end == '\0'))
+            if (!(end != 0 && *end == '\0'))
             {
                 InvalidPropertyValue e("httpPort", httpPort);
-                Logger::put_l(Logger::ERROR_LOG, System::CIMSERVER, Logger::SEVERE,
-                              "src.Server.cimserver.SERVER_NOT_STARTED",
-                              "cimserver not started:  $0", e.getMessage());
-                MessageLoaderParms parms("src.Server.cimserver.SERVER_NOT_STARTED",
-                                             "cimserver not started: $0", e.getMessage());
-                PEGASUS_STD(cerr) << argv[0] << ": " << MessageLoader::getMessage(parms)
-                                  << PEGASUS_STD(endl);
+                Logger::put_l(
+                    Logger::ERROR_LOG, System::CIMSERVER, Logger::SEVERE,
+                    "src.Server.cimserver.SERVER_NOT_STARTED",
+                    "cimserver not started:  $0",
+                    e.getMessage());
+                MessageLoaderParms parms(
+                    "src.Server.cimserver.SERVER_NOT_STARTED",
+                    "cimserver not started: $0",
+                    e.getMessage());
+                PEGASUS_STD(cerr) << argv[0] << ": " <<
+                    MessageLoader::getMessage(parms) << PEGASUS_STD(endl);
                 exit(1);
             }
         }
     }
+
 #if defined(PEGASUS_DEBUG)
     // Put out startup up message.
-    cout << _cimServerProcess->getProductName() << " " << _cimServerProcess->getCompleteVersion() << endl;
-    //l10n
-    //cout << "Built " << __DATE__ << " " << __TIME__ << endl;
-    //cout <<"Starting..."
+    cout << _cimServerProcess->getProductName() << " " <<
+        _cimServerProcess->getCompleteVersion() << endl;
     MessageLoaderParms parms("src.Server.cimserver.STARTUP_MESSAGE",
                              "Built $0 $1\nStarting...",
                              __DATE__,
                              __TIME__);
 #endif
 
-//l10n
-// reset message loading to NON-process locale
-MessageLoader::_useProcessLocale = false;
-//l10n
+    // reset message loading to NON-process locale
+    MessageLoader::_useProcessLocale = false;
 
     // Get the parent's PID before forking
     _serverRunStatus.setParentPid(System::getPID());
 
-// Do not fork when using privilege separation (executor will daemonize itself
-// later).
+    // Do not fork when using privilege separation (executor will daemonize
+    // itself later).
     if (daemonOption)
     {
-        if(-1 == _cimServerProcess->cimserver_fork())
-            return(-1);
+        if (-1 == _cimServerProcess->cimserver_fork())
+            return -1;
     }
 
-// l10n
     // Now we are after the fork...
     // Create a dummy Thread object that can be used to store the
     // AcceptLanguageList object for CIM requests that are serviced
@@ -904,15 +921,19 @@ MessageLoader::_useProcessLocale = false;
     dummyInitialThread = new Thread(dummyThreadFunc, NULL, false);
     Thread::setCurrent(dummyInitialThread);
     AcceptLanguageList default_al;
-    try{
+    try
+    {
          default_al = LanguageParser::getDefaultAcceptLanguages();
          Thread::setLanguages(new AcceptLanguageList(default_al));
-    }catch(InvalidAcceptLanguageHeader& e){
-          Logger::put_l(Logger::ERROR_LOG, System::CIMSERVER, Logger::SEVERE,
-                  "src.Server.cimserver.FAILED_TO_SET_PROCESS_LOCALE",
-                  "Could not convert the system process locale into a valid AcceptLanguage format.");
-          Logger::put(Logger::ERROR_LOG, System::CIMSERVER, Logger::SEVERE,
-                             e.getMessage());
+    }
+    catch (InvalidAcceptLanguageHeader& e)
+    {
+         Logger::put_l(Logger::ERROR_LOG, System::CIMSERVER, Logger::SEVERE,
+             "src.Server.cimserver.FAILED_TO_SET_PROCESS_LOCALE",
+             "Could not convert the system process locale into a valid "
+                 "AcceptLanguage format.");
+         Logger::put(Logger::ERROR_LOG, System::CIMSERVER, Logger::SEVERE,
+             e.getMessage());
     }
 
 #ifndef PEGASUS_OS_TYPE_WINDOWS
@@ -921,27 +942,27 @@ MessageLoader::_useProcessLocale = false;
 
 
 #if defined(PEGASUS_OS_TYPE_UNIX)
-  //    
-  // CRITICAL SECTION BEGIN
-  //
-  // This is the beginning of the critical section regarding the
-  // access to pidfile (file to indicate that the cimserver has started).
-  // Sometimes, when 2 or more cimserver processes are started at the same 
-  // time, they can't detect the concurrent process execution because the 
-  // logic fails when pidfile is accessed concurrently.
-
-  FILE *startupLockFile;
-
-  if ((startupLockFile = fopen(ConfigManager::getHomedPath(
-          CIMSERVER_LOCK_FILE).getCString(), "w")) != 0)
-  {
-      lockf(fileno(startupLockFile), F_LOCK, 0);
-  }
+    //
+    // CRITICAL SECTION BEGIN
+    //
+    // This is the beginning of the critical section regarding the
+    // access to pidfile (file to indicate that the cimserver has started).
+    // Sometimes, when 2 or more cimserver processes are started at the same
+    // time, they can't detect the concurrent process execution because the
+    // logic fails when pidfile is accessed concurrently.
+
+    FILE* startupLockFile;
+
+    if ((startupLockFile = fopen(ConfigManager::getHomedPath(
+            CIMSERVER_LOCK_FILE).getCString(), "w")) != 0)
+    {
+        lockf(fileno(startupLockFile), F_LOCK, 0);
+    }
 #endif
 
 #if defined(PEGASUS_OS_HPUX) || defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) \
-|| defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) || defined(PEGASUS_OS_AIX) \
-|| defined(PEGASUS_OS_SOLARIS) || defined (PEGASUS_OS_VMS)
+    || defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) || defined(PEGASUS_OS_AIX) \
+    || defined(PEGASUS_OS_SOLARIS) || defined (PEGASUS_OS_VMS)
 
     //
     // check if CIMServer is already running
@@ -1054,23 +1075,23 @@ MessageLoader::_useProcessLocale = false;
 #endif
 
 #if defined(PEGASUS_DEBUG)
-    cout << "Started. " << endl;
+        cout << "Started. " << endl;
 #endif
 
-#if defined(PEGASUS_OS_TYPE_UNIX)    
-    //
-    // CRITICAL SECTION END
-    // 
-    // Here is the unlock of file 'lock_file'. It closes the
-    // the critical section that guarantees the non concurrent access to
-    // pid file (file to indicate that the cimserver has started).
-    //
+#if defined(PEGASUS_OS_TYPE_UNIX)
+        //
+        // CRITICAL SECTION END
+        //
+        // Here is the unlock of file 'lock_file'. It closes the
+        // the critical section that guarantees the non concurrent access to
+        // pid file (file to indicate that the cimserver has started).
+        //
 
-    if (startupLockFile)
-    {
-       lockf(fileno(startupLockFile), F_ULOCK, 0);
-       fclose(startupLockFile);
-    }
+        if (startupLockFile)
+        {
+            lockf(fileno(startupLockFile), F_ULOCK, 0);
+            fclose(startupLockFile);
+        }
 #endif
 
 
@@ -1084,7 +1105,7 @@ MessageLoader::_useProcessLocale = false;
 
 #if defined(PEGASUS_OS_TYPE_UNIX) && !defined(PEGASUS_OS_ZOS)
         if (daemonOption && !debugOutputOption)
-        { 
+        {
             // Direct standard input, output, and error to /dev/null,
             // since we are running as a daemon.
             close(0);
@@ -1098,8 +1119,8 @@ MessageLoader::_useProcessLocale = false;
 
 #if defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM)
 
-        // ARM is a z/OS internal restart facility. 
-        // This is a z/OS specific change. 
+        // ARM is a z/OS internal restart facility.
+        // This is a z/OS specific change.
 
         // Instatiating the automatic restart manager for zOS
         ARM_zOS automaticRestartManager;
@@ -1113,20 +1134,18 @@ MessageLoader::_useProcessLocale = false;
         // Loop to call CIMServer's runForever() method until CIMServer
         // has been shutdown
         //
-    while( !_cimServer->terminated() )
-    {
-
-      _cimServer->runForever();
-
-    }
+        while (!_cimServer->terminated())
+        {
+            _cimServer->runForever();
+        }
 
         //
         // normal termination
         //
 #if defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM)
 
-        // ARM is a z/OS internal restart facility. 
-        // This is a z/OS specific change. 
+        // ARM is a z/OS internal restart facility.
+        // This is a z/OS specific change.
 
         // register to zOS ARM
         automaticRestartManager.DeRegister();
@@ -1147,7 +1166,7 @@ MessageLoader::_useProcessLocale = false;
         //
 #endif
     }
-    catch(BindFailedException& e)
+    catch (BindFailedException& e)
     {
         Logger::put_l(Logger::ERROR_LOG, System::CIMSERVER, Logger::SEVERE,
             "src.Server.cimserver.SERVER_NOT_STARTED",
@@ -1157,28 +1176,33 @@ MessageLoader::_useProcessLocale = false;
 
         cerr << MessageLoader::getMessage(parms) << endl;
 
-    //
+        //
         // notify parent process (if there is a parent process) to terminate
         //
         if (daemonOption)
-                _cimServerProcess->notify_parent(1);
+            _cimServerProcess->notify_parent(1);
 
         deleteCIMServer();
         return 1;
     }
-    catch(Exception& e)
+    catch (Exception& e)
     {
-    Logger::put_l(Logger::STANDARD_LOG, System::CIMSERVER, Logger::WARNING,
+        Logger::put_l(Logger::STANDARD_LOG, System::CIMSERVER, Logger::WARNING,
+            "src.Server.cimserver.ERROR",
+            "Error: $0",
+            e.getMessage());
+        MessageLoaderParms parms(
             "src.Server.cimserver.ERROR",
-            "Error: $0", e.getMessage());
-    MessageLoaderParms parms("src.Server.cimserver.ERROR",
-                             "Error: $0", e.getMessage());
-    PEGASUS_STD(cerr) << MessageLoader::getMessage(parms) << PEGASUS_STD(endl);
+            "Error: $0",
+            e.getMessage());
+        PEGASUS_STD(cerr) << MessageLoader::getMessage(parms) <<
+            PEGASUS_STD(endl);
+
         //
         // notify parent process (if there is a parent process) to terminate
         //
         if (daemonOption)
-                _cimServerProcess->notify_parent(1);
+            _cimServerProcess->notify_parent(1);
 
         deleteCIMServer();
         return 1;
index bbda05f39d785ff5b4af5b747a2dc243ab4f1e08..4160f4c09e20a7f225849764c1356b50bc607018 100644 (file)
 #include "ARM_zOS.h"
 
 
-// __arm_status_tags ARM_zOS_Status = NOT_REGISTERED; // ARM stautus for CIM Server Status
+// ARM status for CIM Server Status
+// __arm_status_tags ARM_zOS_Status = NOT_REGISTERED;
 
 #define ARM_ELEMNAME_SIZE 17          // 16 Bytes for ARM element name + '\0'
 
 PEGASUS_NAMESPACE_BEGIN
    
            
-//*******************************************************************************
+//******************************************************************************
 // 
 // Methode: void ARM_zOS::Register(void) 
 // 
 // Description:
-// Registration and make element READY for z/OS ARM (Automatic Restart Mangager). 
+// Registration and make element READY for z/OS ARM (Automatic Restart Manager).
 // 
 // Function: 
 //            a) do the registration with ARM   
@@ -80,13 +81,15 @@ void ARM_zOS::Register(void)
 
     int i;
     
-    char arm_elemname[ARM_ELEMNAME_SIZE] = "CFZ_SRV_"; // ARM element name init with base.
+    // ARM element name init with base.
+    char arm_elemname[ARM_ELEMNAME_SIZE] = "CFZ_SRV_";
     int full_elemname_size;
 
     char arm_buffer[256];               // ARM buffer
     int arm_ret=0;                      // ARM return code 
     int arm_res=0;                      // ARM reason code 
-    struct utsname uts;                 // structure to get the SYSNAME for the element name 
+    struct utsname uts;                 // structure to get the SYSNAME for
+                                        // the element name 
     int rc;
 
     rc = __osname(&uts);
@@ -102,12 +105,14 @@ void ARM_zOS::Register(void)
         return;
     }
 
-    // concatinate the element name base and the nodename to the full element name 
+    // concatenate the element name base and the nodename to the full element
+    // name 
     strcat(arm_elemname,uts.nodename);
     full_elemname_size = strlen(arm_elemname);
 
-    // padd the elementname with spaces 
-    memset(arm_elemname+full_elemname_size,' ',ARM_ELEMNAME_SIZE-full_elemname_size);
+    // pad the elementname with spaces 
+    memset(arm_elemname + full_elemname_size, ' ',
+        ARM_ELEMNAME_SIZE - full_elemname_size);
 
 
     // put a Null-termination at Pos 17 to make string printable 
@@ -115,10 +120,11 @@ void ARM_zOS::Register(void)
 
 
     PEG_TRACE((TRC_SERVER, Tracer::LEVEL2,
-               "About to register the CIM server with element name \'%s\' with ARM.",
-               arm_elemname));
+        "About to register the CIM server with element name \'%s\' with ARM.",
+        arm_elemname));
 
-    // CIM server is running in ASCII and the assembler module needs the module in EBCDIC
+    // CIM server is running in ASCII and the assembler module needs the
+    // module in EBCDIC
     __atoe(arm_elemname); 
 
     __register_arm(arm_elemname, arm_buffer, &arm_ret, &arm_res); 
@@ -126,27 +132,34 @@ void ARM_zOS::Register(void)
     // convert back to ascii for further processing.
     __etoa(arm_elemname);
 
-    if(arm_ret <= 0x04)
+    if (arm_ret <= 0x04)
     {
        Logger::put_l(Logger::STANDARD_LOG, "CIM Server", Logger::INFORMATION,
-                     "Common.ARM_zOS.ARM_READY",
-                     "The CIM server successfully registered to ARM using element name $0.",arm_elemname);
+           "Common.ARM_zOS.ARM_READY",
+           "The CIM server successfully registered to ARM using element "
+               "name $0.",
+           arm_elemname);
 
-        if(arm_ret == 0x00)
+        if (arm_ret == 0x00)
         {
             // ARM registration at normal startup
             ARM_zOS_Status = REGISTERED;
-        } else {
-
+        }
+        else
+        {
             // ret = 0x04 and reason code 0x104 & 0x108 indicates server restart
             if(arm_res <= 0x108)
             {
                 // ARM registration at restart
                 ARM_zOS_Status = RESTARTED;
-            } else {
-                // ret = 0x04 and reason code 0x204 & 0x304 indicates dependen component not started.
-                // This can only be happen if somebody define dependencies in the restart policy.
-                // CIM Server does not depend on other elements; This is a normal start up.
+            }
+            else
+            {
+                // ret = 0x04 and reason code 0x204 & 0x304 indicates dependent
+                // component not started.  This can only be happen if somebody
+                // define dependencies in the restart policy.
+                // CIM Server does not depend on other elements; This is a
+                // normal start up.
                 ARM_zOS_Status = REGISTERED;
             }
 
@@ -157,33 +170,36 @@ void ARM_zOS::Register(void)
         if(arm_ret != 0)
         {
             PEG_TRACE((TRC_SERVER, Tracer::LEVEL2,
-                       "Failed to set the CIM server ready with ARM: ret=%02X reason=%04X.",
-                       arm_ret,arm_res));
+                "Failed to set the CIM server ready with ARM: "
+                    "ret=%02X reason=%04X.",
+                arm_ret,
+                arm_res));
             ARM_zOS_Status = NOT_REGISTERED;
         }
-
-    else
+    }
+    else
     {
-
         // ARM registration fails
         char str_arm_ret[4];
         sprintf(str_arm_ret,"%02X",arm_ret);
         char str_arm_res[8];
         sprintf(str_arm_res,"%04X",arm_res);
         Logger::put_l(Logger::STANDARD_LOG, "CIM Server", Logger::INFORMATION,
-                      "Common.ARM_zOS.ARM_FAIL",
-                      "The CIM server failed to register with ARM using element name $0: return code 0x$1, reason code 0x$2."
-                      ,arm_elemname,str_arm_ret,str_arm_res);
+            "Common.ARM_zOS.ARM_FAIL",
+            "The CIM server failed to register with ARM using element "
+                "name $0: return code 0x$1, reason code 0x$2.",
+                arm_elemname,
+                str_arm_ret,
+                str_arm_res);
 
         ARM_zOS_Status = NOT_REGISTERED;
-
     }                
 
     return;
 }
 
 
-//*******************************************************************************
+//******************************************************************************
 // 
 // Method: void ARM_zOS::DeRegister(void) 
 // 
@@ -212,17 +228,18 @@ void ARM_zOS::DeRegister(void)
         {
             // write out errormessage from de-register with ARM
             PEG_TRACE((TRC_SERVER, Tracer::LEVEL2,
-                       "Failed to de-register CIM Server with ARM: ret=%02X reason=%04X.",
-                       arm_ret,arm_res));
-        } else {
-
+                "Failed to de-register CIM Server with ARM: "
+                    "ret=%02X reason=%04X.",
+                arm_ret,
+                arm_res));
+        }
+        else
+        {
             PEG_TRACE_CSTRING(TRC_SERVER, Tracer::LEVEL2,
-                             "CIM Server sucessfully de-reginster with ARM.");
-
+                "CIM Server sucessfully de-reginster with ARM.");
         }
         ARM_zOS_Status = NOT_REGISTERED;
     }// End if
 }
 
-
 PEGASUS_NAMESPACE_END
index 486358f5ed01c5781f19d233e751dae237379683..991fe7d57869b2e289c15b65f061414c035b81a0 100644 (file)
@@ -45,7 +45,7 @@ extern "OS_UPSTACK" {
 #endif
 
 
-//////////////////////////////////////////////////////////////////////////////// 
+////////////////////////////////////////////////////////////////////////////////
 // assembler routine which registers with ARM 
 ////////////////////////////////////////////////////////////////////////////////
 
@@ -57,9 +57,9 @@ void __register_arm (char * elemname,  // elementname (16bytes) right-padded
                   int * retcode,     // contains returncode on return 
                   int * reasoncode); // contains reasoncode on return
 
-//////////////////////////////////////////////////////////////////////////////// 
+////////////////////////////////////////////////////////////////////////////////
 // assembler routine put element as READY with ARM 
-//////////////////////////////////////////////////////////////////////////////// 
+////////////////////////////////////////////////////////////////////////////////
 
 #pragma map    (__ready_arm,"READYARM")
 void __ready_arm ( char * buffer,   // must point to a local buffer which has
@@ -67,7 +67,7 @@ void __ready_arm ( char * buffer,   // must point to a local buffer which has
                  int * retcode,     // contains returncode on return 
                  int * reasoncode); // contains reasoncode on return
 
-//////////////////////////////////////////////////////////////////////////////// 
+////////////////////////////////////////////////////////////////////////////////
 // assembler routine which deregisters element from ARM
 ////////////////////////////////////////////////////////////////////////////////
 
index b7c2d752b23a95d2cd58d7fb5bbca77a27f869c4..3a9e076017cb1c7d8acf3df50e53d3a4b375e1a1 100644 (file)
@@ -29,8 +29,6 @@
 //
 //==============================================================================
 //
-// Author: Heather Sterling (hsterl@us.ibm.com) PEP#222
-//
 //%/////////////////////////////////////////////////////////////////////////////
 
 #ifndef Pegasus_Server_Process_h
 
 PEGASUS_NAMESPACE_BEGIN
 
-/** This abstract class has virtual methods for information that varies across applications. The rest of the methods 
-  * are called from the application (i.e. cimserver.cpp), and need to be defined by every operating system implementation. 
-  * This version will not touch the method names, as it is fairly risky to do so now. However, the goal is to 
-  * eventually standardize the interface so we pull out as much OS-specific function as possible from the main cimserver file.
-  *
-  * Not all operating systems need to fully implement all these methods.  Stick methods which do not apply to
-  * your OS in a "No-ops" section at the top.
-  * 
-  * See PEP#222 for more information.
-  */ 
+/**
+    This abstract class has virtual methods for information that varies across
+    applications. The rest of the methods are called from the application
+    (i.e. cimserver.cpp), and need to be defined by every operating system
+    implementation.
+
+    This version will not touch the method names, as it is fairly risky to do
+    so now.  However, the goal is to eventually standardize the interface so
+    we pull out as much OS-specific function as possible from the main
+    cimserver file.
+
+    Not all operating systems need to fully implement all these methods.
+    Stick methods which do not apply to your OS in a "No-ops" section at the
+    top.
+
+    See PEP#222 for more information.
+*/
 
 class PEGASUS_SERVICE_LINKAGE ServerProcess
 {
 public:
 
-    ServerProcess(void);
+    ServerProcess();
 
-    virtual ~ServerProcess(void);
+    virtual ~ServerProcess();
 
     virtual const char* getProductName() const = 0;
 
@@ -68,7 +73,7 @@ public:
     virtual const char* getDescription() const = 0;
 
     virtual const char* getVersion() const = 0;
-    
+
     virtual const char* getProcessName() const = 0;
 
     virtual const char* getPIDFileName() const = 0;
@@ -79,7 +84,7 @@ public:
         Boolean shutdownOption,
         Boolean debugOutputOption) = 0;
 
-    virtual void cimserver_stop(void) = 0;
+    virtual void cimserver_stop() = 0;
 
     int platform_run(
         int argc,
@@ -87,7 +92,7 @@ public:
         Boolean shutdownOption,
         Boolean debugOutputOption);
 
-    int cimserver_fork(void);
+    int cimserver_fork();
 
     void notify_parent(int id);
 
@@ -95,7 +100,7 @@ public:
 
     void cimserver_exitRC(int rc);
 
-    int cimserver_initialize(void);
+    int cimserver_initialize();
 
     // Currently (07/27/06) this function is only used by
     // pegasus/src/Pegasus/DynListener/Service/cimlistener.cpp
@@ -104,12 +109,12 @@ public:
 
     // if PEGASUS_HAS_SIGNALS is defined this function waits in a sigwait
     // for either a SIGHUP or a SIGTERM and does not return before
-    
+
     // if PEGASUS_HAS_SIGNALS is NOT defined this function is a noop function
     // returning immediately with -1
-    int cimserver_wait(void);
+    int cimserver_wait();
 
-    String getHome(void);
+    String getHome();
 };
 
 PEGASUS_NAMESPACE_END
index 8f29e3187515128b6e04e47324639c75afa94809..106accca78627831a88d7d26f195e43f77bbeb36 100644 (file)
@@ -53,7 +53,7 @@ void sigUsr1Handler(int s_n, PEGASUS_SIGINFO_T * s_info, void * sig)
 void sigTermHandler(int s_n, PEGASUS_SIGINFO_T * s_info, void * sig)
 {
     graveError= handleSigUsr1=true;
-} 
+}
 
 
 //constructor
@@ -65,12 +65,12 @@ ServerProcess::~ServerProcess() {}
 // no-ops
 void ServerProcess::cimserver_set_process(void* p) {}
 void ServerProcess::cimserver_exitRC(int rc) {}
-int ServerProcess::cimserver_initialize(void) { return 1; }
+int ServerProcess::cimserver_initialize() { return 1; }
 
 // for all OSes supporting signals provide a cimserver_wait function
 // that waits to be awakened by signal PEGASUS_SIGTERM or PEGASUS_SIGHUP
 #ifdef PEGASUS_HAS_SIGNALS
-int ServerProcess::cimserver_wait(void)
+int ServerProcess::cimserver_wait()
 {
     int sig = -1;
     sigset_t set;
@@ -89,15 +89,15 @@ int ServerProcess::cimserver_wait(void)
     return sig;
 }
 #else
-int ServerProcess::cimserver_wait(void) { return 1; }
+int ServerProcess::cimserver_wait() { return 1; }
 #endif
 
-String ServerProcess::getHome(void) { return String::EMPTY; }
+String ServerProcess::getHome() { return String::EMPTY; }
 
 // daemon_init , RW Stevens, "Advance UNIX Programming"
 
-int ServerProcess::cimserver_fork(void) 
-{ 
+int ServerProcess::cimserver_fork()
+{
     getSigHandle()->registerHandler(SIGTERM, sigTermHandler);
     getSigHandle()->activate(SIGTERM);
     umask(S_IRWXG | S_IRWXO);
@@ -110,45 +110,49 @@ int ServerProcess::cimserver_fork(void)
 
     getSigHandle()->registerHandler(PEGASUS_SIGUSR1, sigUsr1Handler);
     getSigHandle()->activate(PEGASUS_SIGUSR1);
-  pid_t pid;
-  if( (pid = fork() ) < 0) 
-  {
-      getSigHandle()->deactivate(PEGASUS_SIGUSR1);
-      getSigHandle()->deactivate(SIGTERM);
-      return(-1);
-  }
-  else if (pid != 0)
-  {
-      //
-      // parent wait for child
-      // if there is a problem with signal, parent process terminates
-      // when waitTime expires
-      //
-      Uint32 waitTime = MAX_WAIT_TIME;
-
-      while(!handleSigUsr1 && waitTime > 0)
-      {
-        sleep(1);
-        waitTime--;
-      }
-      if( !handleSigUsr1 )
+
+    pid_t pid;
+    if( (pid = fork() ) < 0)
+    {
+        getSigHandle()->deactivate(PEGASUS_SIGUSR1);
+        getSigHandle()->deactivate(SIGTERM);
+        return -1;
+    }
+    else if (pid != 0)
+    {
+        //
+        // parent wait for child
+        // if there is a problem with signal, parent process terminates
+        // when waitTime expires
+        //
+        Uint32 waitTime = MAX_WAIT_TIME;
+
+        while (!handleSigUsr1 && waitTime > 0)
         {
-        MessageLoaderParms parms("src.Service.ServerProcessUnix.CIMSERVER_START_TIMEOUT",
-          "The cimserver command timed out waiting for the CIM server to start.");
-        PEGASUS_STD(cerr) << MessageLoader::getMessage(parms) << PEGASUS_STD(endl);
-      }
-      exit(graveError);
-  }
-  
-  setsid();
-  umask(S_IRWXG | S_IRWXO );
-
-  // spawned daemon process doesn't need the old signal handlers of its parent
-  getSigHandle()->deactivate(PEGASUS_SIGUSR1);
-  getSigHandle()->deactivate(SIGTERM);
-
-  return 0;
+            sleep(1);
+            waitTime--;
+        }
+
+        if (!handleSigUsr1)
+        {
+            MessageLoaderParms parms(
+                "src.Service.ServerProcessUnix.CIMSERVER_START_TIMEOUT",
+                "The cimserver command timed out waiting for the CIM server "
+                    "to start.");
+            PEGASUS_STD(cerr) << MessageLoader::getMessage(parms) <<
+                PEGASUS_STD(endl);
+        }
+        exit(graveError);
+    }
+
+    setsid();
+    umask(S_IRWXG | S_IRWXO);
+
+    // spawned daemon process doesn't need the old signal handlers of its parent
+    getSigHandle()->deactivate(PEGASUS_SIGUSR1);
+    getSigHandle()->deactivate(SIGTERM);
+
+    return 0;
 }
 
 
@@ -156,11 +160,11 @@ int ServerProcess::cimserver_fork(void)
 // is ready to serve CIM requests.
 void ServerProcess::notify_parent(int id)
 {
-  pid_t ppid = getppid();
-  if (id)
-   kill(ppid, SIGTERM);
-  else
-   kill(ppid, PEGASUS_SIGUSR1); 
+    pid_t ppid = getppid();
+    if (id)
+        kill(ppid, SIGTERM);
+    else
+        kill(ppid, PEGASUS_SIGUSR1);
 }
 
 
index d583497acd12505ef42e3840c5c0f07c67e0a279..212084fb412911432c42d51a8775e48c6c726d62 100644 (file)
@@ -53,7 +53,8 @@ static ServerProcess* _server_proc = 0;
 static bool _shutdown = false;
 static Service pegasus_service;
 static HANDLE pegasus_service_event = NULL;
-static LPCSTR g_cimservice_key  = TEXT("SYSTEM\\CurrentControlSet\\Services\\%s");
+static LPCSTR g_cimservice_key =
+    TEXT("SYSTEM\\CurrentControlSet\\Services\\%s");
 static LPCSTR g_cimservice_home = TEXT("home");
 static int g_argc = 0;
 static char **g_argv = 0;
@@ -74,11 +75,11 @@ static bool _setRegInfo(const char *lpchKeyword, const char *lpchValue);
 //-------------------------------------------------------------------------
 // NO-OPs for windows platform
 //-------------------------------------------------------------------------
-int ServerProcess::cimserver_fork(void) { return(0); }
+int ServerProcess::cimserver_fork() { return(0); }
 void ServerProcess::notify_parent(int id) { return; }
 void cimserver_exitRC(int rc) {}
-int ServerProcess::cimserver_initialize(void) { return 0; }
-int ServerProcess::cimserver_wait(void) { return 0; }
+int ServerProcess::cimserver_initialize() { return 0; }
+int ServerProcess::cimserver_wait() { return 0; }
 
 
 //-------------------------------------------------------------------------
@@ -87,7 +88,8 @@ int ServerProcess::cimserver_wait(void) { return 0; }
 
 ServerProcess::ServerProcess()
 {
-    //be sure to call cimserver_set_process right after instantiating this in order for everything to work
+    // Be sure to call cimserver_set_process right after instantiating this in
+    // order for everything to work
 }
 
 ServerProcess::~ServerProcess()
@@ -96,9 +98,9 @@ ServerProcess::~ServerProcess()
 
 void ServerProcess::cimserver_set_process(void* p)
 {
-    AutoMutex am( _cimserverLock );
+    AutoMutex am(_cimserverLock);
     _server_proc = static_cast<ServerProcess *>(p);
-    if(_server_proc && _shutdown)
+    if (_server_proc && _shutdown)
         _server_proc->cimserver_stop();
 
     pegasus_service = Service(getProcessName());
@@ -106,21 +108,21 @@ void ServerProcess::cimserver_set_process(void* p)
 
 void signal_shutdown()
 {
-    AutoMutex am( _cimserverLock );
+    AutoMutex am(_cimserverLock);
     _shutdown = true;
-    if( _server_proc )
+    if (_server_proc)
         _server_proc->cimserver_stop(); 
 }
 
 //-------------------------------------------------------------------------
 // Run main server asynchronously
 //-------------------------------------------------------------------------
-static unsigned __stdcall cimserver_windows_thread( void* parm )
+static unsigned __stdcall cimserver_windows_thread(void* parm)
 {
     int argc = 0;
-    int rc = _server_proc->cimserver_run( g_argc, g_argv, false, false );
+    int rc = _server_proc->cimserver_run(g_argc, g_argv, false, false);
     SetEvent(pegasus_service_event);
-    _endthreadex( rc );
+    _endthreadex(rc);
     return rc;
 }
 
@@ -133,7 +135,7 @@ static unsigned __stdcall cimserver_windows_thread( void* parm )
 //-------------------------------------------------------------------------
 int cimserver_windows_main(int flag, int argc, char *argv[])
 {
-    switch( flag )
+    switch(flag)
     {
     case Service::STARTUP_FLAG:
     {
@@ -144,11 +146,12 @@ int cimserver_windows_main(int flag, int argc, char *argv[])
         unsigned threadid = 0;
         g_argc = argc;
         g_argv = argv;
-        HANDLE hThread = (HANDLE)_beginthreadex( NULL, 0, cimserver_windows_thread, NULL, 0, &threadid );
-        if( hThread == NULL )
+        HANDLE hThread = (HANDLE)_beginthreadex(
+            NULL, 0, cimserver_windows_thread, NULL, 0, &threadid);
+        if (hThread == NULL)
             return 1;
 
-        WaitForSingleObject( pegasus_service_event, INFINITE );
+        WaitForSingleObject(pegasus_service_event, INFINITE);
 
         //
         // Shutdown the cimserver.
@@ -163,14 +166,13 @@ int cimserver_windows_main(int flag, int argc, char *argv[])
 
         DWORD dwCheckPoint = 1; // service code should have already started at 0
 
-        while( WaitForSingleObject( hThread, 3000 ) == WAIT_TIMEOUT )
+        while (WaitForSingleObject(hThread, 3000) == WAIT_TIMEOUT)
         {
             pegasus_service.report_status( 
-                SERVICE_STOP_PENDING, NO_ERROR, dwCheckPoint++, 5000 );
+                SERVICE_STOP_PENDING, NO_ERROR, dwCheckPoint++, 5000);
         }
 
-        CloseHandle( hThread );
-
+        CloseHandle(hThread);
         break;
     }
     case Service::SHUTDOWN_FLAG:
@@ -190,236 +192,250 @@ int cimserver_windows_main(int flag, int argc, char *argv[])
 //-------------------------------------------------------------------------
 bool cimserver_install_nt_service(char *service_name)
 {
-  Service::ReturnCode status = Service::SERVICE_RETURN_SUCCESS;
-  char filename[_MAX_PATH] = {0};
-  char displayname[_MAX_PATH] = {0};
-  char descriptionname[_MAX_PATH] = {0};
+    Service::ReturnCode status = Service::SERVICE_RETURN_SUCCESS;
+    char filename[_MAX_PATH] = {0};
+    char displayname[_MAX_PATH] = {0};
+    char descriptionname[_MAX_PATH] = {0};
 
-  // If service name is specified, override default
-  if (service_name == NULL)
+    // If service name is specified, override default
+    if (service_name == NULL)
+    {
+        strcpy(displayname, _server_proc->getExtendedName());
+    }
+    else
     {
-      strcpy(displayname, _server_proc->getExtendedName());
+        pegasus_service.SetServiceName(service_name);
+        sprintf(displayname, "%s - %s",
+            _server_proc->getExtendedName(),
+            service_name);
+    }
+
+    strcpy(descriptionname, _server_proc->getDescription());
+
+    if (0 != GetModuleFileName(NULL, filename, sizeof(filename)))
+    {
+        status =
+            pegasus_service.Install(displayname, descriptionname, filename);
+
+        // Upon success, set home in registry
+        if (status == Service::SERVICE_RETURN_SUCCESS)
+        {
+            char pegasus_homepath[_MAX_PATH];
+            System::extract_file_path(filename, pegasus_homepath);
+            pegasus_homepath[strlen(pegasus_homepath)-1] = '\0';
+            strcpy(filename, pegasus_homepath);
+            System::extract_file_path(filename, pegasus_homepath);
+            pegasus_homepath[strlen(pegasus_homepath)-1] = '\0';
+            _setRegInfo(g_cimservice_home, pegasus_homepath);
+        }
     }
-  else
+    else
     {
-      pegasus_service.SetServiceName(service_name);
-      sprintf(displayname, "%s - %s", _server_proc->getExtendedName(), service_name);
+        status = (Service::ReturnCode) GetLastError();
     }
 
-  strcpy(descriptionname, _server_proc->getDescription());
-
-  if(0 != GetModuleFileName(NULL, filename, sizeof(filename)))
-  {
-     status = pegasus_service.Install(displayname, descriptionname, filename);
-
-     // Upon success, set home in registry
-     if (status == Service::SERVICE_RETURN_SUCCESS)
-     {
-      char pegasus_homepath[_MAX_PATH];
-      System::extract_file_path(filename, pegasus_homepath);
-      pegasus_homepath[strlen(pegasus_homepath)-1] = '\0';
-      strcpy(filename, pegasus_homepath);
-      System::extract_file_path(filename, pegasus_homepath);
-      pegasus_homepath[strlen(pegasus_homepath)-1] = '\0';
-      _setRegInfo(g_cimservice_home, pegasus_homepath);
-     }
-  }
-  else
-  {
-    status = (Service::ReturnCode) GetLastError();
-  }
-  return (status == Service::SERVICE_RETURN_SUCCESS) ? true : false;
+    return (status == Service::SERVICE_RETURN_SUCCESS);
 }
 
 //-------------------------------------------------------------------------
 // REMOVE
 //-------------------------------------------------------------------------
-bool cimserver_remove_nt_service(char *service_name) 
+bool cimserver_remove_nt_service(char* service_name)
 {
-  Service::ReturnCode status = Service::SERVICE_RETURN_SUCCESS;
+    Service::ReturnCode status = Service::SERVICE_RETURN_SUCCESS;
 
-  // If service name is specified, override default
-  if (service_name != NULL)
+    // If service name is specified, override default
+    if (service_name != NULL)
     {
-      pegasus_service.SetServiceName(service_name);
+        pegasus_service.SetServiceName(service_name);
     }
 
-  status = pegasus_service.Remove();
+    status = pegasus_service.Remove();
 
-  return (status == Service::SERVICE_RETURN_SUCCESS) ? true : false;
+    return (status == Service::SERVICE_RETURN_SUCCESS);
 }
 
 //-------------------------------------------------------------------------
 // START
 //-------------------------------------------------------------------------
-bool cimserver_start_nt_service(char *service_name, int num_args, char **service_args) 
+bool cimserver_start_nt_service(
+    char* service_name,
+    int num_args,
+    char** service_args)
 {
-  Service::ReturnCode status = Service::SERVICE_RETURN_SUCCESS;
+    Service::ReturnCode status = Service::SERVICE_RETURN_SUCCESS;
 
-  // If service name is specified, override default
-  if (service_name != NULL)
+    // If service name is specified, override default
+    if (service_name != NULL)
     {
-      pegasus_service.SetServiceName(service_name);
+        pegasus_service.SetServiceName(service_name);
     }
 
-  if(num_args > 0 && service_args != NULL)
-  {
-      pegasus_service.SetServiceArgs(num_args, service_args);
-  }
+    if (num_args > 0 && service_args != NULL)
+    {
+        pegasus_service.SetServiceArgs(num_args, service_args);
+    }
 
-  status = pegasus_service.Start(5);
+    status = pegasus_service.Start(5);
 
-  return (status == Service::SERVICE_RETURN_SUCCESS) ? true : false;
+    return (status == Service::SERVICE_RETURN_SUCCESS);
 }
 
 //-------------------------------------------------------------------------
 // STOP
 //-------------------------------------------------------------------------
-bool cimserver_stop_nt_service(char *service_name) 
+bool cimserver_stop_nt_service(char* service_name)
 {
-  Service::ReturnCode status = Service::SERVICE_RETURN_SUCCESS;
+    Service::ReturnCode status = Service::SERVICE_RETURN_SUCCESS;
 
-  // If service name is specified, override default
-  if (service_name != NULL)
+    // If service name is specified, override default
+    if (service_name != NULL)
     {
-      pegasus_service.SetServiceName(service_name);
+        pegasus_service.SetServiceName(service_name);
     }
 
-  status = pegasus_service.Stop(5);
+    status = pegasus_service.Stop(5);
 
-  return (status == Service::SERVICE_RETURN_SUCCESS) ? true : false;
+    return (status == Service::SERVICE_RETURN_SUCCESS);
 }
 
 //-------------------------------------------------------------------------
 // HELPER Utilities
 //-------------------------------------------------------------------------
-static bool _getRegInfo(const char *lpchKeyword, char *lpchRetValue)
+static bool _getRegInfo(
+    const char* lpchKeyword,
+    char* lpchRetValue)
 {
-  HKEY   hKey;
-  DWORD  dw                   = _MAX_PATH;
-  char   subKey[_MAX_PATH]    = {0};
-  
-  sprintf(subKey, g_cimservice_key, pegasus_service.GetServiceName());
-
-  if ((RegOpenKeyEx(HKEY_LOCAL_MACHINE,
-                    subKey, 
-                    0,
-                    KEY_READ, 
-                    &hKey)) != ERROR_SUCCESS)
+    HKEY hKey;
+    DWORD dw = _MAX_PATH;
+    char subKey[_MAX_PATH] = {0};
+
+    sprintf(subKey, g_cimservice_key, pegasus_service.GetServiceName());
+
+    if ((RegOpenKeyEx(
+             HKEY_LOCAL_MACHINE,
+             subKey,
+             0,
+             KEY_READ,
+             &hKey)) != ERROR_SUCCESS)
     {
-      return false;
+        return false;
     }
 
-  if ((RegQueryValueEx(hKey, 
-                       lpchKeyword, 
-                       NULL, 
-                       NULL, 
-                       (LPBYTE)lpchRetValue,
-                       &dw)) != ERROR_SUCCESS)
+    if ((RegQueryValueEx(
+             hKey,
+             lpchKeyword,
+             NULL,
+             NULL,
+             (LPBYTE)lpchRetValue,
+             &dw)) != ERROR_SUCCESS)
     {
-      RegCloseKey(hKey);
-      return false;
+        RegCloseKey(hKey);
+        return false;
     }
 
-  RegCloseKey(hKey);
+    RegCloseKey(hKey);
 
-  return true;
+    return true;
 }
 
-static bool _setRegInfo(const char *lpchKeyword, const char *lpchValue)
+static bool _setRegInfo(
+    const char* lpchKeyword,
+    const char* lpchValue)
 {
-  HKEY   hKey;
-  DWORD  dw                   = _MAX_PATH;
-  char   home_key[_MAX_PATH]  = {0};
-  char   subKey[_MAX_PATH]    = {0};
-
-  if (lpchKeyword == NULL || lpchValue == NULL)
-    return false;
-
-  sprintf(subKey, g_cimservice_key, pegasus_service.GetServiceName());
-
-  if ((RegCreateKeyEx (HKEY_LOCAL_MACHINE,
-                      subKey,
-                      0,
-                      NULL,
-                      0,
-                      KEY_ALL_ACCESS,
-                      NULL,
-                      &hKey,
-                      NULL) != ERROR_SUCCESS))
+    HKEY hKey;
+    DWORD dw = _MAX_PATH;
+    char home_key[_MAX_PATH] = {0};
+    char subKey[_MAX_PATH] = {0};
+
+    if (lpchKeyword == NULL || lpchValue == NULL)
+        return false;
+
+    sprintf(subKey, g_cimservice_key, pegasus_service.GetServiceName());
+
+    if ((RegCreateKeyEx(
+             HKEY_LOCAL_MACHINE,
+             subKey,
+             0,
+             NULL,
+             0,
+             KEY_ALL_ACCESS,
+             NULL,
+             &hKey,
+             NULL) != ERROR_SUCCESS))
     {
-      return false;
+        return false;
     }
 
-  if ((RegSetValueEx(hKey, 
-                     lpchKeyword, 
-                     0, 
-                     REG_SZ, 
-                     (CONST BYTE *)lpchValue,
-                     (DWORD)(strlen(lpchValue)+1))) != ERROR_SUCCESS)
+    if ((RegSetValueEx(
+             hKey,
+             lpchKeyword,
+             0,
+             REG_SZ,
+             (CONST BYTE *)lpchValue,
+             (DWORD)(strlen(lpchValue)+1))) != ERROR_SUCCESS)
     {
-      RegCloseKey(hKey);
-      return false;
+        RegCloseKey(hKey);
+        return false;
     }
 
-  RegCloseKey(hKey);
+    RegCloseKey(hKey);
 
-  return true;
+    return true;
 }
 
 //void ServerProcess::setHome(const String& home)
-String ServerProcess::getHome(void)
+String ServerProcess::getHome()
 {
     String home;
 
-  // Determine the absolute path to the running program
-  char exe_pathname[_MAX_PATH] = {0};
-  char home_pathname[_MAX_PATH] = {0};
-  if(0 != GetModuleFileName(NULL, exe_pathname, sizeof(exe_pathname)))
-  {
-
-    // Pegasus home search rules:
-    // - look in registry (if set)
-    // - if not found, look in PEGASUS_HOME (if set)
-    // - if not found, use exe directory minus one level
-
-    bool found_reg = _getRegInfo("home", home_pathname);
-    if (found_reg == true)
-      {
-        // Make sure home matches
-        String current_home(home_pathname);
-        String current_exe(exe_pathname);
-        current_home.toLower();
-        current_exe.toLower();
-
-        Uint32 pos = current_exe.find(current_home);
-        if (pos != PEG_NOT_FOUND)
-          {
-            home = home_pathname;
-          }
-        else
-          {
-            found_reg = false;
-          }
-      }
-    if (found_reg == false)
-      {
-        const char* tmp = getenv("PEGASUS_HOME");
-        if (tmp)
-          {
-            home = tmp;
-          }
-        else
-          {
-            // ASSUMPTION: At a minimum, the cimserver program is running
-            // from a "bin" directory
-            home = FileSystem::extractFilePath(exe_pathname);
-            home.remove(home.size()-1, 1);
-            home = FileSystem::extractFilePath(home);
-            home.remove(home.size()-1, 1);
-          }
-      }
-  }
+    // Determine the absolute path to the running program
+    char exe_pathname[_MAX_PATH] = {0};
+    char home_pathname[_MAX_PATH] = {0};
+    if (0 != GetModuleFileName(NULL, exe_pathname, sizeof(exe_pathname)))
+    {
+        // Pegasus home search rules:
+        // - look in registry (if set)
+        // - if not found, look in PEGASUS_HOME (if set)
+        // - if not found, use exe directory minus one level
+
+        bool found_reg = _getRegInfo("home", home_pathname);
+        if (found_reg)
+        {
+            // Make sure home matches
+            String current_home(home_pathname);
+            String current_exe(exe_pathname);
+            current_home.toLower();
+            current_exe.toLower();
+
+            Uint32 pos = current_exe.find(current_home);
+            if (pos != PEG_NOT_FOUND)
+            {
+                home = home_pathname;
+            }
+            else
+            {
+                found_reg = false;
+            }
+        }
+        if (found_reg == false)
+        {
+            const char* tmp = getenv("PEGASUS_HOME");
+            if (tmp)
+            {
+                home = tmp;
+            }
+            else
+            {
+                // ASSUMPTION: At a minimum, the cimserver program is running
+                // from a "bin" directory
+                home = FileSystem::extractFilePath(exe_pathname);
+                home.remove(home.size()-1, 1);
+                home = FileSystem::extractFilePath(home);
+                home.remove(home.size()-1, 1);
+            }
+        }
+    }
     return home;
 }
 
@@ -427,9 +443,9 @@ String ServerProcess::getHome(void)
 // Our console control handler
 //
 
-static BOOL WINAPI ControlHandler( DWORD dwCtrlType )
+static BOOL WINAPI ControlHandler(DWORD dwCtrlType)
 {
-    switch( dwCtrlType )
+    switch (dwCtrlType)
     {
     case CTRL_BREAK_EVENT:  // use Ctrl+C or Ctrl+Break to simulate
     case CTRL_C_EVENT:      // SERVICE_CONTROL_STOP in debug mode
@@ -455,7 +471,7 @@ int ServerProcess::platform_run(
     // Check for my command line options
     //
 
-    forint i = 1; i < argc; )
+    for (int i = 1; i < argc; )
     {
         const char* arg = argv[i];
 
@@ -476,7 +492,7 @@ int ServerProcess::platform_run(
                     opt_arg = argv[i+1];
 
                 }
-                if(cimserver_install_nt_service(opt_arg))
+                if (cimserver_install_nt_service(opt_arg))
                 {
                     //l10n
                     //cout << "\nPegasus installed as NT Service";
@@ -499,9 +515,9 @@ int ServerProcess::platform_run(
                 char *opt_arg = NULL;
                 if (i+1 < argc)
                 {
-                    opt_arg = argv[i+1];                    
+                    opt_arg = argv[i+1];
                 }
-                if(cimserver_remove_nt_service(opt_arg))
+                if (cimserver_remove_nt_service(opt_arg))
                 {
                     //l10n
                     //cout << "\nPegasus removed as NT Service";
@@ -526,7 +542,7 @@ int ServerProcess::platform_run(
                 int num_args = 0;
                 if (i+1 < argc)
                 {
-                    opt_arg = argv[i+1];                    
+                    opt_arg = argv[i+1];
                     num_args = argc - 3;
                 }
                 else
@@ -535,10 +551,8 @@ int ServerProcess::platform_run(
                 }
 
                 char **service_args = &argv[1];
-                if(cimserver_start_nt_service(opt_arg, num_args, service_args))
+                if (cimserver_start_nt_service(opt_arg, num_args, service_args))
                 {
-                    //l10n
-                    //cout << "\nPegasus started as NT Service";
                     MessageLoaderParms parms(
                         "src.Server.cimserver.STARTED_NT_SERVICE",
                         "\nPegasus started as a Windows service");
@@ -558,12 +572,10 @@ int ServerProcess::platform_run(
                 char *opt_arg = NULL;
                 if (i+1 < argc)
                 {
-                    opt_arg = argv[i+1];                    
+                    opt_arg = argv[i+1];
                 }
-                if(cimserver_stop_nt_service(opt_arg))
+                if (cimserver_stop_nt_service(opt_arg))
                 {
-                    //l10n
-                    //cout << "\nPegasus stopped as NT Service";
                     MessageLoaderParms parms(
                         "src.Server.cimserver.STOPPED_NT_SERVICE",
                         "\nPegasus stopped as a Windows service");
@@ -599,7 +611,7 @@ int ServerProcess::platform_run(
     //
     // Hmm, when starting as a service, should we do this here (before
     // starting the control dispatcher)?  If we do then the SCM reports
-    // a dumb message to the user.  If we don't, and it in the serviceProc 
+    // a dumb message to the user.  If we don't, and it in the serviceProc
     // then the service will start up then die silently.
     //
 
@@ -607,11 +619,12 @@ int ServerProcess::platform_run(
     {
         MessageLoaderParms parms(
             "src.Server.cimserver.UNABLE_TO_START_SERVER_ALREADY_RUNNING",
-            "Unable to start CIMServer.\nCIMServer is already running." );
+            "Unable to start CIMServer.\nCIMServer is already running.");
         Logger::put(
             Logger::ERROR_LOG, "CIMServer", Logger::SEVERE,
-            MessageLoader::getMessage(parms) );
-        PEGASUS_STD(cerr) << MessageLoader::getMessage(parms) << PEGASUS_STD(endl);
+            MessageLoader::getMessage(parms));
+        PEGASUS_STD(cerr) << MessageLoader::getMessage(parms) <<
+            PEGASUS_STD(endl);
         return 1;
     }
 
@@ -621,9 +634,9 @@ int ServerProcess::platform_run(
     //
 
     char console_title[ _MAX_PATH ] = {0};
-    if( GetConsoleTitle( console_title, _MAX_PATH ) > 0 )
+    if (GetConsoleTitle(console_title, _MAX_PATH) > 0)
     {
-        SetConsoleCtrlHandler( ControlHandler, TRUE );
+        SetConsoleCtrlHandler(ControlHandler, TRUE);
 
         return cimserver_run(argc, argv, shutdownOption, debugOutputOption);
     }
@@ -632,18 +645,19 @@ int ServerProcess::platform_run(
     // Run as a service
     //
 
-    pegasus_service_event = CreateEvent( NULL, FALSE, FALSE, NULL );
+    pegasus_service_event = CreateEvent(NULL, FALSE, FALSE, NULL);
 
     Service::ReturnCode status;
-    status = pegasus_service.Run( cimserver_windows_main );
+    status = pegasus_service.Run(cimserver_windows_main);
 
-    if( status != Service::SERVICE_RETURN_SUCCESS )
+    if (status != Service::SERVICE_RETURN_SUCCESS)
     {
         // todo: put into localized messages when messages unfreezes.
         Logger::put_l(
             Logger::ERROR_LOG, "CIMServer", Logger::SEVERE,
             "src.Server.cimserver_windows.LISTENING_ON_HTTP_PORT",
-            "Error during service run: code = $0.", status );
+            "Error during service run: code = $0.",
+            status);
         return 1;
     }
 
index 5c631daa95af50eb0e4a86ecdc8487707a86bb72..59bf93127bfcbb05072ed6181c327f3fec2d26c9 100644 (file)
@@ -54,22 +54,26 @@ SERVICE_MAIN_T         Service::g_service_main          = NULL;
 //-------------------------------------------------------------------------
 // P U B L I C
 //-------------------------------------------------------------------------
-Service::Service(void)
+Service::Service()
 {
 }
 
-Service::Service(const char *service_name)
+Service::Service(const charservice_name)
 {
-    //ATTN: I have to allocate memory here, unless I want to change the char* g_service_name to a char[].
-    //Changing to an array of char affects a lot more code.  Previously, this method had a char* for its 
-    //input parameter, and since we were using #define's the values were always in memory.  
-    //Now we are using an interface method that returns const char* -hns PEP222
+    // ATTN: I have to allocate memory here, unless I want to change the
+    // char* g_service_name to a char[].  Changing to an array of char
+    // affects a lot more code.  Previously, this method had a char* for its
+    // input parameter, and since we were using #define's the values were
+    // always in memory.
+    // Now we are using an interface method that returns const char* -hns PEP222
     g_service_name = (char*) malloc(strlen(service_name)+1);
     memset(g_service_name, '\0', strlen(service_name)+1);
     strncpy(g_service_name, service_name, strlen(service_name));
 }
 
-Service::Service(const char *service_name, char *event_source)
+Service::Service(
+    const char* service_name,
+    char* event_source)
 {
     g_event_source = event_source;
 
@@ -78,10 +82,11 @@ Service::Service(const char *service_name, char *event_source)
     strncpy(g_service_name, service_name, strlen(service_name));
 }
 
-Service::~Service(void)
+Service::~Service()
 {
-    //ATTN: Will open Bugzilla on this.  I need to change this to either use char arrays OR deallocate the memory
-    //elsewhere.  I cannot use any fancy AutoPtr stuff since Pegasus code is kept out of this OS-specific file
+    // ATTN: Will open Bugzilla on this.  I need to change this to either use
+    // char arrays OR deallocate the memory elsewhere.  I cannot use any fancy
+    // AutoPtr stuff since Pegasus code is kept out of this OS-specific file
     // -hns PEP#222
     /*if (g_service_name != NULL)
     {
@@ -89,7 +94,7 @@ Service::~Service(void)
     }*/
 }
 
-void Service::SetServiceName(char *service_name)
+void Service::SetServiceName(charservice_name)
 {
     if (g_service_name != NULL)
     {
@@ -121,51 +126,51 @@ void Service::SetServiceName(char *service_name)
  * NOTE: If the process is successfully launched as a Win32 service, this  *
  *       function never returns, but calls exit() instead.                 *
  *-------------------------------------------------------------------------*/
-Service::ReturnCode
-Service::Install(
+Service::ReturnCode Service::Install(
   char  *display_name,
   char  *description,
   char  *exe_name)
 {
-  ReturnCode status = SERVICE_RETURN_SUCCESS;
-  SC_HANDLE sch;
-
-  if (g_service_name == NULL || display_name == NULL || exe_name == NULL)
-    return SERVICE_ERROR_NOT_FOUND; // SERVICE_ERROR_NOT_FOUND
-  else if ((sch = OpenSCManager(NULL, NULL, SC_MANAGER_CREATE_SERVICE)) == NULL)
-    status = get_error(GetLastError(), "open");
-  else
+    ReturnCode status = SERVICE_RETURN_SUCCESS;
+    SC_HANDLE sch;
+
+    if (g_service_name == NULL || display_name == NULL || exe_name == NULL)
+        return SERVICE_ERROR_NOT_FOUND; // SERVICE_ERROR_NOT_FOUND
+    else if ((sch = OpenSCManager(NULL, NULL, SC_MANAGER_CREATE_SERVICE)) ==
+             NULL)
+        status = get_error(GetLastError(), "open");
+    else
     {
-      SC_HANDLE service = CreateService( 
-        sch,                       // SCManager database 
-        g_service_name,            // name of service 
-        display_name,              // service name to display 
-        SERVICE_ALL_ACCESS,        // desired access 
-        SERVICE_WIN32_OWN_PROCESS, // service type 
-        SERVICE_DEMAND_START,      // start type 
-        SERVICE_ERROR_NORMAL,      // error control type 
-        exe_name,                  // service's binary 
-        NULL,                      // no load ordering group 
-        NULL,                      // no tag identifier 
-        NULL,                      // no dependencies 
-        NULL,                      // LocalSystem account 
-        NULL);                     // no password 
-      if (service == NULL) 
+        SC_HANDLE service = CreateService(
+            sch,                       // SCManager database
+            g_service_name,            // name of service
+            display_name,              // service name to display
+            SERVICE_ALL_ACCESS,        // desired access
+            SERVICE_WIN32_OWN_PROCESS, // service type
+            SERVICE_DEMAND_START,      // start type
+            SERVICE_ERROR_NORMAL,      // error control type
+            exe_name,                  // service's binary
+            NULL,                      // no load ordering group
+            NULL,                      // no tag identifier
+            NULL,                      // no dependencies
+            NULL,                      // LocalSystem account
+            NULL);                     // no password
+
+        if (service == NULL)
         {
-          status = get_error(GetLastError(), "create");
-          return status;
+            status = get_error(GetLastError(), "create");
+            return status;
         }
-      else 
+        else
         {
-          change_service_description(service, description);
-          CloseServiceHandle(service);
+            change_service_description(service, description);
+            CloseServiceHandle(service);
         }
-  
-      CloseServiceHandle(sch);
+
+        CloseServiceHandle(sch);
     }
 
-  return status;
+    return status;
 }
 
 /*-------------------------------------------------------------------------*
@@ -174,38 +179,38 @@ Service::Install(
  * Description:                                                            *
  *     Removes the service.                                                *
  *-------------------------------------------------------------------------*/
-Service::ReturnCode
-Service::Remove(void)
+Service::ReturnCode Service::Remove()
 {
-  ReturnCode status = SERVICE_RETURN_SUCCESS;
-  SC_HANDLE sch;
-
-  if (g_service_name == NULL)
-    return SERVICE_ERROR_NOT_FOUND; /* SERVICE_ERROR_NOT_FOUND */
-  else if ((sch = OpenSCManager(NULL, NULL, SC_MANAGER_CREATE_SERVICE)) == NULL)
-    status = get_error(GetLastError(), "open");
-  else
+    ReturnCode status = SERVICE_RETURN_SUCCESS;
+    SC_HANDLE sch;
+
+    if (g_service_name == NULL)
+        return SERVICE_ERROR_NOT_FOUND; /* SERVICE_ERROR_NOT_FOUND */
+    else if ((sch = OpenSCManager(NULL, NULL, SC_MANAGER_CREATE_SERVICE)) ==
+             NULL)
+        status = get_error(GetLastError(), "open");
+    else
     {
-      SC_HANDLE service = OpenService(sch, g_service_name, DELETE);
-      if (service == NULL) 
+        SC_HANDLE service = OpenService(sch, g_service_name, DELETE);
+
+        if (service == NULL)
         {
-          status = get_error(GetLastError(), "open");
+            status = get_error(GetLastError(), "open");
         }
-      else 
+        else
         {
-          if (!DeleteService(service))
+            if (!DeleteService(service))
             {
-              status = get_error(GetLastError(), "remove");
+                status = get_error(GetLastError(), "remove");
             }
 
-          CloseServiceHandle(service);
+            CloseServiceHandle(service);
         }
-  
-      CloseServiceHandle(sch);
+
+        CloseServiceHandle(sch);
     }
 
-  return status;
+    return status;
 }
 
 /*-------------------------------------------------------------------------*
@@ -218,56 +223,57 @@ Service::Remove(void)
  * Description:                                                            *
  *     Attempt to start the service.                                       *
  *-------------------------------------------------------------------------*/
-Service::ReturnCode
-Service::Start(int wait_time)
+Service::ReturnCode Service::Start(int wait_time)
 {
-  ReturnCode      status = SERVICE_RETURN_SUCCESS;
-  SERVICE_STATUS  service_status;
-  SC_HANDLE       sch;
-
-  if (g_service_name == NULL)
-    return SERVICE_ERROR_NOT_FOUND; // SERVICE_ERROR_NOT_FOUND
-  else if ((sch = OpenSCManager(NULL, NULL, GENERIC_READ)) == NULL)
-    status = get_error(GetLastError(), "open");
-  else
-    {
-      SC_HANDLE service = OpenService(sch, g_service_name, SERVICE_START | SERVICE_QUERY_STATUS);
-      if (service == NULL) 
+    ReturnCode      status = SERVICE_RETURN_SUCCESS;
+    SERVICE_STATUS  service_status;
+    SC_HANDLE       sch;
+
+    if (g_service_name == NULL)
+        return SERVICE_ERROR_NOT_FOUND; // SERVICE_ERROR_NOT_FOUND
+    else if ((sch = OpenSCManager(NULL, NULL, GENERIC_READ)) == NULL)
         status = get_error(GetLastError(), "open");
-      else if (!StartService(service, g_argc, (const char **)g_argv))
-        status = get_error(GetLastError(), "start");
-      else 
+    else
+    {
+        SC_HANDLE service = OpenService(
+            sch, g_service_name, SERVICE_START | SERVICE_QUERY_STATUS);
+
+        if (service == NULL)
+            status = get_error(GetLastError(), "open");
+        else if (!StartService(service, g_argc, (const char **)g_argv))
+            status = get_error(GetLastError(), "start");
+        else
         {
-          int i, max = (wait_time > 0) ? wait_time : 5;
+            int i, max = (wait_time > 0) ? wait_time : 5;
 
-          // Loop up to max times waiting for the service 
-          // state to change to RUNNING
+            // Loop up to max times waiting for the service
+            // state to change to RUNNING
 
-          for (i = 0; i < max; i++)
+            for (i = 0; i < max; i++)
             {
-              if (!QueryServiceStatus(service, &service_status))
+                if (!QueryServiceStatus(service, &service_status))
                 {
-                  status = get_error(GetLastError(), "query");
-                  return status; // QUERY_FAIL
+                    status = get_error(GetLastError(), "query");
+                    return status; // QUERY_FAIL
                 }
 
-              if (service_status.dwCurrentState == SERVICE_RUNNING)
-                break;
+                if (service_status.dwCurrentState == SERVICE_RUNNING)
+                    break;
 
-              Sleep(1 * CLOCKS_PER_SEC);
+                Sleep(1 * CLOCKS_PER_SEC);
             }
-          
-          status = (i < max) ? SERVICE_RETURN_SUCCESS : SERVICE_ERROR_REQUEST_TIMEOUT;
 
-          CloseServiceHandle(service);
+            status = (i < max) ?
+                SERVICE_RETURN_SUCCESS : SERVICE_ERROR_REQUEST_TIMEOUT;
+
+            CloseServiceHandle(service);
         }
-      CloseServiceHandle(sch); 
+
+        CloseServiceHandle(sch);
     }
 
-  return status;
-} 
+    return status;
+}
 
 /*-------------------------------------------------------------------------*
  * Method: Stop                                                            *
@@ -279,56 +285,58 @@ Service::Start(int wait_time)
  * Description:                                                            *
  *     Attempt to stop the service.                                        *
  *-------------------------------------------------------------------------*/
-Service::ReturnCode 
-Service::Stop(int wait_time)
+Service::ReturnCode Service::Stop(int wait_time)
 {
-  ReturnCode      status = SERVICE_RETURN_SUCCESS;
-  SERVICE_STATUS  service_status;
-  SC_HANDLE       sch;
-
-  if (g_service_name == NULL)
-    return SERVICE_ERROR_NOT_FOUND; // SERVICE_ERROR_NOT_FOUND
-  else if ((sch = OpenSCManager(NULL, NULL, GENERIC_READ)) == NULL)
-    status = get_error(GetLastError(), "open");
- //   show_error("OpenSCMManager", "service", GetLastError());
-  else
-    {
-      SC_HANDLE service = OpenService(sch, g_service_name, SERVICE_STOP | SERVICE_QUERY_STATUS);
-      if (service == NULL) 
+    ReturnCode      status = SERVICE_RETURN_SUCCESS;
+    SERVICE_STATUS  service_status;
+    SC_HANDLE       sch;
+
+    if (g_service_name == NULL)
+        return SERVICE_ERROR_NOT_FOUND; // SERVICE_ERROR_NOT_FOUND
+    else if ((sch = OpenSCManager(NULL, NULL, GENERIC_READ)) == NULL)
         status = get_error(GetLastError(), "open");
-      else if (!ControlService(service, SERVICE_CONTROL_STOP, &service_status))
-        status = get_error(GetLastError(), "stop");
-      else 
+     //   show_error("OpenSCMManager", "service", GetLastError());
+    else
+    {
+        SC_HANDLE service = OpenService(
+            sch, g_service_name, SERVICE_STOP | SERVICE_QUERY_STATUS);
+
+        if (service == NULL)
+            status = get_error(GetLastError(), "open");
+        else if (!ControlService(
+                      service, SERVICE_CONTROL_STOP, &service_status))
+            status = get_error(GetLastError(), "stop");
+        else
         {
-          int i, max = (wait_time > 0) ? wait_time : 5;
+            int i, max = (wait_time > 0) ? wait_time : 5;
 
-          // Loop up to max times waiting for the service 
-          // state to change to STOPPED
+            // Loop up to max times waiting for the service
+            // state to change to STOPPED
 
-          for (i = 0; i < max; i++)
+            for (i = 0; i < max; i++)
             {
-              if (!QueryServiceStatus(service, &service_status))
+                if (!QueryServiceStatus(service, &service_status))
                 {
-                  status = get_error(GetLastError(), "query");
-                  return status; // QUERY_FAIL
+                    status = get_error(GetLastError(), "query");
+                    return status; // QUERY_FAIL
                 }
 
-              if (service_status.dwCurrentState == SERVICE_STOPPED)
-                break;
+                if (service_status.dwCurrentState == SERVICE_STOPPED)
+                    break;
 
-              Sleep(1 * CLOCKS_PER_SEC);
+                Sleep(1 * CLOCKS_PER_SEC);
             }
-          
-          status = (i < max) ? SERVICE_RETURN_SUCCESS : SERVICE_ERROR_REQUEST_TIMEOUT;
 
-          CloseServiceHandle(service);
+            status = (i < max) ?
+                SERVICE_RETURN_SUCCESS : SERVICE_ERROR_REQUEST_TIMEOUT;
+
+            CloseServiceHandle(service);
         }
-      CloseServiceHandle(sch); 
+
+        CloseServiceHandle(sch);
     }
 
-  return status;
+    return status;
 }
 
 /*-------------------------------------------------------------------------*
@@ -350,37 +358,36 @@ Service::Stop(int wait_time)
  *       function never returns, but calls exit() instead.                 *
  *-------------------------------------------------------------------------*/
 
-Service::ReturnCode 
-Service::Run(SERVICE_MAIN_T service_main, DWORD flags)
+Service::ReturnCode Service::Run(SERVICE_MAIN_T service_main, DWORD flags)
 {
-  ReturnCode status = SERVICE_RETURN_SUCCESS;
+    ReturnCode status = SERVICE_RETURN_SUCCESS;
 
-  SERVICE_TABLE_ENTRY dispatchTable[] = 
-  { 
-    { g_service_name, real_service_main },
-    { NULL,         NULL              } 
-  };
+    SERVICE_TABLE_ENTRY dispatchTable[] =
+    {
+        { g_service_name, real_service_main },
+        { NULL,           NULL              }
+    };
 
-  // Validate the arguments as best we can 
+    // Validate the arguments as best we can
 
-  if (g_service_name == NULL || service_main == NULL)
-    return SERVICE_ERROR_NOT_FOUND; // SERVICE_ERROR_NOT_FOUND
+    if (g_service_name == NULL || service_main == NULL)
+        return SERVICE_ERROR_NOT_FOUND; // SERVICE_ERROR_NOT_FOUND
 
-  // Save parameters in global variables 
+    // Save parameters in global variables
 
-  g_flags        = flags;
-  g_service_main = service_main;
+    g_flags        = flags;
+    g_service_main = service_main;
 
-  // Kick off the service 
+    // Kick off the service
 
-  if (!StartServiceCtrlDispatcher(dispatchTable))
+    if (!StartServiceCtrlDispatcher(dispatchTable))
     {
-      status = get_error(GetLastError(), "start");
-      return status; // FAIL
+        status = get_error(GetLastError(), "start");
+        return status; // FAIL
     }
 
-  // Don't call exit()
-  return status;
+    // Don't call exit()
+    return status;
 }
 
 /*-------------------------------------------------------------------------*
@@ -389,35 +396,35 @@ Service::Run(SERVICE_MAIN_T service_main, DWORD flags)
  * Description:                                                            *
  *     Returns the state of the service into "state".                      *
  *-------------------------------------------------------------------------*/
-Service::ReturnCode 
-Service::GetState(State *state)
+Service::ReturnCode Service::GetState(State* state)
 {
-  ReturnCode      status = SERVICE_RETURN_SUCCESS;
-  SERVICE_STATUS  service_status;
-  SC_HANDLE       sch;
-
-  if (g_service_name == NULL)
-    return SERVICE_ERROR_NOT_FOUND; // SERVICE_ERROR_NOT_FOUND
-  else if ((sch = OpenSCManager(NULL, NULL, GENERIC_READ)) == NULL)
-    status = get_error(GetLastError(), "open");
-  else
-    {
-      SC_HANDLE service = OpenService(sch, g_service_name, SERVICE_QUERY_STATUS);
-      if (service == NULL) 
+    ReturnCode      status = SERVICE_RETURN_SUCCESS;
+    SERVICE_STATUS  service_status;
+    SC_HANDLE       sch;
+
+    if (g_service_name == NULL)
+        return SERVICE_ERROR_NOT_FOUND; // SERVICE_ERROR_NOT_FOUND
+    else if ((sch = OpenSCManager(NULL, NULL, GENERIC_READ)) == NULL)
         status = get_error(GetLastError(), "open");
-      else if (!QueryServiceStatus(service, &service_status))
-        status = get_error(GetLastError(), "query");
-      else
+    else
+    {
+        SC_HANDLE service =
+            OpenService(sch, g_service_name, SERVICE_QUERY_STATUS);
+
+        if (service == NULL)
+            status = get_error(GetLastError(), "open");
+        else if (!QueryServiceStatus(service, &service_status))
+            status = get_error(GetLastError(), "query");
+        else
         {
-          *state = get_state(service_status.dwCurrentState);
-          CloseServiceHandle(service);
+            *state = get_state(service_status.dwCurrentState);
+            CloseServiceHandle(service);
         }
-  
-      CloseServiceHandle(sch);
+
+        CloseServiceHandle(sch);
     }
 
-  return status;
+    return status;
 }
 
 /*-------------------------------------------------------------------------*
@@ -448,28 +455,28 @@ Service::GetState(State *state)
  *     true  if event was successfully logged                              *
  *     false if the event could not be logged                              *
  *-------------------------------------------------------------------------*/
-bool
-Service::LogEvent(WORD event_type, DWORD event_id, const char *string)
+bool Service::LogEvent(WORD event_type, DWORD event_id, const char *string)
 {
-  BOOL   status;
-  HANDLE h_event_source = RegisterEventSource(NULL, g_event_source);
-
-  if (h_event_source == NULL)
-    FALSE;
-
-  status = ReportEvent (h_event_source, 
-                        event_type, 
-                        0, 
-                        event_id, 
-                        NULL, 
-                        1, 
-                        0, 
-                        &string, 
-                        NULL);
-
-  DeregisterEventSource(h_event_source);
-
-  return (status == TRUE) ? true : false;
+    BOOL   status;
+    HANDLE h_event_source = RegisterEventSource(NULL, g_event_source);
+
+    if (h_event_source == NULL)
+        FALSE;
+
+    status = ReportEvent(
+        h_event_source,
+        event_type,
+        0,
+        event_id,
+        NULL,
+        1,
+        0,
+        &string,
+        NULL);
+
+    DeregisterEventSource(h_event_source);
+
+    return (status == TRUE);
 }
 
 //-------------------------------------------------------------------------
@@ -494,42 +501,42 @@ Service::LogEvent(WORD event_type, DWORD event_id, const char *string)
 void __stdcall
 Service::real_service_main(DWORD argc, LPTSTR *argv)
 {
-  // Let the SCM know we're alive and kicking
+    // Let the SCM know we're alive and kicking
 
-  report_status(SERVICE_START_PENDING, NO_ERROR, 0, 5000);
+    report_status(SERVICE_START_PENDING, NO_ERROR, 0, 5000);
 
-  // If the command line arguments include the string "-debug" then
-  // invoke the debugger
+    // If the command line arguments include the string "-debug" then
+    // invoke the debugger
 
-  if (check_args_for_string("-debug"))
-    DebugBreak();
+    if (check_args_for_string("-debug"))
+        DebugBreak();
 
-  // Save copy of argc and argc in global variables
+    // Save copy of argc and argc in global variables
 
-  g_argc = argc;
-  g_argv = argv;
+    g_argc = argc;
+    g_argv = argv;
 
-  // Start service actions
+    // Start service actions
 
-  g_service_status_handle = RegisterServiceCtrlHandler (g_service_name, 
-                                                        service_control_handler);
+    g_service_status_handle =
+        RegisterServiceCtrlHandler(g_service_name, service_control_handler);
 
-  if (g_service_status_handle == 0)
+    if (g_service_status_handle == 0)
     {
-      show_error("register", "Service Control Handler", GetLastError());
-      report_status(SERVICE_STOPPED, NO_ERROR, 0, 5000);
-      return;
+        show_error("register", "Service Control Handler", GetLastError());
+        report_status(SERVICE_STOPPED, NO_ERROR, 0, 5000);
+        return;
     }
 
-  // Change our state to RUNNING, then invoke the user supplied
-  // service_main function. After the user's service_main exits,
-  // change the service state to STOPPED.
+    // Change our state to RUNNING, then invoke the user supplied
+    // service_main function. After the user's service_main exits,
+    // change the service state to STOPPED.
 
-  report_status(SERVICE_RUNNING, NO_ERROR, 0, 5000);
-  g_service_main(STARTUP_FLAG, argc, argv);
-  report_status(SERVICE_STOPPED, NO_ERROR, 0, 5000);
+    report_status(SERVICE_RUNNING, NO_ERROR, 0, 5000);
+    g_service_main(STARTUP_FLAG, argc, argv);
+    report_status(SERVICE_STOPPED, NO_ERROR, 0, 5000);
 
-  return;
+    return;
 }
 
 /*-------------------------------------------------------------------------*
@@ -547,18 +554,17 @@ Service::real_service_main(DWORD argc, LPTSTR *argv)
  *     true  if the string was found                                       *
  *     false if the string was not found                                   *
  *-------------------------------------------------------------------------*/
-bool
-Service::check_args_for_string(char *string)
+bool Service::check_args_for_string(char* string)
 {
-  int i;
+    int i;
 
-  for (i = 1; i < g_argc; i++)
+    for (i = 1; i < g_argc; i++)
     {
-      if (strcmp(g_argv[i], string) == 0)
-        return true;
+        if (strcmp(g_argv[i], string) == 0)
+            return true;
     }
 
-  return false;
+    return false;
 }
 
 /*-------------------------------------------------------------------------*
@@ -583,18 +589,18 @@ Service::check_args_for_string(char *string)
 void WINAPI
 Service::service_control_handler(DWORD control)
 {
-  /* Currently, only the stop contol requires special handling */
+    /* Currently, only the stop contol requires special handling */
 
-  if (control == SERVICE_CONTROL_STOP)
+    if (control == SERVICE_CONTROL_STOP)
     {
-      report_status(SERVICE_STOP_PENDING, NO_ERROR, 0, 5000);
-      g_service_main(SHUTDOWN_FLAG, g_argc, g_argv);
-      return;
+        report_status(SERVICE_STOP_PENDING, NO_ERROR, 0, 5000);
+        g_service_main(SHUTDOWN_FLAG, g_argc, g_argv);
+        return;
     }
 
-  /* For every other control, just send back our current state */
+    /* For every other control, just send back our current state */
 
-  report_status(g_current_state, NO_ERROR, 0, 5000);
+    report_status(g_current_state, NO_ERROR, 0, 5000);
 }
 
 /*-------------------------------------------------------------------------*
@@ -628,34 +634,33 @@ Service::service_control_handler(DWORD control)
  *     true  if the status was successfully reported                       *
  *     false if the status could not be reported                           *
  *-------------------------------------------------------------------------*/
-bool
-Service::report_status(
-  DWORD current_state, 
-  DWORD exit_code, 
-  DWORD check_point, 
-  DWORD wait_hint)
+bool Service::report_status(
+    DWORD current_state,
+    DWORD exit_code,
+    DWORD check_point,
+    DWORD wait_hint)
 {
-  SERVICE_STATUS current_status = 
-  {
-    SERVICE_WIN32,
-    current_state,
-    SERVICE_CONTROL_INTERROGATE,
-    exit_code,
-    0,
-    check_point,
-    wait_hint
-  };
-
-  /* Wait until we're started before we accept a stop control */
-
-  if (current_state == SERVICE_RUNNING)
-    current_status.dwControlsAccepted += SERVICE_ACCEPT_STOP;
-
-  /* Save new state */
-
-  g_current_state = current_state;
-  
-  return (SetServiceStatus(g_service_status_handle, &current_status) == TRUE) ? true : false;
+    SERVICE_STATUS current_status =
+    {
+        SERVICE_WIN32,
+        current_state,
+        SERVICE_CONTROL_INTERROGATE,
+        exit_code,
+        0,
+        check_point,
+        wait_hint
+    };
+
+    /* Wait until we're started before we accept a stop control */
+
+    if (current_state == SERVICE_RUNNING)
+        current_status.dwControlsAccepted += SERVICE_ACCEPT_STOP;
+
+    /* Save new state */
+
+    g_current_state = current_state;
+
+    return (SetServiceStatus(g_service_status_handle, &current_status) == TRUE);
 }
 
 /*-------------------------------------------------------------------------*
@@ -683,39 +688,40 @@ Service::report_status(
  *     first appeared in Windows2000. Therefore, this code checks the      *
  *     OS version, before calling ChangeServiceConfig2().                  *
  *-------------------------------------------------------------------------*/
-void 
-Service::change_service_description(SC_HANDLE service, char *description)
+void Service::change_service_description(SC_HANDLE service, char *description)
 {
-  OSVERSIONINFO osvi;
+    OSVERSIONINFO osvi;
+
+    /*
+     *  Test for Windows 2000 or greater
+     */
 
-  /* 
-   *  Test for Windows 2000 or greater
-   */ 
-  
-  osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
+    osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
 
-  if (GetVersionEx(&osvi) != 0                      && 
-      osvi.dwPlatformId    == VER_PLATFORM_WIN32_NT && 
-      osvi.dwMajorVersion  >= 5)
+    if (GetVersionEx(&osvi) != 0                      &&
+        osvi.dwPlatformId    == VER_PLATFORM_WIN32_NT &&
+        osvi.dwMajorVersion  >= 5)
     {
-      typedef BOOL (WINAPI *CHANGE_SERVICE_CONFIG2_T)(SC_HANDLE, DWORD, LPVOID);
+        typedef BOOL
+            (WINAPI *CHANGE_SERVICE_CONFIG2_T)(SC_HANDLE, DWORD, LPVOID);
 
-      HINSTANCE hdll = LoadLibrary("advapi32.dll");
+        HINSTANCE hdll = LoadLibrary("advapi32.dll");
 
-      if (hdll != NULL)
+        if (hdll != NULL)
         {
-          SERVICE_DESCRIPTION      sd;
-          CHANGE_SERVICE_CONFIG2_T csc;
+            SERVICE_DESCRIPTION      sd;
+            CHANGE_SERVICE_CONFIG2_T csc;
 
-          csc = (CHANGE_SERVICE_CONFIG2_T) GetProcAddress(hdll, "ChangeServiceConfig2A");
+            csc = (CHANGE_SERVICE_CONFIG2_T)
+                GetProcAddress(hdll, "ChangeServiceConfig2A");
 
-          if (csc)
+            if (csc)
             {
-              sd.lpDescription = description;
-              csc(service, SERVICE_CONFIG_DESCRIPTION, &sd);
+                sd.lpDescription = description;
+                csc(service, SERVICE_CONFIG_DESCRIPTION, &sd);
             }
 
-          FreeLibrary(hdll);
+            FreeLibrary(hdll);
         }
     }
 }
@@ -743,67 +749,69 @@ Service::change_service_description(SC_HANDLE service, char *description)
  *     true  if event was successfully logged                              *
  *     false if the event could not be logged                              *
  *-------------------------------------------------------------------------*/
-bool
-Service::show_error(const char *action, const char *object, DWORD hr)
+bool Service::show_error(const char *action, const char *object, DWORD hr)
 {
-  char console_title[_MAX_PATH] = {0};
-  char  txt[_MAX_PATH]          = "";
-  char  msg[_MAX_PATH]          = "";
-  DWORD nchars;
-
-  nchars = FormatMessage(
-    FORMAT_MESSAGE_FROM_SYSTEM,
-    NULL,
-    hr,
-    MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
-    msg,
-    sizeof(msg),
-    NULL);
-
-  if (nchars == 0) 
-    sprintf(msg, "Unknown error code - %%X%x", hr);
-  else if (nchars > 1)
+    char console_title[_MAX_PATH] = {0};
+    char  txt[_MAX_PATH]          = "";
+    char  msg[_MAX_PATH]          = "";
+    DWORD nchars;
+
+    nchars = FormatMessage(
+        FORMAT_MESSAGE_FROM_SYSTEM,
+        NULL,
+        hr,
+        MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
+        msg,
+        sizeof(msg),
+        NULL);
+
+    if (nchars == 0)
+        sprintf(msg, "Unknown error code - %%X%x", hr);
+    else if (nchars > 1)
     {
-      if (msg[nchars - 1] == '\n') msg[nchars - 1] = '\0';
-      if (msg[nchars - 2] == '\r') msg[nchars - 2] = '\0';
+        if (msg[nchars - 1] == '\n') msg[nchars - 1] = '\0';
+        if (msg[nchars - 2] == '\r') msg[nchars - 2] = '\0';
     }
 
-  sprintf(txt, "Failed to %s %s %s. Reason: %s", action, object, g_service_name, msg);
+    sprintf(txt,
+        "Failed to %s %s %s. Reason: %s",
+        action,
+        object,
+        g_service_name,
+        msg);
 
-  // Running from a console window
-  // send courtesy message txt to stderr
-  if (GetConsoleTitle(console_title, _MAX_PATH) > 0)
+    // Running from a console window
+    // send courtesy message txt to stderr
+    if (GetConsoleTitle(console_title, _MAX_PATH) > 0)
     {
       PEGASUS_STD(cerr) << txt << PEGASUS_STD(endl);
     }
 
-  return LogEvent(EVENTLOG_ERROR_TYPE, 1, txt);
+    return LogEvent(EVENTLOG_ERROR_TYPE, 1, txt);
 }
 
-Service::State
-Service::get_state(DWORD scm_state)
+Service::State Service::get_state(DWORD scm_state)
 {
-  return (State)scm_state;
+    return (State)scm_state;
 }
 
-Service::ReturnCode 
-Service::get_error(DWORD error_status, const char *action)
+Service::ReturnCode Service::get_error(DWORD error_status, const char *action)
 {
-  switch (error_status)
+    switch (error_status)
     {
     /*
-      // INFO: Could add cases to suppress error message.
-      case ERROR_SERVICE_DOES_NOT_EXIST:
-      case ERROR_SERVICE_CANNOT_ACCEPT_CTRL:
-        break;
+        // INFO: Could add cases to suppress error message.
+        case ERROR_SERVICE_DOES_NOT_EXIST:
+        case ERROR_SERVICE_CANNOT_ACCEPT_CTRL:
+            break;
     */
-      case SERVICE_RETURN_SUCCESS:
-        break;
+        case SERVICE_RETURN_SUCCESS:
+            break;
 
-      default:
-        show_error(action, "service", error_status); 
-        break;
+        default:
+            show_error(action, "service", error_status);
+            break;
     }
-  return (ReturnCode)error_status;
+    return (ReturnCode)error_status;
 }
 
index ac943e5d2a9afc4c64837b0a14bb5d6039f915ac..54ae6c995a4493037fe9d3e26fce59331a1b6d6d 100644 (file)
@@ -40,107 +40,116 @@ typedef int (*SERVICE_MAIN_T)(int flag, int argc, char **argv);
 class Service
 {
 public:
-  // default ctor
-  Service(void);
+    // default ctor
+    Service();
 
-  // ctor using service name
-  Service(const char *service_name);
+    // ctor using service name
+    Service(const char *service_name);
 
-  // ctor using service name and event source
-  Service(const char *service_name, char *event_source);
+    // ctor using service name and event source
+    Service(const char *service_name, char *event_source);
 
-  // dtor
-  ~Service(void);
+    // dtor
+    ~Service();
 
-  // State
-  enum State
+    // State
+    enum State
     {
-      SERVICE_STATE_STOPPED            = SERVICE_STOPPED,
-      SERVICE_STATE_START_PENDING      = SERVICE_START_PENDING,
-      SERVICE_STATE_STOP_PENDING       = SERVICE_STOP_PENDING,
-      SERVICE_STATE_RUNNING            = SERVICE_RUNNING,
-      SERVICE_STATE_CONTINUE_PENDING   = SERVICE_CONTINUE_PENDING,
-      SERVICE_STATE_PAUSE_PENDING      = SERVICE_PAUSE_PENDING,
-      SERVICE_STATE_PAUSED             = SERVICE_PAUSED
+        SERVICE_STATE_STOPPED            = SERVICE_STOPPED,
+        SERVICE_STATE_START_PENDING      = SERVICE_START_PENDING,
+        SERVICE_STATE_STOP_PENDING       = SERVICE_STOP_PENDING,
+        SERVICE_STATE_RUNNING            = SERVICE_RUNNING,
+        SERVICE_STATE_CONTINUE_PENDING   = SERVICE_CONTINUE_PENDING,
+        SERVICE_STATE_PAUSE_PENDING      = SERVICE_PAUSE_PENDING,
+        SERVICE_STATE_PAUSED             = SERVICE_PAUSED
     };
 
-  // Return Codes
-  enum ReturnCode
+    // Return Codes
+    enum ReturnCode
     {
-      SERVICE_RETURN_SUCCESS           = 0,
-      SERVICE_ERROR_MARKED_FOR_DELETE  = ERROR_SERVICE_MARKED_FOR_DELETE,
-      SERVICE_ERROR_DOES_NOT_EXIST     = ERROR_SERVICE_DOES_NOT_EXIST,
-      SERVICE_ERROR_REQUEST_TIMEOUT    = ERROR_SERVICE_REQUEST_TIMEOUT,
-      SERVICE_ERROR_NO_THREAD          = ERROR_SERVICE_NO_THREAD,
-      SERVICE_ERROR_DATABASE_LOCKED    = ERROR_SERVICE_DATABASE_LOCKED,
-      SERVICE_ERROR_ALREADY_RUNNING    = ERROR_SERVICE_ALREADY_RUNNING,
-      SERVICE_ERROR_DISABLED           = ERROR_SERVICE_DISABLED,
-      SERVICE_ERROR_CANNOT_ACCEPT_CTRL = ERROR_SERVICE_CANNOT_ACCEPT_CTRL,
-      SERVICE_ERROR_NOT_ACTIVE         = ERROR_SERVICE_NOT_ACTIVE,
-      SERVICE_ERROR_SPECIFIC_ERROR     = ERROR_SERVICE_SPECIFIC_ERROR,
-      SERVICE_ERROR_DEPENDENCY_FAIL    = ERROR_SERVICE_DEPENDENCY_FAIL,
-      SERVICE_ERROR_LOGON_FAILED       = ERROR_SERVICE_LOGON_FAILED,
-      SERVICE_ERROR_START_HANG         = ERROR_SERVICE_START_HANG,
-      SERVICE_ERROR_DOES_EXISTS        = ERROR_SERVICE_EXISTS,
-      SERVICE_ERROR_DEPENDENCY_DELETED = ERROR_SERVICE_DEPENDENCY_DELETED,
-      SERVICE_ERROR_NEVER_STARTED      = ERROR_SERVICE_NEVER_STARTED,
-      SERVICE_ERROR_NOT_FOUND          = ERROR_SERVICE_NOT_FOUND,
-      SERVICE_ERROR_CONTROLLER_CONNECT = ERROR_FAILED_SERVICE_CONTROLLER_CONNECT,
-      SERVICE_ERROR_INVALID_CONTROL    = ERROR_INVALID_SERVICE_CONTROL,
-      SERVICE_ERROR_INVALID_ACCOUNT    = ERROR_INVALID_SERVICE_ACCOUNT,
-      SERVICE_ERROR_INVALID_LOCK       = ERROR_INVALID_SERVICE_LOCK,
-      SERVICE_ERROR_DUPLICATE_NAME     = ERROR_DUPLICATE_SERVICE_NAME,
-      SERVICE_ERROR_DIFFERENT_ACCOUNT  = ERROR_DIFFERENT_SERVICE_ACCOUNT,
-      SERVICE_ERROR_UNKNOWN            = -999
+        SERVICE_RETURN_SUCCESS           = 0,
+        SERVICE_ERROR_MARKED_FOR_DELETE  = ERROR_SERVICE_MARKED_FOR_DELETE,
+        SERVICE_ERROR_DOES_NOT_EXIST     = ERROR_SERVICE_DOES_NOT_EXIST,
+        SERVICE_ERROR_REQUEST_TIMEOUT    = ERROR_SERVICE_REQUEST_TIMEOUT,
+        SERVICE_ERROR_NO_THREAD          = ERROR_SERVICE_NO_THREAD,
+        SERVICE_ERROR_DATABASE_LOCKED    = ERROR_SERVICE_DATABASE_LOCKED,
+        SERVICE_ERROR_ALREADY_RUNNING    = ERROR_SERVICE_ALREADY_RUNNING,
+        SERVICE_ERROR_DISABLED           = ERROR_SERVICE_DISABLED,
+        SERVICE_ERROR_CANNOT_ACCEPT_CTRL = ERROR_SERVICE_CANNOT_ACCEPT_CTRL,
+        SERVICE_ERROR_NOT_ACTIVE         = ERROR_SERVICE_NOT_ACTIVE,
+        SERVICE_ERROR_SPECIFIC_ERROR     = ERROR_SERVICE_SPECIFIC_ERROR,
+        SERVICE_ERROR_DEPENDENCY_FAIL    = ERROR_SERVICE_DEPENDENCY_FAIL,
+        SERVICE_ERROR_LOGON_FAILED       = ERROR_SERVICE_LOGON_FAILED,
+        SERVICE_ERROR_START_HANG         = ERROR_SERVICE_START_HANG,
+        SERVICE_ERROR_DOES_EXISTS        = ERROR_SERVICE_EXISTS,
+        SERVICE_ERROR_DEPENDENCY_DELETED = ERROR_SERVICE_DEPENDENCY_DELETED,
+        SERVICE_ERROR_NEVER_STARTED      = ERROR_SERVICE_NEVER_STARTED,
+        SERVICE_ERROR_NOT_FOUND          = ERROR_SERVICE_NOT_FOUND,
+        SERVICE_ERROR_CONTROLLER_CONNECT =
+            ERROR_FAILED_SERVICE_CONTROLLER_CONNECT,
+        SERVICE_ERROR_INVALID_CONTROL    = ERROR_INVALID_SERVICE_CONTROL,
+        SERVICE_ERROR_INVALID_ACCOUNT    = ERROR_INVALID_SERVICE_ACCOUNT,
+        SERVICE_ERROR_INVALID_LOCK       = ERROR_INVALID_SERVICE_LOCK,
+        SERVICE_ERROR_DUPLICATE_NAME     = ERROR_DUPLICATE_SERVICE_NAME,
+        SERVICE_ERROR_DIFFERENT_ACCOUNT  = ERROR_DIFFERENT_SERVICE_ACCOUNT,
+        SERVICE_ERROR_UNKNOWN            = -999
     };
 
-  // Flag
-  enum Flag
+    // Flag
+    enum Flag
     {
-      STARTUP_FLAG,
-      SHUTDOWN_FLAG
+        STARTUP_FLAG,
+        SHUTDOWN_FLAG
     };
 
-  // Methods
-  ReturnCode Install(char  *display_name, char  *description, char  *exe_name);
-  ReturnCode Remove(void);
+    // Methods
+    ReturnCode Install(char* display_name, char* description, char* exe_name);
+    ReturnCode Remove();
 
-  ReturnCode Start(int wait_time);
-  ReturnCode Stop(int wait_time);
-  static bool report_status(DWORD current_state, DWORD exit_code, DWORD check_point, DWORD wait_hint);
+    ReturnCode Start(int wait_time);
+    ReturnCode Stop(int wait_time);
+    static bool report_status(
+        DWORD current_state,
+        DWORD exit_code,
+        DWORD check_point,
+        DWORD wait_hint);
 
-  static ReturnCode Run(SERVICE_MAIN_T service_main, DWORD flags = 0);
-  ReturnCode GetState(State *state);
-  static bool LogEvent(WORD event_type, DWORD event_id, const char *string);
-  static void SetServiceName(char *service_name);
+    static ReturnCode Run(SERVICE_MAIN_T service_main, DWORD flags = 0);
+    ReturnCode GetState(State *state);
+    static bool LogEvent(WORD event_type, DWORD event_id, const char *string);
+    static void SetServiceName(char *service_name);
 
-  static void SetServiceArgs(int num_args, char **service_args)
+    static void SetServiceArgs(int num_args, char **service_args)
     {
-      g_argv = service_args;
-      g_argc = num_args;
+        g_argv = service_args;
+        g_argc = num_args;
     }
-  static char *GetServiceName(void)
+    static char *GetServiceName()
     {
-      return g_service_name;
+        return g_service_name;
     }
 
 private:
-  static int                    g_argc;
-  static char                 **g_argv;
-  static char                  *g_service_name;
-  static char                  *g_event_source;
-  static DWORD                  g_flags;
-  static DWORD                  g_current_state;
-  static SERVICE_STATUS_HANDLE  g_service_status_handle;
-  static SERVICE_MAIN_T         g_service_main;
-
-  static bool show_error(const char *action, const char *object, DWORD hr);
-  static void WINAPI service_control_handler(DWORD control);
-  static bool check_args_for_string(char *string);
-  static void __stdcall real_service_main(DWORD argc, LPTSTR *argv);
-  static void change_service_description(SC_HANDLE service, char *description);
-  State get_state(DWORD scm_state);
-  static ReturnCode get_error(DWORD error_status, const char action[] = "cimserver");
+    static int                    g_argc;
+    static char                 **g_argv;
+    static char                  *g_service_name;
+    static char                  *g_event_source;
+    static DWORD                  g_flags;
+    static DWORD                  g_current_state;
+    static SERVICE_STATUS_HANDLE  g_service_status_handle;
+    static SERVICE_MAIN_T         g_service_main;
+
+    static bool show_error(const char *action, const char *object, DWORD hr);
+    static void WINAPI service_control_handler(DWORD control);
+    static bool check_args_for_string(char *string);
+    static void __stdcall real_service_main(DWORD argc, LPTSTR *argv);
+    static void change_service_description(
+        SC_HANDLE service,
+        char* description);
+    State get_state(DWORD scm_state);
+    static ReturnCode get_error(
+        DWORD error_status,
+        const char action[] = "cimserver");
 };
 
 #endif // SERVICE_H