My Project
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
Friends
Macros
Pages
Unit.h
Go to the documentation of this file.
1
// $Id: Unit.h,v 1.1.1.1 2009/07/06 23:57:27 eml Exp $
2
3
#ifndef GCP_UTIL_UNIT_H
4
#define GCP_UTIL_UNIT_H
5
15
#include <string>
16
#include <vector>
17
18
namespace
gcp {
19
namespace
util {
20
21
// This class is intended as a base-class for all unit classes
22
// defined in inheritors of ConformableQuantity class
23
24
class
Unit
{
25
public
:
26
30
Unit
();
31
35
virtual
~Unit
();
36
37
// Return true if the passed name is a recognized name for this
38
// unit
39
40
bool
isThisUnit
(std::string unitName);
41
42
protected
:
43
44
// A collection of valid name for this unit
45
46
std::vector<std::string> names_;
47
48
// Add a name to this list
49
50
void
addName
(std::string name);
51
52
virtual
void
addNames();
53
54
};
// End class Unit
55
56
}
// End namespace util
57
}
// End namespace gcp
58
59
60
61
#endif // End #ifndef GCP_UTIL_UNIT_H
gcp::util::Unit
Definition:
Unit.h:24
gcp::util::Unit::~Unit
virtual ~Unit()
Definition:
Unit.cc:17
gcp::util::Unit::Unit
Unit()
Definition:
Unit.cc:12
gcp::util::Unit::isThisUnit
bool isThisUnit(std::string unitName)
Definition:
Unit.cc:23
gcp::util::Unit::addName
void addName(std::string name)
Definition:
Unit.cc:37
gcpCbass
util
common
Unit.h
Generated on Thu Jun 21 2018 14:30:00 for My Project by
1.8.6