← Documentation
ADS-IDAC Engine 5.0.0
BranchInfoGatherMode.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4#include <typeinfo>
5// BranchInfoGatherMode.h: interface for the BranchInfoGatherMode class.
6//
8
9#include "../Crew/Communication.h"
10#include "../CalculationAid/TimerAndProbability.h"
11#include <fstream>
12#include <boost/archive/text_oarchive.hpp>
13#include <boost/archive/text_iarchive.hpp>
14#include <boost/serialization/base_object.hpp>
15#include <boost/serialization/string.hpp>
16#include <boost/serialization/export.hpp>
17
18
20 public TimerAndProbability,
21 public Communication
22{
23public:
25 virtual ~BranchInfoGatherMode();
26 void setInfoGatherMode(int);
28 void saveInfoToFile(std::ostream &);
30 std::string translateMessage();
31 void saveBranchInfoGatherModeToFile(std::ofstream &);
32 void retrieveBranchInfoGatherModeFromFile(std::ifstream &);
33 friend class boost::serialization::access; // grant access to boost serialization
34 template<class Archive>
35 void serialize(Archive & ar, const unsigned int version)
36 {
37// std::cout << "Serializing class: " << typeid(*this).name() << std::endl;
38 ar & boost::serialization::base_object<TimerAndProbability>(*this);
39 ar & boost::serialization::base_object<Communication>(*this);
41 }
42private:
44};
45
46
47BOOST_CLASS_EXPORT_KEY(BranchInfoGatherMode)
void saveInfoToFile(std::ostream &)
void retrieveBranchInfoGatherModeFromFile(std::ifstream &)
void saveBranchInfoGatherModeToFile(std::ofstream &)
void serialize(Archive &ar, const unsigned int version)
void copyBranchInfoGatherMode(BranchInfoGatherMode &)
friend class boost::serialization::access