Teamcenter C++ API Reference  2312
StatusT.hxx
Go to the documentation of this file.
1 // Copyright 2022 Siemens Digital Industries Software
2 // ==================================================
3 // Copyright 2013.
4 // Siemens Product Lifecycle Management Software Inc.
5 // All Rights Reserved.
6 // ==================================================
7 // Copyright 2022 Siemens Digital Industries Software
8 
13 /* */
14 #ifndef TEAMCENTER_BASE_UTILS_STATUS_T_HXX
15 #define TEAMCENTER_BASE_UTILS_STATUS_T_HXX
16 
17 #include <base_utils/libbase_utils_exports.h>
18 
23 class BASE_UTILS_API status_t
24 {
25 public:
29  static const status_t OK;
30 
34  static const status_t NOT_OK;
35 
39  status_t();
40 
44  status_t( const status_t& other );
45 
49  ~status_t();
50 
54  status_t& operator = (const status_t& other);
55 
59  bool operator == (const status_t &other) const;
60 
64  bool operator != (const status_t &other) const;
65 
66 
67 private:
68  enum value_type { UNSET_VALUE, NOT_OK_VALUE, OK_VALUE };
69  explicit status_t ( value_type v );
70 
71  void setValue ( value_type theValue );
72  void checkMe();
73  static void validate( value_type theValue);
75  char *traceback;
76 };
77 
78 #include <base_utils/libbase_utils_undef.h>
79 #endif