Teamcenter C++ API Reference  2312
UserSessionExt.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, UserSession
12  Filename: UserSessionExt.hxx
13  Module: cm
14  @BMIDE autogenerated
15 ==================================================================================================*/
16 
17 #ifndef CM0__TEAMCENTER__CM__USERSESSION__HXX
18 #define CM0__TEAMCENTER__CM__USERSESSION__HXX
19 
20 #include <unidefs.h>
21 #include <common/tc_deprecation_macros.h>
25 
26 #include <cm/libcm_exports.h>
27 
28 namespace cm0
29 {
30  namespace Teamcenter
31  {
32  namespace CM
33  {
34  class UserSession;
35  }
36  }
37 }
38 namespace cm0
39 {
40  namespace Teamcenter
41  {
42  namespace CM
43  {
44  class UserSessionImpl;
45  }
46  }
47 }
48 namespace cm0
49 {
50  namespace Teamcenter
51  {
52  namespace CM
53  {
54  class UserSessionDelegate;
55  }
56  }
57 }
58 namespace cm0
59 {
60  namespace Teamcenter
61  {
62  namespace CM
63  {
64  class UserSessionDispatch;
65  }
66  }
67 }
68 namespace cm0
69 {
70  namespace Teamcenter
71  {
72  namespace CM
73  {
74  class UserSessionGenImpl;
75  }
76  }
77 }
78 namespace Teamcenter
79 {
80  class RootObjectImpl;
81 }
82 
83 class CM_API cm0::Teamcenter::CM::UserSession
85 {
86 public:
87 
91  UserSession( tag_t objTag );
96  static ::Teamcenter::BusinessObjectExtenderRegistry< cm0::Teamcenter::CM::UserSession >& extenderRegistry();
97 
102  static const std::string& getExtenderInterfaceName();
103 
104 
112  int getCm0GlobalChangeContext( tag_t &value, bool &isNull ) const;
113 
121  int setCm0GlobalChangeContext( const tag_t &value, bool isNull=false );
122 protected:
123  // Method to initialize
124  virtual void initialize( ::Teamcenter::RootObjectImpl* impl );
125 
126 
130  virtual ~UserSession();
131 
132 private:
133  // Getter method for the Implementation Object
134  UserSessionImpl* getUserSessionImpl() const;
135  // Setter method for the Implementation Object
136  ::Teamcenter::RootObjectImpl* setUserSessionImpl( ::Teamcenter::RootObjectImpl* impl );
137 
138  // Method to set the delete impl boolean
139  void setDeleteImpl( bool del );
140 
141  // Pointer to the Implementation object
142  UserSessionImpl* m_usersessionImpl;
143 
144  // Flag to indicate if Implementation object needs to be deleted
146 
150  static std::string name;
151 
156  UserSession( const UserSession& );
157  UserSession& operator=( const UserSession& );
158 
159  friend class UserSessionDelegate;
160  friend class UserSessionGenImpl;
161 };
162 
163 #include <cm/libcm_undef.h>
164 #endif // CM0__TEAMCENTER__CM__USERSESSION__HXX