XPRS
Xpress license. More...
Public Member Functions |
|
| XPRS (char const *licpath=nullptr) | |
| Initialize Xpress. |
|
| ~XPRS () noexcept | |
| Destructor. |
|
Static Public Member Functions |
|
| static bool | getMessageStatus (int msgcode) |
| Retrieves the current global suppression status of a message. |
|
| static void | setMessageStatus (int msgcode, bool enabled) |
| Manages global suppression of messages. |
|
Detailed Description
Xpress license.
Instances of this class represent an acquired license. They follow the RAII pattern in the sense that the constructor acquires the license and the destructor releases it. This allows for proper cleanup even if the code is exited by means of an exception.
- Since
- 44.00
Constructor & Destructor Documentation
XPRS()
|
inline |
Initialize Xpress.
This constructor initializes Xpress with license pointer to by licpath. When the object created by this constructor goes out of scope, its destructor will release the license.
- Parameters
-
licpath The path at which to find the Xpress license. If this is nullptror an empty string then the license is searched in the default location.
- Since
- 44.00
~XPRS()
|
inlinenoexcept |
Destructor.
This frees any license that was acquired by a constructor (if any).
- Since
- 44.00
Member Function Documentation
getMessageStatus()
|
inlinestatic |
Retrieves the current global suppression status of a message.
Note that messages can also be suppressed per problem. To get the per problem suppression use XPRSProblem::setMessageStatus().
- Parameters
-
msgcode The id number of the message. Refer to "Return Codes and Error Messages" in the user manual for a list of possible message numbers.
- Returns
-
trueif the message is currently not suppressed globally;falseotherwise.
- Since
- 48.00
setMessageStatus()
|
inlinestatic |
Manages global suppression of messages.
Note that messages can also be suppressed per problem using XPRSProblem::setMessageStatus().
- Parameters
-
msgcode The id number of the message. Refer to "Return Codes and Error Messages" in the user manual for a list of possible message numbers. enabled trueif the message is not suppressed;falseotherwise.
- Since
- 48.00
The documentation for this class was generated from the following file:
- xpress.hpp
© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.
