ORE Studio 0.0.4
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
InstrumentFormUtils Class Reference

Static helpers for populating and reading instrument-form combo boxes. More...

#include <InstrumentFormUtils.hpp>

Collaboration diagram for InstrumentFormUtils:
Collaboration graph

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.
 

Detailed Description

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.

Member Function Documentation

◆ populateSettlement()

void populateSettlement ( QComboBox *  cb)
static

"", "Cash", "Physical"

◆ populateOptionType()

void populateOptionType ( QComboBox *  cb)
static

"", "Call", "Put"

◆ populateExerciseStyle()

void populateExerciseStyle ( QComboBox *  cb)
static

"", "European", "American" — FX vanilla options only (no Bermudan)

◆ populateExerciseType()

void populateExerciseType ( QComboBox *  cb)
static

"", "European", "American", "Bermudan" — equity / commodity

◆ populateDayCount()

void populateDayCount ( QComboBox *  cb)
static

"", A360, A365F, A365, ActAct(ISDA), ActAct(ISMA), ActAct(AFB), 30/360, 30E/360, 30E/360(ISDA), Business252, 1/1, Simple

◆ populateFrequency()

void populateFrequency ( QComboBox *  cb)
static

"", Annual, Semiannual, EveryFourthMonth, Quarterly, Bimonthly, Monthly, EveryFourthWeek, Biweekly, Weekly, Daily, Once

◆ populateBarrierType()

void populateBarrierType ( QComboBox *  cb)
static

"", "UpAndIn", "UpAndOut", "DownAndIn", "DownAndOut", "KnockIn", "KnockOut"

◆ populateAverageType()

void populateAverageType ( QComboBox *  cb)
static

"", "Arithmetic", "Geometric"

◆ populateSeniority()

void populateSeniority ( QComboBox *  cb)
static

"", "Senior", "Subordinated"

◆ populateRestructuring()

void populateRestructuring ( QComboBox *  cb)
static

"", "MM", "MR", "CR", "XR"

◆ populateTrsReturnType()

void populateTrsReturnType ( QComboBox *  cb)
static

"", "TotalReturn", "PriceReturn"

◆ populateAscotOptionType()

void populateAscotOptionType ( QComboBox *  cb)
static

"", "Call", "Put" — ASCOT bond option type

◆ populateReturnType()

void populateReturnType ( QComboBox *  cb)
static

"", "TotalReturn", "PriceReturn" — equity swap / TRS return type

◆ populateLongShort()

void populateLongShort ( QComboBox *  cb)
static

"", "Long", "Short"

◆ populateMomentType()

void populateMomentType ( QComboBox *  cb)
static

"", "Variance", "Volatility" — FX/equity variance swap moment type