Builder component of Unit objects. Contains setter methods to configure the Unit parameters, and a build method that builds the Unit object.  
 More...
Inherits ObjectPtr< IUnitBuilder >.
Builder component of Unit objects. Contains setter methods to configure the Unit parameters, and a build method that builds the Unit object. 
Public Member Functions | |
| daq::UnitPtr | build () const | 
| Builds and returns a Unit object using the currently set values of the Builder.  More... | |
| UnitBuilderPtr | setId (daq::Int id) const | 
| Sets the unit ID as defined in Codes for Units of Measurement used in International Trade.  More... | |
| daq::Int | getId () const | 
| Gets the unit ID as defined in Codes for Units of Measurement used in International Trade.  More... | |
| UnitBuilderPtr | setSymbol (const daq::StringPtr &symbol) const | 
| Sets the symbol of the unit, i.e. "m/s".  More... | |
| daq::StringPtr | getSymbol () const | 
| Gets the symbol of the unit, i.e. "m/s".  More... | |
| UnitBuilderPtr | setName (const daq::StringPtr &name) const | 
| Sets the full name of the unit, i.e. "meters per second".  More... | |
| daq::StringPtr | getName () const | 
| Gets the full name of the unit, i.e. "meters per second".  More... | |
| UnitBuilderPtr | setQuantity (const daq::StringPtr &quantity) const | 
| Sets the quantity represented by the unit, i.e. "Velocity".  More... | |
| daq::StringPtr | getQuantity () const | 
| Gets the quantity represented by the unit, i.e. "Velocity".  More... | |
      
  | 
  inline | 
Builds and returns a Unit object using the currently set values of the Builder.
      
  | 
  inline | 
Gets the unit ID as defined in Codes for Units of Measurement used in International Trade.
Returns -1 if the unit id is not available.
      
  | 
  inline | 
Gets the full name of the unit, i.e. "meters per second".
nullptr if not set. 
      
  | 
  inline | 
Gets the quantity represented by the unit, i.e. "Velocity".
nullptr if not set. 
      
  | 
  inline | 
Gets the symbol of the unit, i.e. "m/s".
      
  | 
  inline | 
Sets the unit ID as defined in Codes for Units of Measurement used in International Trade.
| id | The unit ID. | 
The ID should be -1 if the unit is not available.
      
  | 
  inline | 
Sets the full name of the unit, i.e. "meters per second".
| name | The unit's full name. | 
      
  | 
  inline | 
Sets the quantity represented by the unit, i.e. "Velocity".
| quantity | The unit's quantity. | 
      
  | 
  inline | 
Sets the symbol of the unit, i.e. "m/s".
| symbol | The unit's symbol. |