FOSSredder 0.5.0
Loading...
Searching...
No Matches
WorkspaceCatalog.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <memory>
9#include <vector>
10
18
20
22public:
23 template <typename T>
24 using EntityList = std::vector<std::shared_ptr<T>>;
25
33
35
37 [[nodiscard]] const PropertyList& properties() const noexcept;
39 void setProperties(PropertyList value);
40
42 [[nodiscard]] const ActorList& actors() const noexcept;
44 void setActors(ActorList value);
45
47 [[nodiscard]] const ContractList& contracts() const noexcept;
49 void setContracts(ContractList value);
50
52 [[nodiscard]] const StatementList& statements() const noexcept;
54 void setStatements(StatementList value);
55
57 [[nodiscard]] const TransactionList& transactions() const noexcept;
60
62 [[nodiscard]] const AnalysisList& analyses() const noexcept;
64 void setAnalyses(AnalysisList value);
65
67 [[nodiscard]] const AnnualList& annuals() const noexcept;
69 void setAnnuals(AnnualList value);
70
72 [[nodiscard]] bool empty() const noexcept;
73
74private:
75 PropertyList properties_;
76 ActorList actors_;
77 ContractList contracts_;
78 StatementList statements_;
79 TransactionList transactions_;
80 AnalysisList analyses_;
81 AnnualList annuals_;
82};
83
84} // namespace core::domain::catalog
Domain model for actors.
Domain model for persisted analysis definitions.
Domain model for annual aggregates.
Domain model for contracts.
Domain model for properties.
Domain model for statements.
Domain model for transactions.
EntityList< core::domain::Contract > ContractList
EntityList< core::domain::Transaction > TransactionList
void setAnnuals(AnnualList value)
Replaces all annuals in the catalog.
EntityList< core::domain::Annual > AnnualList
const PropertyList & properties() const noexcept
Returns all properties in the catalog.
void setAnalyses(AnalysisList value)
Replaces all analyses in the catalog.
EntityList< core::domain::Analysis > AnalysisList
void setProperties(PropertyList value)
Replaces all properties in the catalog.
void setStatements(StatementList value)
Replaces all statements in the catalog.
std::vector< std::shared_ptr< T > > EntityList
EntityList< core::domain::Property > PropertyList
const AnnualList & annuals() const noexcept
Returns all annuals in the catalog.
EntityList< core::domain::Statement > StatementList
const StatementList & statements() const noexcept
Returns all statements in the catalog.
const TransactionList & transactions() const noexcept
Returns all transactions in the catalog.
bool empty() const noexcept
Checks whether all catalog collections are empty.
void setActors(ActorList value)
Replaces all actors in the catalog.
const ActorList & actors() const noexcept
Returns all actors in the catalog.
void setContracts(ContractList value)
Replaces all contracts in the catalog.
const ContractList & contracts() const noexcept
Returns all contracts in the catalog.
const AnalysisList & analyses() const noexcept
Returns all analyses in the catalog.
void setTransactions(TransactionList value)
Replaces all transactions in the catalog.
EntityList< core::domain::Actor > ActorList