SEInhalerActionCollection.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 
15 #include <biogears/cdm/substance/SESubstanceManager.h>
16 #include <biogears/cdm/system/equipment/Inhaler/SEInhaler.h>
17 #include <biogears/cdm/system/equipment/Inhaler/actions/SEInhalerConfiguration.h>
18 
19 namespace biogears {
20 class BIOGEARS_API SEInhalerActionCollection : public Loggable {
21 public:
24 
25  void Clear();
26 
27  void Unload(std::vector<CDM::ActionData*>& to);
28 
29  bool ProcessAction(const SEInhalerAction& action);
30  bool ProcessAction(const CDM::InhalerActionData& action);
31 
32  // STATE ACTION
33  bool HasConfiguration() const;
34  SEInhalerConfiguration* GetConfiguration() const;
35  void RemoveConfiguration();
36 
37 protected:
38  bool IsValid(const SEInhalerAction& action);
39 
41  // General
43  std::stringstream m_ss;
44 };
45 }
std::stringstream m_ss
Definition: SEInhalerActionCollection.h:43
Definition: SEInhalerConfiguration.h:21
Definition: SEInhalerActionCollection.h:20
SEInhalerConfiguration * m_Configuration
Definition: SEInhalerActionCollection.h:40
Definition: SEInhalerAction.h:17
Definition: Logger.h:27
Class corresponding to the InhalerActionData schema type.
Definition: InhalerActions.hxx:685
Definition: SESubstanceManager.h:23
SESubstanceManager & m_Substances
Definition: SEInhalerActionCollection.h:42
Definition: SEElectricalCircuit.h:18