← Documentation
ADS-IDAC Engine 5.0.0
BranchExpectedSupportSystemState.h
Go to the documentation of this file.
1#include <iostream>
2#include <typeinfo>
3#ifndef BRANCHEXPECTEDSUPPORTSYSTEMSTATE_H
4#define BRANCHEXPECTEDSUPPORTSYSTEMSTATE_H
5
6#include "../Crew/Communication.h"
7#include "../CalculationAid/TimerAndProbability.h"
8#include "../Crew/DecisionExpectedSupportSystemState.h"
9#include <boost/serialization/base_object.hpp>
10#include <boost/archive/text_oarchive.hpp>
11#include <boost/archive/text_iarchive.hpp>
12#include <boost/serialization/export.hpp>
13
17 public Communication {
18 public:
22 void saveInfoToFile(std::ostream &);
23 std::string translateMessage();
26 // Serialization using Boost
28 template<class Archive>
29 void serialize(Archive & ar, const unsigned int version)
30 {
31// std::cout << "Serializing class: " << typeid(*this).name() << std::endl;
32 // Serialize base classes' data members
33 ar & boost::serialization::base_object<DecisionExpectedSupportSystemState>(*this);
34 ar & boost::serialization::base_object<TimerAndProbability>(*this);
35 ar & boost::serialization::base_object<Communication>(*this);
36 // Add other data members from BranchExpectedSupportSystemState if any
37 }
38};
39
40
41BOOST_CLASS_EXPORT_KEY(BranchExpectedSupportSystemState)
42#endif //BRANCHEXPECTEDSUPPORTSYSTEMSTATE_H
void copyBranchExpectedSupportSystemState(BranchExpectedSupportSystemState &)
friend class boost::serialization::access
void serialize(Archive &ar, const unsigned int version)
void retrieveBranchExpectedSupportSystemStateFromFile(std::ifstream &)