Teamcenter C++ API Reference  2312
TC_UserContext.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, TC_UserContext
12  Filename: TC_UserContext.hxx
13  Module: tc
14  @BMIDE autogenerated
15 ==================================================================================================*/
16 
17 #ifndef TEAMCENTER__TC_USERCONTEXT__HXX
18 #define TEAMCENTER__TC_USERCONTEXT__HXX
19 
20 #include <string>
21 #include <common/tc_deprecation_macros.h>
22 #include <tccore/POM_object.hxx>
23 
24 #include <tc/libtc_exports.h>
25 
26 namespace Teamcenter
27 {
28  class TC_UserContext;
29 }
30 namespace Teamcenter
31 {
32  class TC_UserContextImpl;
33 }
34 namespace Teamcenter
35 {
36  class TC_UserContextDelegate;
37 }
38 namespace Teamcenter
39 {
40  class TC_UserContextDispatch;
41 }
42 namespace Teamcenter
43 {
44  class TC_UserContextGenImpl;
45 }
46 namespace Teamcenter
47 {
48  class RootObjectImpl;
49 }
50 
51 class TC_API Teamcenter::TC_UserContext
53 {
54 public:
55 
60  static const std::string& getInterfaceName();
61 
62 
70  int getFnd0LocationCodePref( std::string &value, bool &isNull ) const;
71 
79  int setFnd0LocationCodePref( const std::string &value, bool isNull=false );
80 protected:
81  // Method to initialize
82  virtual void initialize( ::Teamcenter::RootObjectImpl* impl );
83 
88 
92  virtual ~TC_UserContext();
93 
94 private:
95  // Getter method for the Implementation Object
96  TC_UserContextImpl* getTC_UserContextImpl() const;
97  // Setter method for the Implementation Object
98  ::Teamcenter::RootObjectImpl* setTC_UserContextImpl( ::Teamcenter::RootObjectImpl* impl );
99 
100  // Method to set the delete impl boolean
101  void setDeleteImpl( bool del );
102 
103  // Pointer to the Implementation object
104  TC_UserContextImpl* m_tc_usercontextImpl;
105 
106  // Flag to indicate if Implementation object needs to be deleted
108 
112  static std::string name;
113 
118  TC_UserContext( const TC_UserContext& );
120 
121  friend class TC_UserContextDelegate;
122  friend class TC_UserContextGenImpl;
123 };
124 
125 #include <tc/libtc_undef.h>
126 #endif // TEAMCENTER__TC_USERCONTEXT__HXX