← Documentation
ADS-IDAC Engine 5.0.0
BranchSupportSystemAction.h
Go to the documentation of this file.
1#include <iostream>
2#include <typeinfo>
3#ifndef BRANCHSUPPORTSYSTEMACTION_H
4#define BRANCHSUPPORTSYSTEMACTION_H
5
6#include "../CalculationAid/TimerAndProbability.h"
7#include "../Crew/Communication.h"
8#include "../Global/ConvertToString.h"
9#include "../ControlPanel/ControlElement.h"
10#include <boost/archive/text_oarchive.hpp>
11#include <boost/archive/text_iarchive.hpp>
12#include <boost/serialization/string.hpp>
13#include <boost/serialization/base_object.hpp>
14#include <boost/serialization/export.hpp>
15
17 public ControlElement,
18 public Communication,
19 public TimerAndProbability {
20 public:
24 void saveInfoToFile(std::ostream &);
25 std::string translateMessage();
26 void setFunctionalState(int);
28 void saveBranchSupportSystemActionToFile(std::ofstream &);
30 template<class Archive>
31 void serialize(Archive & ar, const unsigned int version) {
32// std::cout << "Serializing class: " << typeid(*this).name() << std::endl;
33 // Serialize base class members
34 ar & boost::serialization::base_object<ControlElement>(*this);
35 ar & boost::serialization::base_object<Communication>(*this);
36 ar & boost::serialization::base_object<TimerAndProbability>(*this);
37
38 // Serialize this class's members
40 }
41 private:
43};
44
45BOOST_CLASS_EXPORT_KEY(BranchSupportSystemAction)
46#endif //BRANCHSUPPORTSYSTEMACTION_H
void retrieveBranchSupportSystemActionFromFile(std::ifstream &)
void serialize(Archive &ar, const unsigned int version)
void copyBranchSupportSystemAction(BranchSupportSystemAction &)
void saveBranchSupportSystemActionToFile(std::ofstream &)