PrefixDescriptor.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4//----------------------------------------------------------------------------
10//----------------------------------------------------------------------------
11#pragma once
12
14{
15public:
16 CPrefixDescriptor(std::string name, std::string sym, double scaleFac) :
17 m_strName(name), m_cSym(sym[0]), m_dScaleFac(scaleFac)
18 {
19 // All done already
20 }
21
22 CPrefixDescriptor(std::string name, char sym, double scaleFac) :
23 m_strName(name), m_cSym(sym), m_dScaleFac(scaleFac)
24 {
25 // All done already
26 }
27
28 const std::string &GetName() const
29 {
30 return m_strName;
31 };
32
33 char GetSymbol() const
34 {
35 return m_cSym;
36 }
37
38 double GetScaleFactor() const
39 {
40 return m_dScaleFac;
41 }
42
43private:
44 std::string m_strName;
45 char m_cSym;
47};
Definition: PrefixDescriptor.h:14
CPrefixDescriptor(std::string name, std::string sym, double scaleFac)
Definition: PrefixDescriptor.h:16
double GetScaleFactor() const
Definition: PrefixDescriptor.h:38
std::string m_strName
Definition: PrefixDescriptor.h:44
const std::string & GetName() const
Definition: PrefixDescriptor.h:28
CPrefixDescriptor(std::string name, char sym, double scaleFac)
Definition: PrefixDescriptor.h:22
char m_cSym
Definition: PrefixDescriptor.h:45
double m_dScaleFac
Definition: PrefixDescriptor.h:46
char GetSymbol() const
Definition: PrefixDescriptor.h:33

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.