← Documentation
ADS-IDAC Engine 5.0.0
BranchSupportSystemActionVector.cpp
Go to the documentation of this file.
2#include <boost/serialization/export.hpp>
3#include <boost/archive/binary_oarchive.hpp>
4#include <boost/archive/binary_iarchive.hpp>
5BOOST_CLASS_EXPORT_IMPLEMENT(BranchSupportSystemActionVector)
6using namespace std;
7
9{
10
11}
13{
14 //unique_ptr handles deletion
15}
17 int i, num;
18 num = _bssav.branch_support_system_action_vector.size();
19 for(i = 0; i < num; i++){
20 auto p = std::make_unique<BranchSupportSystemAction>();
21 p->copyBranchSupportSystemAction(*(_bssav.branch_support_system_action_vector.at(i)));
22 this->branch_support_system_action_vector.push_back(std::move(p));
23 }
24}
26 int i, num;
28 fout << num << '\n';
29 for(i = 0; i < num; i++){
30 this->branch_support_system_action_vector.at(i)->saveBranchSupportSystemActionToFile(fout);
31 }
32}
34 int i, num;
35 fin >> num;
36 for(i = 0; i < num; i++){
37 auto p = std::make_unique<BranchSupportSystemAction>();
38 p->retrieveBranchSupportSystemActionFromFile(fin);
39 this->branch_support_system_action_vector.push_back(std::move(p));
40 }
41}
std::vector< std::unique_ptr< BranchSupportSystemAction > > branch_support_system_action_vector
void retrieveBranchSupportSystemActionVectorFromFile(std::ifstream &)
void saveBranchSupportSystemActionVectorToFile(std::ofstream &)
void copyBranchSupportSystemActionVector(BranchSupportSystemActionVector &)