ZLayout EDA Library v1.0.0
Advanced Electronic Design Automation Layout Library with Bilingual Documentation
Loading...
Searching...
No Matches
zlayout::components::ComponentLibrary Class Reference

Component library for managing component definitions. More...

#include <component.hpp>

Public Member Functions

 ComponentLibrary (const std::string &name)
void addComponent (std::shared_ptr< Component > component)
std::shared_ptr< ComponentgetComponent (const std::string &name) const
std::shared_ptr< ComponentcreateComponent (const std::string &type, const std::string &name) const
const std::string & getName () const
std::vector< std::string > getComponentTypes () const
void saveToFile (const std::string &filename) const
void loadFromFile (const std::string &filename)

Detailed Description

Component library for managing component definitions.

Definition at line 280 of file component.hpp.

Constructor & Destructor Documentation

◆ ComponentLibrary()

zlayout::components::ComponentLibrary::ComponentLibrary ( const std::string & name)

Member Function Documentation

◆ addComponent()

void zlayout::components::ComponentLibrary::addComponent ( std::shared_ptr< Component > component)

◆ createComponent()

std::shared_ptr< Component > zlayout::components::ComponentLibrary::createComponent ( const std::string & type,
const std::string & name ) const

◆ getComponent()

std::shared_ptr< Component > zlayout::components::ComponentLibrary::getComponent ( const std::string & name) const

◆ getComponentTypes()

std::vector< std::string > zlayout::components::ComponentLibrary::getComponentTypes ( ) const

◆ getName()

const std::string & zlayout::components::ComponentLibrary::getName ( ) const
inline

Definition at line 290 of file component.hpp.

◆ loadFromFile()

void zlayout::components::ComponentLibrary::loadFromFile ( const std::string & filename)

◆ saveToFile()

void zlayout::components::ComponentLibrary::saveToFile ( const std::string & filename) const

The documentation for this class was generated from the following file: