Teamcenter C++ API Reference  2312
Mpr0ManufacturingElement.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, Mpr0ManufacturingElement
12  Filename: Mpr0ManufacturingElement.hxx
13  Module: Mpr0process
14  @BMIDE autogenerated
15 ==================================================================================================*/
16 
17 #ifndef CMTPROCESS__MPR0MANUFACTURINGELEMENT__HXX
18 #define CMTPROCESS__MPR0MANUFACTURINGELEMENT__HXX
19 
20 #include <vector>
21 #include <unidefs.h>
22 #include <string>
23 #include <common/tc_deprecation_macros.h>
25 
26 #include <Mpr0process/libmpr0process_exports.h>
27 
28 namespace cmtprocess
29 {
30  class Mpr0ManufacturingElement;
31 }
32 namespace cmtprocess
33 {
34  class Mpr0ManufacturingElementImpl;
35 }
36 namespace cmtprocess
37 {
38  class Mpr0ManufacturingElementDelegate;
39 }
40 namespace cmtprocess
41 {
42  class Mpr0ManufacturingElementDispatch;
43 }
44 namespace cmtprocess
45 {
46  class Mpr0ManufacturingElementGenImpl;
47 }
48 namespace Teamcenter
49 {
50  class RootObjectImpl;
51 }
52 
53 class MPR0PROCESS_API cmtprocess::Mpr0ManufacturingElement
55 {
56 public:
57 
62  static const std::string& getInterfaceName();
63 
64 
72  int getMpr0activity( tag_t &value, bool &isNull ) const;
73 
81  int getMpr0numberOfAssignedParts( int &value, bool &isNull ) const;
82 
90  int getMpr0numOfAssignedFeatures( int &value, bool &isNull ) const;
91 
99  int getMpr0object_id( std::string &value, bool &isNull ) const;
100 
108  int getMpr0producedByPE( tag_t &value, bool &isNull ) const;
109 
117  int getMpr0subElements( std::vector< tag_t > &values, std::vector< int > &isNull ) const;
118 
128  int mpr0AssignObjects( const std::vector< tag_t > *assignedObjects, const tag_t assignmentType, std::vector< tag_t > *assignmentTypesOutput, std::vector< tag_t > *assignObjectsOutput );
129 
140  int mpr0ReassignObjects( const tag_t unassignFrom, const tag_t assignedObject, const tag_t currentAssignmentType, const tag_t newAssignmentType, tag_t *createdAssignmentType );
141 
151  int mpr0UnassignObjects( const std::vector< tag_t > *assignedObjects, const std::vector< tag_t > *assignmentTypes, std::vector< tag_t > *unassignObjects, std::vector< tag_t > *assignmentTypesOutput );
152 
161  int mpr0UpdateAssignment( const tag_t assignedObject, const tag_t currentAssignmentType, const tag_t newAssignmentType );
162 protected:
163  // Method to initialize
164  virtual void initialize( ::Teamcenter::RootObjectImpl* impl );
165 
170 
174  virtual ~Mpr0ManufacturingElement();
175 
176 private:
177  // Getter method for the Implementation Object
178  Mpr0ManufacturingElementImpl* getMpr0ManufacturingElementImpl() const;
179  // Setter method for the Implementation Object
180  ::Teamcenter::RootObjectImpl* setMpr0ManufacturingElementImpl( ::Teamcenter::RootObjectImpl* impl );
181 
182  // Method to set the delete impl boolean
183  void setDeleteImpl( bool del );
184 
185  // Pointer to the Implementation object
186  Mpr0ManufacturingElementImpl* m_mpr0manufacturingelementImpl;
187 
188  // Flag to indicate if Implementation object needs to be deleted
190 
194  static std::string name;
195 
202 
203  friend class Mpr0ManufacturingElementDelegate;
204  friend class Mpr0ManufacturingElementGenImpl;
205 };
206 
207 #include <Mpr0process/libmpr0process_undef.h>
208 #endif // CMTPROCESS__MPR0MANUFACTURINGELEMENT__HXX