24#include <unordered_map>
29namespace Antares::Study::SystemModel
39 const std::string& Id()
const
44 const std::string& Description()
const
49 const std::unordered_map<std::string, PortType>& PortTypes()
const
54 const std::unordered_map<std::string, Model>& Models()
const
63 std::string description_;
65 std::unordered_map<std::string, PortType> portTypes_;
66 std::shared_ptr<std::unordered_map<std::string, Model>>
67 models_ = std::make_shared<std::unordered_map<std::string, Model>>();
Builder for the Library class Follow builder pattern: builder.Library().withId("id")....
Definition library.h:76
LibraryBuilder & withPortTypes(std::vector< PortType > &&portTypes)
Sets the port types of the library.
Definition library.cpp:64
LibraryBuilder & withModels(std::vector< Model > &&models)
Sets the models of the library.
Definition library.cpp:82
LibraryBuilder & withId(const std::string &id)
Sets the ID of the library.
Definition library.cpp:38
const Library & build() const
Returns the Library object.
Definition library.cpp:97
LibraryBuilder & withDescription(const std::string &description)
Sets the description of the library.
Definition library.cpp:50
A library is a collection of models.
Definition library.h:34