Teamcenter C++ API Reference  2312
Fnd0Profiler.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, Fnd0Profiler
12  Filename: Fnd0Profiler.hxx
13  Module: Fnd0profiler
14  @BMIDE autogenerated
15 ==================================================================================================*/
16 
17 #ifndef TEAMCENTER__FND0PROFILER__HXX
18 #define TEAMCENTER__FND0PROFILER__HXX
19 
20 #include <string>
21 #include <common/tc_deprecation_macros.h>
23 
24 #include <Fnd0profiler/libfnd0profiler_exports.h>
25 
26 namespace Teamcenter
27 {
28  class Fnd0Profiler;
29 }
30 namespace Teamcenter
31 {
32  class Fnd0ProfilerImpl;
33 }
34 namespace Teamcenter
35 {
36  class Fnd0ProfilerDelegate;
37 }
38 namespace Teamcenter
39 {
40  class Fnd0ProfilerDispatch;
41 }
42 namespace Teamcenter
43 {
44  class Fnd0ProfilerGenImpl;
45 }
46 namespace Teamcenter
47 {
48  class RootObjectImpl;
49 }
50 
51 class FND0PROFILER_API Teamcenter::Fnd0Profiler
53 {
54 public:
55 
60  static const std::string& getInterfaceName();
61 
62 
70  int getFnd0cpu_time( double &value, bool &isNull ) const;
71 
79  int getFnd0db_time( double &value, bool &isNull ) const;
80 
88  int getFnd0process_memory_usage( double &value, bool &isNull ) const;
89 
97  int getFnd0server_request_id( std::string &value, bool &isNull ) const;
98 
106  int getFnd0server_request_name( std::string &value, bool &isNull ) const;
107 
115  int getFnd0sm_memory_usage( double &value, bool &isNull ) const;
116 
124  int getFnd0sql_count( int &value, bool &isNull ) const;
125 
133  int getFnd0wall_clock_time( double &value, bool &isNull ) const;
134 
142  int setFnd0cpu_time( double value, bool isNull=false );
143 
151  int setFnd0db_time( double value, bool isNull=false );
152 
160  int setFnd0process_memory_usage( double value, bool isNull=false );
161 
169  int setFnd0server_request_id( const std::string &value, bool isNull=false );
170 
178  int setFnd0server_request_name( const std::string &value, bool isNull=false );
179 
187  int setFnd0sm_memory_usage( double value, bool isNull=false );
188 
196  int setFnd0sql_count( int value, bool isNull=false );
197 
205  int setFnd0wall_clock_time( double value, bool isNull=false );
206 protected:
207  // Method to initialize
208  virtual void initialize( ::Teamcenter::RootObjectImpl* impl );
209 
213  Fnd0Profiler();
214 
218  virtual ~Fnd0Profiler();
219 
220 private:
221  // Getter method for the Implementation Object
222  Fnd0ProfilerImpl* getFnd0ProfilerImpl() const;
223  // Setter method for the Implementation Object
224  ::Teamcenter::RootObjectImpl* setFnd0ProfilerImpl( ::Teamcenter::RootObjectImpl* impl );
225 
226  // Method to set the delete impl boolean
227  void setDeleteImpl( bool del );
228 
229  // Pointer to the Implementation object
230  Fnd0ProfilerImpl* m_fnd0profilerImpl;
231 
232  // Flag to indicate if Implementation object needs to be deleted
234 
238  static std::string name;
239 
244  Fnd0Profiler( const Fnd0Profiler& );
246 
247  friend class Fnd0ProfilerDelegate;
248  friend class Fnd0ProfilerGenImpl;
249 };
250 
251 #include <Fnd0profiler/libfnd0profiler_undef.h>
252 #endif // TEAMCENTER__FND0PROFILER__HXX