File: ForceUnit.h

package info (click to toggle)
sofa-framework 1.0~beta4-12
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 88,828 kB
  • ctags: 27,300
  • sloc: cpp: 151,126; ansic: 2,387; xml: 581; sh: 417; makefile: 68
file content (46 lines) | stat: -rw-r--r-- 1,501 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/***************************************************************************
                          ForceUnit.h  -  description
                             -------------------
    begin                : mar f�v 4 2003
    copyright            : (C) 2003 by Emmanuel Promayon
    email                : Emmanuel.Promayon@imag.fr

 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef FORCEUNIT_H
#define FORCEUNIT_H

#include "Unit.h"

/** Class that defines the different units of a Load 'Force' 
 *
 * This class implements the type-safe design pattern.
 *
 * $Revision: 44 $
 */
class ForceUnit : public Unit {

public:
  /// picoNewtons
  static ForceUnit PN; 
  /// Newtons
  static ForceUnit N;
  /// KiloNewtons
  static ForceUnit KN; 

private:
  /// private constructor
  ForceUnit(char * n) {unitString = n;}
};


#endif //FORCEUNIT_H