vcsl_degree.h
Go to the documentation of this file.
1 #ifndef vcsl_degree_h_
2 #define vcsl_degree_h_
3 //:
4 // \file
5 // \brief A unit associated to the angle dimension
6 // \author Francois BERTEL
7 //
8 // \verbatim
9 // Modifications
10 // 2000/06/28 Francois BERTEL Creation. Adapted from IUE
11 // 2004/09/17 Peter Vanroose made "instance_" a local static variable of method instance()
12 // \endverbatim
13 
14 #include <vcsl/vcsl_angle_unit.h>
15 #include <vcsl/vcsl_degree_sptr.h>
16 
17 //: A unit associated to the angle dimension
18 // See also \b vcsl_radian
20  : public vcsl_angle_unit
21 {
22  //***************************************************************************
23  // Constructors/Destructor
24  //***************************************************************************
25 
26  // Default constructor
27  vcsl_degree() = default;
28 
29  public:
30  // Destructor
31  ~vcsl_degree() 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;
40 
41  //***************************************************************************
42  // Singleton pattern
43  //***************************************************************************
44 
45  //: Return the reference to the unique vcsl_degree object
46  static vcsl_degree_sptr instance();
47 };
48 
49 #endif // vcsl_degree_h_
static vcsl_degree_sptr instance()
Return the reference to the unique vcsl_degree object.
Definition: vcsl_degree.cxx:18
~vcsl_degree() override=default
A unit associated to the angle dimension.
Definition: vcsl_degree.h:19
Abstract unit associated to the angle dimension.
double units_per_standard_unit() const override
Returns the number of units of ‘this’ equal of the standard_unit for the dimension.
Definition: vcsl_degree.cxx:9
Abstract unit associated to the angle dimension.
vcsl_degree()=default