← Documentation
ADS-IDAC Engine 5.0.0
BranchProcedureControlValueUnit.h
Go to the documentation of this file.
1#pragma once
2
3#include <typeinfo>
4// BranchProcedureControlValueUnit.h: interface for the BranchProcedureControlValueUnit class.
5//
7
8#include <string>
9#include <vector>
10#include <fstream>
11#include <iostream>
12#include <boost/serialization/export.hpp>
13
14#include "../Global/fmodule.h"
15#include <boost/archive/text_oarchive.hpp>
16#include <boost/archive/text_iarchive.hpp>
17#include <boost/serialization/vector.hpp>
18#include <boost/serialization/string.hpp>
19
20
22{
23public:
27 void setProcedureName(std::string);
28 void setStepName(std::string);
29 void setActionName(std::string);
30 void setNumberOfBranches(int);
31 std::string getProcedureName();
32 std::string getStepName();
33 std::string getActionName();
35 bool checkIfControlValueBranchNeedsToBeGenerated(std::string, std::string, std::string);
36 void readInfoFromFile(std::ifstream &);
40 std::vector<double> probabilities;
41 std::vector<double> control_values;
42 template<class Archive>
43 void serialize(Archive & ar, const unsigned int version) {
44// std::cout << "Serializing class: " << typeid(*this).name() << std::endl;
45 // Serialize this class's members
46 ar & procedure_name;
47 ar & step_name;
48 ar & action_name;
50 ar & probabilities;
51 ar & control_values;
52 }
53private:
54 std::string procedure_name;
55 std::string step_name;
56 std::string action_name;
58
59
60};
61
62
63BOOST_CLASS_EXPORT_KEY(BranchProcedureControlValueUnit)
bool checkIfControlValueBranchNeedsToBeGenerated(std::string, std::string, std::string)
void retrieveBranchProcedureControlValueUnitFromFile(std::ifstream &)
void copyBranchProcedureControlValueUnit(BranchProcedureControlValueUnit)
void serialize(Archive &ar, const unsigned int version)