core/vcsl/vcsl_micron.h
Go to the documentation of this file.
00001 #ifndef vcsl_micron_h_
00002 #define vcsl_micron_h_
00003 //:
00004 // \file
00005 #include <vcsl/vcsl_length_unit.h>
00006 #include "vcsl_micron_sptr.h"
00007 
00008 //: Standard unit associated to the length dimension
00009 class vcsl_micron
00010   : public vcsl_length_unit
00011 {
00012   //***************************************************************************
00013   // Constructors/Destructor
00014   //***************************************************************************
00015 
00016   // Default constructor
00017   vcsl_micron() {}
00018 
00019  public:
00020   // Destructor
00021   virtual ~vcsl_micron() {}
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 1000000; }
00030 
00031   //***************************************************************************
00032   // Singleton pattern
00033   //***************************************************************************
00034 
00035   //: Return the reference to the unique vcsl_micron object
00036   static vcsl_micron_sptr instance();
00037 };
00038 
00039 #endif // vcsl_micron_h_