Teamcenter C++ API Reference  2312
Fnd0AlgebraicFormula.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, Fnd0AlgebraicFormula
12  Filename: Fnd0AlgebraicFormula.hxx
13  Module: Fnd0formulamgmt
14  @BMIDE autogenerated
15 ==================================================================================================*/
16 
17 #ifndef TEAMCENTER__FND0ALGEBRAICFORMULA__HXX
18 #define TEAMCENTER__FND0ALGEBRAICFORMULA__HXX
19 
20 #include <vector>
21 #include <string>
22 #include <common/tc_deprecation_macros.h>
24 
25 #include <Fnd0formulamgmt/libfnd0formulamgmt_exports.h>
26 
27 namespace Teamcenter
28 {
29  class Fnd0AlgebraicFormula;
30 }
31 namespace Teamcenter
32 {
33  class Fnd0AlgebraicFormulaImpl;
34 }
35 namespace Teamcenter
36 {
37  class Fnd0AlgebraicFormulaDelegate;
38 }
39 namespace Teamcenter
40 {
41  class Fnd0AlgebraicFormulaDispatch;
42 }
43 namespace Teamcenter
44 {
45  class Fnd0AlgebraicFormulaGenImpl;
46 }
47 namespace Teamcenter
48 {
49  class RootObjectImpl;
50 }
51 
52 class FND0FORMULAMGMT_API Teamcenter::Fnd0AlgebraicFormula
54 {
55 public:
56 
61  static const std::string& getInterfaceName();
62 
63 
71  int getFnd0ASTExpression( std::string &value, bool &isNull ) const;
72 
80  int getFnd0ASTInvExpression( std::string &value, bool &isNull ) const;
81 
89  int getFnd0ConstNames( std::vector< std::string > &values, std::vector< int > &isNull ) const;
90 
98  int getFnd0Expression( std::string &value, bool &isNull ) const;
99 
107  int getFnd0InvExpression( std::string &value, bool &isNull ) const;
108 
116  int getFnd0Name( std::string &value, bool &isNull ) const;
117 
125  int getFnd0VariableNames( std::vector< std::string > &values, std::vector< int > &isNull ) const;
126 
134  int setFnd0ASTExpression( const std::string &value, bool isNull=false );
135 
143  int setFnd0ASTInvExpression( const std::string &value, bool isNull=false );
144 
152  int setFnd0ConstNames( const std::vector< std::string > &values, const std::vector< int > *isNull=0 );
153 
161  int setFnd0Expression( const std::string &value, bool isNull=false );
162 
170  int setFnd0InvExpression( const std::string &value, bool isNull=false );
171 
179  int setFnd0Name( const std::string &value, bool isNull=false );
180 
188  int setFnd0VariableNames( const std::vector< std::string > &values, const std::vector< int > *isNull=0 );
189 
198  int fnd0Compute( const std::vector< std::string > &constValues, const std::vector< std::string > &variableValues, std::string &computedResult );
199 
209  int fnd0Compute( const std::vector< std::string > *constValues, const std::vector< std::string > *variableGrpValues, int grpCount, std::vector< std::string > *computedGrpResults );
210 
219  int fnd0InverseCompute( const std::vector< std::string > &constValues, const std::vector< std::string > &variableValues, std::string &computedResult );
220 
228  int fnd0ReplaceConstants( const std::vector< std::string > *constValues, std::string *replacedExpression );
229 protected:
230  // Method to initialize
231  virtual void initialize( ::Teamcenter::RootObjectImpl* impl );
232 
237 
241  virtual ~Fnd0AlgebraicFormula();
242 
243 private:
244  // Getter method for the Implementation Object
245  Fnd0AlgebraicFormulaImpl* getFnd0AlgebraicFormulaImpl() const;
246  // Setter method for the Implementation Object
247  ::Teamcenter::RootObjectImpl* setFnd0AlgebraicFormulaImpl( ::Teamcenter::RootObjectImpl* impl );
248 
249  // Method to set the delete impl boolean
250  void setDeleteImpl( bool del );
251 
252  // Pointer to the Implementation object
253  Fnd0AlgebraicFormulaImpl* m_fnd0algebraicformulaImpl;
254 
255  // Flag to indicate if Implementation object needs to be deleted
257 
261  static std::string name;
262 
269 
270  friend class Fnd0AlgebraicFormulaDelegate;
271  friend class Fnd0AlgebraicFormulaGenImpl;
272 };
273 
274 #include <Fnd0formulamgmt/libfnd0formulamgmt_undef.h>
275 #endif // TEAMCENTER__FND0ALGEBRAICFORMULA__HXX