version 1.4, 2002/03/21 23:00:08
|
version 1.6, 2002/04/17 22:46:33
|
|
|
propVALUEs.append(propValue); | propVALUEs.append(propValue); |
| |
mapstr2 = mapstr1.subString(mapstr1.find("|")+2); | mapstr2 = mapstr1.subString(mapstr1.find("|")+2); |
|
mapstr2 = mapstr2.subString(0, mapstr2.size()-1); |
propTYPEs.append(mapstr2); | propTYPEs.append(mapstr2); |
} | } |
} | } |
|
|
| |
if ((handler.findProperty("TrapDestination") != PEG_NOT_FOUND) && | if ((handler.findProperty("TrapDestination") != PEG_NOT_FOUND) && |
(handler.findProperty("SNMPVersion") != PEG_NOT_FOUND) && | (handler.findProperty("SNMPVersion") != PEG_NOT_FOUND) && |
(indication.findQualifier("TrapOid") != PEG_NOT_FOUND)) |
(indicationClass.findQualifier("MappingStrings") != PEG_NOT_FOUND)) |
{ | { |
String community, trapType, destination; // from handler instance | String community, trapType, destination; // from handler instance |
String trapOid; // from indication instance |
String trapOid; // from indication Class |
| |
trapOid = indication.getQualifier( |
trapOid = indicationClass.getQualifier( |
indication.findQualifier("TrapOid")).getValue().toString(); |
indicationClass.findQualifier("MappingStrings")).getValue().toString(); |
|
|
|
trapOid = trapOid.subString(trapOid.find("OID.IETF | SNMP.")+16); |
| |
community = handler.getProperty( | community = handler.getProperty( |
handler.findProperty("SNMPCommunityName")).getValue().toString(); | handler.findProperty("SNMPCommunityName")).getValue().toString(); |
|
|
propTYPEs, | propTYPEs, |
propVALUEs); | propVALUEs); |
} | } |
|
else |
|
cout << "Invalid Indication" << endl; |
} | } |
| |
// This is the dynamic entry point into this dynamic module. The name of | // This is the dynamic entry point into this dynamic module. The name of |