Horizon
Loading...
Searching...
No Matches
horizon::Part Class Reference

Classes

class  PadMapItem
class  Column

Public Types

enum class  Attribute {
  MPN , VALUE , MANUFACTURER , DATASHEET ,
  DESCRIPTION
}
enum class  FlagState { SET , CLEAR , INHERIT }
enum class  Flag { EXCLUDE_BOM , EXCLUDE_PNP , BASE_PART }
enum class  OverridePrefix { NO , YES , INHERIT }

Public Member Functions

 Part (const UUID &uu)
const std::string & get_attribute (Attribute a) const
const std::pair< bool, std::string > & get_attribute_pair (Attribute a) const
const std::string & get_MPN () const
const std::string & get_value () const
const std::string & get_manufacturer () const
const std::string & get_datasheet () const
const std::string & get_description () const
std::set< std::string > get_tags () const
UUID get_model () const
void update_refs (IPool &pool)
UUID get_uuid () const
bool get_flag (Flag fl) const
const std::string & get_prefix () const
OverridePrefix get_override_prefix () const
ItemSet get_pool_items_used () const
unsigned int get_required_version () const
json serialize () const

Static Public Member Functions

static Part new_from_json (const json &j, IPool &pool)
static Part new_from_file (const std::string &filename, IPool &pool)
static unsigned int get_app_version ()

Public Attributes

UUID uuid
std::map< Attribute, std::pair< bool, std::string > > attributes
std::map< UUID, std::string > orderable_MPNs
std::set< std::string > tags
bool inherit_tags = false
std::shared_ptr< const class Entityentity
std::shared_ptr< const class Packagepackage
UUID model
bool inherit_model = true
std::shared_ptr< const class Part > base
std::map< std::string, std::string > parametric
std::map< std::string, Columnparametric_formatted
std::map< UUID, PadMapItempad_map
std::map< Flag, FlagState > flags
OverridePrefix override_prefix = OverridePrefix::NO
std::string prefix
FileVersion version

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