vcsl_meter.h
Go to the documentation of this file.
1 #ifndef vcsl_meter_h_
2 #define vcsl_meter_h_
3 //:
4 // \file
5 // \brief Standard unit associated to the length dimension
6 // \author Francois BERTEL
7 //
8 // \verbatim
9 // Modifications
10 // 2000/06/28 Francois BERTEL Creation. Adapted from IUE
11 // 2001/04/10 Ian Scott (Manchester) Converted perceps header to doxygen
12 // 2004/09/17 Peter Vanroose made "instance_" a local static variable of method instance()
13 // \endverbatim
14 
15 #include <vcsl/vcsl_length_unit.h>
16 #include <vcsl/vcsl_meter_sptr.h>
17 
18 //: Standard unit associated to the length dimension
20  : public vcsl_length_unit
21 {
22  //***************************************************************************
23  // Constructors/Destructor
24  //***************************************************************************
25 
26  // Default constructor
27  vcsl_meter() = default;
28 
29  public:
30  // Destructor
31  ~vcsl_meter() override = default;
32 
33  //***************************************************************************
34  // Status report
35  //***************************************************************************
36 
37  //: Returns the number of units of `this' equal of the standard_unit for the dimension
38  // Pure virtual function of vcsl_unit
39  double units_per_standard_unit() const override { return 1; }
40 
41  //***************************************************************************
42  // Singleton pattern
43  //***************************************************************************
44 
45  //: Return the reference to the unique vcsl_meter object
46  static vcsl_meter_sptr instance();
47 };
48 
49 #endif // vcsl_meter_h_
~vcsl_meter() override=default
double units_per_standard_unit() const override
Returns the number of units of ‘this’ equal of the standard_unit for the dimension.
Definition: vcsl_meter.h:39
Standard unit associated to the length dimension.
Definition: vcsl_meter.h:19
Abstract unit associated to the length dimension.
vcsl_meter()=default
static vcsl_meter_sptr instance()
Return the reference to the unique vcsl_meter object.
Definition: vcsl_meter.cxx:7
Abstract unit associated to the length dimension.