Teamcenter C++ API Reference
2312
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
metaframework
TrackBulkOperationContext.hxx
Go to the documentation of this file.
1
//Copyright 2022 Siemens Digital Industries Software
2
//==================================================
3
//Copyright 2023
4
//Siemens Digital Industries Software.
5
//All Rights Reserved.
6
//==================================================
7
//Copyright 2022 Siemens Digital Industries Software
8
18
#ifndef METAFRAMEWORK_TRACKBULKOPERATIONCONTEXT_HXX
19
#define METAFRAMEWORK_TRACKBULKOPERATIONCONTEXT_HXX
20
21
#include <string>
22
#include <vector>
23
24
#include <unidefs.h>
25
#include <metaframework/libmetaframework_exports.h>
26
27
namespace
Teamcenter
28
{
29
class
TrackBulkOperationContext;
30
class
BulkInput;
31
class
ManageBulkData;
32
class
OperationObjectBatch;
33
}
34
35
class
METAFRAMEWORK_API Teamcenter::
TrackBulkOperationContext
36
{
37
public
:
38
typedef
std::vector<OperationObjectBatch*>
OperationObjectBatchList
;
39
40
TrackBulkOperationContext
(
OperationObjectBatchList
* batchList,
Teamcenter::ManageBulkData
* mbd );
41
~TrackBulkOperationContext
();
42
43
// Returns the OperationObjectBatchList for the currently-executing bulk operation
44
static
OperationObjectBatchList
*
getCurrentBatches
();
45
static
std::vector<Teamcenter::BulkInput*>*
getBulkInputs
(
size_t
batchIndex );
46
static
Teamcenter::ManageBulkData
*
getCurrentManageBulkData
();
47
static
bool
isActive
() {
return
( s_currentBatches !=
nullptr
) && ( s_currentMbd != nullptr ); }
48
49
private
:
50
//don't support default constructor
51
TrackBulkOperationContext
();
52
53
OperationObjectBatchList
*
m_prevBatches
;
54
static
OperationObjectBatchList
*
s_currentBatches
;
55
56
Teamcenter::ManageBulkData
*
m_prevMbd
;
57
static
Teamcenter::ManageBulkData
*
s_currentMbd
;
58
};
59
60
#include <metaframework/libmetaframework_undef.h>
61
#endif