core/vcsl/vcsl_millimeter.h
Go to the documentation of this file.
00001 #ifndef vcsl_millimeter_h_
00002 #define vcsl_millimeter_h_
00003 //:
00004 // \file
00005 #include <vcsl/vcsl_length_unit.h>
00006 #include "vcsl_millimeter_sptr.h"
00007 
00008 //: Standard unit associated to the length dimension
00009 class vcsl_millimeter
00010   : public vcsl_length_unit
00011 {
00012   //***************************************************************************
00013   // Constructors/Destructor
00014   //***************************************************************************
00015 
00016   // Default constructor
00017   vcsl_millimeter() {}
00018 
00019  public:
00020   // Destructor
00021   virtual ~vcsl_millimeter() {}
00022 
00023   //***************************************************************************
00024   // Status report
00025   //***************************************************************************
00026 
00027   //: Returns the number of units of `this' equal of the standard_unit for the dimension
00028   // Pure virtual function of vcsl_unit
00029   virtual double units_per_standard_unit() const { return 1000; }
00030 
00031   //***************************************************************************
00032   // Singleton pattern
00033   //***************************************************************************
00034 
00035   //: Return the reference to the unique vcsl_millimeter object
00036   static vcsl_millimeter_sptr instance();
00037 };
00038 
00039 #endif // vcsl_millimeter_h_