PrefixDescriptor.h
1 /**************************************************************************************
2 Copyright 2015 Applied Research Associates, Inc.
3 Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4 this file except in compliance with the License. You may obtain a copy of the License
5 at:
6 http://www.apache.org/licenses/LICENSE-2.0
7 Unless required by applicable law or agreed to in writing, software distributed under
8 the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9 CONDITIONS OF ANY KIND, either express or implied. See the License for the
10 specific language governing permissions and limitations under the License.
11 **************************************************************************************/
12 
13 //----------------------------------------------------------------------------
19 //----------------------------------------------------------------------------
20 #pragma once
21 #include <biogears/exports.h>
22 #include <string>
23 
24 namespace biogears{
26 public:
27  CPrefixDescriptor(const char* name, const char* sym, double scaleFac);
28  CPrefixDescriptor(const char* name, char sym, double scaleFac);
29  CPrefixDescriptor(const std::string& name, const std::string& sym, double scaleFac);
30  CPrefixDescriptor(const std::string& name, char sym, double scaleFac);
31 
32  std::string GetName() const;
33  const char* GetName_cStr() const;
34 
35  char GetSymbol() const;
36  double GetScaleFactor() const;
37 
38 private:
39  std::string m_strName;
40  char m_cSym;
41  double m_dScaleFac;
42 };
43 }
std::string GetName() const
Definition: PrefixDescriptor.cpp:41
char m_cSym
Definition: PrefixDescriptor.h:40
CPrefixDescriptor(const char *name, const char *sym, double scaleFac)
Definition: PrefixDescriptor.cpp:18
double GetScaleFactor() const
Definition: PrefixDescriptor.cpp:56
std::string m_strName
Definition: PrefixDescriptor.h:39
const char * GetName_cStr() const
Definition: PrefixDescriptor.cpp:46
char GetSymbol() const
Definition: PrefixDescriptor.cpp:51
double m_dScaleFac
Definition: PrefixDescriptor.h:41
Definition: PrefixDescriptor.h:25
Definition: SEElectricalCircuit.h:18