Teamcenter C++ API Reference  2312
ManageBulkData.hxx
Go to the documentation of this file.
1 //Copyright 2022 Siemens Digital Industries Software
2 //==================================================
3 //Copyright $2016.
4 //Siemens Product Lifecycle Management Software Inc.
5 //All Rights Reserved.
6 //==================================================
7 //Copyright 2022 Siemens Digital Industries Software
8 
19 #ifndef MANAGEBULKDATA_HXX
20 #define MANAGEBULKDATA_HXX
21 
22 #include <string>
23 #include <vector>
24 
25 #include <unidefs.h>
26 
27 #include <metaframework/libmetaframework_exports.h>
28 
29 namespace Teamcenter
30 {
31  class ManageBulkData;
32  class BulkData;
33  class OperationObjectBatch;
34  class OperationDispatcher;
35  class BulkInput;
36 }
37 
38 class METAFRAMEWORK_API Teamcenter::ManageBulkData
39 {
40 public:
43  const BulkData *bd,
44  const std::string &opId
45  );
46 
48  virtual ~ManageBulkData();
49 
51  BulkData * getBulkData() const;
52 
60  int saveDeleteUnlock();
61 
69  int saveDeleteUnlock(
70  const std::string& opId
71  );
72 
81  bool stackPostActions(
82  const std::vector< Teamcenter::OperationObjectBatch* >& batches,
83  const std::string& opId
84  );
85 
90  std::vector<Teamcenter::OperationDispatcher*> &opDispVec,
91  std::vector< std::vector< Teamcenter::BulkInput* > > &bulkInputsVec
92  );
93 
98  const std::string &opId,
99  std::vector<Teamcenter::OperationDispatcher*> &opDispVec,
100  std::vector< std::vector< Teamcenter::BulkInput* > > &bulkInputsVec
101  );
102 private:
106  ManageBulkData();
107 
111  ManageBulkData( const ManageBulkData & other );
112  ManageBulkData & operator=( const ManageBulkData & other );
113 
117  int createBulkData(
118  const std::string & opId,
119  BulkData*& bd
120  );
121 
125  void deleteBulkData(
126  BulkData *obj
127  );
128 
130 };
131 
132 #include <metaframework/libmetaframework_undef.h>
133 #endif