Teamcenter C++ API Reference  2312
TableDefinition.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, TableDefinition
12  Filename: TableDefinition.hxx
13  Module: tccore
14  @BMIDE autogenerated
15 ==================================================================================================*/
16 
17 #ifndef TEAMCENTER__TABLEDEFINITION__HXX
18 #define TEAMCENTER__TABLEDEFINITION__HXX
19 
20 #include <vector>
21 #include <common/tc_deprecation_macros.h>
22 #include <tccore/POM_object.hxx>
23 
24 #include <tccore/libtccore_exports.h>
25 
26 namespace Teamcenter
27 {
28  class TableDefinition;
29 }
30 namespace Teamcenter
31 {
32  class TableDefinitionImpl;
33 }
34 namespace Teamcenter
35 {
36  class TableDefinitionDelegate;
37 }
38 namespace Teamcenter
39 {
40  class TableDefinitionDispatch;
41 }
42 namespace Teamcenter
43 {
44  class TableDefinitionGenImpl;
45 }
46 namespace Teamcenter
47 {
48  class RootObjectImpl;
49 }
50 
51 class TCCORE_API Teamcenter::TableDefinition
53 {
54 public:
55 
60  static const std::string& getInterfaceName();
61 
62 
70  int getColLabels( std::vector< tag_t > &values, std::vector< int > &isNull ) const;
71 
79  int getCols( int &value, bool &isNull ) const;
80 
88  int getRowLabels( std::vector< tag_t > &values, std::vector< int > &isNull ) const;
89 
97  int getRows( int &value, bool &isNull ) const;
98 
106  int setColLabels( const std::vector< tag_t > &values, const std::vector< int > *isNull=0 );
107 
115  int setCols( int value, bool isNull=false );
116 
124  int setRowLabels( const std::vector< tag_t > &values, const std::vector< int > *isNull=0 );
125 
133  int setRows( int value, bool isNull=false );
134 protected:
135  // Method to initialize
136  virtual void initialize( ::Teamcenter::RootObjectImpl* impl );
137 
141  TableDefinition();
142 
146  virtual ~TableDefinition();
147 
148 private:
149  // Getter method for the Implementation Object
150  TableDefinitionImpl* getTableDefinitionImpl() const;
151  // Setter method for the Implementation Object
152  ::Teamcenter::RootObjectImpl* setTableDefinitionImpl( ::Teamcenter::RootObjectImpl* impl );
153 
154  // Method to set the delete impl boolean
155  void setDeleteImpl( bool del );
156 
157  // Pointer to the Implementation object
158  TableDefinitionImpl* m_tabledefinitionImpl;
159 
160  // Flag to indicate if Implementation object needs to be deleted
162 
166  static std::string name;
167 
174 
175  friend class TableDefinitionDelegate;
176  friend class TableDefinitionGenImpl;
177 };
178 
179 #include <tccore/libtccore_undef.h>
180 #endif // TEAMCENTER__TABLEDEFINITION__HXX