DUDS
Distributed Update of Data from Something
duds::hardware::PartModel Class Reference

Represents a hardware part; typically an item that can be purchased and added to a circut. More...

#include <Part.hpp>

Collaboration diagram for duds::hardware::PartModel:

Public Member Functions

const boost::uuids::uuid id () const
 
const std::string & name () const
 

Protected Member Functions

 PartModel ()=default
 
 PartModel (const boost::uuids::uuid &id, const std::string &name)
 

Private Attributes

std::string partname
 
boost::uuids::uuid pid
 

Detailed Description

Represents a hardware part; typically an item that can be purchased and added to a circut.

It does not represnt a specific tangible item. Instead, it represents a model of an item that can be found from a supplier.

Todo:
One day, read these from a database on demand.
Todo:
Support adding information, maybe in derived classes, that describe the part. Things like common factory calibration, accuracy, and precision data for various sensors.

Definition at line 25 of file Part.hpp.

Constructor & Destructor Documentation

◆ PartModel() [1/2]

duds::hardware::PartModel::PartModel ( )
protecteddefault

Referenced by name().

◆ PartModel() [2/2]

duds::hardware::PartModel::PartModel ( const boost::uuids::uuid &  id,
const std::string &  name 
)
inlineprotected

Definition at line 30 of file Part.hpp.

Member Function Documentation

◆ id()

const boost::uuids::uuid duds::hardware::PartModel::id ( ) const
inline

Definition at line 33 of file Part.hpp.

Referenced by name().

◆ name()

const std::string& duds::hardware::PartModel::name ( ) const
inline

Definition at line 36 of file Part.hpp.

Member Data Documentation

◆ partname

std::string duds::hardware::PartModel::partname
private

Definition at line 27 of file Part.hpp.

Referenced by name().

◆ pid

boost::uuids::uuid duds::hardware::PartModel::pid
private

Definition at line 26 of file Part.hpp.

Referenced by id().


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