FOSSredder 0.5.0
Loading...
Searching...
No Matches
core::application::exporting::internal Namespace Reference

Classes

struct  PropertyContractMatrix
 Holds the matrix representation used by the CSV and XLSX exporters. More...

Functions

std::string resolveContractType (const std::string &contractId, const std::unordered_map< std::string, std::string > &idToType, const core::domain::catalog::WorkspaceCatalog &state)
 Resolves the final contract type label for one transaction.
PropertyContractMatrix buildPropertyContractMatrix (const core::domain::catalog::WorkspaceCatalog &state)
 Builds the property/contract matrix from the current workspace snapshot.

Function Documentation

◆ buildPropertyContractMatrix()

PropertyContractMatrix core::application::exporting::internal::buildPropertyContractMatrix ( const core::domain::catalog::WorkspaceCatalog & state)
inline

Builds the property/contract matrix from the current workspace snapshot.

Parameters
stateCurrent workspace snapshot.
Returns
Matrix containing properties, contract types, and aggregated amounts.

Definition at line 79 of file PropertyContractMatrix.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resolveContractType()

std::string core::application::exporting::internal::resolveContractType ( const std::string & contractId,
const std::unordered_map< std::string, std::string > & idToType,
const core::domain::catalog::WorkspaceCatalog & state )
inline

Resolves the final contract type label for one transaction.

Parameters
contractIdContract identifier from the transaction.
idToTypePrecomputed contract-type lookup table.
stateCurrent workspace snapshot.
Returns
Contract type label, or the unassigned label when none can be resolved.

Definition at line 38 of file PropertyContractMatrix.h.

Here is the call graph for this function:
Here is the caller graph for this function: