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

#ifndef TEAMCENTER__SPECMGR__CPREFOBJECTDISPATCH_HXX
#define TEAMCENTER__SPECMGR__CPREFOBJECTDISPATCH_HXX

#include <vector>
#include <specmgr/CPRefObject.hxx>
#include <specmgr/CPRefObjectDelegate.hxx>
#include <foundationdispatch/SpecElementDispatch.hxx>
#include <specmgrdispatch/initializespecmgr.hxx>

#include <specmgrdispatch/libspecmgrdispatch_exports.h>

namespace Teamcenter
{
    namespace SPECMGR
    {
        class CPRefObjectDispatch;
    }
}
namespace Teamcenter
{
    namespace SPECMGR
    {
        class CPRefObjectDelegate;
    }
}
namespace Teamcenter
{
    class BusinessObjectImpl;
}

class  SPECMGRDISPATCH_API  Teamcenter::SPECMGR::CPRefObjectDispatch
    : public  Teamcenter::SPECMGR::CPRefObjectDelegate
{
public:
    //  Method to initialize this Class
    static int initializeClass();

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


private:
    //  Pointer to the dispatch instance
    static CPRefObjectDispatch*  m_dispatch;

    //  Default Constructor
    CPRefObjectDispatch();

    //  Default Destructor
    virtual ~CPRefObjectDispatch();

    //  Constructor Method
    static ::Teamcenter::RootObject*  constructor();

    //  Copy Constructor for a CPRefObjectDispatch
    CPRefObjectDispatch( const CPRefObjectDispatch& );

    //  Assignment operator
    CPRefObjectDispatch&  operator = ( const CPRefObjectDispatch& );

    //  friend
    friend void   ::Teamcenter::SPECMGR::initializespecmgrInternal();
    friend void   ::Teamcenter::SPECMGR::initializespecmgrExtenders();
    friend class  Teamcenter::SPECMGR::CPRefObjectDelegate;
};

#include <specmgrdispatch/libspecmgrdispatch_undef.h>
#endif  //  TEAMCENTER__SPECMGR__CPREFOBJECTDISPATCH_HXX
