version 1.4, 2002/03/14 00:07:48
|
version 1.14, 2005/02/14 21:15:36
|
|
|
//%///////////////////////////////////////////////////////////////////////////// |
//%2005//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001 BMC Software, Hewlett Packard, IBM, The Open Group, |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// Tivoli Systems |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation, The Open Group. |
|
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; VERITAS Software Corporation; The Open Group. |
// | // |
// 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: Yi Zhou, Hewlett-Packard Company (yi_zhou@hp.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#include <iostream> | #include <iostream> |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <Pegasus/ExportClient/CIMExportClient.h> |
|
#include <Pegasus/Handler/CIMHandler.h> | #include <Pegasus/Handler/CIMHandler.h> |
#include <Pegasus/Repository/CIMRepository.h> | #include <Pegasus/Repository/CIMRepository.h> |
| |
|
|
| |
PEGASUS_USING_STD; | PEGASUS_USING_STD; |
| |
//#define DDD(X) X |
|
#define DDD(X) // X |
|
|
|
DDD(static const char* _SNMPINDICATIONHANDLER = "snmpIndicationHandler::";) |
|
|
|
class PEGASUS_HANDLER_LINKAGE snmpIndicationHandler: public CIMHandler | class PEGASUS_HANDLER_LINKAGE snmpIndicationHandler: public CIMHandler |
{ | { |
public: | public: |
|
|
| |
snmpIndicationHandler() | snmpIndicationHandler() |
{ | { |
DDD(cout << _SNMPINDICATIONHANDLER << "snmpIndicationHandler()" << endl;) |
|
} | } |
| |
virtual ~snmpIndicationHandler() | virtual ~snmpIndicationHandler() |
{ | { |
DDD(cout << _SNMPINDICATIONHANDLER << "~snmpIndicationHandler()" << endl;) |
|
} | } |
| |
void initialize(CIMRepository* repository); | void initialize(CIMRepository* repository); |
| |
void terminate() | void terminate() |
{ | { |
DDD(cout << _SNMPINDICATIONHANDLER << "terminate()" << endl;) |
|
} | } |
| |
void handleIndication( | void handleIndication( |
CIMInstance& handler, |
const OperationContext& context, |
|
const String nameSpace, |
CIMInstance& indication, | CIMInstance& indication, |
String nameSpace); |
CIMInstance& handler, |
|
CIMInstance& subscription, |
|
ContentLanguages& contentLanguages); // l10n |
}; | }; |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |