//Copyright 2020 Siemens Digital Industries Software
//==================================================
//
//Copyright $2020.
//Siemens Product Lifecycle Management Software Inc.
//All Rights Reserved.
//==================================================
//Copyright 2020 Siemens Digital Industries Software

/*==================================================================================================
File description:
    This file contains the declaration for the Business Object, CPComponentDelegate
    Filename:   CPComponentDelegate.hxx
    Module:     specmgr
    @BMIDE autogenerated
==================================================================================================*/

#ifndef TEAMCENTER__SPECMGR__CPCOMPONENTDELEGATE_HXX
#define TEAMCENTER__SPECMGR__CPCOMPONENTDELEGATE_HXX

#include <common/tc_deprecation_macros.h>
#include <specmgr/CPComponent.hxx>

#include <specmgr/libspecmgr_exports.h>

namespace Teamcenter
{
    namespace SPECMGR
    {
        class CPComponentDelegate;
    }
}
namespace Teamcenter
{
    namespace SPECMGR
    {
        class CPComponentImpl;
    }
}
namespace Teamcenter
{
    namespace SPECMGR
    {
        class CPComponent;
    }
}
namespace Teamcenter
{
    namespace SPECMGR
    {
        class CPComponentGenImpl;
    }
}

namespace Teamcenter_alias = ::Teamcenter;


class  SPECMGR_API Teamcenter_alias::SPECMGR::CPComponentDelegate
{
public:
    //  Method to initialize this Class
    static int initializeClass();

    //  Method to get the CPComponentDelegate instance
    static CPComponentDelegate&  getInstance();

    //  Method to create the CPComponentImpl pointer
    static CPComponentImpl*  createImpl( CPComponent&  ifObj );

    //  Method to delete the CPComponentImpl pointer
    static void deleteImpl( CPComponentImpl*  impl );



protected:
    //  Pointer to the instance
    static CPComponentDelegate*  m_pInstance;

    CPComponentDelegate();
    virtual ~CPComponentDelegate();
    static void setInstance( CPComponentDelegate*  instance );


private:
    friend class  ::Teamcenter::SPECMGR::CPComponentGenImpl;

};

#include <specmgr/libspecmgr_undef.h>
#endif  //  TEAMCENTER__SPECMGR__CPCOMPONENTDELEGATE_HXX
