Teamcenter C++ API Reference  2312
ProductSubset.hxx
Go to the documentation of this file.
1 // Copyright 2022 Siemens Digital Industries Software
2 // ==================================================
3 // Copyright 2017.
4 // Siemens Product Lifecycle Management Software Inc.
5 // All Rights Reserved.
6 // ==================================================
7 // Copyright 2022 Siemens Digital Industries Software
8 
9 
10 #ifndef TEAMCENTER_PRODUCT_SUBSET_HXX
11 #define TEAMCENTER_PRODUCT_SUBSET_HXX
12 
13 #include <unidefs.h>
14 #include <vector>
15 #include <string>
16 #include <Mpr0process/libmpr0process_exports.h>
17 
18 namespace Teamcenter
19 {
20  namespace Mpr0Process
21  {
22  class ProductSubset;
23  }
24 }
25 
26 class MPR0PROCESS_API Teamcenter::Mpr0Process::ProductSubset
27 {
28 public:
29 
31  {
32  tag_t context;
33  tag_t sourceSubset;
34  tag_t revisionRule;
35  };
36 
38  {
39  std::string intentNamespace;
40  std::string intentFamily;
41  std::string intentValue;
42  };
43 
45  {
46  tag_t context;
47  std::vector<tag_t> partitions;
48  tag_t revisionRule;
49  std::vector<IntentOptions> intentOptions;
50  };
51 
53  {
55  int ifail;
56  };
57 
58  static int recalculate ( const std::vector< tag_t >& input, std::vector <int> &errors );
59 
60  static int createOrUpdateProductSubsets (const std::vector<CreateOrUpdateProductSubsetInput> &input, std::vector <CreatedSubset> &createdSubsets);
61 
62  static int createOrUpdateProductSubsetsFromPartitions(const std::vector<CreateOrUpdateProductSubsetsFromPartitionsInput>& input, std::vector<CreatedSubset>& createdSubsets);
63 
64 };
65 
66 #include <Mpr0process/libmpr0process_undef.h>
67 #endif //TEAMCENTER_PRODUCT_SUBSET_HXX