You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

99 lines
3.1 KiB

//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, Osl0CatalogWriterDelegate
Filename: Osl0CatalogWriterDelegate.hxx
Module: Osl0lisoslc
@BMIDE autogenerated
==================================================================================================*/
#ifndef OSL0LISOSLC__OSL0CATALOGWRITERDELEGATE_HXX
#define OSL0LISOSLC__OSL0CATALOGWRITERDELEGATE_HXX
#include <common/tc_deprecation_macros.h>
#include <Osl0lisoslc/Osl0CatalogWriter.hxx>
#include <Osl0lisoslc/libosl0lisoslc_exports.h>
namespace osl0lisoslc
{
class Osl0CatalogWriterDelegate;
}
namespace osl0lisoslc
{
class Osl0CatalogWriterImpl;
}
namespace osl0lisoslc
{
class Osl0CatalogWriter;
}
namespace osl0lisoslc
{
class Osl0CatalogWriterGenImpl;
}
namespace osl0lisoslc_alias = ::osl0lisoslc;
class OSL0LISOSLC_API osl0lisoslc_alias::Osl0CatalogWriterDelegate
{
public:
// Method to initialize this Class
static int initializeClass();
// Method to get the Osl0CatalogWriterDelegate instance
static Osl0CatalogWriterDelegate& getInstance();
// Method to create the Osl0CatalogWriterImpl pointer
static Osl0CatalogWriterImpl* createImpl( Osl0CatalogWriter& ifObj );
// Method to delete the Osl0CatalogWriterImpl pointer
static void deleteImpl( Osl0CatalogWriterImpl* impl );
///
/// Create a resource model based on the input resource instance
/// @version Teamcenter 10.1.4
/// @param resourceTag - Resource instance
/// @param inputTag - extra tag or parameter to pass
/// @param resourceModel - populate the resource model
/// @return - Error code. If successful, return 0.
///
int lis0CreateResourceModelBase(const Osl0CatalogWriter &ifObj, tag_t resourceTag, tag_t inputTag, lis0lisfmwrk::AbstractResource **resourceModel ) const;
///
/// Validate if it is supported to write based on the input resource instance
/// @version Teamcenter 10.1.4
/// @param resourceTag - Resource instance
/// @param canWrite - Flag to indicate if it is supported to write based on the input resource instance
/// @return - Error code. If successful, return 0.
///
int lis0IsWritableBase(const Osl0CatalogWriter &ifObj, tag_t resourceTag, bool *canWrite ) const;
protected:
// Pointer to the instance
static Osl0CatalogWriterDelegate* m_pInstance;
Osl0CatalogWriterDelegate();
virtual ~Osl0CatalogWriterDelegate();
static void setInstance( Osl0CatalogWriterDelegate* instance );
private:
friend class ::osl0lisoslc::Osl0CatalogWriterGenImpl;
};
#include <Osl0lisoslc/libosl0lisoslc_undef.h>
#endif // OSL0LISOSLC__OSL0CATALOGWRITERDELEGATE_HXX