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.2 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, Osl0ResourceShapeWriterDelegate
Filename: Osl0ResourceShapeWriterDelegate.hxx
Module: Osl0lisoslc
@BMIDE autogenerated
==================================================================================================*/
#ifndef OSL0LISOSLC__OSL0RESOURCESHAPEWRITERDELEGATE_HXX
#define OSL0LISOSLC__OSL0RESOURCESHAPEWRITERDELEGATE_HXX
#include <common/tc_deprecation_macros.h>
#include <Osl0lisoslc/Osl0ResourceShapeWriter.hxx>
#include <Osl0lisoslc/libosl0lisoslc_exports.h>
namespace osl0lisoslc
{
class Osl0ResourceShapeWriterDelegate;
}
namespace osl0lisoslc
{
class Osl0ResourceShapeWriterImpl;
}
namespace osl0lisoslc
{
class Osl0ResourceShapeWriter;
}
namespace osl0lisoslc
{
class Osl0ResourceShapeWriterGenImpl;
}
namespace osl0lisoslc_alias = ::osl0lisoslc;
class OSL0LISOSLC_API osl0lisoslc_alias::Osl0ResourceShapeWriterDelegate
{
public:
// Method to initialize this Class
static int initializeClass();
// Method to get the Osl0ResourceShapeWriterDelegate instance
static Osl0ResourceShapeWriterDelegate& getInstance();
// Method to create the Osl0ResourceShapeWriterImpl pointer
static Osl0ResourceShapeWriterImpl* createImpl( Osl0ResourceShapeWriter& ifObj );
// Method to delete the Osl0ResourceShapeWriterImpl pointer
static void deleteImpl( Osl0ResourceShapeWriterImpl* 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 Osl0ResourceShapeWriter &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 Osl0ResourceShapeWriter &ifObj, tag_t resourceTag, bool *canWrite ) const;
protected:
// Pointer to the instance
static Osl0ResourceShapeWriterDelegate* m_pInstance;
Osl0ResourceShapeWriterDelegate();
virtual ~Osl0ResourceShapeWriterDelegate();
static void setInstance( Osl0ResourceShapeWriterDelegate* instance );
private:
friend class ::osl0lisoslc::Osl0ResourceShapeWriterGenImpl;
};
#include <Osl0lisoslc/libosl0lisoslc_undef.h>
#endif // OSL0LISOSLC__OSL0RESOURCESHAPEWRITERDELEGATE_HXX