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