vcsl_angle.h
Go to the documentation of this file.
1 #ifndef vcsl_angle_h_
2 #define vcsl_angle_h_
3 //:
4 // \file
5 // \brief 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 do not pass vcsl_unit objects; use vcsl_unit_sptr instead
12 // \endverbatim
13 
14 #include <vcsl/vcsl_dimension.h>
15 #include <vcsl/vcsl_angle_sptr.h>
16 #include <vcsl/vcsl_unit_sptr.h>
17 
18 //: Angle dimension
20  : public vcsl_dimension
21 {
22  //***************************************************************************
23  // Constructors/Destructor
24  //***************************************************************************
25 
26  // Default constructor
27  vcsl_angle() = default;
28 
29  public:
30  // Destructor
31  ~vcsl_angle() override = default;
32 
33  //***************************************************************************
34  // Status report
35  //***************************************************************************
36 
37  //: Is `new_unit' a compatible unit for the dimension ?
38  // Pure virtual function of vcsl_dimension
39  bool compatible_unit(vcsl_unit_sptr const& new_unit) const override;
40 
41  //: Return the standard unit associated to the dimension
42  // Pure virtual function of vcsl_dimension
43  vcsl_unit_sptr standard_unit() const override;
44 
45  //***************************************************************************
46  // Singleton pattern
47  //***************************************************************************
48 
49  //: Return the reference to the unique vcsl_angle object
50  static vcsl_angle_sptr instance();
51 };
52 
53 #endif // vcsl_angle_h_
vcsl_angle()=default
vcsl_unit_sptr standard_unit() const override
Return the standard unit associated to the dimension.
Definition: vcsl_angle.cxx:13
bool compatible_unit(vcsl_unit_sptr const &new_unit) const override
Is ‘new_unit’ a compatible unit for the dimension ?.
Definition: vcsl_angle.cxx:8
~vcsl_angle() override=default
Angle dimension.
Definition: vcsl_angle.h:19
Abstract dimension.
static vcsl_angle_sptr instance()
Return the reference to the unique vcsl_angle object.
Definition: vcsl_angle.cxx:21
Abstract dimension.