packages/engine/scram/src/project.h
Project/configuration management facilities to make various setups for analysis possible.
Namespaces
| Name |
|---|
| scram |
Classes
| Name | |
|---|---|
| class | scram::Project <br>This class processes project configuration files for analysis. |
Source code
cpp
/*
* Copyright (C) 2014-2018 Olzhas Rakhimov
* Copyright (C) 2023 OpenPRA ORG Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <string>
#include <vector>
#include <boost/filesystem/path.hpp>
#include "settings.h"
#include "xml.h"
namespace scram {
class Project {
public:
explicit Project(const std::string& project_file);
const std::vector<std::string>& input_files() const { return input_files_; }
const core::Settings& settings() const { return settings_; }
private:
void GatherInputFiles(const xml::Element& root,
const boost::filesystem::path& base_path);
void GatherOptions(const xml::Element& root);
void SetAnalysis(const xml::Element& analysis);
void SetLimits(const xml::Element& limits);
std::vector<std::string> input_files_;
core::Settings settings_;
};
} // namespace scramUpdated on 2026-01-09 at 21:59:13 +0000
