|
ORE Studio 0.0.4
|
Static helpers for populating and reading instrument-form combo boxes. More...
#include <InstrumentFormUtils.hpp>

Static Public Member Functions | |
| static void | populateSettlement (QComboBox *cb) |
| static void | populateOptionType (QComboBox *cb) |
| static void | populateExerciseStyle (QComboBox *cb) |
| static void | populateExerciseType (QComboBox *cb) |
| static void | populateDayCount (QComboBox *cb) |
| static void | populateFrequency (QComboBox *cb) |
| static void | populateBarrierType (QComboBox *cb) |
| static void | populateAverageType (QComboBox *cb) |
| static void | populateSeniority (QComboBox *cb) |
| static void | populateRestructuring (QComboBox *cb) |
| static void | populateTrsReturnType (QComboBox *cb) |
| static void | populateAscotOptionType (QComboBox *cb) |
| static void | populateReturnType (QComboBox *cb) |
| static void | populateLongShort (QComboBox *cb) |
| static void | populateMomentType (QComboBox *cb) |
| static void | setComboValue (QComboBox *cb, const std::string &value) |
Select the combo item whose text equals value. Falls back to index 0 (the empty entry) if not found. | |
| static std::string | getComboValue (const QComboBox *cb) |
| Return the currently selected item text as a std::string. | |
Static helpers for populating and reading instrument-form combo boxes.
Each populate* method fills a QComboBox with the fixed vocabulary for that field. The first item is always an empty string so that optional fields can be left unset. All values match the canonical strings accepted by ORE/NATS handlers and stored in the database.
|
static |
"", "Cash", "Physical"
|
static |
"", "Call", "Put"
|
static |
"", "European", "American" — FX vanilla options only (no Bermudan)
|
static |
"", "European", "American", "Bermudan" — equity / commodity
|
static |
"", A360, A365F, A365, ActAct(ISDA), ActAct(ISMA), ActAct(AFB), 30/360, 30E/360, 30E/360(ISDA), Business252, 1/1, Simple
|
static |
"", Annual, Semiannual, EveryFourthMonth, Quarterly, Bimonthly, Monthly, EveryFourthWeek, Biweekly, Weekly, Daily, Once
|
static |
"", "UpAndIn", "UpAndOut", "DownAndIn", "DownAndOut", "KnockIn", "KnockOut"
|
static |
"", "Arithmetic", "Geometric"
|
static |
"", "Senior", "Subordinated"
|
static |
"", "MM", "MR", "CR", "XR"
|
static |
"", "TotalReturn", "PriceReturn"
|
static |
"", "Call", "Put" — ASCOT bond option type
|
static |
"", "TotalReturn", "PriceReturn" — equity swap / TRS return type
|
static |
"", "Long", "Short"
|
static |
"", "Variance", "Volatility" — FX/equity variance swap moment type