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

Exports domain objects to their ORE XML representation. More...

#include <exporter.hpp>

Collaboration diagram for exporter:
Collaboration graph

Static Public Member Functions

static std::string export_currency_config (const std::vector< refdata::domain::currency > &v)
 
static std::string export_calendar_adjustments (const std::vector< refdata::domain::calendar_adjustment > &v)
 
static std::string export_conventions (const domain::mapped_conventions &mc)
 
static std::string export_portfolio (const std::vector< trading::messaging::trade_export_item > &items)
 Reconstructs an ORE portfolio XML from a vector of (trade, instrument) pairs returned by export_portfolio_response.
 
static roundtrip_summary roundtrip (const std::filesystem::path &input_dir, const std::filesystem::path &output_dir)
 Walks input_dir recursively, roundtrips every supported ORE XML through the import→export pipeline, and writes mirrored outputs under output_dir. Detects Portfolio, CurrencyConfig, CalendarAdjustments, and Conventions files by inspecting the first 4 KiB of each file. No DB or network access; purely file-level.
 

Detailed Description

Exports domain objects to their ORE XML representation.

Member Function Documentation

◆ export_portfolio()

std::string export_portfolio ( const std::vector< trading::messaging::trade_export_item > &  items)
static

Reconstructs an ORE portfolio XML from a vector of (trade, instrument) pairs returned by export_portfolio_response.

Each item is reverse-mapped through the appropriate instrument mapper. Items with monostate instruments (unmapped trade types) are skipped.

Here is the caller graph for this function: