#include <ored/portfolio/scriptedtrade.hpp>
Definition at line 33 of file scriptedtrade.hpp.
◆ Type
◆ ScriptedTradeEventData() [1/4]
◆ ScriptedTradeEventData() [2/4]
◆ ScriptedTradeEventData() [3/4]
◆ ScriptedTradeEventData() [4/4]
ScriptedTradeEventData |
( |
const std::string & |
name, |
|
|
const std::string & |
baseSchedule, |
|
|
const std::string & |
shift, |
|
|
const std::string & |
calendar, |
|
|
const std::string & |
convention |
|
) |
| |
Definition at line 45 of file scriptedtrade.hpp.
const std::string & convention() const
const std::string & shift() const
const std::string & baseSchedule() const
std::string baseSchedule_
const std::string & calendar() const
◆ fromXML()
Implements XMLSerializable.
Definition at line 417 of file scriptedtrade.cpp.
417 {
432 } else {
433 QL_FAIL("Expected Value or ScheduleData node");
434 }
435}
virtual void fromXML(XMLNode *node) override
static void checkNode(XMLNode *n, const string &expectedName)
static string getChildValue(XMLNode *node, const string &name, bool mandatory=false, const string &defaultValue=string())
static XMLNode * getChildNode(XMLNode *n, const string &name="")
static string getNodeValue(XMLNode *node)
Get a node's value.
rapidxml::xml_node< char > XMLNode
◆ toXML()
Implements XMLSerializable.
Definition at line 437 of file scriptedtrade.cpp.
437 {
451 } else {
452 QL_FAIL("ScriptedTradeEventData::toXML(): unexpected ScriptedTradeEventData::Type");
453 }
454 return n;
455}
virtual XMLNode * toXML(XMLDocument &doc) const override
XMLNode * allocNode(const string &nodeName)
util functions that wrap rapidxml
static XMLNode * addChild(XMLDocument &doc, XMLNode *n, const string &name)
static void appendNode(XMLNode *parent, XMLNode *child)
◆ type()
◆ name()
const std::string & name |
( |
| ) |
const |
◆ value()
const std::string & value |
( |
| ) |
const |
◆ schedule()
◆ baseSchedule()
const std::string & baseSchedule |
( |
| ) |
const |
◆ shift()
const std::string & shift |
( |
| ) |
const |
◆ calendar()
const std::string & calendar |
( |
| ) |
const |
◆ convention()
const std::string & convention |
( |
| ) |
const |
◆ hasData()
Definition at line 457 of file scriptedtrade.cpp.
457 {
464 } else {
465
466 return false;
467 }
468}
bool hasData() const
Check if has any dates/rules/derived schedules.
◆ type_
◆ name_
◆ value_
◆ schedule_
◆ baseSchedule_
std::string baseSchedule_ |
|
private |
◆ shift_
◆ calendar_
◆ convention_