98 lines
2.7 KiB
C++
98 lines
2.7 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright(C) 2000 Microsoft Corporation all rights reserved.
|
|
//
|
|
// Module: GlobalData.cpp
|
|
//
|
|
// Project: Windows 2000 IAS
|
|
//
|
|
// Description: Implementation of the CGlobalData struct
|
|
//
|
|
// Author: tperraut
|
|
//
|
|
// Revision 03/22/2000 created
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
#include "stdafx.h"
|
|
#include "GlobalData.h"
|
|
#include "Attributes.h"
|
|
#include "Clients.h"
|
|
#include "DefaultProvider.h"
|
|
#include "Objects.h"
|
|
#include "ProfileAttributeList.h"
|
|
#include "Profiles.h"
|
|
#include "Properties.h"
|
|
#include "Providers.h"
|
|
#include "RADIUSAttributeValues.h"
|
|
#include "Realms.h"
|
|
#include "RemoteRadiusServers.h"
|
|
#include "ServiceConfiguration.h"
|
|
#include "Version.h"
|
|
|
|
|
|
|
|
void CGlobalData::InitStandard(CSession& Session)
|
|
{
|
|
m_pObjects = new CObjects(Session);
|
|
m_pProperties = new CProperties(Session);
|
|
};
|
|
|
|
void CGlobalData::InitRef(CSession& Session)
|
|
{
|
|
m_pRefObjects = new CObjects(Session);
|
|
m_pRefProperties = new CProperties(Session);
|
|
m_pRefVersion = new CVersion(Session);
|
|
};
|
|
|
|
void CGlobalData::InitNT4(CSession& Session)
|
|
{
|
|
m_pClients = new CClients(Session);
|
|
m_pDefaultProvider = new CDefaultProvider(Session);
|
|
m_pProfileAttributeList = new CProfileAttributeList(Session);
|
|
m_pProfiles = new CProfiles(Session);
|
|
m_pProviders = new CProviders(Session);
|
|
m_pRADIUSAttributeValues= new CRADIUSAttributeValues(Session);
|
|
m_pRadiusServers = new CRemoteRadiusServers(Session);
|
|
m_pRealms = new CRealms(Session);
|
|
m_pServiceConfiguration = new CServiceConfiguration(Session);
|
|
}
|
|
|
|
void CGlobalData::InitDnary(CSession& Session)
|
|
{
|
|
m_pAttributes = new CAttributes(Session);
|
|
};
|
|
|
|
void CGlobalData::Clean() throw()
|
|
{
|
|
delete m_pAttributes;
|
|
m_pAttributes = NULL;
|
|
delete m_pClients;
|
|
m_pClients = NULL;
|
|
delete m_pDefaultProvider;
|
|
m_pDefaultProvider = NULL;
|
|
delete m_pObjects;
|
|
m_pObjects = NULL;
|
|
delete m_pProfiles;
|
|
m_pProfiles = NULL;
|
|
delete m_pProfileAttributeList;
|
|
m_pProfileAttributeList = NULL;
|
|
delete m_pProperties;
|
|
m_pProperties = NULL;
|
|
delete m_pProviders;
|
|
m_pProviders = NULL;
|
|
delete m_pRADIUSAttributeValues;
|
|
m_pRADIUSAttributeValues = NULL;
|
|
delete m_pRadiusServers;
|
|
m_pRadiusServers = NULL;
|
|
delete m_pRealms;
|
|
m_pRealms = NULL;
|
|
delete m_pRefObjects;
|
|
m_pRefObjects = NULL;
|
|
delete m_pRefProperties;
|
|
m_pRefProperties = NULL;
|
|
delete m_pRefVersion;
|
|
m_pRefVersion = NULL;
|
|
delete m_pServiceConfiguration;
|
|
m_pServiceConfiguration = NULL;
|
|
};
|