Horizon
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
horizon::Part Class Reference

Classes

class  PadMapItem
 

Public Types

enum  Attribute {
  MPN, VALUE, MANUFACTURER, DATASHEET,
  DESCRIPTION, MPN, VALUE, MANUFACTURER,
  DATASHEET, DESCRIPTION
}
 
enum  Attribute {
  MPN, VALUE, MANUFACTURER, DATASHEET,
  DESCRIPTION, MPN, VALUE, MANUFACTURER,
  DATASHEET, DESCRIPTION
}
 

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
 
json serialize () const
 
 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
 
json serialize () const
 

Static Public Member Functions

static Part new_from_file (const std::string &filename, IPool &pool)
 
static Part new_from_file (const std::string &filename, IPool &pool)
 

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
 
uuid_ptr< const class Entityentity
 
uuid_ptr< const class Packagepackage
 
UUID model
 
bool inherit_model = true
 
uuid_ptr< const class Partbase
 
std::map< std::string, std::string > parametric
 
std::map< UUID, PadMapItempad_map
 
FileVersion version
 

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