SEScalar0To1.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 #pragma once
14 #include <biogears/cdm/properties/SEScalar.h>
15 
16 namespace biogears {
17 class BIOGEARS_API SEScalar0To1 : public SEScalar {
18 
19 public:
20  SEScalar0To1();
21  virtual ~SEScalar0To1() {}
22 
23  CDM::Scalar0To1Data* Unload() const;
24 
25  double GetValue() const { return SEScalar::GetValue(); }
26  double GetValue(const NoUnit& unitless) const { return SEScalar::GetValue(); }
27  void SetValue(double d);
28  void SetValue(double d, const NoUnit& unitless);
29 };
30 }
virtual ~SEScalar0To1()
Definition: SEScalar0To1.h:21
double GetValue() const
Definition: SEScalar0To1.h:25
Definition: SEScalar.h:33
Class corresponding to the Scalar0To1Data schema type.
Definition: Properties.hxx:3467
const std::string unitless
Definition: SEScalar.cpp:30
Definition: SEScalar0To1.h:17
Definition: SEScalar.h:25
double GetValue(const NoUnit &unitless) const
Definition: SEScalar0To1.h:26
virtual double GetValue() const
Definition: SEScalar.cpp:183
Definition: SEElectricalCircuit.h:18