//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, CPRefObjectDelegate
    Filename:   CPRefObjectDelegate.hxx
    Module:     specmgr
    @BMIDE autogenerated
==================================================================================================*/

#ifndef TEAMCENTER__SPECMGR__CPREFOBJECTDELEGATE_HXX
#define TEAMCENTER__SPECMGR__CPREFOBJECTDELEGATE_HXX

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

#include <specmgr/libspecmgr_exports.h>

namespace Teamcenter
{
    namespace SPECMGR
    {
        class CPRefObjectDelegate;
    }
}
namespace Teamcenter
{
    namespace SPECMGR
    {
        class CPRefObjectImpl;
    }
}
namespace Teamcenter
{
    namespace SPECMGR
    {
        class CPRefObject;
    }
}
namespace Teamcenter
{
    namespace SPECMGR
    {
        class CPRefObjectGenImpl;
    }
}

namespace Teamcenter_alias = ::Teamcenter;


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

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

    //  Method to create the CPRefObjectImpl pointer
    static CPRefObjectImpl*  createImpl( CPRefObject&  ifObj );

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



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

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


private:
    friend class  ::Teamcenter::SPECMGR::CPRefObjectGenImpl;

};

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