vcsl_millimeter.h
Go to the documentation of this file.
1 #ifndef vcsl_millimeter_h_
2 #define vcsl_millimeter_h_
3 //:
4 // \file
6 #include "vcsl_millimeter_sptr.h"
7 
8 //: Standard unit associated to the length dimension
10  : public vcsl_length_unit
11 {
12  //***************************************************************************
13  // Constructors/Destructor
14  //***************************************************************************
15 
16  // Default constructor
17  vcsl_millimeter() = default;
18 
19  public:
20  // Destructor
21  ~vcsl_millimeter() override = default;
22 
23  //***************************************************************************
24  // Status report
25  //***************************************************************************
26 
27  //: Returns the number of units of `this' equal of the standard_unit for the dimension
28  // Pure virtual function of vcsl_unit
29  double units_per_standard_unit() const override { return 1000; }
30 
31  //***************************************************************************
32  // Singleton pattern
33  //***************************************************************************
34 
35  //: Return the reference to the unique vcsl_millimeter object
37 };
38 
39 #endif // vcsl_millimeter_h_
double units_per_standard_unit() const override
Returns the number of units of ‘this’ equal of the standard_unit for the dimension.
vcsl_millimeter()=default
static vcsl_millimeter_sptr instance()
Return the reference to the unique vcsl_millimeter object.
~vcsl_millimeter() override=default
Abstract unit associated to the length dimension.
Standard unit associated to the length dimension.
Abstract unit associated to the length dimension.