Teamcenter C++ API Reference  2312
Lis0ResourceWriter.hxx
Go to the documentation of this file.
1 //Copyright 2022 Siemens Digital Industries Software
2 //==================================================
3 //Copyright $2023.
4 //Siemens Product Lifecycle Management Software Inc.
5 //All Rights Reserved.
6 //==================================================
7 //Copyright 2022 Siemens Digital Industries Software
8 
9 /*==================================================================================================
10 File description:
11  This file contains the declaration for the Business Object, Lis0ResourceWriter
12  Filename: Lis0ResourceWriter.hxx
13  Module: Lis0lisfmwrk
14  @BMIDE autogenerated
15 ==================================================================================================*/
16 
17 #ifndef LIS0LISFMWRK__LIS0RESOURCEWRITER__HXX
18 #define LIS0LISFMWRK__LIS0RESOURCEWRITER__HXX
19 
20 #include <unidefs.h>
22 #include <string>
23 #include <common/tc_deprecation_macros.h>
24 #include <tccore/POM_object.hxx>
25 
26 #include <Lis0lisfmwrk/liblis0lisfmwrk_exports.h>
27 
28 namespace lis0lisfmwrk
29 {
30  class Lis0ResourceWriter;
31 }
32 namespace lis0lisfmwrk
33 {
34  class Lis0ResourceWriterImpl;
35 }
36 namespace lis0lisfmwrk
37 {
38  class Lis0ResourceWriterDelegate;
39 }
40 namespace lis0lisfmwrk
41 {
42  class Lis0ResourceWriterDispatch;
43 }
44 namespace lis0lisfmwrk
45 {
46  class Lis0ResourceWriterGenImpl;
47 }
48 namespace Teamcenter
49 {
50  class RootObjectImpl;
51 }
52 
53 class LIS0LISFMWRK_API lis0lisfmwrk::Lis0ResourceWriter
55 {
56 public:
57 
62  static const std::string& getInterfaceName();
63 
64 
73  int lis0CreateResourceModel( tag_t resourceTag, tag_t inputTag, lis0lisfmwrk::AbstractResource **resourceModel ) const;
74 
82  int lis0IsWritable( tag_t resourceTag, bool *canWrite ) const;
83 
93  int lis0WriteTo( tag_t resourceTag, tag_t inputTag, const std::string *requiredMediaType, std::string *doc ) const;
94 protected:
95  // Method to initialize
96  virtual void initialize( ::Teamcenter::RootObjectImpl* impl );
97 
102 
106  virtual ~Lis0ResourceWriter();
107 
108 private:
109  // Getter method for the Implementation Object
110  Lis0ResourceWriterImpl* getLis0ResourceWriterImpl() const;
111  // Setter method for the Implementation Object
112  ::Teamcenter::RootObjectImpl* setLis0ResourceWriterImpl( ::Teamcenter::RootObjectImpl* impl );
113 
114  // Method to set the delete impl boolean
115  void setDeleteImpl( bool del );
116 
117  // Pointer to the Implementation object
118  Lis0ResourceWriterImpl* m_lis0resourcewriterImpl;
119 
120  // Flag to indicate if Implementation object needs to be deleted
122 
126  static std::string name;
127 
134 
135  friend class Lis0ResourceWriterDelegate;
136  friend class Lis0ResourceWriterGenImpl;
137 };
138 
139 #include <Lis0lisfmwrk/liblis0lisfmwrk_undef.h>
140 #endif // LIS0LISFMWRK__LIS0RESOURCEWRITER__HXX