(file) Return to snmpIndicationHandler.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Handler / snmpIndicationHandler

Diff for /pegasus/src/Pegasus/Handler/snmpIndicationHandler/snmpIndicationHandler.cpp between version 1.1.2.2 and 1.1.2.3

version 1.1.2.2, 2001/11/08 20:02:27 version 1.1.2.3, 2001/11/15 20:15:24
Line 80 
Line 80 
         if (qualifierPos != PEG_NOT_FOUND)         if (qualifierPos != PEG_NOT_FOUND)
         {         {
             CIMQualifier trapQualifier = trapProp.getQualifier(qualifierPos);             CIMQualifier trapQualifier = trapProp.getQualifier(qualifierPos);
             enterprise = trapQualifier.getValue().toString();              // ATTN: Catch TypeMismatch exception on the next line
               trapQualifier.getValue().get(enterprise);
  
             for (int i=0; i<indicationInstance.getPropertyCount();i++)             for (int i=0; i<indicationInstance.getPropertyCount();i++)
             {             {
Line 100 
Line 101 
                     {                     {
                         if (propName == "trapOid")                         if (propName == "trapOid")
                         {                         {
                             trapOid = prop.getValue().toString();                              // ATTN: Catch TypeMismatch exception on the next line
                               prop.getValue().get(trapOid);
                         }                         }
                         else                         else
                         {                         {
                             Uint32 qualifierPos = trapProp.findQualifier("MappingStrings");                             Uint32 qualifierPos = trapProp.findQualifier("MappingStrings");
                             CIMQualifier trapQualifier = trapProp.getQualifier(qualifierPos);                             CIMQualifier trapQualifier = trapProp.getQualifier(qualifierPos);
  
                             String mapstr1 = trapQualifier.getValue().toString();                              String mapstr1;
                               // ATTN: Catch TypeMismatch exception on the next line
                               trapQualifier.getValue().get(mapstr1);
                             String mapstr2 = "";                             String mapstr2 = "";
  
                             if ((mapstr1.find("OID") != PEG_NOT_FOUND) &&                             if ((mapstr1.find("OID") != PEG_NOT_FOUND) &&
Line 121 
Line 125 
                                         mapstr2 = mapstr1.subString(0, mapstr1.find("|"));                                         mapstr2 = mapstr1.subString(0, mapstr1.find("|"));
  
                                         propOIDs.append(mapstr2);                                         propOIDs.append(mapstr2);
                                         propVALUEs.append(prop.getValue().toString());                                          String propValue;
                                           // ATTN: Catch TypeMismatch exception on the next line
                                           prop.getValue().get(propValue);
                                           propVALUEs.append(propValue);
                                         propTYPEs.append(mapstr1.subString(mapstr1.find("|")+1));                                         propTYPEs.append(mapstr1.subString(mapstr1.find("|")+1));
                                     }                                     }
                                 }                                 }
Line 145 
Line 152 
         if ((handlerInstance.findProperty("Destination") != PEG_NOT_FOUND) &&         if ((handlerInstance.findProperty("Destination") != PEG_NOT_FOUND) &&
             (handlerInstance.findProperty("trapType") != PEG_NOT_FOUND))             (handlerInstance.findProperty("trapType") != PEG_NOT_FOUND))
         {         {
               String destination;
               String trapType;
               // ATTN: Add error checking
               // ATTN: Catch TypeMismatch exception on the next line
               handlerInstance.getProperty(
                   handlerInstance.findProperty("Destination"))
                   .getValue().get(destination);
               // ATTN: Add error checking
               // ATTN: Catch TypeMismatch exception on the next line
               handlerInstance.getProperty(
                   handlerInstance.findProperty("trapType"))
                   .getValue().get(trapType);
   
             emanateTrap.deliverTrap(trapOid,             emanateTrap.deliverTrap(trapOid,
                 enterprise,                 enterprise,
                 handlerInstance.getProperty(handlerInstance.findProperty("Destination"))                  destination,
                     .getValue().toString(),                  trapType,
                 handlerInstance.getProperty(handlerInstance.findProperty("trapType"))  
                     .getValue().toString(),  
                 propOIDs,                 propOIDs,
                 propTYPEs,                 propTYPEs,
                 propVALUEs);                 propVALUEs);


Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.3

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2