(file) Return to LocalizedProviderMain.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Providers / sample / LocalizedProvider

File: [Pegasus] / pegasus / src / Providers / sample / LocalizedProvider / Attic / LocalizedProviderMain.cpp (download)
Revision: 1.3, Mon May 10 19:06:33 2004 UTC (20 years, 1 month ago) by dave.sudlik
Branch: MAIN
CVS Tags: RELEASE_2_4_FC_CANDIDATE_1, MONITOR_CONSOLIDATION_2_5_BRANCH, CQL_2_5_BRANCH
Changes since 1.2: +1 -2 lines
BUG#: 1179
TITLE: Sample providers should not be declared in Pegasus namespace

DESCRIPTION:

Removed PEGASUS_NAMESPACE_BEGIN and PEGASUS_NAMESPACE_END macros from
sample providers, added PEGASUS_USING_PEGASUS; so CIM symbols residing
in the Pegasus namespace will resolve.

//%2003////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000, 2001, 2002  BMC Software, Hewlett-Packard Development
// 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.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// 
// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//==============================================================================
//
// Author: Chuck Carmack (carmack@us.ibm.com)
//
// Modified By:
//
//%/////////////////////////////////////////////////////////////////////////////


#include <Pegasus/Common/Config.h>
#include <Pegasus/Common/String.h>

#include "LocalizedProvider.h"

PEGASUS_USING_PEGASUS;

// This is the dynamic entry point into this dynamic module. The name of
// this provider is "LocalizedProvider" which is appened to
// "PegasusCreateProvider_" to form a symbol name. This function is called
// by the ProviderModule to load this provider.
//
// NOTE: The name of the provider must be correct to be loadable.

extern "C" PEGASUS_EXPORT CIMProvider * PegasusCreateProvider(const String & name)
{
	if(String::equalNoCase(name, "samplelocalizedprovider") ||
		String::equalNoCase(name, "samplelocalizedprovider (PROVIDER)"))
	{
        return(new LocalizedProvider());
	}

	return(0);
}


No CVS admin address has been configured
Powered by
ViewCVS 0.9.2