Teamcenter C++ API Reference  2312
BitDef.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, BitDef
12  Filename: BitDef.hxx
13  Module: ccdm
14  @BMIDE autogenerated
15 ==================================================================================================*/
16 
17 #ifndef CCDM__BITDEF__HXX
18 #define CCDM__BITDEF__HXX
19 
20 #include <string>
21 #include <common/tc_deprecation_macros.h>
22 #include <tccore/POM_object.hxx>
23 
24 #include <ccdm/libccdm_exports.h>
25 
26 namespace ccdm
27 {
28  class BitDef;
29 }
30 namespace ccdm
31 {
32  class BitDefImpl;
33 }
34 namespace ccdm
35 {
36  class BitDefDelegate;
37 }
38 namespace ccdm
39 {
40  class BitDefDispatch;
41 }
42 namespace ccdm
43 {
44  class BitDefGenImpl;
45 }
46 namespace Teamcenter
47 {
48  class RootObjectImpl;
49 }
50 
51 class CCDM_API ccdm::BitDef
53 {
54 public:
55 
60  static const std::string& getInterfaceName();
61 
62 
70  int getBit( int &value, bool &isNull ) const;
71 
79  int getByte( int &value, bool &isNull ) const;
80 
88  int getMeaningOf0( std::string &value, bool &isNull ) const;
89 
97  int getMeaningOf1( std::string &value, bool &isNull ) const;
98 
106  int getName( std::string &value, bool &isNull ) const;
107 
115  int setBit( int value, bool isNull=false );
116 
124  int setByte( int value, bool isNull=false );
125 
133  int setMeaningOf0( const std::string &value, bool isNull=false );
134 
142  int setMeaningOf1( const std::string &value, bool isNull=false );
143 
151  int setName( const std::string &value, bool isNull=false );
152 protected:
153  // Method to initialize
154  virtual void initialize( ::Teamcenter::RootObjectImpl* impl );
155 
159  BitDef();
160 
164  virtual ~BitDef();
165 
166 private:
167  // Getter method for the Implementation Object
168  BitDefImpl* getBitDefImpl() const;
169  // Setter method for the Implementation Object
170  ::Teamcenter::RootObjectImpl* setBitDefImpl( ::Teamcenter::RootObjectImpl* impl );
171 
172  // Method to set the delete impl boolean
173  void setDeleteImpl( bool del );
174 
175  // Pointer to the Implementation object
176  BitDefImpl* m_bitdefImpl;
177 
178  // Flag to indicate if Implementation object needs to be deleted
180 
184  static std::string name;
185 
190  BitDef( const BitDef& );
191  BitDef& operator=( const BitDef& );
192 
193  friend class BitDefDelegate;
194  friend class BitDefGenImpl;
195 };
196 
197 #include <ccdm/libccdm_undef.h>
198 #endif // CCDM__BITDEF__HXX