SETestReport.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/utils/testing/SETestSuite.h>
15 
16 CDM_BIND_DECL(TestReportData)
17 namespace biogears{
18 class BIOGEARS_API SETestReport : public Loggable {
19 public:
20  SETestReport(Logger* logger);
21  virtual ~SETestReport();
22 
23  virtual void Reset(); //reset values
24  virtual void Clear(); //clear memory
25 
26  bool Load(const CDM::TestReportData& in);
27  std::unique_ptr<CDM::TestReportData> Unload() const;
28 
29 protected:
30  void Unload(CDM::TestReportData& data) const;
31 
32 public:
33  bool WriteFile(const std::string& filename);
34 
35  SETestSuite& CreateTestSuite();
36  const std::vector<SETestSuite*>& GetTestSuites() const;
37 
38 protected:
39  std::vector<SETestSuite*> m_testSuite;
40 };
41 }
Class corresponding to the TestReportData schema type.
Definition: TestReport.hxx:1486
Definition: Logger.h:27
Definition: Logger.h:75
Definition: SETestReport.h:18
std::vector< SETestSuite * > m_testSuite
Definition: SETestReport.h:39
Definition: SETestSuite.h:20
Definition: SEElectricalCircuit.h:18