SEHistogramFractionVsLength.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/SEHistogram.h>
15 #include <biogears/schema/cdm/Properties.hxx>
16 
17 namespace biogears {
18 class LengthUnit;
19 
20 class BIOGEARS_API SEHistogramFractionVsLength : public SEHistogram {
21 public:
23  virtual ~SEHistogramFractionVsLength();
24 
25  virtual void Clear() override;
26 
27  virtual bool IsVaild() const;
28 
29  virtual bool Load(const CDM::HistogramFractionVsLengthData& in);
30  virtual CDM::HistogramFractionVsLengthData* Unload() const override;
31 
32 protected:
33  virtual void Unload(CDM::HistogramFractionVsLengthData& data) const;
34 
35 public:
36  virtual double GetFractionValue(unsigned int index) const;
37  virtual std::vector<double>& GetFraction();
38  virtual const std::vector<double>& GetFraction() const;
39 
40  virtual double GetLengthValue(unsigned int index, const LengthUnit& unit) const;
41  virtual std::vector<double>& GetLength();
42  virtual const std::vector<double>& GetLength() const;
43  virtual const LengthUnit* GetLengthUnit() const;
44  virtual void SetLengthUnit(const LengthUnit& unit);
45 
46 protected:
48 };
49 }
Definition: SEScalarLength.h:18
Definition: SEHistogramFractionVsLength.h:20
Definition: SEHistogram.h:20
Class corresponding to the HistogramFractionVsLengthData schema type.
Definition: Properties.hxx:9111
Definition: SEElectricalCircuit.h:18
const LengthUnit * m_LengthUnit
Definition: SEHistogramFractionVsLength.h:47