version 1.6, 2002/04/17 22:46:33
|
version 1.10, 2002/07/19 23:40:13
|
|
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001 BMC Software, Hewlett Packard, IBM, The Open Group, |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM, |
// Tivoli Systems |
// The Open Group, Tivoli Systems |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
// | // |
// Author: Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com) | // Author: Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com) |
// | // |
// Modified By: |
// Modified By: Carol Ann Krug Graves, Hewlett-Packard Company |
|
// (carolann_graves@hp.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
|
#include <Pegasus/Common/PegasusVersion.h> |
|
|
#include <iostream> | #include <iostream> |
#include <Pegasus/Handler/CIMHandler.h> | #include <Pegasus/Handler/CIMHandler.h> |
#include <Pegasus/Repository/CIMRepository.h> | #include <Pegasus/Repository/CIMRepository.h> |
|
|
{ | { |
prop = indication.getProperty(i); | prop = indication.getProperty(i); |
| |
if (prop) |
if (!prop.isNull()) |
{ | { |
String propName = prop.getName(); | String propName = prop.getName(); |
Uint32 propPos = indicationClass.findProperty(propName); | Uint32 propPos = indicationClass.findProperty(propName); |
|
|
{ | { |
CIMProperty trapProp = indicationClass.getProperty(propPos); | CIMProperty trapProp = indicationClass.getProperty(propPos); |
| |
if (trapProp.existsQualifier("MappingStrings")) |
|
{ |
|
qualifierPos = trapProp.findQualifier("MappingStrings"); | qualifierPos = trapProp.findQualifier("MappingStrings"); |
|
if (qualifierPos != PEG_NOT_FOUND) |
|
{ |
trapQualifier = trapProp.getQualifier(qualifierPos); | trapQualifier = trapProp.getQualifier(qualifierPos); |
| |
mapstr1.clear(); | mapstr1.clear(); |