← Documentation
ADS-IDAC Engine 5.0.0
BranchSystemAction.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4#include <typeinfo>
5// BranchSystemAction.h: interface for the BranchSystemAction class.
6//
8
9#include "../Crew/Communication.h"
10#include "../ControlPanel/ControlElement.h"
11#include "../CalculationAid/TimerAndProbability.h"
12#include <boost/archive/text_oarchive.hpp>
13#include <boost/archive/text_iarchive.hpp>
14#include <boost/serialization/string.hpp>
15#include <boost/serialization/base_object.hpp>
16#include <boost/serialization/export.hpp>
17
19 public ControlElement,
20 public Communication,
22{
23public:
25 virtual ~BranchSystemAction();
27 void saveInfoToFile(std::ostream &);
28 std::string translateMessage();
29 void setFunctionalState(int);
31 void saveBranchSystemActionToFile(std::ofstream &);
32 void retrieveBranchSystemActionFromFile(std::ifstream &);
33 template<class Archive>
34 void serialize(Archive & ar, const unsigned int version) {
35// std::cout << "Serializing class: " << typeid(*this).name() << std::endl;
36 // Serialize base class members
37 ar & boost::serialization::base_object<ControlElement>(*this);
38 ar & boost::serialization::base_object<Communication>(*this);
39 ar & boost::serialization::base_object<TimerAndProbability>(*this);
40
41 // Serialize this class's members
43 }
44private:
46};
47
48
49BOOST_CLASS_EXPORT_KEY(BranchSystemAction)
void saveBranchSystemActionToFile(std::ofstream &)
std::string translateMessage()
void serialize(Archive &ar, const unsigned int version)
void saveInfoToFile(std::ostream &)
void retrieveBranchSystemActionFromFile(std::ifstream &)
void copyBranchSystemAction(BranchSystemAction &)