Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

58 lines
1.1 KiB

//***************************************************************************
//
// File:
//
// Module: MS SNMP Provider
//
// Purpose:
//
// Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
//
//***************************************************************************
/*---------------------------------------------------------
Filename: opreg.cpp
Written By: B.Rajeev
----------------------------------------------------------*/
#include "precomp.h"
#include <provexpt.h>
#include "fs_reg.h"
#include "pseudo.h"
#include "ophelp.h"
#include "opreg.h"
#include "op.h"
OperationRegistry::OperationRegistry()
{
num_registered = 0;
}
void OperationRegistry::Register(IN SnmpOperation &operation)
{
// flagging the operation as registered
store[&operation] = NULL;
num_registered++;
}
void OperationRegistry::Deregister(IN SnmpOperation &operation)
{
// flag the operation as unregistered
if ( store.RemoveKey(&operation) )
{
num_registered--;
}
}
OperationRegistry::~OperationRegistry()
{
store.RemoveAll();
}